[03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:24]ConnectInit Can't connect to host [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:12]accept exits with 10 [04:02:12]New connection [04:02:12]New thread 3066850660 created [04:02:12]Thread 3066994020 joined [04:02:12]Waiting for new connection... [04:02:12] Sock 10.Parse request [04:02:12]Sock 10.Check first char [04:02:12]Sock 10.First char is OK [04:02:12]request: POST /json_proto HTTP/1.0 [04:02:12]Method: POST [04:02:12]URL: /json_proto [04:02:12]Method is POST - this is cgi request [04:02:12]url: /json_proto [04:02:12]query_string will be loaded in cgi processing [04:02:12]execute_cgi json_proto POST (null) [04:02:12]execute_cgi path=json_proto method=POST [04:02:12]POST find Content-Length [04:02:12]Host: 172.17.39.195:8080 [04:02:12]Content-Length: 215 [04:02:12]Content-Type: application/json [04:02:12] [04:02:12]POST finish read [04:02:12]Found Content-Length = 215 [04:02:12]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" ] } } [04:02:12]execute_script... [04:02:12]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" ] } } [04:02:12]POST & json_proto [04:02:12]process_json_proto [04:02:12]json parsed OK: [04:02:12]protocol is kg_v1.0 [04:02:12]action value=get_value [04:02:12]process_action get_value [04:02:12]cmd_get_value [04:02:12]process_action get_value done [04:02:12]requested_data is exist [04:02:12]produce_requested_data [04:02:12]requested_item kkm.sn is exist - process it [04:02:12]requested_item kkm.ver is exist - process it [04:02:12]requested_item fm.sn is exist - process it [04:02:12]wFMCommunicate request_size=4 [04:02:12]MH_SAM_APDU [04:02:12]CAPDU: 80 11 00 00 [04:02:12]Write to MH i2c: E2 08 00 D7 09 80 11 00 00 00 00 00 00 5A [04:02:12]Write i2c OK [04:02:12]MH_I2C_Read... [04:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:02:12]Read from MH i2c: E2 [04:02:12]MH_I2C_Read... [04:02:12]Read from MH i2c: E2 17 00 [04:02:12]MH_I2C_Read... [04:02:12]Read from MH i2c: E2 17 00 D7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 AA [04:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:02:12]wFMCommunicate OK [04:02:12]requested_item fd.num is exist - process it [04:02:12]SAM_PROTO_GetFieldsCounters [04:02:12]wFMCommunicate request_size=4 [04:02:12]MH_SAM_APDU [04:02:12]CAPDU: 80 13 00 00 [04:02:12]Write to MH i2c: E2 08 00 D8 09 80 13 00 00 00 00 00 00 5D [04:02:12]Write i2c OK [04:02:12]MH_I2C_Read... [04:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:02:12]Read from MH i2c: E2 [04:02:12]MH_I2C_Read... [04:02:12]Read from MH i2c: E2 62 00 [04:02:12]MH_I2C_Read... [04:02:12]Read from MH i2c: E2 62 00 D8 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 0C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [04:02: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 0C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:02:12]wFMCommunicate OK [04:02:12]SAM_PROTO_GetFieldsCounters done [04:02:12]requested_item shift.num is exist - process it [04:02:12]requested_item shift.opened is exist - process it [04:02:12]req_shift_opened [04:02:12]FM_GetShiftState [04:02:12]SAM_PROTO_GetShiftState [04:02:12]wFMCommunicate request_size=4 [04:02:12]MH_SAM_APDU [04:02:12]CAPDU: 80 13 01 00 [04:02:12]Write to MH i2c: E2 08 00 D9 09 80 13 01 00 00 00 00 00 5F [04:02:12]Write i2c OK [04:02:12]MH_I2C_Read... [04:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:02:12]Read from MH i2c: E2 [04:02:12]MH_I2C_Read... [04:02:12]Read from MH i2c: E2 0E 00 [04:02:12]MH_I2C_Read... [04:02:12]Read from MH i2c: E2 0E 00 D9 09 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 55 [04:02:12]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [04:02:12]wFMCommunicate OK [04:02:12]SAM_PROTO_GetShiftState done [04:02:12]FM_GetShiftState done [04:02:12]req_shift_opened done [04:02:12]requested_item shift.open_date is exist - process it [04:02:12]req_shift_open_date [04:02:12]req_shift_open_date done [04:02:12]produce_requested_data done [04:02:12]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76812,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [04:02:12]process_action_free get_value [04:02:12]json_value_free [04:02:12]json_value_free done [04:02:12]process_json_proto returns [04:02:12]Send response to host [04:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76812,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [04:02:12]free response buf [04:02:12]execute_script done [04:02:12]execute_script returns [04:02:12]free content buf [04:02:12]Sock 10.Close socket [04:02:12]Sock 10.Thread stoped [04:02:13]OFD Sender: No OFD packet to send [04:02:15]accept exits with 8 [04:02:15]New connection [04:02:15]New thread 3066994020 created [04:02:15]Thread 3066850660 joined [04:02:15]Waiting for new connection... [04:02:15] Sock 8.Parse request [04:02:15]Sock 8.Check first char [04:02:15]Sock 8.First char is OK [04:02:15]request: POST /json_proto HTTP/1.0 [04:02:15]Method: POST [04:02:15]URL: /json_proto [04:02:15]Method is POST - this is cgi request [04:02:15]url: /json_proto [04:02:15]query_string will be loaded in cgi processing [04:02:15]execute_cgi json_proto POST (null) [04:02:15]execute_cgi path=json_proto method=POST [04:02:15]POST find Content-Length [04:02:15]Host: 172.17.39.195:8080 [04:02:15]Content-Length: 331 [04:02:15]Content-Type: application/json [04:02:15] [04:02:15]POST finish read [04:02:15]Found Content-Length = 331 [04:02:15]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" ] } } [04:02:15]execute_script... [04:02:15]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" ] } } [04:02:15]POST & json_proto [04:02:15]process_json_proto [04:02:15]json parsed OK: [04:02:15]protocol is kg_v1.0 [04:02:15]action value=get_value [04:02:15]process_action get_value [04:02:15]cmd_get_value [04:02:15]process_action get_value done [04:02:15]requested_data is exist [04:02:15]produce_requested_data [04:02:15]requested_item fm.sale.total is exist - process it [04:02:15]SAM_PROTO_GetFMData [04:02:15]wFMCommunicate request_size=4 [04:02:15]MH_SAM_APDU [04:02:15]CAPDU: 80 13 03 00 [04:02:15]Write to MH i2c: E2 08 00 DA 09 80 13 03 00 00 00 00 00 62 [04:02:15]Write i2c OK [04:02:15]MH_I2C_Read... [04:02:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [04:02:16]Read from MH i2c: E2 [04:02:16]MH_I2C_Read... [04:02:16]Read from MH i2c: E2 FD 00 [04:02:16]MH_I2C_Read... [04:02:16]Read from MH i2c: E2 FD 00 DA 09 00 C6 04 85 04 C2 04 6E 04 04 00 F6 28 01 00 69 04 A3 00 6F 04 04 00 B7 25 01 00 B1 04 05 00 7A 9D B4 B0 01 70 04 05 00 7C F9 61 6D 01 72 04 04 00 FE A3 52 43 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 E8 56 F5 2D 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 01 59 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 AB [04:02:16]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 F6 28 01 00 69 04 A3 00 6F 04 04 00 B7 25 01 00 B1 04 05 00 7A 9D B4 B0 01 70 04 05 00 7C F9 61 6D 01 72 04 04 00 FE A3 52 43 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 E8 56 F5 2D 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 01 59 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [04:02:16]wFMCommunicate OK [04:02:16]wFMCommunicate request_size=4 [04:02:16]MH_SAM_APDU [04:02:16]CAPDU: 80 17 00 00 [04:02:16]Write to MH i2c: E2 08 00 DB 09 80 17 00 00 00 00 00 00 64 [04:02:16]Write i2c OK [04:02:16]MH_I2C_Read... [04:02:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:02:16]Read from MH i2c: E2 [04:02:16]MH_I2C_Read... [04:02:16]Read from MH i2c: E2 FD 00 [04:02:16]MH_I2C_Read... [04:02:16]Read from MH i2c: E2 FD 00 DB 09 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 F1 [04:02:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [04:02:16]wFMCommunicate OK [04:02:16]wFMCommunicate request_size=4 [04:02:16]MH_SAM_APDU [04:02:16]CAPDU: 80 17 00 00 [04:02:16]Write to MH i2c: E2 08 00 DC 09 80 17 00 00 00 00 00 00 65 [04:02:16]Write i2c OK [04:02:16]MH_I2C_Read... [04:02:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:02:16]Read from MH i2c: E2 [04:02:16]MH_I2C_Read... [04:02:16]Read from MH i2c: E2 FD 00 [04:02:16]MH_I2C_Read... [04:02:16]Read from MH i2c: E2 FD 00 DC 09 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [04:02:16]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:02:16]wFMCommunicate OK [04:02:16]wFMCommunicate request_size=4 [04:02:16]MH_SAM_APDU [04:02:16]CAPDU: 80 17 00 00 [04:02:16]Write to MH i2c: E2 08 00 DD 09 80 17 00 00 00 00 00 00 66 [04:02:16]Write i2c OK [04:02:16]MH_I2C_Read... [04:02:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:02:17]Read from MH i2c: E2 [04:02:17]MH_I2C_Read... [04:02:17]Read from MH i2c: E2 FD 00 [04:02:17]MH_I2C_Read... [04:02:17]Read from MH i2c: E2 FD 00 DD 09 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E1 [04:02:17]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:02:17]wFMCommunicate OK [04:02:17]wFMCommunicate request_size=4 [04:02:17]MH_SAM_APDU [04:02:17]CAPDU: 80 17 00 00 [04:02:17]Write to MH i2c: E2 08 00 DE 09 80 17 00 00 00 00 00 00 67 [04:02:17]Write i2c OK [04:02:17]MH_I2C_Read... [04:02:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [04:02:17]Read from MH i2c: E2 [04:02:17]MH_I2C_Read... [04:02:17]Read from MH i2c: E2 E3 00 [04:02:17]MH_I2C_Read... [04:02:17]Read from MH i2c: E2 E3 00 DE 09 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [04:02:17]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [04:02:17]wFMCommunicate OK [04:02:17]SAM_PROTO_GetFMData done [04:02:17]requested_item fm.sale_refund.total is exist - process it [04:02:17]requested_item fm.buy.total is exist - process it [04:02:17]requested_item shift.sale.total is exist - process it [04:02:17]SAM_PROTO_GetShiftData [04:02:17]wFMCommunicate request_size=4 [04:02:17]MH_SAM_APDU [04:02:17]CAPDU: 80 13 02 00 [04:02:17]Write to MH i2c: E2 08 00 DF 09 80 13 02 00 00 00 00 00 66 [04:02:17]Write i2c OK [04:02:17]MH_I2C_Read... [04:02:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [04:02:17]Read from MH i2c: E2 [04:02:17]MH_I2C_Read... [04:02:17]Read from MH i2c: E2 FD 00 [04:02:17]MH_I2C_Read... [04:02:17]Read from MH i2c: E2 FD 00 DF 09 00 AA 04 AA 04 A6 04 6E 04 04 00 08 00 00 00 69 04 97 00 6F 04 04 00 08 00 00 00 B1 04 03 00 90 D6 02 70 04 03 00 90 D6 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 4D 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 6D 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 D0 [04:02:17]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 08 00 00 00 69 04 97 00 6F 04 04 00 08 00 00 00 B1 04 03 00 90 D6 02 70 04 03 00 90 D6 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 29 4D 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 6D 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [04:02:17]wFMCommunicate OK [04:02:17]wFMCommunicate request_size=4 [04:02:17]MH_SAM_APDU [04:02:17]CAPDU: 80 17 00 00 [04:02:17]Write to MH i2c: E2 08 00 E0 09 80 17 00 00 00 00 00 00 69 [04:02:17]Write i2c OK [04:02:17]MH_I2C_Read... [04:02:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:02:18]Read from MH i2c: E2 [04:02:18]MH_I2C_Read... [04:02:18]Read from MH i2c: E2 FD 00 [04:02:18]MH_I2C_Read... [04:02:18]Read from MH i2c: E2 FD 00 E0 09 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [04:02:18]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:02:18]wFMCommunicate OK [04:02:18]wFMCommunicate request_size=4 [04:02:18]MH_SAM_APDU [04:02:18]CAPDU: 80 17 00 00 [04:02:18]Write to MH i2c: E2 08 00 E1 09 80 17 00 00 00 00 00 00 6A [04:02:18]Write i2c OK [04:02:18]MH_I2C_Read... [04:02:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:02:18]Read from MH i2c: E2 [04:02:18]MH_I2C_Read... [04:02:18]Read from MH i2c: E2 FD 00 [04:02:18]MH_I2C_Read... [04:02:18]Read from MH i2c: E2 FD 00 E1 09 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1D [04:02:18]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:02:18]wFMCommunicate OK [04:02:18]wFMCommunicate request_size=4 [04:02:18]MH_SAM_APDU [04:02:18]CAPDU: 80 17 00 00 [04:02:18]Write to MH i2c: E2 08 00 E2 09 80 17 00 00 00 00 00 00 6B [04:02:18]Write i2c OK [04:02:18]MH_I2C_Read... [04:02:18]OFD Sender: No OFD packet to send [04:02:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:02:18]Read from MH i2c: E2 [04:02:18]MH_I2C_Read... [04:02:18]Read from MH i2c: E2 FD 00 [04:02:18]MH_I2C_Read... [04:02:18]Read from MH i2c: E2 FD 00 E2 09 00 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 90 00 DD [04:02:18]RAPDU: 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 90 00 [04:02:18]wFMCommunicate OK [04:02:18]wFMCommunicate request_size=4 [04:02:18]MH_SAM_APDU [04:02:18]CAPDU: 80 17 00 00 [04:02:18]Write to MH i2c: E2 08 00 E3 09 80 17 00 00 00 00 00 00 6C [04:02:18]Write i2c OK [04:02:18]MH_I2C_Read... [04:02:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [04:02:18]Read from MH i2c: E2 [04:02:18]MH_I2C_Read... [04:02:18]Read from MH i2c: E2 C7 00 [04:02:18]MH_I2C_Read... [04:02:18]Read from MH i2c: E2 C7 00 E3 09 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5F [04:02:19]RAPDU: 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [04:02:19]wFMCommunicate OK [04:02:19]SAM_PROTO_GetShiftData done [04:02:19]requested_item shift.sale.total_cash is exist - process it [04:02:19]requested_item shift.sale_refund.total is exist - process it [04:02:19]requested_item shift.sale_refund.total_cash is exist - process it [04:02:19]requested_item shift.buy.total is exist - process it [04:02:19]requested_item shift.buy.total_cash is exist - process it [04:02:19]produce_requested_data done [04:02:19]produce_requested_data return {"fm.sale.total":72595941.06,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":1860.00,"shift.sale.total_cash":1860.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} [04:02:19]process_action_free get_value [04:02:19]json_value_free [04:02:19]json_value_free done [04:02:19]process_json_proto returns [04:02:19]Send response to host [04:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72595941.06,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":1860.00,"shift.sale.total_cash":1860.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}}} [04:02:19]free response buf [04:02:19]execute_script done [04:02:19]execute_script returns [04:02:19]free content buf [04:02:19]Sock 8.Close socket [04:02:19]Sock 8.Thread stoped [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:03:58]accept exits with 9 [04:03:58]New connection [04:03:58]New thread 3066850660 created [04:03:58]Thread 3066994020 joined [04:03:58]Waiting for new connection... [04:03:58] Sock 9.Parse request [04:03:58]Sock 9.Check first char [04:03:58]Sock 9.First char is OK [04:03:58]request: POST /json_proto HTTP/1.0 [04:03:58]Method: POST [04:03:58]URL: /json_proto [04:03:58]Method is POST - this is cgi request [04:03:58]url: /json_proto [04:03:58]query_string will be loaded in cgi processing [04:03:58]execute_cgi json_proto POST (null) [04:03:58]execute_cgi path=json_proto method=POST [04:03:58]POST find Content-Length [04:03:58]Host: 172.17.39.195:8080 [04:03:58]Content-Length: 958 [04:03:58]Content-Type: application/json [04:03:58] [04:03:58]POST finish read [04:03:58]Found Content-Length = 958 [04:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220898", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:03:58]execute_script... [04:03:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220898", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:03:58]POST & json_proto [04:03:58]process_json_proto [04:03:58]json parsed OK: [04:03:58]protocol is kg_v1.0 [04:03:58]action value=close_receipt [04:03:58]process_action close_receipt [04:03:58]cmd_close_receipt [04:03:58]MH_GetDate [04:03:58]Write to MH i2c: F0 00 00 E4 09 DC [04:03:58]Write i2c OK [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: F0 [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: F0 09 00 [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: F0 09 00 E4 09 00 30 4D 76 66 99 81 91 64 4D [04:03:58]GetLastDocTimeStamp 1719025746 [04:03:58]current date 1719029040 [04:03:58]FM_GetShiftState [04:03:58]SAM_PROTO_GetShiftState [04:03:58]wFMCommunicate request_size=4 [04:03:58]MH_SAM_APDU [04:03:58]CAPDU: 80 13 01 00 [04:03:58]Write to MH i2c: E2 08 00 E5 09 80 13 01 00 00 00 00 00 6B [04:03:58]Write i2c OK [04:03:58]MH_I2C_Read... [04:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:03:58]Read from MH i2c: E2 [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: E2 0E 00 [04:03:58]MH_I2C_Read... [04:03:58]Read from MH i2c: E2 0E 00 E5 09 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 61 [04:03:58]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [04:03:58]wFMCommunicate OK [04:03:58]SAM_PROTO_GetShiftState done [04:03:58]FM_GetShiftState done [04:03:58]opened in 1719016435 [04:03:58]opened+sec_in_day 1719102835 [04:03:58]quantity*price = 11000 [04:03:58]sum+1 = 11001 [04:03:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607120854177 Снек Орехи BEERKa Арахис 30г 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.33 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 9 22.06.2024 04:04 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76813 ФПД: 137005918139724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T040400&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76813&fm=137005918139724&tin=02508201610067®Number=0000000000095696&sum=13500 0 [04:03:59]StoreToDocumentArchive [04:03:59]shift 395 fd 76813 [04:03:59]save to /storage/0395/doc_00076813 [04:03:59]save last doc name /storage/0395/doc_00076813 to /storage/kkm_last_doc_name [04:03:59]save OK [04:03:59]Clear old archive folders... [04:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=410 [04:03:59]tlvbuf is 0087B930 [04:03:59]SAM_PROTO_ClearQueue [04:03:59]wFMCommunicate request_size=4 [04:03:59]MH_SAM_APDU [04:03:59]CAPDU: 80 09 00 00 [04:03:59]Write to MH i2c: E2 08 00 F2 09 80 09 00 00 00 00 00 00 6D [04:03:59]Write i2c OK [04:03:59]MH_I2C_Read... [04:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:04:00]Read from MH i2c: E2 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 03 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [04:04:00]RAPDU: 90 00 [04:04:00]wFMCommunicate OK [04:04:00]SAM_PROTO_ClearQueue done [04:04:00]KKMCreateOFDPacket [04:04:00]OFDProtocolAddRootSTLVToBuf [04:04:00]FM_MakeSignedData [04:04:00]FM_MakeSignedData [04:04:00]SAM_PROTO_SignData [04:04:00]wFMCommunicate request_size=4 [04:04:00]MH_SAM_APDU [04:04:00]CAPDU: 80 0D 01 02 [04:04:00]Write to MH i2c: E2 08 00 F3 09 80 0D 01 02 00 00 00 00 75 [04:04:00]Write i2c OK [04:04:00]MH_I2C_Read... [04:04:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:04:00]Read from MH i2c: E2 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 03 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 03 00 F3 09 00 90 00 70 [04:04:00]RAPDU: 90 00 [04:04:00]wFMCommunicate OK [04:04:00]wFMCommunicate request_size=255 [04:04:00]MH_SAM_APDU [04:04:00]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [04:04:00]Write to MH i2c: E2 02 01 F4 09 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 4F [04:04:00]Write i2c OK [04:04:00]MH_I2C_Read... [04:04:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:04:00]Read from MH i2c: E2 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 03 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 03 00 F4 09 00 90 00 71 [04:04:00]RAPDU: 90 00 [04:04:00]wFMCommunicate OK [04:04:00]wFMCommunicate request_size=169 [04:04:00]MH_SAM_APDU [04:04:00]CAPDU: 80 0D 02 02 A4 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 30 4D 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0D 2C 01 00 35 04 06 00 7C 9B 2D 15 35 4C [04:04:00]Write to MH i2c: E2 AC 00 F5 09 80 0D 02 02 A4 00 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 30 4D 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0D 2C 01 00 35 04 06 00 7C 9B 2D 15 35 4C 00 00 04 [04:04:00]Write i2c OK [04:04:00]MH_I2C_Read... [04:04:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:04:00]Read from MH i2c: E2 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 03 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 03 00 F5 09 00 90 00 72 [04:04:00]RAPDU: 90 00 [04:04:00]wFMCommunicate OK [04:04:00]wFMCommunicate request_size=4 [04:04:00]MH_SAM_APDU [04:04:00]CAPDU: 80 0D 03 02 [04:04:00]Write to MH i2c: E2 08 00 F6 09 80 0D 03 02 00 00 00 00 7A [04:04:00]Write i2c OK [04:04:00]MH_I2C_Read... [04:04:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:04:00]Read from MH i2c: E2 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 0B 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 0B 00 F6 09 00 61 CA E7 64 E7 DF DC F4 90 00 87 [04:04:00]RAPDU: 61 CA E7 64 E7 DF DC F4 90 00 [04:04:00]wFMCommunicate OK [04:04:00]SAM_PROTO_SignData done [04:04:00]FM_MakeSignedData done [04:04:00]CreateOFDProtocolMessage [04:04:00]wFMCommunicate request_size=4 [04:04:00]MH_SAM_APDU [04:04:00]CAPDU: 80 11 00 00 [04:04:00]Write to MH i2c: E2 08 00 F7 09 80 11 00 00 00 00 00 00 7A [04:04:00]Write i2c OK [04:04:00]MH_I2C_Read... [04:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:04:00]Read from MH i2c: E2 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 17 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: E2 17 00 F7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CA [04:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:04:00]wFMCommunicate OK [04:04:00]CreateOFDProtocolMessage done [04:04:00]OFDSenderStorePacket 76813 [04:04:00]StoreOFDPacket docnum=76813 [04:04:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 AE 01 00 00 79 D7 A6 01 38 34 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 30 4D 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0D 2C 01 00 35 04 06 00 7C 9B 2D 15 35 4C 61 CA E7 64 E7 DF DC F4 [04:04:00]CheckFolder [04:04:00]dirname=/storage/ofd_packets [04:04:00]CheckFolder done [04:04:00]ProducePacketName [04:04:00]name=ofd_packets/00076813 [04:04:00]NVStorageSaveData ofd_packets/00076813 [04:04:00]File name is /storage/ofd_packets/00076813 [04:04:00]Write 460 bytes [04:04:00]NVStorageSaveData done [04:04:00]OFDSenderStorePacket done [04:04:00]KKMCreateOFDPacket done [04:04:00]NVStorageSaveData kkm_last_timestamp [04:04:00]File name is /storage/kkm_last_timestamp [04:04:00]Write 4 bytes [04:04:00]NVStorageSaveData done [04:04:00]ExternCall_PrintAddStr [04:04:00]wPrintStart [04:04:00]Write to MH i2c: 01 00 00 F8 09 01 [04:04:00]Write i2c OK [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: 01 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: 01 07 00 [04:04:00]MH_I2C_Read... [04:04:00]Read from MH i2c: 01 07 00 F8 09 00 00 00 00 00 FF 0F 16 [04:04:00]RasterBufferAndPrint [04:04:00]line Счет N : (3)220898 [04:04:00]line ИНН: 02508201610067 [04:04:00]line Контрольно-Кассовый Чек [04:04:00]line ПРОДАЖА [04:04:00]line Товар: 4650243871828 [04:04:00]line Gorilla эн нап манго-кокос 0,45 ж/б [04:04:00]line 1.000 * 110.00 [04:04:00]line = 110.00 [04:04:00]line НДС 12% НСП 1% [04:04:00]line > о реализуемом товаре [04:04:00]line Товар: 4607120854177 [04:04:00]line Снек Орехи BEERKa Арахис 30г [04:04:00]line 1.000 * 25.00 [04:04:00]line = 25.00 [04:04:00]line НДС 12% НСП 1% [04:04:00]line > о реализуемом товаре [04:04:00]line ИТОГО: 135.00 [04:04:00]line НСП 1% : 1.19 [04:04:00]line НДС 12% : 14.33 [04:04:00]line Наличными: 135.00 [04:04:00]line Безнал.: 0.00 [04:04:00]line Место: АЗС № 144 "Партнер Нефть" [04:04:00]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [04:04:00]line СНО: Общий режим [04:04:00]line Чек 9 22.06.2024 04:04 [04:04:00]line Смена: 395 ФФД: 1.0 [04:04:00]line ЗНМ: 0300000170 [04:04:00]line РНМ: 0000000000095696 [04:04:00]line Версия ККМ: 001 [04:04:00]line ФМ: 0000000000875009 [04:04:00]line ФД: 76813 [04:04:00]line ФПД: 137005918139724 [04:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T040400&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76813&fm=137005918139724&tin=02508201610067®Number=0000000000095696&sum=13500 [04:04:00]line 0 [04:04:00]OFD Sender: Processing packet 76813 [packets to send 351, broken 350] [04:04:00]ProducePacketName [04:04:00]name=ofd_packets/00076813 [04:04:00]OFD Sender: To server: pG, [04:04:00]CommunicateWithHost lk.salyk.kg:30040 [04:04:00]ConnectInit lk.salyk.kg [04:04:00]written 0, free lines is 4095 [04:04:01]Write to MH i2c: 01 00 00 28 0A 32 [04:04:01]Write i2c OK [04:04:01]MH_I2C_Read... [04:04:01]Read from MH i2c: 01 [04:04:01]MH_I2C_Read... [04:04:01]Read from MH i2c: 01 07 00 [04:04:01]MH_I2C_Read... [04:04:01]Read from MH i2c: 01 07 00 28 0A 00 00 00 00 00 70 0C B5 [04:04:01]RasterBufferAndPrint [04:04:01]line [04:04:01]line [04:04:01]line [04:04:01]line [04:04:01]line [04:04:01]written 0, free lines is 3190 [04:04:01]MH_Cut [04:04:01]Write to MH i2c: D1 01 00 2F 0A 01 0B [04:04:01]Write i2c OK [04:04:01]MH_I2C_Read... [04:04:01]Read from MH i2c: D1 [04:04:01]MH_I2C_Read... [04:04:01]Read from MH i2c: D1 01 00 [04:04:01]MH_I2C_Read... [04:04:01]Read from MH i2c: D1 01 00 2F 0A 00 0A [04:04:01]Write to MH i2c: 01 00 00 30 0A 3A [04:04:01]Write i2c OK [04:04:01]MH_I2C_Read... [04:04:02]*** Cut start [04:04:02]*** Partial cut [04:04:02]*** CUTSNS_PIN = 1 [04:04:02]*** CUTSNS_PIN = 0 [04:04:02]*** Brake cut motor [04:04:02]Read from MH i2c: 01 [04:04:02]MH_I2C_Read... [04:04:02]*** Stop cut motor [04:04:02]*** Cut end [04:04:02]Read from MH i2c: 01 07 00 [04:04:02]MH_I2C_Read... [04:04:02]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 FF 0F 4F [04:04:02]process_action close_receipt done [04:04:02]requested_data is exist [04:04:02]produce_requested_data [04:04:02]requested_item fm.sn is exist - process it [04:04:02]wFMCommunicate request_size=4 [04:04:02]MH_SAM_APDU [04:04:02]CAPDU: 80 11 00 00 [04:04:02]Write to MH i2c: E2 08 00 31 0A 80 11 00 00 00 00 00 00 B5 [04:04:02]Write i2c OK [04:04:02]MH_I2C_Read... [04:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:04:03]Read from MH i2c: E2 [04:04:03]MH_I2C_Read... [04:04:03]Read from MH i2c: E2 17 00 [04:04:03]MH_I2C_Read... [04:04:03]Read from MH i2c: E2 17 00 31 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 05 [04:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:04:03]wFMCommunicate OK [04:04:03]requested_item fd.num is exist - process it [04:04:03]SAM_PROTO_GetFieldsCounters [04:04:03]wFMCommunicate request_size=4 [04:04:03]MH_SAM_APDU [04:04:03]CAPDU: 80 13 00 00 [04:04:03]Write to MH i2c: E2 08 00 32 0A 80 13 00 00 00 00 00 00 B8 [04:04:03]Write i2c OK [04:04:03]MH_I2C_Read... [04:04:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:04:03]Read from MH i2c: E2 [04:04:03]MH_I2C_Read... [04:04:03]Read from MH i2c: E2 62 00 [04:04:03]MH_I2C_Read... [04:04:03]Read from MH i2c: E2 62 00 32 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 0D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [04:04:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 0D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:04:03]wFMCommunicate OK [04:04:03]SAM_PROTO_GetFieldsCounters done [04:04:03]requested_item shift.num is exist - process it [04:04:03]requested_item shift.opened is exist - process it [04:04:03]req_shift_opened [04:04:03]FM_GetShiftState [04:04:03]SAM_PROTO_GetShiftState [04:04:03]wFMCommunicate request_size=4 [04:04:03]MH_SAM_APDU [04:04:03]CAPDU: 80 13 01 00 [04:04:03]Write to MH i2c: E2 08 00 33 0A 80 13 01 00 00 00 00 00 BA [04:04:03]Write i2c OK [04:04:03]MH_I2C_Read... [04:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:04:03]Read from MH i2c: E2 [04:04:03]MH_I2C_Read... [04:04:03]Read from MH i2c: E2 0E 00 [04:04:03]MH_I2C_Read... [04:04:03]Read from MH i2c: E2 0E 00 33 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B0 [04:04:03]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [04:04:03]wFMCommunicate OK [04:04:03]SAM_PROTO_GetShiftState done [04:04:03]FM_GetShiftState done [04:04:03]req_shift_opened done [04:04:03]requested_item shift.open_date is exist - process it [04:04:03]req_shift_open_date [04:04:03]req_shift_open_date done [04:04:03]produce_requested_data done [04:04:03]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76813,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [04:04:03]process_action_free close_receipt [04:04:03]json_value_free [04:04:03]json_value_free done [04:04:03]process_json_proto returns [04:04:03]Send response to host [04:04:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76813,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [04:04:03]free response buf [04:04:03]execute_script done [04:04:03]execute_script returns [04:04:03]free content buf [04:04:03]Sock 9.Close socket [04:04:03]Sock 9.Thread stoped [04:06:11]ConnectInit Can't connect to host [04:06:11]CommunicateWithHost connect error [04:06:11]CommunicateWithHost err = -1 [04:06:11]OFD Sender: Server communicate error [04:06:16]OFD Sender: Processing packet 76813 [packets to send 351, broken 350] [04:06:16]ProducePacketName [04:06:16]name=ofd_packets/00076813 [04:06:16]OFD Sender: To server: pG, [04:06:16]CommunicateWithHost lk.salyk.kg:30040 [04:06:16]ConnectInit lk.salyk.kg [04:06:17]Connected sock=9 [04:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 AE 01 00 00 79 D7 A6 01 38 34 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 30 4D 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0D 2C 01 00 35 04 06 00 7C 9B 2D 15 35 4C 61 CA E7 64 E7 DF DC F4 [04:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 86 79 47 00 9E 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0D 2C 01 00 F4 03 04 00 54 F4 75 66 B6 04 01 00 00 7B 97 2F C2 D0 AA 54 A5 [04:06:17]CommunicateWithHost err = 0 [04:06:17]CheckOFDResponse [04:06:17]1017 (14) - 77093643461234 [04:06:17]1041 (16) - 0000000000875009 [04:06:17]1040 (4) - 76813 [04:06:17]1012 (4) - 21.06.2024 21:44 [04:06:17]1206 (1) - 0 [04:06:17]OFD Sender: Remove packet 76813 [04:06:17]ProducePacketName [04:06:17]name=ofd_packets/00076813 [04:06:17]NVStorageDeleteData [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:02]accept exits with 8 [04:42:02]New connection [04:42:02]New thread 3066994020 created [04:42:02]Thread 3066850660 joined [04:42:02]Waiting for new connection... [04:42:02] Sock 8.Parse request [04:42:02]Sock 8.Check first char [04:42:02]Sock 8.First char is OK [04:42:02]request: POST /json_proto HTTP/1.0 [04:42:02]Method: POST [04:42:02]URL: /json_proto [04:42:02]Method is POST - this is cgi request [04:42:02]url: /json_proto [04:42:02]query_string will be loaded in cgi processing [04:42:02]execute_cgi json_proto POST (null) [04:42:02]execute_cgi path=json_proto method=POST [04:42:02]POST find Content-Length [04:42:02]Host: 172.17.39.195:8080 [04:42:02]Content-Length: 1436 [04:42:02]Content-Type: application/json [04:42:02] [04:42:02]POST finish read [04:42:02]Found Content-Length = 1436 [04:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220899", "tax_sys" : 0, "items" : [ { "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 655.00, "quantity" : 1.000, "sum" : 655.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 982.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:02]execute_script... [04:42:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220899", "tax_sys" : 0, "items" : [ { "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 655.00, "quantity" : 1.000, "sum" : 655.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 982.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:02]POST & json_proto [04:42:02]process_json_proto [04:42:02]json parsed OK: [04:42:02]protocol is kg_v1.0 [04:42:02]action value=close_receipt [04:42:02]process_action close_receipt [04:42:02]cmd_close_receipt [04:42:02]MH_GetDate [04:42:02]Write to MH i2c: F0 00 00 34 0A 2D [04:42:02]Write i2c OK [04:42:02]MH_I2C_Read... [04:42:02]Read from MH i2c: F0 [04:42:02]MH_I2C_Read... [04:42:02]Read from MH i2c: F0 09 00 [04:42:02]MH_I2C_Read... [04:42:02]Read from MH i2c: F0 09 00 34 0A 00 1D 56 76 66 99 81 91 64 94 [04:42:02]GetLastDocTimeStamp 1719029040 [04:42:02]current date 1719031325 [04:42:02]FM_GetShiftState [04:42:02]SAM_PROTO_GetShiftState [04:42:02]wFMCommunicate request_size=4 [04:42:02]MH_SAM_APDU [04:42:02]CAPDU: 80 13 01 00 [04:42:02]Write to MH i2c: E2 08 00 35 0A 80 13 01 00 00 00 00 00 BC [04:42:03]Write i2c OK [04:42:03]MH_I2C_Read... [04:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:03]Read from MH i2c: E2 [04:42:03]MH_I2C_Read... [04:42:03]Read from MH i2c: E2 0E 00 [04:42:03]MH_I2C_Read... [04:42:03]Read from MH i2c: E2 0E 00 35 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B2 [04:42:03]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [04:42:03]wFMCommunicate OK [04:42:03]SAM_PROTO_GetShiftState done [04:42:03]FM_GetShiftState done [04:42:03]opened in 1719016435 [04:42:03]opened+sec_in_day 1719102835 [04:42:03]quantity*price = 65500 [04:42:03]sum+1 = 65501 [04:42:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 982.00 НСП 1% : 8.70 НДС 12% : 104.28 Наличными: 982.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 10 22.06.2024 04:42 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76814 ФПД: 183943653643869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T044205&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76814&fm=183943653643869&tin=02508201610067®Number=0000000000095696&sum=98200 0 [04:42:04]StoreToDocumentArchive [04:42:04]shift 395 fd 76814 [04:42:04]save to /storage/0395/doc_00076814 [04:42:04]save last doc name /storage/0395/doc_00076814 to /storage/kkm_last_doc_name [04:42:04]save OK [04:42:04]Clear old archive folders... [04:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=601 [04:42:04]tlvbuf is 00866DF0 [04:42:04]SAM_PROTO_ClearQueue [04:42:04]wFMCommunicate request_size=4 [04:42:04]MH_SAM_APDU [04:42:04]CAPDU: 80 09 00 00 [04:42:04]Write to MH i2c: E2 08 00 42 0A 80 09 00 00 00 00 00 00 BE [04:42:04]Write i2c OK [04:42:04]MH_I2C_Read... [04:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:42:04]Read from MH i2c: E2 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 03 00 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [04:42:04]RAPDU: 90 00 [04:42:04]wFMCommunicate OK [04:42:04]SAM_PROTO_ClearQueue done [04:42:04]KKMCreateOFDPacket [04:42:04]OFDProtocolAddRootSTLVToBuf [04:42:04]FM_MakeSignedData [04:42:04]FM_MakeSignedData [04:42:04]SAM_PROTO_SignData [04:42:04]wFMCommunicate request_size=4 [04:42:04]MH_SAM_APDU [04:42:04]CAPDU: 80 0D 01 02 [04:42:04]Write to MH i2c: E2 08 00 43 0A 80 0D 01 02 00 00 00 00 C6 [04:42:04]Write i2c OK [04:42:04]MH_I2C_Read... [04:42:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:42:04]Read from MH i2c: E2 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 03 00 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [04:42:04]RAPDU: 90 00 [04:42:04]wFMCommunicate OK [04:42:04]wFMCommunicate request_size=255 [04:42:04]MH_SAM_APDU [04:42:04]CAPDU: 80 0D 02 02 FA 03 00 59 02 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 [04:42:04]Write to MH i2c: E2 02 01 44 0A 80 0D 02 02 FA 00 03 00 59 02 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 00 00 AC [04:42:04]Write i2c OK [04:42:04]MH_I2C_Read... [04:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:04]Read from MH i2c: E2 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 03 00 [04:42:04]MH_I2C_Read... [04:42:04]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [04:42:04]RAPDU: 90 00 [04:42:04]wFMCommunicate OK [04:42:04]wFMCommunicate request_size=255 [04:42:04]MH_SAM_APDU [04:42:04]CAPDU: 80 0D 02 02 FA B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 28 00 00 00 00 07 04 06 00 98 7F 01 00 [04:42:04]Write to MH i2c: E2 02 01 45 0A 80 0D 02 02 FA 00 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 2B [04:42:04]Write i2c OK [04:42:04]MH_I2C_Read... [04:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:05]Read from MH i2c: E2 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: E2 03 00 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [04:42:05]RAPDU: 90 00 [04:42:05]wFMCommunicate OK [04:42:05]wFMCommunicate request_size=110 [04:42:05]MH_SAM_APDU [04:42:05]CAPDU: 80 0D 02 02 69 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 1D 56 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0E 2C 01 00 35 04 06 00 A7 4B B8 22 56 5D [04:42:05]Write to MH i2c: E2 71 00 46 0A 80 0D 02 02 69 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 1D 56 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0E 2C 01 00 35 04 06 00 A7 4B B8 22 56 5D 00 00 6B [04:42:05]Write i2c OK [04:42:05]MH_I2C_Read... [04:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:05]Read from MH i2c: E2 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: E2 03 00 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: E2 03 00 46 0A 00 90 00 C4 [04:42:05]RAPDU: 90 00 [04:42:05]wFMCommunicate OK [04:42:05]wFMCommunicate request_size=4 [04:42:05]MH_SAM_APDU [04:42:05]CAPDU: 80 0D 03 02 [04:42:05]Write to MH i2c: E2 08 00 47 0A 80 0D 03 02 00 00 00 00 CC [04:42:05]Write i2c OK [04:42:05]MH_I2C_Read... [04:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:42:05]Read from MH i2c: E2 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: E2 0B 00 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: E2 0B 00 47 0A 00 03 22 FC 7A B9 76 4D 5D 90 00 41 [04:42:05]RAPDU: 03 22 FC 7A B9 76 4D 5D 90 00 [04:42:05]wFMCommunicate OK [04:42:05]SAM_PROTO_SignData done [04:42:05]FM_MakeSignedData done [04:42:05]CreateOFDProtocolMessage [04:42:05]wFMCommunicate request_size=4 [04:42:05]MH_SAM_APDU [04:42:05]CAPDU: 80 11 00 00 [04:42:05]Write to MH i2c: E2 08 00 48 0A 80 11 00 00 00 00 00 00 CC [04:42:05]Write i2c OK [04:42:05]MH_I2C_Read... [04:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:05]Read from MH i2c: E2 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: E2 17 00 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: E2 17 00 48 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1C [04:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:42:05]wFMCommunicate OK [04:42:05]CreateOFDProtocolMessage done [04:42:05]OFDSenderStorePacket 76814 [04:42:05]StoreOFDPacket docnum=76814 [04:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 6D 02 00 00 33 AB 65 02 29 50 5A 03 01 00 03 00 59 02 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 1D 56 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0E 2C 01 00 35 04 06 00 A7 4B B8 22 56 5D 03 22 FC 7A B9 76 4D 5D [04:42:05]CheckFolder [04:42:05]dirname=/storage/ofd_packets [04:42:05]CheckFolder done [04:42:05]ProducePacketName [04:42:05]name=ofd_packets/00076814 [04:42:05]NVStorageSaveData ofd_packets/00076814 [04:42:05]File name is /storage/ofd_packets/00076814 [04:42:05]Write 651 bytes [04:42:05]NVStorageSaveData done [04:42:05]OFDSenderStorePacket done [04:42:05]KKMCreateOFDPacket done [04:42:05]NVStorageSaveData kkm_last_timestamp [04:42:05]File name is /storage/kkm_last_timestamp [04:42:05]Write 4 bytes [04:42:05]NVStorageSaveData done [04:42:05]ExternCall_PrintAddStr [04:42:05]wPrintStart [04:42:05]Write to MH i2c: 01 00 00 49 0A 53 [04:42:05]Write i2c OK [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: 01 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: 01 07 00 [04:42:05]MH_I2C_Read... [04:42:05]Read from MH i2c: 01 07 00 49 0A 00 00 00 00 00 FF 0F 68 [04:42:05]RasterBufferAndPrint [04:42:05]line Счет N : (3)220899 [04:42:05]line ИНН: 02508201610067 [04:42:05]line Контрольно-Кассовый Чек [04:42:05]line ПРОДАЖА [04:42:05]line Товар: 4700003150400 [04:42:05]line Водка Фрунзе 0,75 [04:42:05]line 1.000 * 655.00 [04:42:05]line = 655.00 [04:42:05]line НДС 12% НСП 1% [04:42:05]line > о реализуемом товаре [04:42:05]line Товар: 5449000000439 [04:42:05]line Напиток Кока-Кола 1,5л [04:42:05]line 1.000 * 155.00 [04:42:05]line = 155.00 [04:42:05]line НДС 12% НСП 1% [04:42:05]line > о реализуемом товаре [04:42:05]line Товар: 48741958 [04:42:05]line Сигареты Parliament Aqua Blue [04:42:05]line 1.000 * 151.00 [04:42:05]line = 151.00 [04:42:05]line НДС 12% НСП 1% [04:42:05]line > о реализуемом товаре [04:42:05]line Товар: 2000053020015 [04:42:05]line Бумажные стаканы 250мл 1шт [04:42:05]line 3.000 * 7.00 [04:42:05]line = 21.00 [04:42:05]line НДС 12% НСП 1% [04:42:05]line > о реализуемом товаре [04:42:05]line ИТОГО: 982.00 [04:42:05]line НСП 1% : 8.70 [04:42:05]line НДС 12% : 104.28 [04:42:05]line Наличными: 982.00 [04:42:05]line Безнал.: 0.00 [04:42:05]line Место: АЗС № 144 "Партнер Нефть" [04:42:05]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [04:42:05]line СНО: Общий режим [04:42:05]line Чек 10 22.06.2024 04:42 [04:42:05]line Смена: 395 ФФД: 1.0 [04:42:05]line ЗНМ: 0300000170 [04:42:05]line РНМ: 0000000000095696 [04:42:05]line Версия ККМ: 001 [04:42:05]line ФМ: 0000000000875009 [04:42:05]line ФД: 76814 [04:42:05]line ФПД: 183943653643869 [04:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T044205&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76814&fm=183943653643869&tin=02508201610067®Number=0000000000095696&sum=98200 [04:42:05]line 0 [04:42:05]OFD Sender: Processing packet 76814 [packets to send 351, broken 350] [04:42:05]ProducePacketName [04:42:05]name=ofd_packets/00076814 [04:42:05]OFD Sender: To server: pG, [04:42:05]CommunicateWithHost lk.salyk.kg:30040 [04:42:05]ConnectInit lk.salyk.kg [04:42:05]written 0, free lines is 4095 [04:42:06]Connected sock=11 [04:42:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 6D 02 00 00 33 AB 65 02 29 50 5A 03 01 00 03 00 59 02 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC FF 00 00 00 00 13 04 06 00 DC FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 1D 56 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0E 2C 01 00 35 04 06 00 A7 4B B8 22 56 5D 03 22 FC 7A B9 76 4D 5D [04:42:06]Write to MH i2c: 01 00 00 85 0A 8F [04:42:06]Write i2c OK [04:42:06]MH_I2C_Read... [04:42:06]Read from MH i2c: 01 [04:42:06]MH_I2C_Read... [04:42:06]Read from MH i2c: 01 07 00 [04:42:06]MH_I2C_Read... [04:42:06]Read from MH i2c: 01 07 00 85 0A 00 00 00 00 00 D2 0B 73 [04:42:06]RasterBufferAndPrint [04:42:06]line [04:42:06]line [04:42:06]line [04:42:06]line [04:42:06]line [04:42:06]written 0, free lines is 3033 [04:42:06]MH_Cut [04:42:06]Write to MH i2c: D1 01 00 8C 0A 01 68 [04:42:06]Write i2c OK [04:42:06]MH_I2C_Read... [04:42:06]Read from MH i2c: D1 [04:42:06]MH_I2C_Read... [04:42:06]Read from MH i2c: D1 01 00 [04:42:06]MH_I2C_Read... [04:42:06]Read from MH i2c: D1 01 00 8C 0A 00 67 [04:42:06]Write to MH i2c: 01 00 00 8D 0A 97 [04:42:06]Write i2c OK [04:42:06]MH_I2C_Read... [04:42:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 1F 76 47 00 D2 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0E 2C 01 00 F4 03 04 00 B9 FC 75 66 B6 04 01 00 00 A9 B8 F8 C2 45 DC 6B 97 [04:42:06]CommunicateWithHost err = 0 [04:42:06]CheckOFDResponse [04:42:06]1017 (14) - 77093643461234 [04:42:06]1041 (16) - 0000000000875009 [04:42:06]1040 (4) - 76814 [04:42:06]1012 (4) - 21.06.2024 22:20 [04:42:06]1206 (1) - 0 [04:42:06]OFD Sender: Remove packet 76814 [04:42:06]ProducePacketName [04:42:06]name=ofd_packets/00076814 [04:42:06]NVStorageDeleteData [04:42:07]OFD Sender: No OFD packet to send [04:42:07]*** Cut start [04:42:07]*** Partial cut [04:42:07]*** CUTSNS_PIN = 1 [04:42:07]*** CUTSNS_PIN = 0 [04:42:07]*** Brake cut motor [04:42:07]Read from MH i2c: 01 [04:42:07]MH_I2C_Read... [04:42:07]*** Stop cut motor [04:42:07]*** Cut end [04:42:07]Read from MH i2c: 01 07 00 [04:42:07]MH_I2C_Read... [04:42:07]Read from MH i2c: 01 07 00 8D 0A 00 00 00 00 00 FF 0F AC [04:42:07]process_action close_receipt done [04:42:07]requested_data is exist [04:42:07]produce_requested_data [04:42:07]requested_item fm.sn is exist - process it [04:42:07]wFMCommunicate request_size=4 [04:42:07]MH_SAM_APDU [04:42:07]CAPDU: 80 11 00 00 [04:42:07]Write to MH i2c: E2 08 00 8E 0A 80 11 00 00 00 00 00 00 12 [04:42:07]Write i2c OK [04:42:07]MH_I2C_Read... [04:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:08]Read from MH i2c: E2 [04:42:08]MH_I2C_Read... [04:42:08]Read from MH i2c: E2 17 00 [04:42:08]MH_I2C_Read... [04:42:08]Read from MH i2c: E2 17 00 8E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 62 [04:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:42:08]wFMCommunicate OK [04:42:08]requested_item fd.num is exist - process it [04:42:08]SAM_PROTO_GetFieldsCounters [04:42:08]wFMCommunicate request_size=4 [04:42:08]MH_SAM_APDU [04:42:08]CAPDU: 80 13 00 00 [04:42:08]Write to MH i2c: E2 08 00 8F 0A 80 13 00 00 00 00 00 00 15 [04:42:08]Write i2c OK [04:42:08]MH_I2C_Read... [04:42:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:42:08]Read from MH i2c: E2 [04:42:08]MH_I2C_Read... [04:42:08]Read from MH i2c: E2 62 00 [04:42:08]MH_I2C_Read... [04:42:08]Read from MH i2c: E2 62 00 8F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 0E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [04:42:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 0E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:42:08]wFMCommunicate OK [04:42:08]SAM_PROTO_GetFieldsCounters done [04:42:08]requested_item shift.num is exist - process it [04:42:08]requested_item shift.opened is exist - process it [04:42:08]req_shift_opened [04:42:08]FM_GetShiftState [04:42:08]SAM_PROTO_GetShiftState [04:42:08]wFMCommunicate request_size=4 [04:42:08]MH_SAM_APDU [04:42:08]CAPDU: 80 13 01 00 [04:42:08]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [04:42:08]Write i2c OK [04:42:08]MH_I2C_Read... [04:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:08]Read from MH i2c: E2 [04:42:08]MH_I2C_Read... [04:42:08]Read from MH i2c: E2 0E 00 [04:42:08]MH_I2C_Read... [04:42:08]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 0D [04:42:08]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [04:42:08]wFMCommunicate OK [04:42:08]SAM_PROTO_GetShiftState done [04:42:08]FM_GetShiftState done [04:42:08]req_shift_opened done [04:42:08]requested_item shift.open_date is exist - process it [04:42:08]req_shift_open_date [04:42:08]req_shift_open_date done [04:42:08]produce_requested_data done [04:42:08]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76814,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [04:42:08]process_action_free close_receipt [04:42:08]json_value_free [04:42:08]json_value_free done [04:42:08]process_json_proto returns [04:42:08]Send response to host [04:42:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76814,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [04:42:08]free response buf [04:42:08]execute_script done [04:42:08]execute_script returns [04:42:08]free content buf [04:42:08]Sock 8.Close socket [04:42:08]Sock 8.Thread stoped [04:42:09]accept exits with 9 [04:42:09]New connection [04:42:09]New thread 3066850660 created [04:42:09]Thread 3066994020 joined [04:42:09]Waiting for new connection... [04:42:09] Sock 9.Parse request [04:42:09]Sock 9.Check first char [04:42:09]Sock 9.First char is OK [04:42:09]request: POST /json_proto HTTP/1.0 [04:42:09]Method: POST [04:42:09]URL: /json_proto [04:42:09]Method is POST - this is cgi request [04:42:09]url: /json_proto [04:42:09]query_string will be loaded in cgi processing [04:42:09]execute_cgi json_proto POST (null) [04:42:09]execute_cgi path=json_proto method=POST [04:42:09]POST find Content-Length [04:42:09]Host: 172.17.39.195:8080 [04:42:09]Content-Length: 626 [04:42:09]Content-Type: application/json [04:42:09] [04:42:09]POST finish read [04:42:09]Found Content-Length = 626 [04:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220900", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:09]execute_script... [04:42:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220900", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:09]POST & json_proto [04:42:09]process_json_proto [04:42:09]json parsed OK: [04:42:09]protocol is kg_v1.0 [04:42:09]action value=close_receipt [04:42:09]process_action close_receipt [04:42:09]cmd_close_receipt [04:42:09]MH_GetDate [04:42:09]Write to MH i2c: F0 00 00 91 0A 8A [04:42:09]Write i2c OK [04:42:09]MH_I2C_Read... [04:42:09]Read from MH i2c: F0 [04:42:09]MH_I2C_Read... [04:42:09]Read from MH i2c: F0 09 00 [04:42:09]MH_I2C_Read... [04:42:09]Read from MH i2c: F0 09 00 91 0A 00 23 56 76 66 99 81 91 64 F7 [04:42:09]GetLastDocTimeStamp 1719031325 [04:42:09]current date 1719031331 [04:42:09]FM_GetShiftState [04:42:09]SAM_PROTO_GetShiftState [04:42:09]wFMCommunicate request_size=4 [04:42:09]MH_SAM_APDU [04:42:09]CAPDU: 80 13 01 00 [04:42:09]Write to MH i2c: E2 08 00 92 0A 80 13 01 00 00 00 00 00 19 [04:42:09]Write i2c OK [04:42:09]MH_I2C_Read... [04:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:09]Read from MH i2c: E2 [04:42:09]MH_I2C_Read... [04:42:09]Read from MH i2c: E2 0E 00 [04:42:09]MH_I2C_Read... [04:42:09]Read from MH i2c: E2 0E 00 92 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 0F [04:42:09]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [04:42:09]wFMCommunicate OK [04:42:09]SAM_PROTO_GetShiftState done [04:42:09]FM_GetShiftState done [04:42:09]opened in 1719016435 [04:42:09]opened+sec_in_day 1719102835 [04:42:09]quantity*price = 2000 [04:42:09]sum+1 = 2001 [04:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 11 22.06.2024 04:42 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76815 ФПД: 126086798015413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T044211&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76815&fm=126086798015413&tin=02508201610067®Number=0000000000095696&sum=2000 0 [04:42:11]StoreToDocumentArchive [04:42:11]shift 395 fd 76815 [04:42:11]save to /storage/0395/doc_00076815 [04:42:11]save last doc name /storage/0395/doc_00076815 to /storage/kkm_last_doc_name [04:42:11]save OK [04:42:11]Clear old archive folders... [04:42:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [04:42:11]tlvbuf is 008C9E70 [04:42:11]SAM_PROTO_ClearQueue [04:42:11]wFMCommunicate request_size=4 [04:42:11]MH_SAM_APDU [04:42:11]CAPDU: 80 09 00 00 [04:42:11]Write to MH i2c: E2 08 00 9F 0A 80 09 00 00 00 00 00 00 1B [04:42:11]Write i2c OK [04:42:11]MH_I2C_Read... [04:42:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:42:11]Read from MH i2c: E2 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 03 00 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [04:42:11]RAPDU: 90 00 [04:42:11]wFMCommunicate OK [04:42:11]SAM_PROTO_ClearQueue done [04:42:11]KKMCreateOFDPacket [04:42:11]OFDProtocolAddRootSTLVToBuf [04:42:11]FM_MakeSignedData [04:42:11]FM_MakeSignedData [04:42:11]SAM_PROTO_SignData [04:42:11]wFMCommunicate request_size=4 [04:42:11]MH_SAM_APDU [04:42:11]CAPDU: 80 0D 01 02 [04:42:11]Write to MH i2c: E2 08 00 A0 0A 80 0D 01 02 00 00 00 00 23 [04:42:11]Write i2c OK [04:42:11]MH_I2C_Read... [04:42:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:42:11]Read from MH i2c: E2 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 03 00 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [04:42:11]RAPDU: 90 00 [04:42:11]wFMCommunicate OK [04:42:11]wFMCommunicate request_size=255 [04:42:11]MH_SAM_APDU [04:42:11]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 23 56 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [04:42:11]Write to MH i2c: E2 02 01 A1 0A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 23 56 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 7B [04:42:11]Write i2c OK [04:42:11]MH_I2C_Read... [04:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:11]Read from MH i2c: E2 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 03 00 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 03 00 A1 0A 00 90 00 1F [04:42:11]RAPDU: 90 00 [04:42:11]wFMCommunicate OK [04:42:11]wFMCommunicate request_size=32 [04:42:11]MH_SAM_APDU [04:42:11]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 0F 2C 01 00 35 04 06 00 72 AC DE CE 7B B5 [04:42:11]Write to MH i2c: E2 23 00 A2 0A 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 0F 2C 01 00 35 04 06 00 72 AC DE CE 7B B5 00 00 B6 [04:42:11]Write i2c OK [04:42:11]MH_I2C_Read... [04:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:11]Read from MH i2c: E2 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 03 00 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [04:42:11]RAPDU: 90 00 [04:42:11]wFMCommunicate OK [04:42:11]wFMCommunicate request_size=4 [04:42:11]MH_SAM_APDU [04:42:11]CAPDU: 80 0D 03 02 [04:42:11]Write to MH i2c: E2 08 00 A3 0A 80 0D 03 02 00 00 00 00 28 [04:42:11]Write i2c OK [04:42:11]MH_I2C_Read... [04:42:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:42:11]Read from MH i2c: E2 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 0B 00 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 0B 00 A3 0A 00 74 C5 C1 F8 5C E0 65 0C 90 00 C8 [04:42:11]RAPDU: 74 C5 C1 F8 5C E0 65 0C 90 00 [04:42:11]wFMCommunicate OK [04:42:11]SAM_PROTO_SignData done [04:42:11]FM_MakeSignedData done [04:42:11]CreateOFDProtocolMessage [04:42:11]wFMCommunicate request_size=4 [04:42:11]MH_SAM_APDU [04:42:11]CAPDU: 80 11 00 00 [04:42:11]Write to MH i2c: E2 08 00 A4 0A 80 11 00 00 00 00 00 00 28 [04:42:11]Write i2c OK [04:42:11]MH_I2C_Read... [04:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:11]Read from MH i2c: E2 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 17 00 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: E2 17 00 A4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 78 [04:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:42:11]wFMCommunicate OK [04:42:11]CreateOFDProtocolMessage done [04:42:11]OFDSenderStorePacket 76815 [04:42:11]StoreOFDPacket docnum=76815 [04:42:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 65 89 1D 01 55 16 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 23 56 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0F 2C 01 00 35 04 06 00 72 AC DE CE 7B B5 74 C5 C1 F8 5C E0 65 0C [04:42:11]CheckFolder [04:42:11]dirname=/storage/ofd_packets [04:42:11]CheckFolder done [04:42:11]ProducePacketName [04:42:11]name=ofd_packets/00076815 [04:42:11]NVStorageSaveData ofd_packets/00076815 [04:42:11]File name is /storage/ofd_packets/00076815 [04:42:11]Write 323 bytes [04:42:11]NVStorageSaveData done [04:42:11]OFDSenderStorePacket done [04:42:11]KKMCreateOFDPacket done [04:42:11]NVStorageSaveData kkm_last_timestamp [04:42:11]File name is /storage/kkm_last_timestamp [04:42:11]Write 4 bytes [04:42:11]NVStorageSaveData done [04:42:11]ExternCall_PrintAddStr [04:42:11]wPrintStart [04:42:11]Write to MH i2c: 01 00 00 A5 0A AF [04:42:11]OFD Sender: Processing packet 76815 [packets to send 351, broken 350] [04:42:11]ProducePacketName [04:42:11]name=ofd_packets/00076815 [04:42:11]OFD Sender: To server: pG, [04:42:11]CommunicateWithHost lk.salyk.kg:30040 [04:42:11]ConnectInit lk.salyk.kg [04:42:11]Write i2c OK [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: 01 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: 01 07 00 [04:42:11]MH_I2C_Read... [04:42:11]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 FF 0F C4 [04:42:11]RasterBufferAndPrint [04:42:11]line Счет N : (3)220900 [04:42:11]line ИНН: 02508201610067 [04:42:11]line Контрольно-Кассовый Чек [04:42:11]line ПРОДАЖА [04:42:11]line Товар: 46226624 [04:42:11]line Mentos ПВ Клубника 6*100*2 [04:42:11]line 2.000 * 10.00 [04:42:11]line = 20.00 [04:42:11]line НДС 12% НСП 1% [04:42:11]line > о реализуемом товаре [04:42:11]line ИТОГО: 20.00 [04:42:11]line НСП 1% : 0.18 [04:42:11]line НДС 12% : 2.12 [04:42:11]line Наличными: 20.00 [04:42:11]line Безнал.: 0.00 [04:42:11]line Место: АЗС № 144 "Партнер Нефть" [04:42:11]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [04:42:11]line СНО: Общий режим [04:42:11]line Чек 11 22.06.2024 04:42 [04:42:11]line Смена: 395 ФФД: 1.0 [04:42:11]line ЗНМ: 0300000170 [04:42:11]line РНМ: 0000000000095696 [04:42:11]line Версия ККМ: 001 [04:42:11]line ФМ: 0000000000875009 [04:42:11]line ФД: 76815 [04:42:11]line ФПД: 126086798015413 [04:42:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T044211&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76815&fm=126086798015413&tin=02508201610067®Number=0000000000095696&sum=2000 [04:42:11]line 0 [04:42:11]written 0, free lines is 4095 [04:42:11]Connected sock=10 [04:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 65 89 1D 01 55 16 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 23 56 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 0F 2C 01 00 35 04 06 00 72 AC DE CE 7B B5 74 C5 C1 F8 5C E0 65 0C [04:42:12]Write to MH i2c: 01 00 00 CD 0A D7 [04:42:12]Write i2c OK [04:42:12]MH_I2C_Read... [04:42:12]Read from MH i2c: 01 [04:42:12]MH_I2C_Read... [04:42:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F4 40 47 00 3E 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 35 30 30 39 10 04 04 00 0F 2C 01 00 F4 03 04 00 BF FC 75 66 B6 04 01 00 00 18 A2 AE FF 0C 7E 9B 06 [04:42:12]CommunicateWithHost err = 0 [04:42:12]CheckOFDResponse [04:42:12]1017 (14) - 77093643461234 [04:42:12]1041 (16) - 0000000000875009 [04:42:12]1040 (4) - 76815 [04:42:12]1012 (4) - 21.06.2024 22:20 [04:42:12]1206 (1) - 0 [04:42:12]OFD Sender: Remove packet 76815 [04:42:12]ProducePacketName [04:42:12]name=ofd_packets/00076815 [04:42:12]NVStorageDeleteData [04:42:12]Read from MH i2c: 01 07 00 [04:42:12]MH_I2C_Read... [04:42:12]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 16 0D 01 [04:42:12]RasterBufferAndPrint [04:42:12]line [04:42:12]line [04:42:12]line [04:42:12]line [04:42:12]line [04:42:12]written 0, free lines is 3442 [04:42:12]MH_Cut [04:42:12]Write to MH i2c: D1 01 00 D4 0A 01 B0 [04:42:12]Write i2c OK [04:42:12]MH_I2C_Read... [04:42:12]Read from MH i2c: D1 [04:42:12]MH_I2C_Read... [04:42:12]Read from MH i2c: D1 01 00 [04:42:12]MH_I2C_Read... [04:42:12]Read from MH i2c: D1 01 00 D4 0A 00 AF [04:42:12]Write to MH i2c: 01 00 00 D5 0A DF [04:42:12]Write i2c OK [04:42:12]MH_I2C_Read... [04:42:12]OFD Sender: No OFD packet to send [04:42:12]*** Cut start [04:42:12]*** Partial cut [04:42:12]*** CUTSNS_PIN = 1 [04:42:13]*** CUTSNS_PIN = 0 [04:42:13]*** Brake cut motor [04:42:13]Read from MH i2c: 01 [04:42:13]MH_I2C_Read... [04:42:13]*** Stop cut motor [04:42:13]*** Cut end [04:42:13]Read from MH i2c: 01 07 00 [04:42:13]MH_I2C_Read... [04:42:13]Read from MH i2c: 01 07 00 D5 0A 00 00 00 00 00 FF 0F F4 [04:42:13]process_action close_receipt done [04:42:13]requested_data is exist [04:42:13]produce_requested_data [04:42:13]requested_item fm.sn is exist - process it [04:42:13]wFMCommunicate request_size=4 [04:42:13]MH_SAM_APDU [04:42:13]CAPDU: 80 11 00 00 [04:42:13]Write to MH i2c: E2 08 00 D6 0A 80 11 00 00 00 00 00 00 5A [04:42:13]Write i2c OK [04:42:13]MH_I2C_Read... [04:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:13]Read from MH i2c: E2 [04:42:13]MH_I2C_Read... [04:42:13]Read from MH i2c: E2 17 00 [04:42:13]MH_I2C_Read... [04:42:13]Read from MH i2c: E2 17 00 D6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 AA [04:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [04:42:13]wFMCommunicate OK [04:42:13]requested_item fd.num is exist - process it [04:42:13]SAM_PROTO_GetFieldsCounters [04:42:13]wFMCommunicate request_size=4 [04:42:13]MH_SAM_APDU [04:42:13]CAPDU: 80 13 00 00 [04:42:13]Write to MH i2c: E2 08 00 D7 0A 80 13 00 00 00 00 00 00 5D [04:42:13]Write i2c OK [04:42:13]MH_I2C_Read... [04:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:42:13]Read from MH i2c: E2 [04:42:13]MH_I2C_Read... [04:42:13]Read from MH i2c: E2 62 00 [04:42:13]MH_I2C_Read... [04:42:13]Read from MH i2c: E2 62 00 D7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 0F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [04:42: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 0F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:42:13]wFMCommunicate OK [04:42:13]SAM_PROTO_GetFieldsCounters done [04:42:13]requested_item shift.num is exist - process it [04:42:13]requested_item shift.opened is exist - process it [04:42:13]req_shift_opened [04:42:13]FM_GetShiftState [04:42:13]SAM_PROTO_GetShiftState [04:42:13]wFMCommunicate request_size=4 [04:42:13]MH_SAM_APDU [04:42:13]CAPDU: 80 13 01 00 [04:42:13]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [04:42:13]Write i2c OK [04:42:13]MH_I2C_Read... [04:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:13]Read from MH i2c: E2 [04:42:13]MH_I2C_Read... [04:42:13]Read from MH i2c: E2 0E 00 [04:42:13]MH_I2C_Read... [04:42:13]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 55 [04:42:13]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [04:42:13]wFMCommunicate OK [04:42:13]SAM_PROTO_GetShiftState done [04:42:13]FM_GetShiftState done [04:42:13]req_shift_opened done [04:42:13]requested_item shift.open_date is exist - process it [04:42:13]req_shift_open_date [04:42:13]req_shift_open_date done [04:42:13]produce_requested_data done [04:42:13]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76815,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [04:42:13]process_action_free close_receipt [04:42:13]json_value_free [04:42:13]json_value_free done [04:42:13]process_json_proto returns [04:42:13]Send response to host [04:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76815,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [04:42:13]free response buf [04:42:13]execute_script done [04:42:13]execute_script returns [04:42:13]free content buf [04:42:13]Sock 9.Close socket [04:42:13]Sock 9.Thread stoped [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]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: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:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]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: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:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21: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: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: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: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:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]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: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:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [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: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:03]accept exits with 8 [06:35:03]New connection [06:35:03]New thread 3066994020 created [06:35:03]Thread 3066850660 joined [06:35:03]Waiting for new connection... [06:35:03] Sock 8.Parse request [06:35:03]Sock 8.Check first char [06:35:03]Sock 8.First char is OK [06:35:03]request: POST /json_proto HTTP/1.0 [06:35:03]Method: POST [06:35:03]URL: /json_proto [06:35:03]Method is POST - this is cgi request [06:35:03]url: /json_proto [06:35:03]query_string will be loaded in cgi processing [06:35:03]execute_cgi json_proto POST (null) [06:35:03]execute_cgi path=json_proto method=POST [06:35:03]POST find Content-Length [06:35:03]Host: 172.17.39.195:8080 [06:35:03]Content-Length: 624 [06:35:03]Content-Type: application/json [06:35:03] [06:35:03]POST finish read [06:35:03]Found Content-Length = 624 [06:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220901", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:03]execute_script... [06:35:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220901", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:03]POST & json_proto [06:35:03]process_json_proto [06:35:03]json parsed OK: [06:35:03]protocol is kg_v1.0 [06:35:03]action value=close_receipt [06:35:03]process_action close_receipt [06:35:03]cmd_close_receipt [06:35:03]MH_GetDate [06:35:03]Write to MH i2c: F0 00 00 D9 0A D2 [06:35:03]Write i2c OK [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: F0 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: F0 09 00 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: F0 09 00 D9 0A 00 99 70 76 66 99 81 91 64 CF [06:35:03]GetLastDocTimeStamp 1719031331 [06:35:03]current date 1719038105 [06:35:03]FM_GetShiftState [06:35:03]SAM_PROTO_GetShiftState [06:35:03]wFMCommunicate request_size=4 [06:35:03]MH_SAM_APDU [06:35:03]CAPDU: 80 13 01 00 [06:35:03]Write to MH i2c: E2 08 00 DA 0A 80 13 01 00 00 00 00 00 61 [06:35:03]Write i2c OK [06:35:03]MH_I2C_Read... [06:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:03]Read from MH i2c: E2 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 0E 00 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 0E 00 DA 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 57 [06:35:03]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [06:35:03]wFMCommunicate OK [06:35:03]SAM_PROTO_GetShiftState done [06:35:03]FM_GetShiftState done [06:35:03]opened in 1719016435 [06:35:03]opened+sec_in_day 1719102835 [06:35:03]quantity*price = 14300 [06:35:03]sum+1 = 14301 [06:35:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 12 22.06.2024 06:35 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76816 ФПД: 1513839128233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T063505&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76816&fm=1513839128233&tin=02508201610067®Number=0000000000095696&sum=14300 0 [06:35:04]StoreToDocumentArchive [06:35:04]shift 395 fd 76816 [06:35:04]save to /storage/0395/doc_00076816 [06:35:04]save last doc name /storage/0395/doc_00076816 to /storage/kkm_last_doc_name [06:35:04]save OK [06:35:04]Clear old archive folders... [06:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=276 [06:35:04]tlvbuf is 008B6020 [06:35:04]SAM_PROTO_ClearQueue [06:35:04]wFMCommunicate request_size=4 [06:35:04]MH_SAM_APDU [06:35:04]CAPDU: 80 09 00 00 [06:35:04]Write to MH i2c: E2 08 00 E7 0A 80 09 00 00 00 00 00 00 63 [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:04]Read from MH i2c: E2 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 03 00 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [06:35:04]RAPDU: 90 00 [06:35:04]wFMCommunicate OK [06:35:04]SAM_PROTO_ClearQueue done [06:35:04]KKMCreateOFDPacket [06:35:04]OFDProtocolAddRootSTLVToBuf [06:35:04]FM_MakeSignedData [06:35:04]FM_MakeSignedData [06:35:04]SAM_PROTO_SignData [06:35:04]wFMCommunicate request_size=4 [06:35:04]MH_SAM_APDU [06:35:04]CAPDU: 80 0D 01 02 [06:35:04]Write to MH i2c: E2 08 00 E8 0A 80 0D 01 02 00 00 00 00 6B [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:04]Read from MH i2c: E2 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 03 00 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [06:35:04]RAPDU: 90 00 [06:35:04]wFMCommunicate OK [06:35:04]wFMCommunicate request_size=255 [06:35:04]MH_SAM_APDU [06:35:04]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 99 70 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 [06:35:04]Write to MH i2c: E2 02 01 E9 0A 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 99 70 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 00 00 41 [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:04]Read from MH i2c: E2 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 03 00 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [06:35:04]RAPDU: 90 00 [06:35:04]wFMCommunicate OK [06:35:04]wFMCommunicate request_size=35 [06:35:04]MH_SAM_APDU [06:35:04]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 10 2C 01 00 35 04 06 00 01 60 77 D7 EE A9 [06:35:04]Write to MH i2c: E2 26 00 EA 0A 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 10 2C 01 00 35 04 06 00 01 60 77 D7 EE A9 00 00 E1 [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:04]Read from MH i2c: E2 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 03 00 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [06:35:04]RAPDU: 90 00 [06:35:04]wFMCommunicate OK [06:35:04]wFMCommunicate request_size=4 [06:35:04]MH_SAM_APDU [06:35:04]CAPDU: 80 0D 03 02 [06:35:04]Write to MH i2c: E2 08 00 EB 0A 80 0D 03 02 00 00 00 00 70 [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:04]Read from MH i2c: E2 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 0B 00 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 0B 00 EB 0A 00 E9 73 2E B9 CC 30 0C BC 90 00 78 [06:35:04]RAPDU: E9 73 2E B9 CC 30 0C BC 90 00 [06:35:04]wFMCommunicate OK [06:35:04]SAM_PROTO_SignData done [06:35:04]FM_MakeSignedData done [06:35:04]CreateOFDProtocolMessage [06:35:04]wFMCommunicate request_size=4 [06:35:04]MH_SAM_APDU [06:35:04]CAPDU: 80 11 00 00 [06:35:04]Write to MH i2c: E2 08 00 EC 0A 80 11 00 00 00 00 00 00 70 [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:04]Read from MH i2c: E2 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 17 00 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: E2 17 00 EC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C0 [06:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:35:04]wFMCommunicate OK [06:35:04]CreateOFDProtocolMessage done [06:35:04]OFDSenderStorePacket 76816 [06:35:04]StoreOFDPacket docnum=76816 [06:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 28 01 00 00 B8 12 20 01 AC F3 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 99 70 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 10 2C 01 00 35 04 06 00 01 60 77 D7 EE A9 E9 73 2E B9 CC 30 0C BC [06:35:04]CheckFolder [06:35:04]dirname=/storage/ofd_packets [06:35:04]CheckFolder done [06:35:04]ProducePacketName [06:35:04]name=ofd_packets/00076816 [06:35:04]NVStorageSaveData ofd_packets/00076816 [06:35:04]File name is /storage/ofd_packets/00076816 [06:35:04]Write 326 bytes [06:35:04]NVStorageSaveData done [06:35:04]OFDSenderStorePacket done [06:35:04]KKMCreateOFDPacket done [06:35:04]NVStorageSaveData kkm_last_timestamp [06:35:04]File name is /storage/kkm_last_timestamp [06:35:04]Write 4 bytes [06:35:04]NVStorageSaveData done [06:35:04]ExternCall_PrintAddStr [06:35:04]wPrintStart [06:35:04]Write to MH i2c: 01 00 00 ED 0A F7 [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: 01 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: 01 07 00 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 FF 0F 0C [06:35:04]RasterBufferAndPrint [06:35:04]line Счет N : (3)220901 [06:35:04]line ИНН: 02508201610067 [06:35:04]line Контрольно-Кассовый Чек [06:35:04]line ПРОДАЖА [06:35:04]line Товар: 48744683 [06:35:04]line Сигареты Winston XStyle Caster+ [06:35:04]line 1.000 * 143.00 [06:35:04]line = 143.00 [06:35:04]line НДС 12% НСП 1% [06:35:04]line > о реализуемом товаре [06:35:04]line ИТОГО: 143.00 [06:35:04]line НСП 1% : 1.26 [06:35:04]line НДС 12% : 15.19 [06:35:04]line Наличными: 143.00 [06:35:04]line Безнал.: 0.00 [06:35:04]line Место: АЗС № 144 "Партнер Нефть" [06:35:04]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [06:35:04]line СНО: Общий режим [06:35:04]line Чек 12 22.06.2024 06:35 [06:35:04]line Смена: 395 ФФД: 1.0 [06:35:04]line ЗНМ: 0300000170 [06:35:04]line РНМ: 0000000000095696 [06:35:04]line Версия ККМ: 001 [06:35:04]line ФМ: 0000000000875009 [06:35:04]line ФД: 76816 [06:35:04]line ФПД: 1513839128233 [06:35:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T063505&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76816&fm=1513839128233&tin=02508201610067®Number=0000000000095696&sum=14300 [06:35:05]line 0 [06:35:05]OFD Sender: Processing packet 76816 [packets to send 351, broken 350] [06:35:05]ProducePacketName [06:35:05]name=ofd_packets/00076816 [06:35:05]OFD Sender: To server: pG, [06:35:05]CommunicateWithHost lk.salyk.kg:30040 [06:35:05]ConnectInit lk.salyk.kg [06:35:05]written 0, free lines is 4095 [06:35:05]Connected sock=10 [06:35:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 28 01 00 00 B8 12 20 01 AC F3 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 99 70 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 10 2C 01 00 35 04 06 00 01 60 77 D7 EE A9 E9 73 2E B9 CC 30 0C BC [06:35:05]Write to MH i2c: 01 00 00 16 0B 21 [06:35:05]Write i2c OK [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: 01 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: 01 07 00 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: 01 07 00 16 0B 00 00 00 00 00 E0 0C 14 [06:35:05]RasterBufferAndPrint [06:35:05]line [06:35:05]line [06:35:05]line [06:35:05]line [06:35:05]line [06:35:05]written 0, free lines is 3302 [06:35:05]MH_Cut [06:35:05]Write to MH i2c: D1 01 00 1D 0B 01 FA [06:35:05]Write i2c OK [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: D1 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: D1 01 00 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: D1 01 00 1D 0B 00 F9 [06:35:05]Write to MH i2c: 01 00 00 1E 0B 29 [06:35:05]Write i2c OK [06:35:05]MH_I2C_Read... [06:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B6 0B 47 00 DD CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 10 2C 01 00 F4 03 04 00 34 17 76 66 B6 04 01 00 00 AE B1 FA E7 CC BA 53 9A [06:35:05]CommunicateWithHost err = 0 [06:35:05]CheckOFDResponse [06:35:05]1017 (14) - 77093643461234 [06:35:05]1041 (16) - 0000000000875009 [06:35:05]1040 (4) - 76816 [06:35:05]1012 (4) - 22.06.2024 00:13 [06:35:05]1206 (1) - 0 [06:35:05]OFD Sender: Remove packet 76816 [06:35:05]ProducePacketName [06:35:05]name=ofd_packets/00076816 [06:35:05]NVStorageDeleteData [06:35:06]OFD Sender: No OFD packet to send [06:35:06]*** Cut start [06:35:06]*** Partial cut [06:35:06]*** CUTSNS_PIN = 1 [06:35:06]*** CUTSNS_PIN = 0 [06:35:06]*** Brake cut motor [06:35:07]Read from MH i2c: 01 [06:35:07]*** Stop cut motor [06:35:07]*** Cut end [06:35:07]MH_I2C_Read... [06:35:07]Read from MH i2c: 01 07 00 [06:35:07]MH_I2C_Read... [06:35:07]Read from MH i2c: 01 07 00 1E 0B 00 00 00 00 00 FF 0F 3E [06:35:07]process_action close_receipt done [06:35:07]requested_data is exist [06:35:07]produce_requested_data [06:35:07]requested_item fm.sn is exist - process it [06:35:07]wFMCommunicate request_size=4 [06:35:07]MH_SAM_APDU [06:35:07]CAPDU: 80 11 00 00 [06:35:07]Write to MH i2c: E2 08 00 1F 0B 80 11 00 00 00 00 00 00 A4 [06:35:07]Write i2c OK [06:35:07]MH_I2C_Read... [06:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:07]Read from MH i2c: E2 [06:35:07]MH_I2C_Read... [06:35:07]Read from MH i2c: E2 17 00 [06:35:07]MH_I2C_Read... [06:35:07]Read from MH i2c: E2 17 00 1F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F4 [06:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:35:07]wFMCommunicate OK [06:35:07]requested_item fd.num is exist - process it [06:35:07]SAM_PROTO_GetFieldsCounters [06:35:07]wFMCommunicate request_size=4 [06:35:07]MH_SAM_APDU [06:35:07]CAPDU: 80 13 00 00 [06:35:07]Write to MH i2c: E2 08 00 20 0B 80 13 00 00 00 00 00 00 A7 [06:35:07]Write i2c OK [06:35:07]MH_I2C_Read... [06:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:07]Read from MH i2c: E2 [06:35:07]MH_I2C_Read... [06:35:07]Read from MH i2c: E2 62 00 [06:35:07]MH_I2C_Read... [06:35:07]Read from MH i2c: E2 62 00 20 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 10 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [06:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 10 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:35:07]wFMCommunicate OK [06:35:07]SAM_PROTO_GetFieldsCounters done [06:35:07]requested_item shift.num is exist - process it [06:35:07]requested_item shift.opened is exist - process it [06:35:07]req_shift_opened [06:35:07]FM_GetShiftState [06:35:07]SAM_PROTO_GetShiftState [06:35:07]wFMCommunicate request_size=4 [06:35:07]MH_SAM_APDU [06:35:07]CAPDU: 80 13 01 00 [06:35:07]Write to MH i2c: E2 08 00 21 0B 80 13 01 00 00 00 00 00 A9 [06:35:07]Write i2c OK [06:35:07]MH_I2C_Read... [06:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:07]Read from MH i2c: E2 [06:35:07]MH_I2C_Read... [06:35:07]Read from MH i2c: E2 0E 00 [06:35:07]MH_I2C_Read... [06:35:07]Read from MH i2c: E2 0E 00 21 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 9F [06:35:07]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [06:35:07]wFMCommunicate OK [06:35:07]SAM_PROTO_GetShiftState done [06:35:07]FM_GetShiftState done [06:35:07]req_shift_opened done [06:35:07]requested_item shift.open_date is exist - process it [06:35:07]req_shift_open_date [06:35:07]req_shift_open_date done [06:35:07]produce_requested_data done [06:35:07]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76816,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [06:35:07]process_action_free close_receipt [06:35:07]json_value_free [06:35:07]json_value_free done [06:35:07]process_json_proto returns [06:35:07]Send response to host [06:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76816,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [06:35:07]free response buf [06:35:07]execute_script done [06:35:07]execute_script returns [06:35:07]free content buf [06:35:07]Sock 8.Close socket [06:35:07]Sock 8.Thread stoped [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]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:44]accept exits with 9 [06:36:44]New connection [06:36:44]New thread 3066850660 created [06:36:44]Thread 3066994020 joined [06:36:44]Waiting for new connection... [06:36:44] Sock 9.Parse request [06:36:44]Sock 9.Check first char [06:36:44]Sock 9.First char is OK [06:36:44]request: POST /json_proto HTTP/1.0 [06:36:44]Method: POST [06:36:44]URL: /json_proto [06:36:44]Method is POST - this is cgi request [06:36:44]url: /json_proto [06:36:44]query_string will be loaded in cgi processing [06:36:44]execute_cgi json_proto POST (null) [06:36:44]execute_cgi path=json_proto method=POST [06:36:44]POST find Content-Length [06:36:44]Host: 172.17.39.195:8080 [06:36:44]Content-Length: 640 [06:36:44]Content-Type: application/json [06:36:44] [06:36:44]POST finish read [06:36:44]Found Content-Length = 640 [06:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220902", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 162.00, "quantity" : 1.000, "sum" : 162.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 162.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:44]execute_script... [06:36:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220902", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 162.00, "quantity" : 1.000, "sum" : 162.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 162.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:36:44]POST & json_proto [06:36:44]process_json_proto [06:36:44]json parsed OK: [06:36:44]protocol is kg_v1.0 [06:36:44]action value=close_receipt [06:36:44]process_action close_receipt [06:36:44]cmd_close_receipt [06:36:44]MH_GetDate [06:36:44]Write to MH i2c: F0 00 00 22 0B 1C [06:36:44]Write i2c OK [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: F0 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: F0 09 00 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: F0 09 00 22 0B 00 FE 70 76 66 99 81 91 64 7E [06:36:44]GetLastDocTimeStamp 1719038105 [06:36:44]current date 1719038206 [06:36:44]FM_GetShiftState [06:36:44]SAM_PROTO_GetShiftState [06:36:44]wFMCommunicate request_size=4 [06:36:44]MH_SAM_APDU [06:36:44]CAPDU: 80 13 01 00 [06:36:44]Write to MH i2c: E2 08 00 23 0B 80 13 01 00 00 00 00 00 AB [06:36:44]Write i2c OK [06:36:44]MH_I2C_Read... [06:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:44]Read from MH i2c: E2 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 0E 00 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 0E 00 23 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 A1 [06:36:44]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [06:36:44]wFMCommunicate OK [06:36:44]SAM_PROTO_GetShiftState done [06:36:44]FM_GetShiftState done [06:36:44]opened in 1719016435 [06:36:44]opened+sec_in_day 1719102835 [06:36:44]quantity*price = 16200 [06:36:44]sum+1 = 16201 [06:36:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 162.00 НСП 1% : 1.43 НДС 12% : 17.20 Наличными: 162.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 13 22.06.2024 06:36 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76817 ФПД: 32616442564944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T063646&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76817&fm=32616442564944&tin=02508201610067®Number=0000000000095696&sum=16200 0 [06:36:45]StoreToDocumentArchive [06:36:45]shift 395 fd 76817 [06:36:45]save to /storage/0395/doc_00076817 [06:36:45]save last doc name /storage/0395/doc_00076817 to /storage/kkm_last_doc_name [06:36:45]save OK [06:36:45]Clear old archive folders... [06:36:45]ProcessDocumentItem done err = 0, tmpTLVsize=272 [06:36:45]tlvbuf is 00892460 [06:36:45]SAM_PROTO_ClearQueue [06:36:45]wFMCommunicate request_size=4 [06:36:45]MH_SAM_APDU [06:36:45]CAPDU: 80 09 00 00 [06:36:45]Write to MH i2c: E2 08 00 30 0B 80 09 00 00 00 00 00 00 AD [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 [06:36:45]MH_I2C_Read... [06:36:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:45]Read from MH i2c: E2 03 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 03 00 30 0B 00 90 00 AF [06:36:45]RAPDU: 90 00 [06:36:45]wFMCommunicate OK [06:36:45]SAM_PROTO_ClearQueue done [06:36:45]KKMCreateOFDPacket [06:36:45]OFDProtocolAddRootSTLVToBuf [06:36:45]FM_MakeSignedData [06:36:45]FM_MakeSignedData [06:36:45]SAM_PROTO_SignData [06:36:45]wFMCommunicate request_size=4 [06:36:45]MH_SAM_APDU [06:36:45]CAPDU: 80 0D 01 02 [06:36:45]Write to MH i2c: E2 08 00 31 0B 80 0D 01 02 00 00 00 00 B5 [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:45]Read from MH i2c: E2 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 03 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [06:36:45]RAPDU: 90 00 [06:36:45]wFMCommunicate OK [06:36:45]wFMCommunicate request_size=255 [06:36:45]MH_SAM_APDU [06:36:45]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 3F 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 06 00 00 00 00 07 04 06 00 48 3F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FE 70 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 [06:36:45]Write to MH i2c: E2 02 01 32 0B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 3F 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 06 00 00 00 00 07 04 06 00 48 3F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FE 70 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 73 [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:45]Read from MH i2c: E2 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 03 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [06:36:45]RAPDU: 90 00 [06:36:45]wFMCommunicate OK [06:36:45]wFMCommunicate request_size=31 [06:36:45]MH_SAM_APDU [06:36:45]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 39 10 04 04 00 11 2C 01 00 35 04 06 00 1D AA 1B 79 11 50 [06:36:45]Write to MH i2c: E2 22 00 33 0B 80 0D 02 02 1A 00 30 30 38 37 35 30 30 39 10 04 04 00 11 2C 01 00 35 04 06 00 1D AA 1B 79 11 50 00 00 DA [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:45]Read from MH i2c: E2 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 03 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [06:36:45]RAPDU: 90 00 [06:36:45]wFMCommunicate OK [06:36:45]wFMCommunicate request_size=4 [06:36:45]MH_SAM_APDU [06:36:45]CAPDU: 80 0D 03 02 [06:36:45]Write to MH i2c: E2 08 00 34 0B 80 0D 03 02 00 00 00 00 BA [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:45]Read from MH i2c: E2 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 0B 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 0B 00 34 0B 00 91 C1 F8 44 83 E3 64 73 90 00 86 [06:36:45]RAPDU: 91 C1 F8 44 83 E3 64 73 90 00 [06:36:45]wFMCommunicate OK [06:36:45]SAM_PROTO_SignData done [06:36:45]FM_MakeSignedData done [06:36:45]CreateOFDProtocolMessage [06:36:45]wFMCommunicate request_size=4 [06:36:45]MH_SAM_APDU [06:36:45]CAPDU: 80 11 00 00 [06:36:45]Write to MH i2c: E2 08 00 35 0B 80 11 00 00 00 00 00 00 BA [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:45]Read from MH i2c: E2 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 17 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 17 00 35 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0A [06:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:36:45]wFMCommunicate OK [06:36:45]CreateOFDProtocolMessage done [06:36:45]OFDSenderStorePacket 76817 [06:36:45]StoreOFDPacket docnum=76817 [06:36:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 24 01 00 00 D8 93 1C 01 73 A1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 3F 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 06 00 00 00 00 07 04 06 00 48 3F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FE 70 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 11 2C 01 00 35 04 06 00 1D AA 1B 79 11 50 91 C1 F8 44 83 E3 64 73 [06:36:45]CheckFolder [06:36:45]dirname=/storage/ofd_packets [06:36:45]CheckFolder done [06:36:45]ProducePacketName [06:36:45]name=ofd_packets/00076817 [06:36:45]NVStorageSaveData ofd_packets/00076817 [06:36:45]File name is /storage/ofd_packets/00076817 [06:36:45]Write 322 bytes [06:36:45]NVStorageSaveData done [06:36:45]OFDSenderStorePacket done [06:36:45]KKMCreateOFDPacket done [06:36:45]NVStorageSaveData kkm_last_timestamp [06:36:45]File name is /storage/kkm_last_timestamp [06:36:45]Write 4 bytes [06:36:45]NVStorageSaveData done [06:36:45]OFD Sender: Processing packet 76817 [packets to send 351, broken 350] [06:36:45]ProducePacketName [06:36:45]name=ofd_packets/00076817 [06:36:45]ExternCall_PrintAddStr [06:36:45]wPrintStart [06:36:45]Write to MH i2c: 01 00 00 36 0B 41 [06:36:45]OFD Sender: To server: pG, [06:36:45]CommunicateWithHost lk.salyk.kg:30040 [06:36:45]ConnectInit lk.salyk.kg [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: 01 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: 01 07 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: 01 07 00 36 0B 00 00 00 00 00 FF 0F 56 [06:36:45]RasterBufferAndPrint [06:36:45]line Счет N : (3)220902 [06:36:45]line ИНН: 02508201610067 [06:36:45]line Контрольно-Кассовый Чек [06:36:45]line ПРОДАЖА [06:36:45]line Товар: 4700000480517 [06:36:45]line Пиво Живое 1л ПЭТ [06:36:45]line 1.000 * 162.00 [06:36:45]line = 162.00 [06:36:45]line НДС 12% НСП 1% [06:36:45]line > о реализуемом товаре [06:36:45]line ИТОГО: 162.00 [06:36:45]line НСП 1% : 1.43 [06:36:45]line НДС 12% : 17.20 [06:36:45]line Наличными: 162.00 [06:36:45]line Безнал.: 0.00 [06:36:45]line Место: АЗС № 144 "Партнер Нефть" [06:36:45]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [06:36:45]line СНО: Общий режим [06:36:45]line Чек 13 22.06.2024 06:36 [06:36:45]line Смена: 395 ФФД: 1.0 [06:36:45]line ЗНМ: 0300000170 [06:36:45]line РНМ: 0000000000095696 [06:36:45]line Версия ККМ: 001 [06:36:45]line ФМ: 0000000000875009 [06:36:45]line ФД: 76817 [06:36:45]line ФПД: 32616442564944 [06:36:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T063646&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76817&fm=32616442564944&tin=02508201610067®Number=0000000000095696&sum=16200 [06:36:46]line 0 [06:36:46]Connected sock=10 [06:36:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 24 01 00 00 D8 93 1C 01 73 A1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 3F 00 00 00 00 13 04 06 00 48 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 06 00 00 00 00 07 04 06 00 48 3F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FE 70 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 11 2C 01 00 35 04 06 00 1D AA 1B 79 11 50 91 C1 F8 44 83 E3 64 73 [06:36:46]written 0, free lines is 4095 [06:36:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C3 6A 47 00 D3 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 35 30 30 39 10 04 04 00 11 2C 01 00 F4 03 04 00 99 17 76 66 B6 04 01 00 00 4B 1A B8 87 DC 93 40 8A [06:36:46]CommunicateWithHost err = 0 [06:36:46]CheckOFDResponse [06:36:46]1017 (14) - 77093643461234 [06:36:46]1041 (16) - 0000000000875009 [06:36:46]1040 (4) - 76817 [06:36:46]1012 (4) - 22.06.2024 00:15 [06:36:46]1206 (1) - 0 [06:36:46]OFD Sender: Remove packet 76817 [06:36:46]ProducePacketName [06:36:46]name=ofd_packets/00076817 [06:36:46]NVStorageDeleteData [06:36:46]Write to MH i2c: 01 00 00 5E 0B 69 [06:36:46]Write i2c OK [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: 01 [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: 01 07 00 [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: 01 07 00 5E 0B 00 00 00 00 00 01 0D 7E [06:36:46]RasterBufferAndPrint [06:36:46]line [06:36:46]line [06:36:46]line [06:36:46]line [06:36:46]line [06:36:46]written 0, free lines is 3336 [06:36:46]MH_Cut [06:36:46]Write to MH i2c: D1 01 00 65 0B 01 42 [06:36:46]Write i2c OK [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: D1 [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: D1 01 00 [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: D1 01 00 65 0B 00 41 [06:36:46]Write to MH i2c: 01 00 00 66 0B 71 [06:36:46]Write i2c OK [06:36:46]MH_I2C_Read... [06:36:46]OFD Sender: No OFD packet to send [06:36:47]*** Cut start [06:36:47]*** Partial cut [06:36:47]*** CUTSNS_PIN = 1 [06:36:47]*** CUTSNS_PIN = 0 [06:36:47]*** Brake cut motor [06:36:48]Read from MH i2c: 01 [06:36:48]MH_I2C_Read... [06:36:48]*** Stop cut motor [06:36:48]*** Cut end [06:36:48]Read from MH i2c: 01 07 00 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: 01 07 00 66 0B 00 00 00 00 00 FF 0F 86 [06:36:48]process_action close_receipt done [06:36:48]requested_data is exist [06:36:48]produce_requested_data [06:36:48]requested_item fm.sn is exist - process it [06:36:48]wFMCommunicate request_size=4 [06:36:48]MH_SAM_APDU [06:36:48]CAPDU: 80 11 00 00 [06:36:48]Write to MH i2c: E2 08 00 67 0B 80 11 00 00 00 00 00 00 EC [06:36:48]Write i2c OK [06:36:48]MH_I2C_Read... [06:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:48]Read from MH i2c: E2 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: E2 17 00 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: E2 17 00 67 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3C [06:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:36:48]wFMCommunicate OK [06:36:48]requested_item fd.num is exist - process it [06:36:48]SAM_PROTO_GetFieldsCounters [06:36:48]wFMCommunicate request_size=4 [06:36:48]MH_SAM_APDU [06:36:48]CAPDU: 80 13 00 00 [06:36:48]Write to MH i2c: E2 08 00 68 0B 80 13 00 00 00 00 00 00 EF [06:36:48]Write i2c OK [06:36:48]MH_I2C_Read... [06:36:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:48]Read from MH i2c: E2 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: E2 62 00 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: E2 62 00 68 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 11 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [06:36: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 11 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:36:48]wFMCommunicate OK [06:36:48]SAM_PROTO_GetFieldsCounters done [06:36:48]requested_item shift.num is exist - process it [06:36:48]requested_item shift.opened is exist - process it [06:36:48]req_shift_opened [06:36:48]FM_GetShiftState [06:36:48]SAM_PROTO_GetShiftState [06:36:48]wFMCommunicate request_size=4 [06:36:48]MH_SAM_APDU [06:36:48]CAPDU: 80 13 01 00 [06:36:48]Write to MH i2c: E2 08 00 69 0B 80 13 01 00 00 00 00 00 F1 [06:36:48]Write i2c OK [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: E2 [06:36:48]MH_I2C_Read... [06:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:48]Read from MH i2c: E2 0E 00 [06:36:48]MH_I2C_Read... [06:36:48]Read from MH i2c: E2 0E 00 69 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 E7 [06:36:48]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [06:36:48]wFMCommunicate OK [06:36:48]SAM_PROTO_GetShiftState done [06:36:48]FM_GetShiftState done [06:36:48]req_shift_opened done [06:36:48]requested_item shift.open_date is exist - process it [06:36:48]req_shift_open_date [06:36:48]req_shift_open_date done [06:36:48]produce_requested_data done [06:36:48]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76817,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [06:36:48]process_action_free close_receipt [06:36:48]json_value_free [06:36:48]json_value_free done [06:36:48]process_json_proto returns [06:36:48]Send response to host [06:36:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76817,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [06:36:48]free response buf [06:36:48]execute_script done [06:36:48]execute_script returns [06:36:48]free content buf [06:36:48]Sock 9.Close socket [06:36:48]Sock 9.Thread stoped [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:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]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:33]accept exits with 8 [06:56:33]New connection [06:56:33]New thread 3066994020 created [06:56:33]Thread 3066850660 joined [06:56:33]Waiting for new connection... [06:56:33] Sock 8.Parse request [06:56:33]Sock 8.Check first char [06:56:33]Sock 8.First char is OK [06:56:33]request: POST /json_proto HTTP/1.0 [06:56:33]Method: POST [06:56:33]URL: /json_proto [06:56:33]Method is POST - this is cgi request [06:56:33]url: /json_proto [06:56:33]query_string will be loaded in cgi processing [06:56:33]execute_cgi json_proto POST (null) [06:56:33]execute_cgi path=json_proto method=POST [06:56:33]POST find Content-Length [06:56:33]Host: 172.17.39.195:8080 [06:56:33]Content-Length: 729 [06:56:33]Content-Type: application/json [06:56:33] [06:56:33]POST finish read [06:56:33]Found Content-Length = 729 [06:56:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220903", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:33]execute_script... [06:56:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220903", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:33]POST & json_proto [06:56:33]process_json_proto [06:56:33]json parsed OK: [06:56:33]protocol is kg_v1.0 [06:56:33]action value=close_receipt [06:56:33]process_action close_receipt [06:56:33]cmd_close_receipt [06:56:33]MH_GetDate [06:56:33]Write to MH i2c: F0 00 00 6A 0B 64 [06:56:33]Write i2c OK [06:56:33]MH_I2C_Read... [06:56:33]Read from MH i2c: F0 [06:56:33]MH_I2C_Read... [06:56:33]Read from MH i2c: F0 09 00 [06:56:33]MH_I2C_Read... [06:56:33]Read from MH i2c: F0 09 00 6A 0B 00 A3 75 76 66 99 81 91 64 70 [06:56:33]GetLastDocTimeStamp 1719038206 [06:56:33]current date 1719039395 [06:56:33]FM_GetShiftState [06:56:33]SAM_PROTO_GetShiftState [06:56:33]wFMCommunicate request_size=4 [06:56:33]MH_SAM_APDU [06:56:33]CAPDU: 80 13 01 00 [06:56:33]Write to MH i2c: E2 08 00 6B 0B 80 13 01 00 00 00 00 00 F3 [06:56:33]Write i2c OK [06:56:33]MH_I2C_Read... [06:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:33]Read from MH i2c: E2 [06:56:33]MH_I2C_Read... [06:56:33]Read from MH i2c: E2 0E 00 [06:56:33]MH_I2C_Read... [06:56:33]Read from MH i2c: E2 0E 00 6B 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 E9 [06:56:33]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [06:56:33]wFMCommunicate OK [06:56:33]SAM_PROTO_GetShiftState done [06:56:33]FM_GetShiftState done [06:56:33]opened in 1719016435 [06:56:33]opened+sec_in_day 1719102835 [06:56:33]quantity*price = 16000 [06:56:33]sum+1 = 16001 [06:56:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 14 22.06.2024 06:56 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76818 ФПД: 176944516471339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T065635&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76818&fm=176944516471339&tin=02508201610067®Number=0000000000095696&sum=16000 0 [06:56:34]StoreToDocumentArchive [06:56:34]shift 395 fd 76818 [06:56:34]save to /storage/0395/doc_00076818 [06:56:34]save last doc name /storage/0395/doc_00076818 to /storage/kkm_last_doc_name [06:56:34]save OK [06:56:34]Clear old archive folders... [06:56:34]ProcessDocumentItem done err = 0, tmpTLVsize=306 [06:56:34]tlvbuf is 00897690 [06:56:34]SAM_PROTO_ClearQueue [06:56:34]wFMCommunicate request_size=4 [06:56:34]MH_SAM_APDU [06:56:34]CAPDU: 80 09 00 00 [06:56:34]Write to MH i2c: E2 08 00 78 0B 80 09 00 00 00 00 00 00 F5 [06:56:34]Write i2c OK [06:56:34]MH_I2C_Read... [06:56:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:56:34]Read from MH i2c: E2 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 03 00 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 03 00 78 0B 00 90 00 F7 [06:56:34]RAPDU: 90 00 [06:56:34]wFMCommunicate OK [06:56:34]SAM_PROTO_ClearQueue done [06:56:34]KKMCreateOFDPacket [06:56:34]OFDProtocolAddRootSTLVToBuf [06:56:34]FM_MakeSignedData [06:56:34]FM_MakeSignedData [06:56:34]SAM_PROTO_SignData [06:56:34]wFMCommunicate request_size=4 [06:56:34]MH_SAM_APDU [06:56:34]CAPDU: 80 0D 01 02 [06:56:34]Write to MH i2c: E2 08 00 79 0B 80 0D 01 02 00 00 00 00 FD [06:56:34]Write i2c OK [06:56:34]MH_I2C_Read... [06:56:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:56:34]Read from MH i2c: E2 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 03 00 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 03 00 79 0B 00 90 00 F8 [06:56:34]RAPDU: 90 00 [06:56:34]wFMCommunicate OK [06:56:34]wFMCommunicate request_size=255 [06:56:34]MH_SAM_APDU [06:56:34]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A3 75 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 [06:56:34]Write to MH i2c: E2 02 01 7A 0B 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A3 75 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 00 76 [06:56:34]Write i2c OK [06:56:34]MH_I2C_Read... [06:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:34]Read from MH i2c: E2 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 03 00 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 03 00 7A 0B 00 90 00 F9 [06:56:34]RAPDU: 90 00 [06:56:34]wFMCommunicate OK [06:56:34]wFMCommunicate request_size=65 [06:56:34]MH_SAM_APDU [06:56:34]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 12 2C 01 00 35 04 06 00 A0 EE 1B 0C 9A 2B [06:56:34]Write to MH i2c: E2 44 00 7B 0B 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 12 2C 01 00 35 04 06 00 A0 EE 1B 0C 9A 2B 00 00 0F [06:56:34]Write i2c OK [06:56:34]MH_I2C_Read... [06:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:34]Read from MH i2c: E2 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 03 00 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [06:56:34]RAPDU: 90 00 [06:56:34]wFMCommunicate OK [06:56:34]wFMCommunicate request_size=4 [06:56:34]MH_SAM_APDU [06:56:34]CAPDU: 80 0D 03 02 [06:56:34]Write to MH i2c: E2 08 00 7C 0B 80 0D 03 02 00 00 00 00 02 [06:56:34]Write i2c OK [06:56:34]MH_I2C_Read... [06:56:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:56:34]Read from MH i2c: E2 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 0B 00 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 0B 00 7C 0B 00 F1 10 29 E8 5A 0C 81 36 90 00 32 [06:56:34]RAPDU: F1 10 29 E8 5A 0C 81 36 90 00 [06:56:34]wFMCommunicate OK [06:56:34]SAM_PROTO_SignData done [06:56:34]FM_MakeSignedData done [06:56:34]CreateOFDProtocolMessage [06:56:34]wFMCommunicate request_size=4 [06:56:34]MH_SAM_APDU [06:56:34]CAPDU: 80 11 00 00 [06:56:34]Write to MH i2c: E2 08 00 7D 0B 80 11 00 00 00 00 00 00 02 [06:56:34]Write i2c OK [06:56:34]MH_I2C_Read... [06:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:34]Read from MH i2c: E2 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 17 00 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: E2 17 00 7D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 52 [06:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:56:34]wFMCommunicate OK [06:56:34]CreateOFDProtocolMessage done [06:56:34]OFDSenderStorePacket 76818 [06:56:34]StoreOFDPacket docnum=76818 [06:56:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 46 01 00 00 D2 46 3E 01 95 47 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A3 75 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 12 2C 01 00 35 04 06 00 A0 EE 1B 0C 9A 2B F1 10 29 E8 5A 0C 81 36 [06:56:34]CheckFolder [06:56:34]dirname=/storage/ofd_packets [06:56:34]CheckFolder done [06:56:34]ProducePacketName [06:56:34]name=ofd_packets/00076818 [06:56:34]NVStorageSaveData ofd_packets/00076818 [06:56:34]File name is /storage/ofd_packets/00076818 [06:56:34]Write 356 bytes [06:56:34]NVStorageSaveData done [06:56:34]OFDSenderStorePacket done [06:56:34]KKMCreateOFDPacket done [06:56:34]NVStorageSaveData kkm_last_timestamp [06:56:34]File name is /storage/kkm_last_timestamp [06:56:34]Write 4 bytes [06:56:34]NVStorageSaveData done [06:56:34]ExternCall_PrintAddStr [06:56:34]wPrintStart [06:56:34]Write to MH i2c: 01 00 00 7E 0B 89 [06:56:34]Write i2c OK [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: 01 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: 01 07 00 [06:56:34]MH_I2C_Read... [06:56:34]Read from MH i2c: 01 07 00 7E 0B 00 00 00 00 00 FF 0F 9E [06:56:34]RasterBufferAndPrint [06:56:34]line Счет N : (3)220903 [06:56:34]line ИНН: 02508201610067 [06:56:34]line Контрольно-Кассовый Чек [06:56:34]line ПРОДАЖА [06:56:34]line Товар: 4600338001623 [06:56:34]line Вода Фруто НЯНЯ негазир д/детей 0,33л [06:56:34]line 2.000 * 80.00 [06:56:34]line = 160.00 [06:56:34]line НДС 12% НСП 1% [06:56:34]line > о реализуемом товаре [06:56:34]line ИТОГО: 160.00 [06:56:34]line НСП 1% : 1.42 [06:56:34]line НДС 12% : 16.99 [06:56:34]line Наличными: 160.00 [06:56:34]line Безнал.: 0.00 [06:56:34]line Место: АЗС № 144 "Партнер Нефть" [06:56:34]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [06:56:34]line СНО: Общий режим [06:56:34]line Чек 14 22.06.2024 06:56 [06:56:34]line Смена: 395 ФФД: 1.0 [06:56:34]line ЗНМ: 0300000170 [06:56:34]line РНМ: 0000000000095696 [06:56:34]line Версия ККМ: 001 [06:56:34]line ФМ: 0000000000875009 [06:56:34]line ФД: 76818 [06:56:34]line ФПД: 176944516471339 [06:56:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T065635&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76818&fm=176944516471339&tin=02508201610067®Number=0000000000095696&sum=16000 [06:56:35]line 0 [06:56:35]OFD Sender: Processing packet 76818 [packets to send 351, broken 350] [06:56:35]ProducePacketName [06:56:35]name=ofd_packets/00076818 [06:56:35]OFD Sender: To server: pG, [06:56:35]CommunicateWithHost lk.salyk.kg:30040 [06:56:35]ConnectInit lk.salyk.kg [06:56:35]written 0, free lines is 4095 [06:56:35]Connected sock=10 [06:56:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 46 01 00 00 D2 46 3E 01 95 47 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A3 75 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 12 2C 01 00 35 04 06 00 A0 EE 1B 0C 9A 2B F1 10 29 E8 5A 0C 81 36 [06:56:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 9A 69 47 00 DC 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 35 30 30 39 10 04 04 00 12 2C 01 00 F4 03 04 00 3E 1C 76 66 B6 04 01 00 00 49 F8 E2 F2 79 08 1F 24 [06:56:35]CommunicateWithHost err = 0 [06:56:35]CheckOFDResponse [06:56:35]1017 (14) - 77093643461234 [06:56:35]1041 (16) - 0000000000875009 [06:56:35]1040 (4) - 76818 [06:56:35]1012 (4) - 22.06.2024 00:35 [06:56:35]1206 (1) - 0 [06:56:35]OFD Sender: Remove packet 76818 [06:56:35]ProducePacketName [06:56:35]name=ofd_packets/00076818 [06:56:35]NVStorageDeleteData [06:56:35]Write to MH i2c: 01 00 00 A7 0B B2 [06:56:35]Write i2c OK [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: 01 [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: 01 07 00 [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: 01 07 00 A7 0B 00 00 00 00 00 FF 0C C4 [06:56:35]RasterBufferAndPrint [06:56:35]line [06:56:35]line [06:56:35]line [06:56:35]line [06:56:35]line [06:56:35]written 0, free lines is 3335 [06:56:35]MH_Cut [06:56:35]Write to MH i2c: D1 01 00 AE 0B 01 8B [06:56:35]Write i2c OK [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: D1 [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: D1 01 00 [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: D1 01 00 AE 0B 00 8A [06:56:35]Write to MH i2c: 01 00 00 AF 0B BA [06:56:35]Write i2c OK [06:56:35]MH_I2C_Read... [06:56:36]OFD Sender: No OFD packet to send [06:56:36]*** Cut start [06:56:36]*** Partial cut [06:56:36]*** CUTSNS_PIN = 1 [06:56:36]*** CUTSNS_PIN = 0 [06:56:36]*** Brake cut motor [06:56:36]Read from MH i2c: 01 [06:56:36]MH_I2C_Read... [06:56:36]*** Stop cut motor [06:56:36]*** Cut end [06:56:36]Read from MH i2c: 01 07 00 [06:56:36]MH_I2C_Read... [06:56:36]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 FF 0F CF [06:56:36]process_action close_receipt done [06:56:36]requested_data is exist [06:56:36]produce_requested_data [06:56:36]requested_item fm.sn is exist - process it [06:56:36]wFMCommunicate request_size=4 [06:56:36]MH_SAM_APDU [06:56:36]CAPDU: 80 11 00 00 [06:56:36]Write to MH i2c: E2 08 00 B0 0B 80 11 00 00 00 00 00 00 35 [06:56:36]Write i2c OK [06:56:36]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 [06:56:37]MH_I2C_Read... [06:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:37]Read from MH i2c: E2 17 00 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 17 00 B0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 85 [06:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [06:56:37]wFMCommunicate OK [06:56:37]requested_item fd.num is exist - process it [06:56:37]SAM_PROTO_GetFieldsCounters [06:56:37]wFMCommunicate request_size=4 [06:56:37]MH_SAM_APDU [06:56:37]CAPDU: 80 13 00 00 [06:56:37]Write to MH i2c: E2 08 00 B1 0B 80 13 00 00 00 00 00 00 38 [06:56:37]Write i2c OK [06:56:37]MH_I2C_Read... [06:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:37]Read from MH i2c: E2 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 62 00 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 62 00 B1 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 12 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [06:56: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 12 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:37]wFMCommunicate OK [06:56:37]SAM_PROTO_GetFieldsCounters done [06:56:37]requested_item shift.num is exist - process it [06:56:37]requested_item shift.opened is exist - process it [06:56:37]req_shift_opened [06:56:37]FM_GetShiftState [06:56:37]SAM_PROTO_GetShiftState [06:56:37]wFMCommunicate request_size=4 [06:56:37]MH_SAM_APDU [06:56:37]CAPDU: 80 13 01 00 [06:56:37]Write to MH i2c: E2 08 00 B2 0B 80 13 01 00 00 00 00 00 3A [06:56:37]Write i2c OK [06:56:37]MH_I2C_Read... [06:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:37]Read from MH i2c: E2 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 0E 00 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 0E 00 B2 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 30 [06:56:37]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [06:56:37]wFMCommunicate OK [06:56:37]SAM_PROTO_GetShiftState done [06:56:37]FM_GetShiftState done [06:56:37]req_shift_opened done [06:56:37]requested_item shift.open_date is exist - process it [06:56:37]req_shift_open_date [06:56:37]req_shift_open_date done [06:56:37]produce_requested_data done [06:56:37]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76818,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [06:56:37]process_action_free close_receipt [06:56:37]json_value_free [06:56:37]json_value_free done [06:56:37]process_json_proto returns [06:56:37]Send response to host [06:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76818,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [06:56:37]free response buf [06:56:37]execute_script done [06:56:37]execute_script returns [06:56:37]free content buf [06:56:37]Sock 8.Close socket [06:56:37]Sock 8.Thread stoped [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [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: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: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: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: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]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:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:18]accept exits with 9 [07:14:18]New connection [07:14:18]New thread 3066850660 created [07:14:18]Thread 3066994020 joined [07:14:18]Waiting for new connection... [07:14:18] Sock 9.Parse request [07:14:18]Sock 9.Check first char [07:14:18]Sock 9.First char is OK [07:14:18]request: POST /json_proto HTTP/1.0 [07:14:18]Method: POST [07:14:18]URL: /json_proto [07:14:18]Method is POST - this is cgi request [07:14:18]url: /json_proto [07:14:18]query_string will be loaded in cgi processing [07:14:18]execute_cgi json_proto POST (null) [07:14:18]execute_cgi path=json_proto method=POST [07:14:18]POST find Content-Length [07:14:18]Host: 172.17.39.195:8080 [07:14:18]Content-Length: 1460 [07:14:18]Content-Type: application/json [07:14:18] [07:14:18]POST finish read [07:14:18]Found Content-Length = 1460 [07:14:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220904", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 512.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:18]execute_script... [07:14:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220904", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 512.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:18]POST & json_proto [07:14:18]process_json_proto [07:14:18]json parsed OK: [07:14:18]protocol is kg_v1.0 [07:14:18]action value=close_receipt [07:14:18]process_action close_receipt [07:14:18]cmd_close_receipt [07:14:18]MH_GetDate [07:14:18]Write to MH i2c: F0 00 00 B3 0B AD [07:14:18]Write i2c OK [07:14:18]MH_I2C_Read... [07:14:18]Read from MH i2c: F0 [07:14:18]MH_I2C_Read... [07:14:18]Read from MH i2c: F0 09 00 [07:14:18]MH_I2C_Read... [07:14:18]Read from MH i2c: F0 09 00 B3 0B 00 CD 79 76 66 99 81 91 64 E7 [07:14:18]GetLastDocTimeStamp 1719039395 [07:14:18]current date 1719040461 [07:14:18]FM_GetShiftState [07:14:18]SAM_PROTO_GetShiftState [07:14:19]wFMCommunicate request_size=4 [07:14:19]MH_SAM_APDU [07:14:19]CAPDU: 80 13 01 00 [07:14:19]Write to MH i2c: E2 08 00 B4 0B 80 13 01 00 00 00 00 00 3C [07:14:19]Write i2c OK [07:14:19]MH_I2C_Read... [07:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:19]Read from MH i2c: E2 [07:14:19]MH_I2C_Read... [07:14:19]Read from MH i2c: E2 0E 00 [07:14:19]MH_I2C_Read... [07:14:19]Read from MH i2c: E2 0E 00 B4 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 32 [07:14:19]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:14:19]wFMCommunicate OK [07:14:19]SAM_PROTO_GetShiftState done [07:14:19]FM_GetShiftState done [07:14:19]opened in 1719016435 [07:14:19]opened+sec_in_day 1719102835 [07:14:19]quantity*price = 22500 [07:14:19]sum+1 = 22501 [07:14:19]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8901086040008 Жид/ст ПН летняя 4,5л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4610080727818 Салфетки Pamperino kids 8шт 2.000 * 25.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 512.00 НСП 1% : 4.52 НДС 12% : 54.36 Наличными: 512.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 15 22.06.2024 07:14 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76819 ФПД: 196569329714707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071421&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76819&fm=196569329714707&tin=02508201610067®Number=0000000000095696&sum=51200 0 [07:14:20]StoreToDocumentArchive [07:14:20]shift 395 fd 76819 [07:14:20]save to /storage/0395/doc_00076819 [07:14:20]save last doc name /storage/0395/doc_00076819 to /storage/kkm_last_doc_name [07:14:20]save OK [07:14:20]Clear old archive folders... [07:14:20]ProcessDocumentItem done err = 0, tmpTLVsize=626 [07:14:20]tlvbuf is 008801E0 [07:14:20]SAM_PROTO_ClearQueue [07:14:20]wFMCommunicate request_size=4 [07:14:20]MH_SAM_APDU [07:14:20]CAPDU: 80 09 00 00 [07:14:20]Write to MH i2c: E2 08 00 C1 0B 80 09 00 00 00 00 00 00 3E [07:14:20]Write i2c OK [07:14:20]MH_I2C_Read... [07:14:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:20]Read from MH i2c: E2 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 03 00 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 03 00 C1 0B 00 90 00 40 [07:14:20]RAPDU: 90 00 [07:14:20]wFMCommunicate OK [07:14:20]SAM_PROTO_ClearQueue done [07:14:20]KKMCreateOFDPacket [07:14:20]OFDProtocolAddRootSTLVToBuf [07:14:20]FM_MakeSignedData [07:14:20]FM_MakeSignedData [07:14:20]SAM_PROTO_SignData [07:14:20]wFMCommunicate request_size=4 [07:14:20]MH_SAM_APDU [07:14:20]CAPDU: 80 0D 01 02 [07:14:20]Write to MH i2c: E2 08 00 C2 0B 80 0D 01 02 00 00 00 00 46 [07:14:20]Write i2c OK [07:14:20]MH_I2C_Read... [07:14:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:20]Read from MH i2c: E2 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 03 00 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 03 00 C2 0B 00 90 00 41 [07:14:20]RAPDU: 90 00 [07:14:20]wFMCommunicate OK [07:14:20]wFMCommunicate request_size=255 [07:14:20]MH_SAM_APDU [07:14:20]CAPDU: 80 0D 02 02 FA 03 00 72 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 [07:14:20]Write to MH i2c: E2 02 01 C3 0B 80 0D 02 02 FA 00 03 00 72 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 00 00 0E [07:14:20]Write i2c OK [07:14:20]MH_I2C_Read... [07:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:20]Read from MH i2c: E2 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 03 00 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 03 00 C3 0B 00 90 00 42 [07:14:20]RAPDU: 90 00 [07:14:20]wFMCommunicate OK [07:14:20]wFMCommunicate request_size=255 [07:14:20]MH_SAM_APDU [07:14:20]CAPDU: 80 0D 02 02 FA 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 [07:14:20]Write to MH i2c: E2 02 01 C4 0B 80 0D 02 02 FA 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 00 00 02 [07:14:20]Write i2c OK [07:14:20]MH_I2C_Read... [07:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:20]Read from MH i2c: E2 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 03 00 [07:14:20]MH_I2C_Read... [07:14:20]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [07:14:20]RAPDU: 90 00 [07:14:20]wFMCommunicate OK [07:14:20]wFMCommunicate request_size=135 [07:14:20]MH_SAM_APDU [07:14:20]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 3C 15 00 00 00 00 07 04 06 00 00 C8 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 CD 79 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 13 2C 01 00 35 04 06 00 B2 C7 5D 12 46 13 [07:14:20]Write to MH i2c: E2 8A 00 C5 0B 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 3C 15 00 00 00 00 07 04 06 00 00 C8 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 CD 79 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 13 2C 01 00 35 04 06 00 B2 C7 5D 12 46 13 00 00 E8 [07:14:20]Write i2c OK [07:14:20]MH_I2C_Read... [07:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:21]Read from MH i2c: E2 [07:14:21]MH_I2C_Read... [07:14:21]Read from MH i2c: E2 03 00 [07:14:21]MH_I2C_Read... [07:14:21]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [07:14:21]RAPDU: 90 00 [07:14:21]wFMCommunicate OK [07:14:21]wFMCommunicate request_size=4 [07:14:21]MH_SAM_APDU [07:14:21]CAPDU: 80 0D 03 02 [07:14:21]Write to MH i2c: E2 08 00 C6 0B 80 0D 03 02 00 00 00 00 4C [07:14:21]Write i2c OK [07:14:21]MH_I2C_Read... [07:14:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:21]Read from MH i2c: E2 [07:14:21]MH_I2C_Read... [07:14:21]Read from MH i2c: E2 0B 00 [07:14:21]MH_I2C_Read... [07:14:21]Read from MH i2c: E2 0B 00 C6 0B 00 21 AE 8C 94 53 6F 88 5C 90 00 E2 [07:14:21]RAPDU: 21 AE 8C 94 53 6F 88 5C 90 00 [07:14:21]wFMCommunicate OK [07:14:21]SAM_PROTO_SignData done [07:14:21]FM_MakeSignedData done [07:14:21]CreateOFDProtocolMessage [07:14:21]wFMCommunicate request_size=4 [07:14:21]MH_SAM_APDU [07:14:21]CAPDU: 80 11 00 00 [07:14:21]Write to MH i2c: E2 08 00 C7 0B 80 11 00 00 00 00 00 00 4C [07:14:21]Write i2c OK [07:14:21]MH_I2C_Read... [07:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:21]Read from MH i2c: E2 [07:14:21]MH_I2C_Read... [07:14:21]Read from MH i2c: E2 17 00 [07:14:21]MH_I2C_Read... [07:14:21]Read from MH i2c: E2 17 00 C7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9C [07:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:14:21]wFMCommunicate OK [07:14:21]CreateOFDProtocolMessage done [07:14:21]OFDSenderStorePacket 76819 [07:14:21]StoreOFDPacket docnum=76819 [07:14:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 86 02 00 00 71 01 7E 02 E2 D8 5A 03 01 00 03 00 72 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 15 00 00 00 00 07 04 06 00 00 C8 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 CD 79 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 13 2C 01 00 35 04 06 00 B2 C7 5D 12 46 13 21 AE 8C 94 53 6F 88 5C [07:14:21]CheckFolder [07:14:21]dirname=/storage/ofd_packets [07:14:21]CheckFolder done [07:14:21]ProducePacketName [07:14:21]name=ofd_packets/00076819 [07:14:21]NVStorageSaveData ofd_packets/00076819 [07:14:21]File name is /storage/ofd_packets/00076819 [07:14:21]Write 676 bytes [07:14:21]NVStorageSaveData done [07:14:21]OFDSenderStorePacket done [07:14:21]KKMCreateOFDPacket done [07:14:21]NVStorageSaveData kkm_last_timestamp [07:14:21]File name is /storage/kkm_last_timestamp [07:14:21]Write 4 bytes [07:14:21]NVStorageSaveData done [07:14:21]ExternCall_PrintAddStr [07:14:21]wPrintStart [07:14:21]Write to MH i2c: 01 00 00 C8 0B D3 [07:14:21]Write i2c OK [07:14:21]MH_I2C_Read... [07:14:21]Read from MH i2c: 01 [07:14:21]MH_I2C_Read... [07:14:21]Read from MH i2c: 01 07 00 [07:14:21]MH_I2C_Read... [07:14:21]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 FF 0F E8 [07:14:21]RasterBufferAndPrint [07:14:21]line Счет N : (3)220904 [07:14:21]line ИНН: 02508201610067 [07:14:21]line Контрольно-Кассовый Чек [07:14:21]line ПРОДАЖА [07:14:21]line Товар: 4670003195728 [07:14:21]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [07:14:21]line 1.000 * 225.00 [07:14:21]line = 225.00 [07:14:21]line НДС 12% НСП 1% [07:14:21]line > о реализуемом товаре [07:14:21]line Товар: 8901086040008 [07:14:21]line Жид/ст ПН летняя 4,5л [07:14:21]line 1.000 * 170.00 [07:14:21]line = 170.00 [07:14:21]line НДС 12% НСП 1% [07:14:21]line > о реализуемом товаре [07:14:21]line Товар: 6931280300549 [07:14:21]line Зажигалка Cricket ПН пьезо [07:14:21]line 1.000 * 67.00 [07:14:21]line = 67.00 [07:14:21]line НДС 12% НСП 1% [07:14:21]line > о реализуемом товаре [07:14:21]line Товар: 4610080727818 [07:14:21]line Салфетки Pamperino kids 8шт [07:14:21]line 2.000 * 25.00 [07:14:21]line = 50.00 [07:14:21]line НДС 12% НСП 1% [07:14:21]line > о реализуемом товаре [07:14:21]line ИТОГО: 512.00 [07:14:21]line НСП 1% : 4.52 [07:14:21]line НДС 12% : 54.36 [07:14:21]line Наличными: 512.00 [07:14:21]line Безнал.: 0.00 [07:14:21]line Место: АЗС № 144 "Партнер Нефть" [07:14:21]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [07:14:21]line СНО: Общий режим [07:14:21]line Чек 15 22.06.2024 07:14 [07:14:21]line Смена: 395 ФФД: 1.0 [07:14:21]line ЗНМ: 0300000170 [07:14:21]line РНМ: 0000000000095696 [07:14:21]line Версия ККМ: 001 [07:14:21]line ФМ: 0000000000875009 [07:14:21]line ФД: 76819 [07:14:21]line ФПД: 196569329714707 [07:14:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071421&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76819&fm=196569329714707&tin=02508201610067®Number=0000000000095696&sum=51200 [07:14:21]OFD Sender: Processing packet 76819 [packets to send 351, broken 350] [07:14:21]ProducePacketName [07:14:21]name=ofd_packets/00076819 [07:14:21]OFD Sender: To server: pG, [07:14:21]CommunicateWithHost lk.salyk.kg:30040 [07:14:21]ConnectInit lk.salyk.kg [07:14:21]line 0 [07:14:21]written 0, free lines is 4095 [07:14:22]Write to MH i2c: 01 00 00 03 0C 0F [07:14:22]Write i2c OK [07:14:22]MH_I2C_Read... [07:14:22]Read from MH i2c: 01 [07:14:22]MH_I2C_Read... [07:14:22]Read from MH i2c: 01 07 00 [07:14:22]MH_I2C_Read... [07:14:22]Read from MH i2c: 01 07 00 03 0C 00 00 00 00 00 F8 0B 19 [07:14:22]RasterBufferAndPrint [07:14:22]line [07:14:22]line [07:14:22]line [07:14:22]line [07:14:22]line [07:14:22]written 0, free lines is 3069 [07:14:22]MH_Cut [07:14:22]Write to MH i2c: D1 01 00 0A 0C 01 E8 [07:14:22]Write i2c OK [07:14:22]MH_I2C_Read... [07:14:22]Read from MH i2c: D1 [07:14:22]MH_I2C_Read... [07:14:22]Read from MH i2c: D1 01 00 [07:14:22]MH_I2C_Read... [07:14:22]Read from MH i2c: D1 01 00 0A 0C 00 E7 [07:14:22]Write to MH i2c: 01 00 00 0B 0C 17 [07:14:22]Write i2c OK [07:14:22]MH_I2C_Read... [07:14:22]Connected sock=11 [07:14:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 86 02 00 00 71 01 7E 02 E2 D8 5A 03 01 00 03 00 72 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 C8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 15 00 00 00 00 07 04 06 00 00 C8 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 CD 79 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 13 2C 01 00 35 04 06 00 B2 C7 5D 12 46 13 21 AE 8C 94 53 6F 88 5C [07:14:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 CA D4 47 00 5E 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 13 2C 01 00 F4 03 04 00 69 20 76 66 B6 04 01 00 00 45 89 99 FF D0 46 DD 1B [07:14:22]CommunicateWithHost err = 0 [07:14:22]CheckOFDResponse [07:14:22]1017 (14) - 77093643461234 [07:14:22]1041 (16) - 0000000000875009 [07:14:22]1040 (4) - 76819 [07:14:22]1012 (4) - 22.06.2024 00:52 [07:14:22]1206 (1) - 0 [07:14:22]OFD Sender: Remove packet 76819 [07:14:22]ProducePacketName [07:14:22]name=ofd_packets/00076819 [07:14:22]NVStorageDeleteData [07:14:23]*** Cut start [07:14:23]*** Partial cut [07:14:23]*** CUTSNS_PIN = 1 [07:14:23]*** CUTSNS_PIN = 0 [07:14:23]OFD Sender: No OFD packet to send [07:14:23]*** Brake cut motor [07:14:23]Read from MH i2c: 01 [07:14:23]MH_I2C_Read... [07:14:23]*** Stop cut motor [07:14:23]*** Cut end [07:14:23]Read from MH i2c: 01 07 00 [07:14:23]MH_I2C_Read... [07:14:23]Read from MH i2c: 01 07 00 0B 0C 00 00 00 00 00 FF 0F 2C [07:14:23]process_action close_receipt done [07:14:23]requested_data is exist [07:14:23]produce_requested_data [07:14:23]requested_item fm.sn is exist - process it [07:14:23]wFMCommunicate request_size=4 [07:14:23]MH_SAM_APDU [07:14:23]CAPDU: 80 11 00 00 [07:14:23]Write to MH i2c: E2 08 00 0C 0C 80 11 00 00 00 00 00 00 92 [07:14:23]Write i2c OK [07:14:23]MH_I2C_Read... [07:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:23]Read from MH i2c: E2 [07:14:23]MH_I2C_Read... [07:14:23]Read from MH i2c: E2 17 00 [07:14:23]MH_I2C_Read... [07:14:23]Read from MH i2c: E2 17 00 0C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E2 [07:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:14:23]wFMCommunicate OK [07:14:23]requested_item fd.num is exist - process it [07:14:23]SAM_PROTO_GetFieldsCounters [07:14:23]wFMCommunicate request_size=4 [07:14:23]MH_SAM_APDU [07:14:23]CAPDU: 80 13 00 00 [07:14:23]Write to MH i2c: E2 08 00 0D 0C 80 13 00 00 00 00 00 00 95 [07:14:23]Write i2c OK [07:14:23]MH_I2C_Read... [07:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:23]Read from MH i2c: E2 [07:14:23]MH_I2C_Read... [07:14:23]Read from MH i2c: E2 62 00 [07:14:23]MH_I2C_Read... [07:14:23]Read from MH i2c: E2 62 00 0D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 13 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [07:14: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 13 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:14:23]wFMCommunicate OK [07:14:23]SAM_PROTO_GetFieldsCounters done [07:14:23]requested_item shift.num is exist - process it [07:14:23]requested_item shift.opened is exist - process it [07:14:23]req_shift_opened [07:14:23]FM_GetShiftState [07:14:23]SAM_PROTO_GetShiftState [07:14:23]wFMCommunicate request_size=4 [07:14:23]MH_SAM_APDU [07:14:23]CAPDU: 80 13 01 00 [07:14:23]Write to MH i2c: E2 08 00 0E 0C 80 13 01 00 00 00 00 00 97 [07:14:23]Write i2c OK [07:14:23]MH_I2C_Read... [07:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:23]Read from MH i2c: E2 [07:14:23]MH_I2C_Read... [07:14:23]Read from MH i2c: E2 0E 00 [07:14:23]MH_I2C_Read... [07:14:23]Read from MH i2c: E2 0E 00 0E 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 8D [07:14:24]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:14:24]wFMCommunicate OK [07:14:24]SAM_PROTO_GetShiftState done [07:14:24]FM_GetShiftState done [07:14:24]req_shift_opened done [07:14:24]requested_item shift.open_date is exist - process it [07:14:24]req_shift_open_date [07:14:24]req_shift_open_date done [07:14:24]produce_requested_data done [07:14:24]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76819,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [07:14:24]process_action_free close_receipt [07:14:24]json_value_free [07:14:24]json_value_free done [07:14:24]process_json_proto returns [07:14:24]Send response to host [07:14:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76819,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [07:14:24]free response buf [07:14:24]execute_script done [07:14:24]execute_script returns [07:14:24]free content buf [07:14:24]Sock 9.Close socket [07:14:24]Sock 9.Thread stoped [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:12]accept exits with 8 [07:15:12]New connection [07:15:12]New thread 3066994020 created [07:15:12]Thread 3066850660 joined [07:15:12]Waiting for new connection... [07:15:12] Sock 8.Parse request [07:15:12]Sock 8.Check first char [07:15:12]Sock 8.First char is OK [07:15:12]request: POST /json_proto HTTP/1.0 [07:15:12]Method: POST [07:15:12]URL: /json_proto [07:15:12]Method is POST - this is cgi request [07:15:12]url: /json_proto [07:15:12]query_string will be loaded in cgi processing [07:15:12]execute_cgi json_proto POST (null) [07:15:12]execute_cgi path=json_proto method=POST [07:15:12]POST find Content-Length [07:15:12]Host: 172.17.39.195:8080 [07:15:12]Content-Length: 585 [07:15:12]Content-Type: application/json [07:15:12] [07:15:12]POST finish read [07:15:12]Found Content-Length = 585 [07:15:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220905", "tax_sys" : 0, "items" : [ { "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:12]execute_script... [07:15:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220905", "tax_sys" : 0, "items" : [ { "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:12]POST & json_proto [07:15:12]process_json_proto [07:15:12]json parsed OK: [07:15:12]protocol is kg_v1.0 [07:15:12]action value=close_receipt [07:15:12]process_action close_receipt [07:15:12]cmd_close_receipt [07:15:12]MH_GetDate [07:15:12]Write to MH i2c: F0 00 00 0F 0C 0A [07:15:12]Write i2c OK [07:15:12]MH_I2C_Read... [07:15:12]Read from MH i2c: F0 [07:15:12]MH_I2C_Read... [07:15:12]Read from MH i2c: F0 09 00 [07:15:12]MH_I2C_Read... [07:15:12]Read from MH i2c: F0 09 00 0F 0C 00 02 7A 76 66 99 81 91 64 7A [07:15:12]GetLastDocTimeStamp 1719040461 [07:15:12]current date 1719040514 [07:15:12]FM_GetShiftState [07:15:12]SAM_PROTO_GetShiftState [07:15:12]wFMCommunicate request_size=4 [07:15:12]MH_SAM_APDU [07:15:12]CAPDU: 80 13 01 00 [07:15:12]Write to MH i2c: E2 08 00 10 0C 80 13 01 00 00 00 00 00 99 [07:15:12]Write i2c OK [07:15:12]MH_I2C_Read... [07:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:12]Read from MH i2c: E2 [07:15:12]MH_I2C_Read... [07:15:12]Read from MH i2c: E2 0E 00 [07:15:12]MH_I2C_Read... [07:15:12]Read from MH i2c: E2 0E 00 10 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 8F [07:15:12]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:15:12]wFMCommunicate OK [07:15:12]SAM_PROTO_GetShiftState done [07:15:12]FM_GetShiftState done [07:15:12]opened in 1719016435 [07:15:12]opened+sec_in_day 1719102835 [07:15:12]quantity*price = 4500 [07:15:12]sum+1 = 4501 [07:15:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 16 22.06.2024 07:15 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76820 ФПД: 191059166619457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071514&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76820&fm=191059166619457&tin=02508201610067®Number=0000000000095696&sum=4500 0 [07:15:13]StoreToDocumentArchive [07:15:13]shift 395 fd 76820 [07:15:13]save to /storage/0395/doc_00076820 [07:15:13]save last doc name /storage/0395/doc_00076820 to /storage/kkm_last_doc_name [07:15:13]save OK [07:15:13]Clear old archive folders... [07:15:13]ProcessDocumentItem done err = 0, tmpTLVsize=260 [07:15:13]tlvbuf is 00879E80 [07:15:13]SAM_PROTO_ClearQueue [07:15:13]wFMCommunicate request_size=4 [07:15:13]MH_SAM_APDU [07:15:13]CAPDU: 80 09 00 00 [07:15:13]Write to MH i2c: E2 08 00 1D 0C 80 09 00 00 00 00 00 00 9B [07:15:13]Write i2c OK [07:15:13]MH_I2C_Read... [07:15:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:13]Read from MH i2c: E2 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 03 00 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [07:15:13]RAPDU: 90 00 [07:15:13]wFMCommunicate OK [07:15:13]SAM_PROTO_ClearQueue done [07:15:13]KKMCreateOFDPacket [07:15:13]OFDProtocolAddRootSTLVToBuf [07:15:13]FM_MakeSignedData [07:15:13]FM_MakeSignedData [07:15:13]SAM_PROTO_SignData [07:15:13]wFMCommunicate request_size=4 [07:15:13]MH_SAM_APDU [07:15:13]CAPDU: 80 0D 01 02 [07:15:13]Write to MH i2c: E2 08 00 1E 0C 80 0D 01 02 00 00 00 00 A3 [07:15:13]Write i2c OK [07:15:13]MH_I2C_Read... [07:15:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:13]Read from MH i2c: E2 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 03 00 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [07:15:13]RAPDU: 90 00 [07:15:13]wFMCommunicate OK [07:15:13]wFMCommunicate request_size=255 [07:15:13]MH_SAM_APDU [07:15:13]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 02 7A 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 [07:15:13]Write to MH i2c: E2 02 01 1F 0C 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 02 7A 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 00 00 17 [07:15:13]Write i2c OK [07:15:13]MH_I2C_Read... [07:15:13]OFD Sender: No OFD packet to send [07:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:13]Read from MH i2c: E2 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 03 00 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 03 00 1F 0C 00 90 00 9F [07:15:13]RAPDU: 90 00 [07:15:13]wFMCommunicate OK [07:15:13]wFMCommunicate request_size=19 [07:15:13]MH_SAM_APDU [07:15:13]CAPDU: 80 0D 02 02 0E 14 2C 01 00 35 04 06 00 AD C4 6D C1 E7 41 [07:15:13]Write to MH i2c: E2 16 00 20 0C 80 0D 02 02 0E 00 14 2C 01 00 35 04 06 00 AD C4 6D C1 E7 41 00 00 09 [07:15:13]Write i2c OK [07:15:13]MH_I2C_Read... [07:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:13]Read from MH i2c: E2 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 03 00 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [07:15:13]RAPDU: 90 00 [07:15:13]wFMCommunicate OK [07:15:13]wFMCommunicate request_size=4 [07:15:13]MH_SAM_APDU [07:15:13]CAPDU: 80 0D 03 02 [07:15:13]Write to MH i2c: E2 08 00 21 0C 80 0D 03 02 00 00 00 00 A8 [07:15:13]Write i2c OK [07:15:13]MH_I2C_Read... [07:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:13]Read from MH i2c: E2 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 0B 00 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 0B 00 21 0C 00 B7 9E E9 2A 45 99 55 A1 90 00 E5 [07:15:13]RAPDU: B7 9E E9 2A 45 99 55 A1 90 00 [07:15:13]wFMCommunicate OK [07:15:13]SAM_PROTO_SignData done [07:15:13]FM_MakeSignedData done [07:15:13]CreateOFDProtocolMessage [07:15:13]wFMCommunicate request_size=4 [07:15:13]MH_SAM_APDU [07:15:13]CAPDU: 80 11 00 00 [07:15:13]Write to MH i2c: E2 08 00 22 0C 80 11 00 00 00 00 00 00 A8 [07:15:13]Write i2c OK [07:15:13]MH_I2C_Read... [07:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:13]Read from MH i2c: E2 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 17 00 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: E2 17 00 22 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F8 [07:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:15:13]wFMCommunicate OK [07:15:13]CreateOFDProtocolMessage done [07:15:13]OFDSenderStorePacket 76820 [07:15:13]StoreOFDPacket docnum=76820 [07:15:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 18 01 00 00 41 48 10 01 DA 21 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 02 7A 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 14 2C 01 00 35 04 06 00 AD C4 6D C1 E7 41 B7 9E E9 2A 45 99 55 A1 [07:15:13]CheckFolder [07:15:13]dirname=/storage/ofd_packets [07:15:13]CheckFolder done [07:15:13]ProducePacketName [07:15:13]name=ofd_packets/00076820 [07:15:13]NVStorageSaveData ofd_packets/00076820 [07:15:13]File name is /storage/ofd_packets/00076820 [07:15:13]Write 310 bytes [07:15:13]NVStorageSaveData done [07:15:13]OFDSenderStorePacket done [07:15:13]KKMCreateOFDPacket done [07:15:13]NVStorageSaveData kkm_last_timestamp [07:15:13]File name is /storage/kkm_last_timestamp [07:15:13]Write 4 bytes [07:15:13]NVStorageSaveData done [07:15:13]ExternCall_PrintAddStr [07:15:13]wPrintStart [07:15:13]Write to MH i2c: 01 00 00 23 0C 2F [07:15:13]Write i2c OK [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: 01 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: 01 07 00 [07:15:13]MH_I2C_Read... [07:15:13]Read from MH i2c: 01 07 00 23 0C 00 00 00 00 00 FF 0F 44 [07:15:13]RasterBufferAndPrint [07:15:13]line Счет N : (3)220905 [07:15:13]line ИНН: 02508201610067 [07:15:13]line Контрольно-Кассовый Чек [07:15:13]line ПРОДАЖА [07:15:13]line Товар: 50173617 [07:15:13]line Жев Orbit Eucalyptus [07:15:13]line 1.000 * 45.00 [07:15:13]line = 45.00 [07:15:13]line НДС 12% НСП 1% [07:15:13]line > о реализуемом товаре [07:15:13]line ИТОГО: 45.00 [07:15:13]line НСП 1% : 0.40 [07:15:13]line НДС 12% : 4.78 [07:15:13]line Наличными: 45.00 [07:15:13]line Безнал.: 0.00 [07:15:13]line Место: АЗС № 144 "Партнер Нефть" [07:15:13]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [07:15:13]line СНО: Общий режим [07:15:13]line Чек 16 22.06.2024 07:15 [07:15:13]line Смена: 395 ФФД: 1.0 [07:15:13]line ЗНМ: 0300000170 [07:15:13]line РНМ: 0000000000095696 [07:15:13]line Версия ККМ: 001 [07:15:13]line ФМ: 0000000000875009 [07:15:13]line ФД: 76820 [07:15:13]line ФПД: 191059166619457 [07:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071514&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76820&fm=191059166619457&tin=02508201610067®Number=0000000000095696&sum=4500 [07:15:14]line 0 [07:15:14]OFD Sender: Processing packet 76820 [packets to send 351, broken 350] [07:15:14]ProducePacketName [07:15:14]name=ofd_packets/00076820 [07:15:14]OFD Sender: To server: pG, [07:15:14]CommunicateWithHost lk.salyk.kg:30040 [07:15:14]ConnectInit lk.salyk.kg [07:15:14]written 0, free lines is 4095 [07:15:14]Connected sock=10 [07:15:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 18 01 00 00 41 48 10 01 DA 21 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 02 7A 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 14 2C 01 00 35 04 06 00 AD C4 6D C1 E7 41 B7 9E E9 2A 45 99 55 A1 [07:15:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 A4 92 47 00 8B 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 14 2C 01 00 F4 03 04 00 9D 20 76 66 B6 04 01 00 00 35 4E 43 BF 6F DF 7E 95 [07:15:14]CommunicateWithHost err = 0 [07:15:14]CheckOFDResponse [07:15:14]1017 (14) - 77093643461234 [07:15:14]1041 (16) - 0000000000875009 [07:15:14]1040 (4) - 76820 [07:15:14]1012 (4) - 22.06.2024 00:53 [07:15:14]1206 (1) - 0 [07:15:14]OFD Sender: Remove packet 76820 [07:15:14]ProducePacketName [07:15:14]name=ofd_packets/00076820 [07:15:14]NVStorageDeleteData [07:15:14]Write to MH i2c: 01 00 00 4B 0C 57 [07:15:14]Write i2c OK [07:15:14]MH_I2C_Read... [07:15:14]Read from MH i2c: 01 [07:15:14]MH_I2C_Read... [07:15:14]Read from MH i2c: 01 07 00 [07:15:14]MH_I2C_Read... [07:15:14]Read from MH i2c: 01 07 00 4B 0C 00 00 00 00 00 F8 0C 62 [07:15:14]RasterBufferAndPrint [07:15:14]line [07:15:14]line [07:15:14]line [07:15:14]line [07:15:14]line [07:15:14]written 0, free lines is 3327 [07:15:14]MH_Cut [07:15:14]Write to MH i2c: D1 01 00 52 0C 01 30 [07:15:14]Write i2c OK [07:15:14]MH_I2C_Read... [07:15:14]Read from MH i2c: D1 [07:15:14]MH_I2C_Read... [07:15:14]Read from MH i2c: D1 01 00 [07:15:14]MH_I2C_Read... [07:15:14]Read from MH i2c: D1 01 00 52 0C 00 2F [07:15:14]Write to MH i2c: 01 00 00 53 0C 5F [07:15:14]Write i2c OK [07:15:14]MH_I2C_Read... [07:15:14]OFD Sender: No OFD packet to send [07:15:15]*** Cut start [07:15:15]*** Partial cut [07:15:15]*** CUTSNS_PIN = 1 [07:15:15]*** CUTSNS_PIN = 0 [07:15:15]*** Brake cut motor [07:15:15]Read from MH i2c: 01 [07:15:15]MH_I2C_Read... [07:15:15]*** Stop cut motor [07:15:15]*** Cut end [07:15:15]Read from MH i2c: 01 07 00 [07:15:15]MH_I2C_Read... [07:15:15]Read from MH i2c: 01 07 00 53 0C 00 00 00 00 00 FF 0F 74 [07:15:15]process_action close_receipt done [07:15:15]requested_data is exist [07:15:15]produce_requested_data [07:15:15]requested_item fm.sn is exist - process it [07:15:15]wFMCommunicate request_size=4 [07:15:15]MH_SAM_APDU [07:15:15]CAPDU: 80 11 00 00 [07:15:15]Write to MH i2c: E2 08 00 54 0C 80 11 00 00 00 00 00 00 DA [07:15:15]Write i2c OK [07:15:15]MH_I2C_Read... [07:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:15]Read from MH i2c: E2 [07:15:15]MH_I2C_Read... [07:15:15]Read from MH i2c: E2 17 00 [07:15:15]MH_I2C_Read... [07:15:15]Read from MH i2c: E2 17 00 54 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2A [07:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:15:15]wFMCommunicate OK [07:15:15]requested_item fd.num is exist - process it [07:15:15]SAM_PROTO_GetFieldsCounters [07:15:15]wFMCommunicate request_size=4 [07:15:15]MH_SAM_APDU [07:15:15]CAPDU: 80 13 00 00 [07:15:15]Write to MH i2c: E2 08 00 55 0C 80 13 00 00 00 00 00 00 DD [07:15:15]Write i2c OK [07:15:15]MH_I2C_Read... [07:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:16]Read from MH i2c: E2 [07:15:16]MH_I2C_Read... [07:15:16]Read from MH i2c: E2 62 00 [07:15:16]MH_I2C_Read... [07:15:16]Read from MH i2c: E2 62 00 55 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 14 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [07:15: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 14 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:15:16]wFMCommunicate OK [07:15:16]SAM_PROTO_GetFieldsCounters done [07:15:16]requested_item shift.num is exist - process it [07:15:16]requested_item shift.opened is exist - process it [07:15:16]req_shift_opened [07:15:16]FM_GetShiftState [07:15:16]SAM_PROTO_GetShiftState [07:15:16]wFMCommunicate request_size=4 [07:15:16]MH_SAM_APDU [07:15:16]CAPDU: 80 13 01 00 [07:15:16]Write to MH i2c: E2 08 00 56 0C 80 13 01 00 00 00 00 00 DF [07:15:16]Write i2c OK [07:15:16]MH_I2C_Read... [07:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:16]Read from MH i2c: E2 [07:15:16]MH_I2C_Read... [07:15:16]Read from MH i2c: E2 0E 00 [07:15:16]MH_I2C_Read... [07:15:16]Read from MH i2c: E2 0E 00 56 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 D5 [07:15:16]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:15:16]wFMCommunicate OK [07:15:16]SAM_PROTO_GetShiftState done [07:15:16]FM_GetShiftState done [07:15:16]req_shift_opened done [07:15:16]requested_item shift.open_date is exist - process it [07:15:16]req_shift_open_date [07:15:16]req_shift_open_date done [07:15:16]produce_requested_data done [07:15:16]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76820,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [07:15:16]process_action_free close_receipt [07:15:16]json_value_free [07:15:16]json_value_free done [07:15:16]process_json_proto returns [07:15:16]Send response to host [07:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76820,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [07:15:16]free response buf [07:15:16]execute_script done [07:15:16]execute_script returns [07:15:16]free content buf [07:15:16]Sock 8.Close socket [07:15:16]Sock 8.Thread stoped [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:31]accept exits with 9 [07:19:31]New connection [07:19:31]New thread 3066850660 created [07:19:31]Thread 3066994020 joined [07:19:31]Waiting for new connection... [07:19:31] Sock 9.Parse request [07:19:31]Sock 9.Check first char [07:19:31]Sock 9.First char is OK [07:19:31]request: POST /json_proto HTTP/1.0 [07:19:31]Method: POST [07:19:31]URL: /json_proto [07:19:31]Method is POST - this is cgi request [07:19:31]url: /json_proto [07:19:31]query_string will be loaded in cgi processing [07:19:31]execute_cgi json_proto POST (null) [07:19:31]execute_cgi path=json_proto method=POST [07:19:31]POST find Content-Length [07:19:31]Host: 172.17.39.195:8080 [07:19:31]Content-Length: 678 [07:19:31]Content-Type: application/json [07:19:31] [07:19:31]POST finish read [07:19:31]Found Content-Length = 678 [07:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:19:31]execute_script... [07:19: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)1694265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:19:31]POST & json_proto [07:19:31]process_json_proto [07:19:31]json parsed OK: [07:19:31]protocol is kg_v1.0 [07:19:31]action value=close_receipt [07:19:31]process_action close_receipt [07:19:31]cmd_close_receipt [07:19:31]MH_GetDate [07:19:31]Write to MH i2c: F0 00 00 57 0C 52 [07:19:31]Write i2c OK [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: F0 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: F0 09 00 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: F0 09 00 57 0C 00 05 7B 76 66 99 81 91 64 C6 [07:19:31]GetLastDocTimeStamp 1719040514 [07:19:31]current date 1719040773 [07:19:31]FM_GetShiftState [07:19:31]SAM_PROTO_GetShiftState [07:19:31]wFMCommunicate request_size=4 [07:19:31]MH_SAM_APDU [07:19:31]CAPDU: 80 13 01 00 [07:19:31]Write to MH i2c: E2 08 00 58 0C 80 13 01 00 00 00 00 00 E1 [07:19:31]Write i2c OK [07:19:31]MH_I2C_Read... [07:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:31]Read from MH i2c: E2 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: E2 0E 00 [07:19:31]MH_I2C_Read... [07:19:31]Read from MH i2c: E2 0E 00 58 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 D7 [07:19:31]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:19:31]wFMCommunicate OK [07:19:31]SAM_PROTO_GetShiftState done [07:19:31]FM_GetShiftState done [07:19:31]opened in 1719016435 [07:19:31]opened+sec_in_day 1719102835 [07:19:31]quantity*price = 50065 [07:19:31]sum+1 = 50067 [07:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 17 22.06.2024 07:19 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76821 ФПД: 241077050283182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071933&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76821&fm=241077050283182&tin=02508201610067®Number=0000000000095696&sum=50000 [07:19:32]StoreToDocumentArchive [07:19:32]shift 395 fd 76821 [07:19:32]save to /storage/0395/doc_00076821 [07:19:32]save last doc name /storage/0395/doc_00076821 to /storage/kkm_last_doc_name [07:19:32]save OK [07:19:32]Clear old archive folders... [07:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:19:32]tlvbuf is 008925D0 [07:19:32]SAM_PROTO_ClearQueue [07:19:32]wFMCommunicate request_size=4 [07:19:32]MH_SAM_APDU [07:19:32]CAPDU: 80 09 00 00 [07:19:32]Write to MH i2c: E2 08 00 65 0C 80 09 00 00 00 00 00 00 E3 [07:19:32]Write i2c OK [07:19:32]MH_I2C_Read... [07:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:32]Read from MH i2c: E2 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 03 00 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [07:19:32]RAPDU: 90 00 [07:19:32]wFMCommunicate OK [07:19:32]SAM_PROTO_ClearQueue done [07:19:32]KKMCreateOFDPacket [07:19:32]OFDProtocolAddRootSTLVToBuf [07:19:32]FM_MakeSignedData [07:19:32]FM_MakeSignedData [07:19:32]SAM_PROTO_SignData [07:19:32]wFMCommunicate request_size=4 [07:19:32]MH_SAM_APDU [07:19:32]CAPDU: 80 0D 01 02 [07:19:32]Write to MH i2c: E2 08 00 66 0C 80 0D 01 02 00 00 00 00 EB [07:19:32]Write i2c OK [07:19:32]MH_I2C_Read... [07:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:32]Read from MH i2c: E2 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 03 00 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 03 00 66 0C 00 90 00 E6 [07:19:32]RAPDU: 90 00 [07:19:32]wFMCommunicate OK [07:19:32]wFMCommunicate request_size=255 [07:19:32]MH_SAM_APDU [07:19:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 11 00 00 00 F4 03 04 00 05 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 15 2C 01 00 35 04 06 00 DB [07:19:32]Write to MH i2c: E2 02 01 67 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 11 00 00 00 F4 03 04 00 05 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 15 2C 01 00 35 04 06 00 DB 00 00 BC [07:19:32]Write i2c OK [07:19:32]MH_I2C_Read... [07:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:32]Read from MH i2c: E2 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 03 00 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 03 00 67 0C 00 90 00 E7 [07:19:32]RAPDU: 90 00 [07:19:32]wFMCommunicate OK [07:19:32]wFMCommunicate request_size=10 [07:19:32]MH_SAM_APDU [07:19:32]CAPDU: 80 0D 02 02 05 42 1F F2 14 AE [07:19:32]Write to MH i2c: E2 0D 00 68 0C 80 0D 02 02 05 00 42 1F F2 14 AE 00 00 0D [07:19:32]Write i2c OK [07:19:32]MH_I2C_Read... [07:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:32]Read from MH i2c: E2 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 03 00 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 03 00 68 0C 00 90 00 E8 [07:19:32]RAPDU: 90 00 [07:19:32]wFMCommunicate OK [07:19:32]wFMCommunicate request_size=4 [07:19:32]MH_SAM_APDU [07:19:32]CAPDU: 80 0D 03 02 [07:19:32]Write to MH i2c: E2 08 00 69 0C 80 0D 03 02 00 00 00 00 F0 [07:19:32]Write i2c OK [07:19:32]MH_I2C_Read... [07:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:32]Read from MH i2c: E2 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 0B 00 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 0B 00 69 0C 00 20 A5 D5 71 24 8E E6 F8 90 00 8C [07:19:32]RAPDU: 20 A5 D5 71 24 8E E6 F8 90 00 [07:19:32]wFMCommunicate OK [07:19:32]SAM_PROTO_SignData done [07:19:32]FM_MakeSignedData done [07:19:32]CreateOFDProtocolMessage [07:19:32]wFMCommunicate request_size=4 [07:19:32]MH_SAM_APDU [07:19:32]CAPDU: 80 11 00 00 [07:19:32]Write to MH i2c: E2 08 00 6A 0C 80 11 00 00 00 00 00 00 F0 [07:19:32]Write i2c OK [07:19:32]MH_I2C_Read... [07:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:32]Read from MH i2c: E2 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 17 00 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: E2 17 00 6A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 40 [07:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:19:32]wFMCommunicate OK [07:19:32]CreateOFDProtocolMessage done [07:19:32]OFDSenderStorePacket 76821 [07:19:32]StoreOFDPacket docnum=76821 [07:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 97 BC 07 01 BE 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 11 00 00 00 F4 03 04 00 05 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 15 2C 01 00 35 04 06 00 DB 42 1F F2 14 AE 20 A5 D5 71 24 8E E6 F8 [07:19:32]CheckFolder [07:19:32]dirname=/storage/ofd_packets [07:19:32]CheckFolder done [07:19:32]ProducePacketName [07:19:32]name=ofd_packets/00076821 [07:19:32]NVStorageSaveData ofd_packets/00076821 [07:19:32]File name is /storage/ofd_packets/00076821 [07:19:32]Write 301 bytes [07:19:32]NVStorageSaveData done [07:19:32]OFDSenderStorePacket done [07:19:32]KKMCreateOFDPacket done [07:19:32]NVStorageSaveData kkm_last_timestamp [07:19:32]File name is /storage/kkm_last_timestamp [07:19:32]Write 4 bytes [07:19:32]NVStorageSaveData done [07:19:32]ExternCall_PrintAddStr [07:19:32]wPrintStart [07:19:32]Write to MH i2c: 01 00 00 6B 0C 77 [07:19:32]Write i2c OK [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: 01 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: 01 07 00 [07:19:32]MH_I2C_Read... [07:19:32]Read from MH i2c: 01 07 00 6B 0C 00 00 00 00 00 FF 0F 8C [07:19:32]RasterBufferAndPrint [07:19:32]line Счет N : (1)1694265 [07:19:32]line ИНН: 02508201610067 [07:19:32]line Контрольно-Кассовый Чек [07:19:32]line ПРОДАЖА [07:19:32]line ТРК (МРК, ГНК) : 33 [07:19:32]line Товар: 2710124130 [07:19:32]line Аи-92-К-5 [07:19:32]line 7.540 * 66.40 [07:19:32]line = 500.66 [07:19:32]line НДС 12% НСП 1% [07:19:32]line > о реализуемом товаре [07:19:32]line ОКРУГЛЕНИЕ: -0.66 [07:19:32]line ИТОГО: 500.00 [07:19:32]line Внесено: 500.00 [07:19:32]line СДАЧА: 0.00 [07:19:32]line НСП 1% : 4.43 [07:19:32]line НДС 12% : 53.17 [07:19:32]line Наличными: 500.00 [07:19:32]line Безнал.: 0.00 [07:19:32]line Место: АЗС № 144 "Партнер Нефть" [07:19:32]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [07:19:32]line СНО: Общий режим [07:19:32]line Чек 17 22.06.2024 07:19 [07:19:32]line Смена: 395 ФФД: 1.0 [07:19:32]line ЗНМ: 0300000170 [07:19:32]line РНМ: 0000000000095696 [07:19:32]line Версия ККМ: 001 [07:19:32]line ФМ: 0000000000875009 [07:19:32]line ФД: 76821 [07:19:32]line ФПД: 241077050283182 [07:19:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T071933&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76821&fm=241077050283182&tin=02508201610067®Number=0000000000095696&sum=50000 [07:19:32]written 0, free lines is 4095 [07:19:32]OFD Sender: Processing packet 76821 [packets to send 351, broken 350] [07:19:32]ProducePacketName [07:19:32]name=ofd_packets/00076821 [07:19:32]OFD Sender: To server: pG, [07:19:32]CommunicateWithHost lk.salyk.kg:30040 [07:19:32]ConnectInit lk.salyk.kg [07:19:33]Write to MH i2c: 01 00 00 96 0C A2 [07:19:33]Write i2c OK [07:19:33]MH_I2C_Read... [07:19:33]Read from MH i2c: 01 [07:19:33]MH_I2C_Read... [07:19:33]Read from MH i2c: 01 07 00 [07:19:33]MH_I2C_Read... [07:19:33]Read from MH i2c: 01 07 00 96 0C 00 00 00 00 00 D0 0C 85 [07:19:33]RasterBufferAndPrint [07:19:33]line [07:19:33]line [07:19:33]line [07:19:33]line [07:19:33]line [07:19:33]written 0, free lines is 3284 [07:19:33]MH_Cut [07:19:33]Write to MH i2c: D1 01 00 9D 0C 01 7B [07:19:33]Write i2c OK [07:19:33]MH_I2C_Read... [07:19:33]Read from MH i2c: D1 [07:19:33]MH_I2C_Read... [07:19:33]Read from MH i2c: D1 01 00 [07:19:33]MH_I2C_Read... [07:19:33]Read from MH i2c: D1 01 00 9D 0C 00 7A [07:19:33]Write to MH i2c: 01 00 00 9E 0C AA [07:19:33]Write i2c OK [07:19:33]MH_I2C_Read... [07:19:34]*** Cut start [07:19:34]*** Partial cut [07:19:34]*** CUTSNS_PIN = 1 [07:19:34]*** CUTSNS_PIN = 0 [07:19:34]*** Brake cut motor [07:19:34]Read from MH i2c: 01 [07:19:34]MH_I2C_Read... [07:19:34]*** Stop cut motor [07:19:34]*** Cut end [07:19:34]Read from MH i2c: 01 07 00 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 FF 0F BF [07:19:34]process_action close_receipt done [07:19:34]requested_data is exist [07:19:34]produce_requested_data [07:19:34]requested_item fm.sn is exist - process it [07:19:34]wFMCommunicate request_size=4 [07:19:34]MH_SAM_APDU [07:19:34]CAPDU: 80 11 00 00 [07:19:34]Write to MH i2c: E2 08 00 9F 0C 80 11 00 00 00 00 00 00 25 [07:19:34]Write i2c OK [07:19:34]MH_I2C_Read... [07:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:34]Read from MH i2c: E2 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 17 00 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 17 00 9F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 75 [07:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:19:34]wFMCommunicate OK [07:19:34]requested_item fd.num is exist - process it [07:19:34]SAM_PROTO_GetFieldsCounters [07:19:34]wFMCommunicate request_size=4 [07:19:34]MH_SAM_APDU [07:19:34]CAPDU: 80 13 00 00 [07:19:34]Write to MH i2c: E2 08 00 A0 0C 80 13 00 00 00 00 00 00 28 [07:19:34]Write i2c OK [07:19:34]MH_I2C_Read... [07:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:34]Read from MH i2c: E2 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 62 00 [07:19:34]MH_I2C_Read... [07:19:34]Read from MH i2c: E2 62 00 A0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 15 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [07:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 15 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:34]wFMCommunicate OK [07:19:34]SAM_PROTO_GetFieldsCounters done [07:19:34]requested_item shift.num is exist - process it [07:19:34]requested_item shift.opened is exist - process it [07:19:34]req_shift_opened [07:19:34]FM_GetShiftState [07:19:34]SAM_PROTO_GetShiftState [07:19:34]wFMCommunicate request_size=4 [07:19:34]MH_SAM_APDU [07:19:34]CAPDU: 80 13 01 00 [07:19:34]Write to MH i2c: E2 08 00 A1 0C 80 13 01 00 00 00 00 00 2A [07:19:34]Write i2c OK [07:19:34]MH_I2C_Read... [07:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:35]Read from MH i2c: E2 [07:19:35]MH_I2C_Read... [07:19:35]Read from MH i2c: E2 0E 00 [07:19:35]MH_I2C_Read... [07:19:35]Read from MH i2c: E2 0E 00 A1 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 20 [07:19:35]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:19:35]wFMCommunicate OK [07:19:35]SAM_PROTO_GetShiftState done [07:19:35]FM_GetShiftState done [07:19:35]req_shift_opened done [07:19:35]requested_item shift.open_date is exist - process it [07:19:35]req_shift_open_date [07:19:35]req_shift_open_date done [07:19:35]produce_requested_data done [07:19:35]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76821,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [07:19:35]process_action_free close_receipt [07:19:35]json_value_free [07:19:35]json_value_free done [07:19:35]process_json_proto returns [07:19:35]Send response to host [07:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76821,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [07:19:35]free response buf [07:19:35]execute_script done [07:19:35]execute_script returns [07:19:35]free content buf [07:19:35]Sock 9.Close socket [07:19:35]Sock 9.Thread stoped [07:19:36]Connected sock=11 [07:19:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 97 BC 07 01 BE 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 11 00 00 00 F4 03 04 00 05 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 15 2C 01 00 35 04 06 00 DB 42 1F F2 14 AE 20 A5 D5 71 24 8E E6 F8 [07:19:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C2 D9 47 00 2B 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 35 30 30 39 10 04 04 00 15 2C 01 00 F4 03 04 00 A4 21 76 66 B6 04 01 00 00 CE 7A F4 0D E0 14 6A ED [07:19:37]CommunicateWithHost err = 0 [07:19:37]CheckOFDResponse [07:19:37]1017 (14) - 77093643461234 [07:19:37]1041 (16) - 0000000000875009 [07:19:37]1040 (4) - 76821 [07:19:37]1012 (4) - 22.06.2024 00:58 [07:19:37]1206 (1) - 0 [07:19:37]OFD Sender: Remove packet 76821 [07:19:37]ProducePacketName [07:19:37]name=ofd_packets/00076821 [07:19:37]NVStorageDeleteData [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:16]accept exits with 10 [07:22:16]New connection [07:22:16]New thread 3066994020 created [07:22:16]Thread 3066850660 joined [07:22:16]Waiting for new connection... [07:22:16] Sock 10.Parse request [07:22:16]Sock 10.Check first char [07:22:16]Sock 10.First char is OK [07:22:16]request: POST /json_proto HTTP/1.0 [07:22:16]Method: POST [07:22:16]URL: /json_proto [07:22:16]Method is POST - this is cgi request [07:22:16]url: /json_proto [07:22:16]query_string will be loaded in cgi processing [07:22:16]execute_cgi json_proto POST (null) [07:22:16]execute_cgi path=json_proto method=POST [07:22:16]POST find Content-Length [07:22:16]Host: 172.17.39.195:8080 [07:22:16]Content-Length: 844 [07:22:16]Content-Type: application/json [07:22:16] [07:22:16]POST finish read [07:22:16]Found Content-Length = 844 [07:22:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:16]execute_script... [07:22:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:16]POST & json_proto [07:22:16]process_json_proto [07:22:16]json parsed OK: [07:22:16]protocol is kg_v1.0 [07:22:16]action value=close_receipt [07:22:16]process_action close_receipt [07:22:16]cmd_close_receipt [07:22:16]MH_GetDate [07:22:16]Write to MH i2c: F0 00 00 A2 0C 9D [07:22:16]Write i2c OK [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: F0 [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: F0 09 00 [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: F0 09 00 A2 0C 00 AB 7B 76 66 99 81 91 64 B7 [07:22:16]GetLastDocTimeStamp 1719040773 [07:22:16]current date 1719040939 [07:22:16]FM_GetShiftState [07:22:16]SAM_PROTO_GetShiftState [07:22:16]wFMCommunicate request_size=4 [07:22:16]MH_SAM_APDU [07:22:16]CAPDU: 80 13 01 00 [07:22:16]Write to MH i2c: E2 08 00 A3 0C 80 13 01 00 00 00 00 00 2C [07:22:16]Write i2c OK [07:22:16]MH_I2C_Read... [07:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:16]Read from MH i2c: E2 [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: E2 0E 00 [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: E2 0E 00 A3 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 22 [07:22:16]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:22:16]wFMCommunicate OK [07:22:16]SAM_PROTO_GetShiftState done [07:22:16]FM_GetShiftState done [07:22:16]opened in 1719016435 [07:22:16]opened+sec_in_day 1719102835 [07:22:16]quantity*price = 100064 [07:22:16]sum+1 = 100066 [07:22:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 18 22.06.2024 07:22 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875009 ФД: 76822 ФПД: 17452416473853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T072219&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76822&fm=17452416473853&tin=02508201610067®Number=0000000000095696&sum=100065 [07:22:17]StoreToDocumentArchive [07:22:17]shift 395 fd 76822 [07:22:17]save to /storage/0395/doc_00076822 [07:22:17]save last doc name /storage/0395/doc_00076822 to /storage/kkm_last_doc_name [07:22:17]save OK [07:22:17]Clear old archive folders... [07:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:22:17]tlvbuf is 0086D5E0 [07:22:17]SAM_PROTO_ClearQueue [07:22:17]wFMCommunicate request_size=4 [07:22:17]MH_SAM_APDU [07:22:17]CAPDU: 80 09 00 00 [07:22:17]Write to MH i2c: E2 08 00 B0 0C 80 09 00 00 00 00 00 00 2E [07:22:17]Write i2c OK [07:22:17]MH_I2C_Read... [07:22:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:17]Read from MH i2c: E2 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 03 00 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [07:22:17]RAPDU: 90 00 [07:22:17]wFMCommunicate OK [07:22:17]SAM_PROTO_ClearQueue done [07:22:17]KKMCreateOFDPacket [07:22:17]OFDProtocolAddRootSTLVToBuf [07:22:17]FM_MakeSignedData [07:22:17]FM_MakeSignedData [07:22:17]SAM_PROTO_SignData [07:22:17]wFMCommunicate request_size=4 [07:22:17]MH_SAM_APDU [07:22:17]CAPDU: 80 0D 01 02 [07:22:17]Write to MH i2c: E2 08 00 B1 0C 80 0D 01 02 00 00 00 00 36 [07:22:17]Write i2c OK [07:22:17]MH_I2C_Read... [07:22:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:17]Read from MH i2c: E2 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 03 00 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 03 00 B1 0C 00 90 00 31 [07:22:17]RAPDU: 90 00 [07:22:17]wFMCommunicate OK [07:22:17]wFMCommunicate request_size=255 [07:22:17]MH_SAM_APDU [07:22: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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AB 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 16 2C 01 00 35 04 06 00 0F [07:22:17]Write to MH i2c: E2 02 01 B2 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AB 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 16 2C 01 00 35 04 06 00 0F 00 00 B5 [07:22:17]Write i2c OK [07:22:17]MH_I2C_Read... [07:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:18]Read from MH i2c: E2 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 03 00 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 03 00 B2 0C 00 90 00 32 [07:22:18]RAPDU: 90 00 [07:22:18]wFMCommunicate OK [07:22:18]wFMCommunicate request_size=10 [07:22:18]MH_SAM_APDU [07:22:18]CAPDU: 80 0D 02 02 05 DF 75 15 9A FD [07:22:18]Write to MH i2c: E2 0D 00 B3 0C 80 0D 02 02 05 00 DF 75 15 9A FD 00 00 43 [07:22:18]Write i2c OK [07:22:18]MH_I2C_Read... [07:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:18]Read from MH i2c: E2 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 03 00 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 03 00 B3 0C 00 90 00 33 [07:22:18]RAPDU: 90 00 [07:22:18]wFMCommunicate OK [07:22:18]wFMCommunicate request_size=4 [07:22:18]MH_SAM_APDU [07:22:18]CAPDU: 80 0D 03 02 [07:22:18]Write to MH i2c: E2 08 00 B4 0C 80 0D 03 02 00 00 00 00 3B [07:22:18]Write i2c OK [07:22:18]MH_I2C_Read... [07:22:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:18]Read from MH i2c: E2 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 0B 00 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 0B 00 B4 0C 00 0B 35 B6 35 3C 2C 78 48 90 00 8F [07:22:18]RAPDU: 0B 35 B6 35 3C 2C 78 48 90 00 [07:22:18]wFMCommunicate OK [07:22:18]SAM_PROTO_SignData done [07:22:18]FM_MakeSignedData done [07:22:18]CreateOFDProtocolMessage [07:22:18]wFMCommunicate request_size=4 [07:22:18]MH_SAM_APDU [07:22:18]CAPDU: 80 11 00 00 [07:22:18]Write to MH i2c: E2 08 00 B5 0C 80 11 00 00 00 00 00 00 3B [07:22:18]Write i2c OK [07:22:18]MH_I2C_Read... [07:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:18]Read from MH i2c: E2 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 17 00 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: E2 17 00 B5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8B [07:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:22:18]wFMCommunicate OK [07:22:18]CreateOFDProtocolMessage done [07:22:18]OFDSenderStorePacket 76822 [07:22:18]StoreOFDPacket docnum=76822 [07:22:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 EC FE 07 01 63 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AB 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 16 2C 01 00 35 04 06 00 0F DF 75 15 9A FD 0B 35 B6 35 3C 2C 78 48 [07:22:18]CheckFolder [07:22:18]dirname=/storage/ofd_packets [07:22:18]CheckFolder done [07:22:18]ProducePacketName [07:22:18]name=ofd_packets/00076822 [07:22:18]NVStorageSaveData ofd_packets/00076822 [07:22:18]File name is /storage/ofd_packets/00076822 [07:22:18]Write 301 bytes [07:22:18]NVStorageSaveData done [07:22:18]OFDSenderStorePacket done [07:22:18]KKMCreateOFDPacket done [07:22:18]NVStorageSaveData kkm_last_timestamp [07:22:18]File name is /storage/kkm_last_timestamp [07:22:18]Write 4 bytes [07:22:18]NVStorageSaveData done [07:22:18]ExternCall_PrintAddStr [07:22:18]wPrintStart [07:22:18]Write to MH i2c: 01 00 00 B6 0C C2 [07:22:18]Write i2c OK [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: 01 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: 01 07 00 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: 01 07 00 B6 0C 00 00 00 00 00 FF 0F D7 [07:22:18]RasterBufferAndPrint [07:22:18]line Счет N : (1)1694267 [07:22:18]line ИНН: 02508201610067 [07:22:18]line Контрольно-Кассовый Чек [07:22:18]line ПРОДАЖА [07:22:18]line ТРК (МРК, ГНК) : 33 [07:22:18]line Товар: 2710124130 [07:22:18]line Аи-92-К-5 [07:22:18]line 15.070 * 66.40 [07:22:18]line = 1000.65 [07:22:18]line НДС 12% НСП 1% [07:22:18]line > о реализуемом товаре [07:22:18]line ИТОГО: 1000.65 [07:22:18]line НСП 1% : 8.85 [07:22:18]line НДС 12% : 106.26 [07:22:18]line Наличными: 0.00 [07:22:18]line Безнал.: 1000.65 [07:22:18]line Место: АЗС № 144 "Партнер Нефть" [07:22:18]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [07:22:18]line СНО: Общий режим [07:22:18]line Чек 18 22.06.2024 07:22 [07:22:18]line Смена: 395 ФФД: 1.0 [07:22:18]line ЗНМ: 0300000170 [07:22:18]line РНМ: 0000000000095696 [07:22:18]line Версия ККМ: 001 [07:22:18]line Платежная система: АКБ Кыргызстан [07:22:18]line ФМ: 0000000000875009 [07:22:18]line ФД: 76822 [07:22:18]line ФПД: 17452416473853 [07:22:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T072219&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76822&fm=17452416473853&tin=02508201610067®Number=0000000000095696&sum=100065 [07:22:18]OFD Sender: Processing packet 76822 [packets to send 351, broken 350] [07:22:18]ProducePacketName [07:22:18]name=ofd_packets/00076822 [07:22:18]OFD Sender: To server: pG, [07:22:18]CommunicateWithHost lk.salyk.kg:30040 [07:22:18]ConnectInit lk.salyk.kg [07:22:18]written 0, free lines is 4095 [07:22:18]Write to MH i2c: 01 00 00 E0 0C EC [07:22:18]Write i2c OK [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: 01 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: 01 07 00 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: 01 07 00 E0 0C 00 00 00 00 00 E5 0C E4 [07:22:18]RasterBufferAndPrint [07:22:18]line [07:22:18]line [07:22:18]line [07:22:18]line [07:22:18]line [07:22:18]written 0, free lines is 3304 [07:22:18]MH_Cut [07:22:18]Write to MH i2c: D1 01 00 E7 0C 01 C5 [07:22:18]Write i2c OK [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: D1 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: D1 01 00 [07:22:18]MH_I2C_Read... [07:22:18]Read from MH i2c: D1 01 00 E7 0C 00 C4 [07:22:18]Write to MH i2c: 01 00 00 E8 0C F4 [07:22:18]Write i2c OK [07:22:18]MH_I2C_Read... [07:22:19]*** Cut start [07:22:19]*** Partial cut [07:22:19]*** CUTSNS_PIN = 1 [07:22:19]*** CUTSNS_PIN = 0 [07:22:19]*** Brake cut motor [07:22:20]Read from MH i2c: 01 [07:22:20]MH_I2C_Read... [07:22:20]*** Stop cut motor [07:22:20]*** Cut end [07:22:20]Read from MH i2c: 01 07 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: 01 07 00 E8 0C 00 00 00 00 00 FF 0F 09 [07:22:20]process_action close_receipt done [07:22:20]requested_data is exist [07:22:20]produce_requested_data [07:22:20]requested_item fm.sn is exist - process it [07:22:20]wFMCommunicate request_size=4 [07:22:20]MH_SAM_APDU [07:22:20]CAPDU: 80 11 00 00 [07:22:20]Write to MH i2c: E2 08 00 E9 0C 80 11 00 00 00 00 00 00 6F [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:20]Read from MH i2c: E2 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 17 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 17 00 E9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BF [07:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:22:20]wFMCommunicate OK [07:22:20]requested_item fd.num is exist - process it [07:22:20]SAM_PROTO_GetFieldsCounters [07:22:20]wFMCommunicate request_size=4 [07:22:20]MH_SAM_APDU [07:22:20]CAPDU: 80 13 00 00 [07:22:20]Write to MH i2c: E2 08 00 EA 0C 80 13 00 00 00 00 00 00 72 [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:20]Read from MH i2c: E2 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 62 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 62 00 EA 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 16 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [07:22:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 16 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:20]wFMCommunicate OK [07:22:20]SAM_PROTO_GetFieldsCounters done [07:22:20]requested_item shift.num is exist - process it [07:22:20]requested_item shift.opened is exist - process it [07:22:20]req_shift_opened [07:22:20]FM_GetShiftState [07:22:20]SAM_PROTO_GetShiftState [07:22:20]wFMCommunicate request_size=4 [07:22:20]MH_SAM_APDU [07:22:20]CAPDU: 80 13 01 00 [07:22:20]Write to MH i2c: E2 08 00 EB 0C 80 13 01 00 00 00 00 00 74 [07:22:20]Write i2c OK [07:22:20]MH_I2C_Read... [07:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:20]Read from MH i2c: E2 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 0E 00 [07:22:20]MH_I2C_Read... [07:22:20]Read from MH i2c: E2 0E 00 EB 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 6A [07:22:20]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:22:20]wFMCommunicate OK [07:22:20]SAM_PROTO_GetShiftState done [07:22:20]FM_GetShiftState done [07:22:20]req_shift_opened done [07:22:20]requested_item shift.open_date is exist - process it [07:22:20]req_shift_open_date [07:22:20]req_shift_open_date done [07:22:20]produce_requested_data done [07:22:20]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76822,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [07:22:20]process_action_free close_receipt [07:22:20]json_value_free [07:22:20]json_value_free done [07:22:20]process_json_proto returns [07:22:20]Send response to host [07:22:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76822,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [07:22:20]free response buf [07:22:20]execute_script done [07:22:20]execute_script returns [07:22:20]free content buf [07:22:20]Sock 10.Close socket [07:22:20]Sock 10.Thread stoped [07:22:20]Connected sock=11 [07:22:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 EC FE 07 01 63 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AB 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 16 2C 01 00 35 04 06 00 0F DF 75 15 9A FD 0B 35 B6 35 3C 2C 78 48 [07:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 3E 58 47 00 AA 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 35 30 30 39 10 04 04 00 16 2C 01 00 F4 03 04 00 48 22 76 66 B6 04 01 00 00 F8 5B 93 9B 4A 4B 2E D4 [07:22:20]CommunicateWithHost err = 0 [07:22:20]CheckOFDResponse [07:22:20]1017 (14) - 77093643461234 [07:22:20]1041 (16) - 0000000000875009 [07:22:20]1040 (4) - 76822 [07:22:20]1012 (4) - 22.06.2024 01:00 [07:22:20]1206 (1) - 0 [07:22:20]OFD Sender: Remove packet 76822 [07:22:20]ProducePacketName [07:22:20]name=ofd_packets/00076822 [07:22:20]NVStorageDeleteData [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:39]accept exits with 8 [07:22:39]New connection [07:22:39]New thread 3066850660 created [07:22:39]Thread 3066994020 joined [07:22:39]Waiting for new connection... [07:22:39] Sock 8.Parse request [07:22:39]Sock 8.Check first char [07:22:39]Sock 8.First char is OK [07:22:39]request: POST /json_proto HTTP/1.0 [07:22:39]Method: POST [07:22:39]URL: /json_proto [07:22:39]Method is POST - this is cgi request [07:22:39]url: /json_proto [07:22:39]query_string will be loaded in cgi processing [07:22:39]execute_cgi json_proto POST (null) [07:22:39]execute_cgi path=json_proto method=POST [07:22:39]POST find Content-Length [07:22:39]Host: 172.17.39.195:8080 [07:22:39]Content-Length: 683 [07:22:39]Content-Type: application/json [07:22:39] [07:22:39]POST finish read [07:22:39]Found Content-Length = 683 [07:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:39]execute_script... [07:22: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)1694268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:39]POST & json_proto [07:22:39]process_json_proto [07:22:39]json parsed OK: [07:22:39]protocol is kg_v1.0 [07:22:39]action value=close_receipt [07:22:39]process_action close_receipt [07:22:39]cmd_close_receipt [07:22:39]MH_GetDate [07:22:39]Write to MH i2c: F0 00 00 EC 0C E7 [07:22:39]Write i2c OK [07:22:39]MH_I2C_Read... [07:22:39]Read from MH i2c: F0 [07:22:39]MH_I2C_Read... [07:22:39]Read from MH i2c: F0 09 00 [07:22:39]MH_I2C_Read... [07:22:39]Read from MH i2c: F0 09 00 EC 0C 00 C1 7B 76 66 99 81 91 64 17 [07:22:39]GetLastDocTimeStamp 1719040939 [07:22:39]current date 1719040961 [07:22:39]FM_GetShiftState [07:22:39]SAM_PROTO_GetShiftState [07:22:39]wFMCommunicate request_size=4 [07:22:39]MH_SAM_APDU [07:22:39]CAPDU: 80 13 01 00 [07:22:39]Write to MH i2c: E2 08 00 ED 0C 80 13 01 00 00 00 00 00 76 [07:22:39]Write i2c OK [07:22:39]MH_I2C_Read... [07:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:39]Read from MH i2c: E2 [07:22:39]MH_I2C_Read... [07:22:39]Read from MH i2c: E2 0E 00 [07:22:39]MH_I2C_Read... [07:22:39]Read from MH i2c: E2 0E 00 ED 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 6C [07:22:39]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:22:39]wFMCommunicate OK [07:22:39]SAM_PROTO_GetShiftState done [07:22:39]FM_GetShiftState done [07:22:39]opened in 1719016435 [07:22:39]opened+sec_in_day 1719102835 [07:22:39]quantity*price = 100064 [07:22:39]sum+1 = 100066 [07:22:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 19 22.06.2024 07:22 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76823 ФПД: 166041073200767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T072241&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76823&fm=166041073200767&tin=02508201610067®Number=0000000000095696&sum=100000 [07:22:40]StoreToDocumentArchive [07:22:40]shift 395 fd 76823 [07:22:40]save to /storage/0395/doc_00076823 [07:22:40]save last doc name /storage/0395/doc_00076823 to /storage/kkm_last_doc_name [07:22:40]save OK [07:22:40]Clear old archive folders... [07:22:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:22:40]tlvbuf is 00898B00 [07:22:40]SAM_PROTO_ClearQueue [07:22:40]wFMCommunicate request_size=4 [07:22:40]MH_SAM_APDU [07:22:40]CAPDU: 80 09 00 00 [07:22:40]Write to MH i2c: E2 08 00 FA 0C 80 09 00 00 00 00 00 00 78 [07:22:40]Write i2c OK [07:22:40]MH_I2C_Read... [07:22:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:40]Read from MH i2c: E2 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 03 00 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [07:22:40]RAPDU: 90 00 [07:22:40]wFMCommunicate OK [07:22:40]SAM_PROTO_ClearQueue done [07:22:40]KKMCreateOFDPacket [07:22:40]OFDProtocolAddRootSTLVToBuf [07:22:40]FM_MakeSignedData [07:22:40]FM_MakeSignedData [07:22:40]SAM_PROTO_SignData [07:22:40]wFMCommunicate request_size=4 [07:22:40]MH_SAM_APDU [07:22:40]CAPDU: 80 0D 01 02 [07:22:40]Write to MH i2c: E2 08 00 FB 0C 80 0D 01 02 00 00 00 00 80 [07:22:40]Write i2c OK [07:22:40]MH_I2C_Read... [07:22:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:40]Read from MH i2c: E2 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 03 00 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [07:22:40]RAPDU: 90 00 [07:22:40]wFMCommunicate OK [07:22:40]wFMCommunicate request_size=255 [07:22:40]MH_SAM_APDU [07:22:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 13 00 00 00 F4 03 04 00 C1 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 17 2C 01 00 35 04 06 00 97 [07:22:40]Write to MH i2c: E2 02 01 FC 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 13 00 00 00 F4 03 04 00 C1 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 17 2C 01 00 35 04 06 00 97 00 00 1D [07:22:40]Write i2c OK [07:22:40]MH_I2C_Read... [07:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:40]Read from MH i2c: E2 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 03 00 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 03 00 FC 0C 00 90 00 7C [07:22:40]RAPDU: 90 00 [07:22:40]wFMCommunicate OK [07:22:40]wFMCommunicate request_size=10 [07:22:40]MH_SAM_APDU [07:22:40]CAPDU: 80 0D 02 02 05 03 73 2F AE 7F [07:22:40]Write to MH i2c: E2 0D 00 FD 0C 80 0D 02 02 05 00 03 73 2F AE 7F 00 00 5F [07:22:40]Write i2c OK [07:22:40]MH_I2C_Read... [07:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:40]Read from MH i2c: E2 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 03 00 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [07:22:40]RAPDU: 90 00 [07:22:40]wFMCommunicate OK [07:22:40]wFMCommunicate request_size=4 [07:22:40]MH_SAM_APDU [07:22:40]CAPDU: 80 0D 03 02 [07:22:40]Write to MH i2c: E2 08 00 FE 0C 80 0D 03 02 00 00 00 00 85 [07:22:40]Write i2c OK [07:22:40]MH_I2C_Read... [07:22:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:40]Read from MH i2c: E2 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 0B 00 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 0B 00 FE 0C 00 9D 65 BE C7 17 BA 1B 0F 90 00 08 [07:22:40]RAPDU: 9D 65 BE C7 17 BA 1B 0F 90 00 [07:22:40]wFMCommunicate OK [07:22:40]SAM_PROTO_SignData done [07:22:40]FM_MakeSignedData done [07:22:40]CreateOFDProtocolMessage [07:22:40]wFMCommunicate request_size=4 [07:22:40]MH_SAM_APDU [07:22:40]CAPDU: 80 11 00 00 [07:22:40]Write to MH i2c: E2 08 00 FF 0C 80 11 00 00 00 00 00 00 85 [07:22:40]Write i2c OK [07:22:40]MH_I2C_Read... [07:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:40]Read from MH i2c: E2 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 17 00 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: E2 17 00 FF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D5 [07:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:22:40]wFMCommunicate OK [07:22:40]CreateOFDProtocolMessage done [07:22:40]OFDSenderStorePacket 76823 [07:22:40]StoreOFDPacket docnum=76823 [07:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 07 79 07 01 14 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 13 00 00 00 F4 03 04 00 C1 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 17 2C 01 00 35 04 06 00 97 03 73 2F AE 7F 9D 65 BE C7 17 BA 1B 0F [07:22:40]CheckFolder [07:22:40]dirname=/storage/ofd_packets [07:22:40]CheckFolder done [07:22:40]ProducePacketName [07:22:40]name=ofd_packets/00076823 [07:22:40]NVStorageSaveData ofd_packets/00076823 [07:22:40]File name is /storage/ofd_packets/00076823 [07:22:40]Write 301 bytes [07:22:40]NVStorageSaveData done [07:22:40]OFDSenderStorePacket done [07:22:40]KKMCreateOFDPacket done [07:22:40]NVStorageSaveData kkm_last_timestamp [07:22:40]File name is /storage/kkm_last_timestamp [07:22:40]Write 4 bytes [07:22:40]NVStorageSaveData done [07:22:40]ExternCall_PrintAddStr [07:22:40]wPrintStart [07:22:40]Write to MH i2c: 01 00 00 00 0D 0D [07:22:40]Write i2c OK [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: 01 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: 01 07 00 [07:22:40]MH_I2C_Read... [07:22:40]Read from MH i2c: 01 07 00 00 0D 00 00 00 00 00 FF 0F 22 [07:22:40]RasterBufferAndPrint [07:22:40]line Счет N : (1)1694268 [07:22:40]line ИНН: 02508201610067 [07:22:40]line Контрольно-Кассовый Чек [07:22:40]line ПРОДАЖА [07:22:40]line ТРК (МРК, ГНК) : 53 [07:22:40]line Товар: 2710124130 [07:22:40]line Аи-92-К-5 [07:22:40]line 15.070 * 66.40 [07:22:40]line = 1000.65 [07:22:40]line НДС 12% НСП 1% [07:22:40]line > о реализуемом товаре [07:22:40]line ОКРУГЛЕНИЕ: -0.65 [07:22:40]line ИТОГО: 1000.00 [07:22:40]line Внесено: 1000.00 [07:22:40]line СДАЧА: 0.00 [07:22:40]line НСП 1% : 8.85 [07:22:40]line НДС 12% : 106.26 [07:22:40]line Наличными: 1000.00 [07:22:40]line Безнал.: 0.00 [07:22:40]line Место: АЗС № 144 "Партнер Нефть" [07:22:40]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [07:22:40]line СНО: Общий режим [07:22:40]line Чек 19 22.06.2024 07:22 [07:22:40]line Смена: 395 ФФД: 1.0 [07:22:40]line ЗНМ: 0300000170 [07:22:40]line РНМ: 0000000000095696 [07:22:40]line Версия ККМ: 001 [07:22:40]line ФМ: 0000000000875009 [07:22:40]line ФД: 76823 [07:22:40]line ФПД: 166041073200767 [07:22:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T072241&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76823&fm=166041073200767&tin=02508201610067®Number=0000000000095696&sum=100000 [07:22:41]OFD Sender: Processing packet 76823 [packets to send 351, broken 350] [07:22:41]ProducePacketName [07:22:41]name=ofd_packets/00076823 [07:22:41]OFD Sender: To server: pG, [07:22:41]CommunicateWithHost lk.salyk.kg:30040 [07:22:41]ConnectInit lk.salyk.kg [07:22:41]written 0, free lines is 4095 [07:22:41]Connected sock=10 [07:22:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 07 79 07 01 14 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 13 00 00 00 F4 03 04 00 C1 7B 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 17 2C 01 00 35 04 06 00 97 03 73 2F AE 7F 9D 65 BE C7 17 BA 1B 0F [07:22:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 2F 43 47 00 FC 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 17 2C 01 00 F4 03 04 00 5C 22 76 66 B6 04 01 00 00 AE 26 0F 43 F3 9A 7D 33 [07:22:41]CommunicateWithHost err = 0 [07:22:41]CheckOFDResponse [07:22:41]1017 (14) - 77093643461234 [07:22:41]1041 (16) - 0000000000875009 [07:22:41]1040 (4) - 76823 [07:22:41]1012 (4) - 22.06.2024 01:01 [07:22:41]1206 (1) - 0 [07:22:41]OFD Sender: Remove packet 76823 [07:22:41]ProducePacketName [07:22:41]name=ofd_packets/00076823 [07:22:41]NVStorageDeleteData [07:22:41]Write to MH i2c: 01 00 00 2B 0D 38 [07:22:41]Write i2c OK [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: 01 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: 01 07 00 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: 01 07 00 2B 0D 00 00 00 00 00 DE 0C 29 [07:22:41]RasterBufferAndPrint [07:22:41]line [07:22:41]line [07:22:41]line [07:22:41]line [07:22:41]line [07:22:41]written 0, free lines is 3300 [07:22:41]MH_Cut [07:22:41]Write to MH i2c: D1 01 00 32 0D 01 11 [07:22:41]Write i2c OK [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: D1 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: D1 01 00 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: D1 01 00 32 0D 00 10 [07:22:41]Write to MH i2c: 01 00 00 33 0D 40 [07:22:41]Write i2c OK [07:22:41]MH_I2C_Read... [07:22:42]OFD Sender: No OFD packet to send [07:22:42]*** Cut start [07:22:42]*** Partial cut [07:22:42]*** CUTSNS_PIN = 1 [07:22:42]*** CUTSNS_PIN = 0 [07:22:42]*** Brake cut motor [07:22:42]Read from MH i2c: 01 [07:22:42]MH_I2C_Read... [07:22:42]*** Stop cut motor [07:22:42]*** Cut end [07:22:42]Read from MH i2c: 01 07 00 [07:22:42]MH_I2C_Read... [07:22:42]Read from MH i2c: 01 07 00 33 0D 00 00 00 00 00 FF 0F 55 [07:22:42]process_action close_receipt done [07:22:42]requested_data is exist [07:22:42]produce_requested_data [07:22:42]requested_item fm.sn is exist - process it [07:22:42]wFMCommunicate request_size=4 [07:22:42]MH_SAM_APDU [07:22:42]CAPDU: 80 11 00 00 [07:22:42]Write to MH i2c: E2 08 00 34 0D 80 11 00 00 00 00 00 00 BB [07:22:42]Write i2c OK [07:22:42]MH_I2C_Read... [07:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:43]Read from MH i2c: E2 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 17 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 17 00 34 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0B [07:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [07:22:43]wFMCommunicate OK [07:22:43]requested_item fd.num is exist - process it [07:22:43]SAM_PROTO_GetFieldsCounters [07:22:43]wFMCommunicate request_size=4 [07:22:43]MH_SAM_APDU [07:22:43]CAPDU: 80 13 00 00 [07:22:43]Write to MH i2c: E2 08 00 35 0D 80 13 00 00 00 00 00 00 BE [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:43]Read from MH i2c: E2 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 62 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 62 00 35 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 17 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [07:22: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 17 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:43]wFMCommunicate OK [07:22:43]SAM_PROTO_GetFieldsCounters done [07:22:43]requested_item shift.num is exist - process it [07:22:43]requested_item shift.opened is exist - process it [07:22:43]req_shift_opened [07:22:43]FM_GetShiftState [07:22:43]SAM_PROTO_GetShiftState [07:22:43]wFMCommunicate request_size=4 [07:22:43]MH_SAM_APDU [07:22:43]CAPDU: 80 13 01 00 [07:22:43]Write to MH i2c: E2 08 00 36 0D 80 13 01 00 00 00 00 00 C0 [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:43]Read from MH i2c: E2 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 0E 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: E2 0E 00 36 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B6 [07:22:43]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [07:22:43]wFMCommunicate OK [07:22:43]SAM_PROTO_GetShiftState done [07:22:43]FM_GetShiftState done [07:22:43]req_shift_opened done [07:22:43]requested_item shift.open_date is exist - process it [07:22:43]req_shift_open_date [07:22:43]req_shift_open_date done [07:22:43]produce_requested_data done [07:22:43]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76823,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [07:22:43]process_action_free close_receipt [07:22:43]json_value_free [07:22:43]json_value_free done [07:22:43]process_json_proto returns [07:22:43]Send response to host [07:22:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76823,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [07:22:43]free response buf [07:22:43]execute_script done [07:22:43]execute_script returns [07:22:43]free content buf [07:22:43]Sock 8.Close socket [07:22:43]Sock 8.Thread stoped [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [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]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: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:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]accept exits with 9 [08:03:56]New connection [08:03:56]New thread 3066994020 created [08:03:56]Thread 3066850660 joined [08:03:56]Waiting for new connection... [08:03:56] Sock 9.Parse request [08:03:56]Sock 9.Check first char [08:03:56]Sock 9.First char is OK [08:03:56]request: POST /json_proto HTTP/1.0 [08:03:56]Method: POST [08:03:56]URL: /json_proto [08:03:56]Method is POST - this is cgi request [08:03:56]url: /json_proto [08:03:56]query_string will be loaded in cgi processing [08:03:56]execute_cgi json_proto POST (null) [08:03:56]execute_cgi path=json_proto method=POST [08:03:56]POST find Content-Length [08:03:56]Host: 172.17.39.195:8080 [08:03:56]Content-Length: 838 [08:03:56]Content-Type: application/json [08:03:56] [08:03:56]POST finish read [08:03:56]Found Content-Length = 838 [08:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:56]execute_script... [08:03:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:56]POST & json_proto [08:03:56]process_json_proto [08:03:56]json parsed OK: [08:03:56]protocol is kg_v1.0 [08:03:56]action value=close_receipt [08:03:56]process_action close_receipt [08:03:56]cmd_close_receipt [08:03:56]MH_GetDate [08:03:56]Write to MH i2c: F0 00 00 37 0D 33 [08:03:56]Write i2c OK [08:03:56]MH_I2C_Read... [08:03:56]Read from MH i2c: F0 [08:03:56]MH_I2C_Read... [08:03:56]Read from MH i2c: F0 09 00 [08:03:56]MH_I2C_Read... [08:03:56]Read from MH i2c: F0 09 00 37 0D 00 6E 85 76 66 99 81 91 64 1A [08:03:56]GetLastDocTimeStamp 1719040961 [08:03:56]current date 1719043438 [08:03:56]FM_GetShiftState [08:03:56]SAM_PROTO_GetShiftState [08:03:56]wFMCommunicate request_size=4 [08:03:56]MH_SAM_APDU [08:03:56]CAPDU: 80 13 01 00 [08:03:56]Write to MH i2c: E2 08 00 38 0D 80 13 01 00 00 00 00 00 C2 [08:03:56]Write i2c OK [08:03:56]MH_I2C_Read... [08:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:56]Read from MH i2c: E2 [08:03:56]MH_I2C_Read... [08:03:56]Read from MH i2c: E2 0E 00 [08:03:56]MH_I2C_Read... [08:03:56]Read from MH i2c: E2 0E 00 38 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B8 [08:03:56]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:03:56]wFMCommunicate OK [08:03:56]SAM_PROTO_GetShiftState done [08:03:56]FM_GetShiftState done [08:03:56]opened in 1719016435 [08:03:56]opened+sec_in_day 1719102835 [08:03:56]quantity*price = 40022 [08:03:56]sum+1 = 40023 [08:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.22 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 0.00 Безнал.: 400.22 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 20 22.06.2024 08:03 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875009 ФД: 76824 ФПД: 266234683960928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T080359&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76824&fm=266234683960928&tin=02508201610067®Number=0000000000095696&sum=40022 [08:03:57]StoreToDocumentArchive [08:03:57]shift 395 fd 76824 [08:03:57]save to /storage/0395/doc_00076824 [08:03:57]save last doc name /storage/0395/doc_00076824 to /storage/kkm_last_doc_name [08:03:57]save OK [08:03:57]Clear old archive folders... [08:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:03:57]tlvbuf is 0086D690 [08:03:57]SAM_PROTO_ClearQueue [08:03:57]wFMCommunicate request_size=4 [08:03:57]MH_SAM_APDU [08:03:57]CAPDU: 80 09 00 00 [08:03:57]Write to MH i2c: E2 08 00 45 0D 80 09 00 00 00 00 00 00 C4 [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:57]Read from MH i2c: E2 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 03 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [08:03:57]RAPDU: 90 00 [08:03:57]wFMCommunicate OK [08:03:57]SAM_PROTO_ClearQueue done [08:03:57]KKMCreateOFDPacket [08:03:57]OFDProtocolAddRootSTLVToBuf [08:03:57]FM_MakeSignedData [08:03:57]FM_MakeSignedData [08:03:57]SAM_PROTO_SignData [08:03:57]wFMCommunicate request_size=4 [08:03:57]MH_SAM_APDU [08:03:57]CAPDU: 80 0D 01 02 [08:03:57]Write to MH i2c: E2 08 00 46 0D 80 0D 01 02 00 00 00 00 CC [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:57]Read from MH i2c: E2 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 03 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [08:03:57]RAPDU: 90 00 [08:03:57]wFMCommunicate OK [08:03:57]wFMCommunicate request_size=255 [08:03:57]MH_SAM_APDU [08:03:57]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 32 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6F 85 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 18 2C 01 00 35 04 06 00 F2 23 97 C3 [08:03:57]Write to MH i2c: E2 02 01 47 0D 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 32 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6F 85 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 18 2C 01 00 35 04 06 00 F2 23 97 C3 00 00 51 [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:57]Read from MH i2c: E2 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 03 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [08:03:57]RAPDU: 90 00 [08:03:57]wFMCommunicate OK [08:03:57]wFMCommunicate request_size=7 [08:03:57]MH_SAM_APDU [08:03:57]CAPDU: 80 0D 02 02 02 AE 60 [08:03:57]Write to MH i2c: E2 0A 00 48 0D 80 0D 02 02 02 00 AE 60 00 00 E1 [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:57]Read from MH i2c: E2 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 03 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [08:03:57]RAPDU: 90 00 [08:03:57]wFMCommunicate OK [08:03:57]wFMCommunicate request_size=4 [08:03:57]MH_SAM_APDU [08:03:57]CAPDU: 80 0D 03 02 [08:03:57]Write to MH i2c: E2 08 00 49 0D 80 0D 03 02 00 00 00 00 D1 [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:57]Read from MH i2c: E2 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 0B 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 0B 00 49 0D 00 FA D0 27 A1 5B 12 11 AF 90 00 91 [08:03:57]RAPDU: FA D0 27 A1 5B 12 11 AF 90 00 [08:03:57]wFMCommunicate OK [08:03:57]SAM_PROTO_SignData done [08:03:57]FM_MakeSignedData done [08:03:57]CreateOFDProtocolMessage [08:03:57]wFMCommunicate request_size=4 [08:03:57]MH_SAM_APDU [08:03:57]CAPDU: 80 11 00 00 [08:03:57]Write to MH i2c: E2 08 00 4A 0D 80 11 00 00 00 00 00 00 D1 [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:57]Read from MH i2c: E2 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 17 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 17 00 4A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 21 [08:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:03:57]wFMCommunicate OK [08:03:57]CreateOFDProtocolMessage done [08:03:57]OFDSenderStorePacket 76824 [08:03:57]StoreOFDPacket docnum=76824 [08:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 71 14 04 01 4F E1 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 32 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6F 85 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 18 2C 01 00 35 04 06 00 F2 23 97 C3 AE 60 FA D0 27 A1 5B 12 11 AF [08:03:57]CheckFolder [08:03:57]dirname=/storage/ofd_packets [08:03:57]CheckFolder done [08:03:57]ProducePacketName [08:03:57]name=ofd_packets/00076824 [08:03:57]NVStorageSaveData ofd_packets/00076824 [08:03:57]File name is /storage/ofd_packets/00076824 [08:03:57]Write 298 bytes [08:03:57]NVStorageSaveData done [08:03:57]OFDSenderStorePacket done [08:03:57]KKMCreateOFDPacket done [08:03:57]NVStorageSaveData kkm_last_timestamp [08:03:57]File name is /storage/kkm_last_timestamp [08:03:57]Write 4 bytes [08:03:57]NVStorageSaveData done [08:03:57]ExternCall_PrintAddStr [08:03:57]wPrintStart [08:03:57]Write to MH i2c: 01 00 00 4B 0D 58 [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: 01 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: 01 07 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: 01 07 00 4B 0D 00 00 00 00 00 FF 0F 6D [08:03:57]RasterBufferAndPrint [08:03:57]line Счет N : (1)1694278 [08:03:57]line ИНН: 02508201610067 [08:03:57]line Контрольно-Кассовый Чек [08:03:57]line ПРОДАЖА [08:03:57]line ТРК (МРК, ГНК) : 11 [08:03:57]line Товар: 2710194210 [08:03:57]line ДТ-К-2 [08:03:57]line 5.490 * 72.90 [08:03:57]line = 400.22 [08:03:57]line НДС 12% НСП 1% [08:03:57]line > о реализуемом товаре [08:03:57]line ИТОГО: 400.22 [08:03:57]line НСП 1% : 3.54 [08:03:57]line НДС 12% : 42.50 [08:03:57]line Наличными: 0.00 [08:03:57]line Безнал.: 400.22 [08:03:57]line Место: АЗС № 144 "Партнер Нефть" [08:03:57]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:03:57]line СНО: Общий режим [08:03:57]line Чек 20 22.06.2024 08:03 [08:03:57]line Смена: 395 ФФД: 1.0 [08:03:57]line ЗНМ: 0300000170 [08:03:57]line РНМ: 0000000000095696 [08:03:57]line Версия ККМ: 001 [08:03:57]line Платежная система: АКБ Кыргызстан [08:03:57]line ФМ: 0000000000875009 [08:03:57]line ФД: 76824 [08:03:57]line ФПД: 266234683960928 [08:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T080359&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76824&fm=266234683960928&tin=02508201610067®Number=0000000000095696&sum=40022 [08:03:58]OFD Sender: Processing packet 76824 [packets to send 351, broken 350] [08:03:58]ProducePacketName [08:03:58]name=ofd_packets/00076824 [08:03:58]OFD Sender: To server: pG, [08:03:58]CommunicateWithHost lk.salyk.kg:30040 [08:03:58]ConnectInit lk.salyk.kg [08:03:58]written 0, free lines is 4095 [08:03:58]Connected sock=10 [08:03:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 71 14 04 01 4F E1 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 32 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6F 85 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 18 2C 01 00 35 04 06 00 F2 23 97 C3 AE 60 FA D0 27 A1 5B 12 11 AF [08:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 3E E9 47 00 F3 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 18 2C 01 00 F4 03 04 00 09 2C 76 66 B6 04 01 00 00 8D 25 AB A7 63 15 FB 9E [08:03:58]CommunicateWithHost err = 0 [08:03:58]CheckOFDResponse [08:03:58]1017 (14) - 77093643461234 [08:03:58]1041 (16) - 0000000000875009 [08:03:58]1040 (4) - 76824 [08:03:58]1012 (4) - 22.06.2024 01:42 [08:03:58]1206 (1) - 0 [08:03:58]OFD Sender: Remove packet 76824 [08:03:58]ProducePacketName [08:03:58]name=ofd_packets/00076824 [08:03:58]NVStorageDeleteData [08:03:58]Write to MH i2c: 01 00 00 75 0D 82 [08:03:58]Write i2c OK [08:03:58]MH_I2C_Read... [08:03:58]Read from MH i2c: 01 [08:03:58]MH_I2C_Read... [08:03:58]Read from MH i2c: 01 07 00 [08:03:58]MH_I2C_Read... [08:03:58]Read from MH i2c: 01 07 00 75 0D 00 00 00 00 00 F1 0C 86 [08:03:58]RasterBufferAndPrint [08:03:58]line [08:03:58]line [08:03:58]line [08:03:58]line [08:03:58]line [08:03:58]written 0, free lines is 3319 [08:03:58]MH_Cut [08:03:58]Write to MH i2c: D1 01 00 7C 0D 01 5B [08:03:58]Write i2c OK [08:03:58]MH_I2C_Read... [08:03:58]Read from MH i2c: D1 [08:03:58]MH_I2C_Read... [08:03:58]Read from MH i2c: D1 01 00 [08:03:58]MH_I2C_Read... [08:03:58]Read from MH i2c: D1 01 00 7C 0D 00 5A [08:03:58]Write to MH i2c: 01 00 00 7D 0D 8A [08:03:58]Write i2c OK [08:03:58]MH_I2C_Read... [08:03:58]OFD Sender: No OFD packet to send [08:03:59]*** Cut start [08:03:59]*** Partial cut [08:03:59]*** CUTSNS_PIN = 1 [08:03:59]*** CUTSNS_PIN = 0 [08:03:59]*** Brake cut motor [08:03:59]Read from MH i2c: 01 [08:03:59]MH_I2C_Read... [08:03:59]*** Stop cut motor [08:03:59]*** Cut end [08:03:59]Read from MH i2c: 01 07 00 [08:03:59]MH_I2C_Read... [08:03:59]Read from MH i2c: 01 07 00 7D 0D 00 00 00 00 00 FF 0F 9F [08:03:59]process_action close_receipt done [08:03:59]requested_data is exist [08:03:59]produce_requested_data [08:03:59]requested_item fm.sn is exist - process it [08:03:59]wFMCommunicate request_size=4 [08:03:59]MH_SAM_APDU [08:03:59]CAPDU: 80 11 00 00 [08:03:59]Write to MH i2c: E2 08 00 7E 0D 80 11 00 00 00 00 00 00 05 [08:03:59]Write i2c OK [08:03:59]MH_I2C_Read... [08:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:59]Read from MH i2c: E2 [08:03:59]MH_I2C_Read... [08:03:59]Read from MH i2c: E2 17 00 [08:03:59]MH_I2C_Read... [08:03:59]Read from MH i2c: E2 17 00 7E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 55 [08:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:04:00]wFMCommunicate OK [08:04:00]requested_item fd.num is exist - process it [08:04:00]SAM_PROTO_GetFieldsCounters [08:04:00]wFMCommunicate request_size=4 [08:04:00]MH_SAM_APDU [08:04:00]CAPDU: 80 13 00 00 [08:04:00]Write to MH i2c: E2 08 00 7F 0D 80 13 00 00 00 00 00 00 08 [08:04:00]Write i2c OK [08:04:00]MH_I2C_Read... [08:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:00]Read from MH i2c: E2 [08:04:00]MH_I2C_Read... [08:04:00]Read from MH i2c: E2 62 00 [08:04:00]MH_I2C_Read... [08:04:00]Read from MH i2c: E2 62 00 7F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 18 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [08:04: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 18 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:00]wFMCommunicate OK [08:04:00]SAM_PROTO_GetFieldsCounters done [08:04:00]requested_item shift.num is exist - process it [08:04:00]requested_item shift.opened is exist - process it [08:04:00]req_shift_opened [08:04:00]FM_GetShiftState [08:04:00]SAM_PROTO_GetShiftState [08:04:00]wFMCommunicate request_size=4 [08:04:00]MH_SAM_APDU [08:04:00]CAPDU: 80 13 01 00 [08:04:00]Write to MH i2c: E2 08 00 80 0D 80 13 01 00 00 00 00 00 0A [08:04:00]Write i2c OK [08:04:00]MH_I2C_Read... [08:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:00]Read from MH i2c: E2 [08:04:00]MH_I2C_Read... [08:04:00]Read from MH i2c: E2 0E 00 [08:04:00]MH_I2C_Read... [08:04:00]Read from MH i2c: E2 0E 00 80 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 00 [08:04:00]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:04:00]wFMCommunicate OK [08:04:00]SAM_PROTO_GetShiftState done [08:04:00]FM_GetShiftState done [08:04:00]req_shift_opened done [08:04:00]requested_item shift.open_date is exist - process it [08:04:00]req_shift_open_date [08:04:00]req_shift_open_date done [08:04:00]produce_requested_data done [08:04:00]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76824,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [08:04:00]process_action_free close_receipt [08:04:00]json_value_free [08:04:00]json_value_free done [08:04:00]process_json_proto returns [08:04:00]Send response to host [08:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76824,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [08:04:00]free response buf [08:04:00]execute_script done [08:04:00]execute_script returns [08:04:00]free content buf [08:04:00]Sock 9.Close socket [08:04:00]Sock 9.Thread stoped [08:04:03]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:40]accept exits with 8 [08:07:40]New connection [08:07:40]New thread 3066850660 created [08:07:40]Thread 3066994020 joined [08:07:40]Waiting for new connection... [08:07:40] Sock 8.Parse request [08:07:40]Sock 8.Check first char [08:07:40]Sock 8.First char is OK [08:07:40]request: POST /json_proto HTTP/1.0 [08:07:40]Method: POST [08:07:40]URL: /json_proto [08:07:40]Method is POST - this is cgi request [08:07:40]url: /json_proto [08:07:40]query_string will be loaded in cgi processing [08:07:40]execute_cgi json_proto POST (null) [08:07:40]execute_cgi path=json_proto method=POST [08:07:40]POST find Content-Length [08:07:40]Host: 172.17.39.195:8080 [08:07:40]Content-Length: 623 [08:07:40]Content-Type: application/json [08:07:40] [08:07:40]POST finish read [08:07:40]Found Content-Length = 623 [08:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220906", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:40]execute_script... [08:07:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220906", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:40]POST & json_proto [08:07:40]process_json_proto [08:07:40]json parsed OK: [08:07:40]protocol is kg_v1.0 [08:07:40]action value=close_receipt [08:07:40]process_action close_receipt [08:07:40]cmd_close_receipt [08:07:40]MH_GetDate [08:07:40]Write to MH i2c: F0 00 00 81 0D 7D [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: F0 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: F0 09 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: F0 09 00 81 0D 00 4F 86 76 66 99 81 91 64 46 [08:07:40]GetLastDocTimeStamp 1719043439 [08:07:40]current date 1719043663 [08:07:40]FM_GetShiftState [08:07:40]SAM_PROTO_GetShiftState [08:07:40]wFMCommunicate request_size=4 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 13 01 00 [08:07:40]Write to MH i2c: E2 08 00 82 0D 80 13 01 00 00 00 00 00 0C [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:41]Read from MH i2c: E2 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: E2 0E 00 [08:07:41]MH_I2C_Read... [08:07:41]Read from MH i2c: E2 0E 00 82 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 02 [08:07:41]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:07:41]wFMCommunicate OK [08:07:41]SAM_PROTO_GetShiftState done [08:07:41]FM_GetShiftState done [08:07:41]opened in 1719016435 [08:07:41]opened+sec_in_day 1719102835 [08:07:41]quantity*price = 14000 [08:07:41]sum+1 = 14001 [08:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 21 22.06.2024 08:07 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76825 ФПД: 212973542114307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T080743&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76825&fm=212973542114307&tin=02508201610067®Number=0000000000095696&sum=14000 0 [08:07:42]StoreToDocumentArchive [08:07:42]shift 395 fd 76825 [08:07:42]save to /storage/0395/doc_00076825 [08:07:42]save last doc name /storage/0395/doc_00076825 to /storage/kkm_last_doc_name [08:07:42]save OK [08:07:42]Clear old archive folders... [08:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:07:42]tlvbuf is 008AE490 [08:07:42]SAM_PROTO_ClearQueue [08:07:42]wFMCommunicate request_size=4 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 09 00 00 [08:07:42]Write to MH i2c: E2 08 00 8F 0D 80 09 00 00 00 00 00 00 0E [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [08:07:42]RAPDU: 90 00 [08:07:42]wFMCommunicate OK [08:07:42]SAM_PROTO_ClearQueue done [08:07:42]KKMCreateOFDPacket [08:07:42]OFDProtocolAddRootSTLVToBuf [08:07:42]FM_MakeSignedData [08:07:42]FM_MakeSignedData [08:07:42]SAM_PROTO_SignData [08:07:42]wFMCommunicate request_size=4 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 0D 01 02 [08:07:42]Write to MH i2c: E2 08 00 90 0D 80 0D 01 02 00 00 00 00 16 [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [08:07:42]RAPDU: 90 00 [08:07:42]wFMCommunicate OK [08:07:42]wFMCommunicate request_size=255 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F 86 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 [08:07:42]Write to MH i2c: E2 02 01 91 0D 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F 86 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 00 00 02 [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [08:07:42]RAPDU: 90 00 [08:07:42]wFMCommunicate OK [08:07:42]wFMCommunicate request_size=34 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 19 2C 01 00 35 04 06 00 C1 B2 C4 53 04 03 [08:07:42]Write to MH i2c: E2 25 00 92 0D 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 19 2C 01 00 35 04 06 00 C1 B2 C4 53 04 03 00 00 AE [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 92 0D 00 90 00 13 [08:07:42]RAPDU: 90 00 [08:07:42]wFMCommunicate OK [08:07:42]wFMCommunicate request_size=4 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 0D 03 02 [08:07:42]Write to MH i2c: E2 08 00 93 0D 80 0D 03 02 00 00 00 00 1B [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 0B 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 0B 00 93 0D 00 EC D0 ED CB 77 0B 2C D9 90 00 17 [08:07:42]RAPDU: EC D0 ED CB 77 0B 2C D9 90 00 [08:07:42]wFMCommunicate OK [08:07:42]SAM_PROTO_SignData done [08:07:42]FM_MakeSignedData done [08:07:42]CreateOFDProtocolMessage [08:07:42]wFMCommunicate request_size=4 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 11 00 00 [08:07:42]Write to MH i2c: E2 08 00 94 0D 80 11 00 00 00 00 00 00 1B [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 17 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 17 00 94 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6B [08:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:07:42]wFMCommunicate OK [08:07:42]CreateOFDProtocolMessage done [08:07:42]OFDSenderStorePacket 76825 [08:07:42]StoreOFDPacket docnum=76825 [08:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 27 01 00 00 E0 8A 1F 01 E6 31 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F 86 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 19 2C 01 00 35 04 06 00 C1 B2 C4 53 04 03 EC D0 ED CB 77 0B 2C D9 [08:07:42]CheckFolder [08:07:42]dirname=/storage/ofd_packets [08:07:42]CheckFolder done [08:07:42]ProducePacketName [08:07:42]name=ofd_packets/00076825 [08:07:42]NVStorageSaveData ofd_packets/00076825 [08:07:42]File name is /storage/ofd_packets/00076825 [08:07:42]Write 325 bytes [08:07:42]NVStorageSaveData done [08:07:42]OFDSenderStorePacket done [08:07:42]KKMCreateOFDPacket done [08:07:42]NVStorageSaveData kkm_last_timestamp [08:07:42]File name is /storage/kkm_last_timestamp [08:07:42]Write 4 bytes [08:07:42]NVStorageSaveData done [08:07:42]ExternCall_PrintAddStr [08:07:42]wPrintStart [08:07:42]Write to MH i2c: 01 00 00 95 0D A2 [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: 01 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: 01 07 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: 01 07 00 95 0D 00 00 00 00 00 FF 0F B7 [08:07:42]RasterBufferAndPrint [08:07:42]line Счет N : (3)220906 [08:07:42]line ИНН: 02508201610067 [08:07:42]line Контрольно-Кассовый Чек [08:07:42]line ПРОДАЖА [08:07:42]line Товар: 48743587 [08:07:42]line Сигареты Winston XStyle Silver [08:07:42]line 1.000 * 140.00 [08:07:42]line = 140.00 [08:07:42]line НДС 12% НСП 1% [08:07:42]line > о реализуемом товаре [08:07:42]line ИТОГО: 140.00 [08:07:42]line НСП 1% : 1.24 [08:07:42]line НДС 12% : 14.87 [08:07:42]line Наличными: 140.00 [08:07:42]line Безнал.: 0.00 [08:07:42]line Место: АЗС № 144 "Партнер Нефть" [08:07:42]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:07:42]line СНО: Общий режим [08:07:42]line Чек 21 22.06.2024 08:07 [08:07:42]line Смена: 395 ФФД: 1.0 [08:07:42]line ЗНМ: 0300000170 [08:07:42]line РНМ: 0000000000095696 [08:07:42]line Версия ККМ: 001 [08:07:42]line ФМ: 0000000000875009 [08:07:42]line ФД: 76825 [08:07:42]line ФПД: 212973542114307 [08:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T080743&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76825&fm=212973542114307&tin=02508201610067®Number=0000000000095696&sum=14000 [08:07:42]line 0 [08:07:42]written 0, free lines is 4095 [08:07:42]OFD Sender: Processing packet 76825 [packets to send 351, broken 350] [08:07:42]ProducePacketName [08:07:42]name=ofd_packets/00076825 [08:07:42]OFD Sender: To server: pG, [08:07:42]CommunicateWithHost lk.salyk.kg:30040 [08:07:42]ConnectInit lk.salyk.kg [08:07:42]Connected sock=10 [08:07:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 27 01 00 00 E0 8A 1F 01 E6 31 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F 86 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 19 2C 01 00 35 04 06 00 C1 B2 C4 53 04 03 EC D0 ED CB 77 0B 2C D9 [08:07:43]Write to MH i2c: 01 00 00 BE 0D CB [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: 01 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: 01 07 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: 01 07 00 BE 0D 00 00 00 00 00 ED 0C CB [08:07:43]RasterBufferAndPrint [08:07:43]line [08:07:43]line [08:07:43]line [08:07:43]line [08:07:43]line [08:07:43]written 0, free lines is 3315 [08:07:43]MH_Cut [08:07:43]Write to MH i2c: D1 01 00 C5 0D 01 A4 [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: D1 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: D1 01 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: D1 01 00 C5 0D 00 A3 [08:07:43]Write to MH i2c: 01 00 00 C6 0D D3 [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 A7 B6 47 00 28 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 35 30 30 39 10 04 04 00 19 2C 01 00 F4 03 04 00 EA 2C 76 66 B6 04 01 00 00 64 7F B1 97 E6 8D 3F 40 [08:07:43]CommunicateWithHost err = 0 [08:07:43]CheckOFDResponse [08:07:43]1017 (14) - 77093643461234 [08:07:43]1041 (16) - 0000000000875009 [08:07:43]1040 (4) - 76825 [08:07:43]1012 (4) - 22.06.2024 01:46 [08:07:43]1206 (1) - 0 [08:07:43]OFD Sender: Remove packet 76825 [08:07:43]ProducePacketName [08:07:43]name=ofd_packets/00076825 [08:07:43]NVStorageDeleteData [08:07:43]OFD Sender: No OFD packet to send [08:07:43]*** Cut start [08:07:43]*** Partial cut [08:07:43]*** CUTSNS_PIN = 1 [08:07:43]*** CUTSNS_PIN = 0 [08:07:44]*** Brake cut motor [08:07:44]Read from MH i2c: 01 [08:07:44]MH_I2C_Read... [08:07:44]*** Stop cut motor [08:07:44]*** Cut end [08:07:44]Read from MH i2c: 01 07 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: 01 07 00 C6 0D 00 00 00 00 00 FF 0F E8 [08:07:44]process_action close_receipt done [08:07:44]requested_data is exist [08:07:44]produce_requested_data [08:07:44]requested_item fm.sn is exist - process it [08:07:44]wFMCommunicate request_size=4 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 11 00 00 [08:07:44]Write to MH i2c: E2 08 00 C7 0D 80 11 00 00 00 00 00 00 4E [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 17 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 17 00 C7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9E [08:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:07:44]wFMCommunicate OK [08:07:44]requested_item fd.num is exist - process it [08:07:44]SAM_PROTO_GetFieldsCounters [08:07:44]wFMCommunicate request_size=4 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 13 00 00 [08:07:44]Write to MH i2c: E2 08 00 C8 0D 80 13 00 00 00 00 00 00 51 [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 62 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 62 00 C8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 19 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [08:07:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 19 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:44]wFMCommunicate OK [08:07:44]SAM_PROTO_GetFieldsCounters done [08:07:44]requested_item shift.num is exist - process it [08:07:44]requested_item shift.opened is exist - process it [08:07:44]req_shift_opened [08:07:44]FM_GetShiftState [08:07:44]SAM_PROTO_GetShiftState [08:07:44]wFMCommunicate request_size=4 [08:07:44]MH_SAM_APDU [08:07:44]CAPDU: 80 13 01 00 [08:07:44]Write to MH i2c: E2 08 00 C9 0D 80 13 01 00 00 00 00 00 53 [08:07:44]Write i2c OK [08:07:44]MH_I2C_Read... [08:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:44]Read from MH i2c: E2 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 0E 00 [08:07:44]MH_I2C_Read... [08:07:44]Read from MH i2c: E2 0E 00 C9 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 49 [08:07:44]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:07:44]wFMCommunicate OK [08:07:44]SAM_PROTO_GetShiftState done [08:07:44]FM_GetShiftState done [08:07:44]req_shift_opened done [08:07:44]requested_item shift.open_date is exist - process it [08:07:44]req_shift_open_date [08:07:44]req_shift_open_date done [08:07:44]produce_requested_data done [08:07:44]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76825,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [08:07:44]process_action_free close_receipt [08:07:44]json_value_free [08:07:44]json_value_free done [08:07:44]process_json_proto returns [08:07:44]Send response to host [08:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76825,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [08:07:44]free response buf [08:07:44]execute_script done [08:07:44]execute_script returns [08:07:44]free content buf [08:07:44]Sock 8.Close socket [08:07:44]Sock 8.Thread stoped [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08: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]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:04]accept exits with 9 [08:09:04]New connection [08:09:04]New thread 3066994020 created [08:09:04]Thread 3066850660 joined [08:09:04]Waiting for new connection... [08:09:04] Sock 9.Parse request [08:09:04]Sock 9.Check first char [08:09:04]Sock 9.First char is OK [08:09:04]request: POST /json_proto HTTP/1.0 [08:09:04]Method: POST [08:09:04]URL: /json_proto [08:09:04]Method is POST - this is cgi request [08:09:04]url: /json_proto [08:09:04]query_string will be loaded in cgi processing [08:09:04]execute_cgi json_proto POST (null) [08:09:04]execute_cgi path=json_proto method=POST [08:09:04]POST find Content-Length [08:09:04]Host: 172.17.39.195:8080 [08:09:04]Content-Length: 1207 [08:09:04]Content-Type: application/json [08:09:04] [08:09:04]POST finish read [08:09:04]Found Content-Length = 1207 [08:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694280\u000A22.06.2024 07:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54737\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:04]execute_script... [08:09:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694280\u000A22.06.2024 07:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54737\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:04]POST & json_proto [08:09:04]process_json_proto [08:09:04]json parsed OK: [08:09:04]protocol is kg_v1.0 [08:09:04]action value=print_text [08:09:04]process_action print_text [08:09:04]cmd_print_text [08:09:04]ExternCall_PrintAddStr [08:09:04]wPrintStart [08:09:04]Write to MH i2c: 01 00 00 CA 0D D7 [08:09:04]Write i2c OK [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: 01 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: 01 07 00 [08:09:04]MH_I2C_Read... [08:09:04]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 FF 0F EC [08:09:04]RasterBufferAndPrint [08:09:04]line *****ТОВАРНЫЙ ЧЕК***** [08:09:04]line АЗС 144 [08:09:04]line Партнер нефть [08:09:04]line 02508201610067 [08:09:04]line Кассир : Шайлообек у. Т. [08:09:04]line Счет N : (1)1694280 [08:09:04]line 22.06.2024 07:40 [08:09:04]line ПРОДАЖА [08:09:04]line ТРК (МРК, ГНК): 21 [08:09:04]line Вид ГСМ : 2710194210 [08:09:04]line ДТ-К-2 [08:09:04]line 60.000 x 72.90 [08:09:04]line ИТОГ: 4374.00 [08:09:04]line Тип оплаты: Талоны: Топливная Карта [08:09:04]line 54737 [08:09:04]line ______________________ [08:09:04]line (подпись) [08:09:04]written 0, free lines is 4095 [08:09:05]Write to MH i2c: 01 00 00 DF 0D EC [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: 01 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: 01 07 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: 01 07 00 DF 0D 00 00 00 00 00 F3 0D F3 [08:09:05]RasterBufferAndPrint [08:09:05]line [08:09:05]line [08:09:05]line [08:09:05]line [08:09:05]line [08:09:05]written 0, free lines is 3573 [08:09:05]MH_Cut [08:09:05]Write to MH i2c: D1 01 00 E6 0D 01 C5 [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: D1 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: D1 01 00 [08:09:05]MH_I2C_Read... [08:09:05]Read from MH i2c: D1 01 00 E6 0D 00 C4 [08:09:05]Write to MH i2c: 01 00 00 E7 0D F4 [08:09:05]Write i2c OK [08:09:05]MH_I2C_Read... [08:09:05]*** Cut start [08:09:05]*** Partial cut [08:09:05]*** CUTSNS_PIN = 1 [08:09:05]*** CUTSNS_PIN = 0 [08:09:06]*** Brake cut motor [08:09:06]Read from MH i2c: 01 [08:09:06]MH_I2C_Read... [08:09:06]*** Stop cut motor [08:09:06]*** Cut end [08:09:06]Read from MH i2c: 01 07 00 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: 01 07 00 E7 0D 00 00 00 00 00 FF 0F 09 [08:09:06]process_action print_text done [08:09:06]requested_data is exist [08:09:06]produce_requested_data [08:09:06]requested_item fm.sn is exist - process it [08:09:06]wFMCommunicate request_size=4 [08:09:06]MH_SAM_APDU [08:09:06]CAPDU: 80 11 00 00 [08:09:06]Write to MH i2c: E2 08 00 E8 0D 80 11 00 00 00 00 00 00 6F [08:09:06]Write i2c OK [08:09:06]MH_I2C_Read... [08:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:06]Read from MH i2c: E2 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: E2 17 00 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: E2 17 00 E8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BF [08:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:09:06]wFMCommunicate OK [08:09:06]requested_item fd.num is exist - process it [08:09:06]SAM_PROTO_GetFieldsCounters [08:09:06]wFMCommunicate request_size=4 [08:09:06]MH_SAM_APDU [08:09:06]CAPDU: 80 13 00 00 [08:09:06]Write to MH i2c: E2 08 00 E9 0D 80 13 00 00 00 00 00 00 72 [08:09:06]Write i2c OK [08:09:06]MH_I2C_Read... [08:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:06]Read from MH i2c: E2 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: E2 62 00 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: E2 62 00 E9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 19 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [08:09: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 19 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:06]wFMCommunicate OK [08:09:06]SAM_PROTO_GetFieldsCounters done [08:09:06]requested_item shift.num is exist - process it [08:09:06]requested_item shift.opened is exist - process it [08:09:06]req_shift_opened [08:09:06]FM_GetShiftState [08:09:06]SAM_PROTO_GetShiftState [08:09:06]wFMCommunicate request_size=4 [08:09:06]MH_SAM_APDU [08:09:06]CAPDU: 80 13 01 00 [08:09:06]Write to MH i2c: E2 08 00 EA 0D 80 13 01 00 00 00 00 00 74 [08:09:06]Write i2c OK [08:09:06]MH_I2C_Read... [08:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:06]Read from MH i2c: E2 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: E2 0E 00 [08:09:06]MH_I2C_Read... [08:09:06]Read from MH i2c: E2 0E 00 EA 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 6A [08:09:06]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:09:06]wFMCommunicate OK [08:09:06]SAM_PROTO_GetShiftState done [08:09:06]FM_GetShiftState done [08:09:06]req_shift_opened done [08:09:06]requested_item shift.open_date is exist - process it [08:09:06]req_shift_open_date [08:09:06]req_shift_open_date done [08:09:06]produce_requested_data done [08:09:06]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76825,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [08:09:06]process_action_free print_text [08:09:06]json_value_free [08:09:06]json_value_free done [08:09:06]process_json_proto returns [08:09:06]Send response to host [08:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76825,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [08:09:06]free response buf [08:09:06]execute_script done [08:09:06]execute_script returns [08:09:06]free content buf [08:09:06]Sock 9.Close socket [08:09:06]Sock 9.Thread stoped [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:05]accept exits with 8 [08:12:05]New connection [08:12:05]New thread 3066850660 created [08:12:05]Thread 3066994020 joined [08:12:05]Waiting for new connection... [08:12:05] Sock 8.Parse request [08:12:05]Sock 8.Check first char [08:12:05]Sock 8.First char is OK [08:12:05]request: POST /json_proto HTTP/1.0 [08:12:05]Method: POST [08:12:05]URL: /json_proto [08:12:05]Method is POST - this is cgi request [08:12:05]url: /json_proto [08:12:05]query_string will be loaded in cgi processing [08:12:05]execute_cgi json_proto POST (null) [08:12:05]execute_cgi path=json_proto method=POST [08:12:05]POST find Content-Length [08:12:05]Host: 172.17.39.195:8080 [08:12:05]Content-Length: 606 [08:12:05]Content-Type: application/json [08:12:05] [08:12:05]POST finish read [08:12:05]Found Content-Length = 606 [08:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220907", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 2.000, "sum" : 1260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:05]execute_script... [08:12:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220907", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 2.000, "sum" : 1260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:05]POST & json_proto [08:12:05]process_json_proto [08:12:05]json parsed OK: [08:12:05]protocol is kg_v1.0 [08:12:05]action value=close_receipt [08:12:05]process_action close_receipt [08:12:05]cmd_close_receipt [08:12:05]MH_GetDate [08:12:05]Write to MH i2c: F0 00 00 EB 0D E7 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: F0 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: F0 09 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: F0 09 00 EB 0D 00 58 87 76 66 99 81 91 64 BA [08:12:05]GetLastDocTimeStamp 1719043663 [08:12:05]current date 1719043928 [08:12:05]FM_GetShiftState [08:12:05]SAM_PROTO_GetShiftState [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 13 01 00 [08:12:05]Write to MH i2c: E2 08 00 EC 0D 80 13 01 00 00 00 00 00 76 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:06]Read from MH i2c: E2 [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: E2 0E 00 [08:12:06]MH_I2C_Read... [08:12:06]Read from MH i2c: E2 0E 00 EC 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 6C [08:12:06]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:12:06]wFMCommunicate OK [08:12:06]SAM_PROTO_GetShiftState done [08:12:06]FM_GetShiftState done [08:12:06]opened in 1719016435 [08:12:06]opened+sec_in_day 1719102835 [08:12:06]quantity*price = 126000 [08:12:06]sum+1 = 126001 [08:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1260.00 НСП 1% : 11.15 НДС 12% : 133.80 Наличными: 1260.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 22 22.06.2024 08:12 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76826 ФПД: 127440377223253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081208&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76826&fm=127440377223253&tin=02508201610067®Number=0000000000095696&sum=126000 0 [08:12:07]StoreToDocumentArchive [08:12:07]shift 395 fd 76826 [08:12:07]save to /storage/0395/doc_00076826 [08:12:07]save last doc name /storage/0395/doc_00076826 to /storage/kkm_last_doc_name [08:12:07]save OK [08:12:07]Clear old archive folders... [08:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=264 [08:12:07]tlvbuf is 0088DB50 [08:12:07]SAM_PROTO_ClearQueue [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 09 00 00 [08:12:07]Write to MH i2c: E2 08 00 F9 0D 80 09 00 00 00 00 00 00 78 [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:07]Read from MH i2c: E2 03 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 F9 0D 00 90 00 7A [08:12:07]RAPDU: 90 00 [08:12:07]wFMCommunicate OK [08:12:07]SAM_PROTO_ClearQueue done [08:12:07]KKMCreateOFDPacket [08:12:07]OFDProtocolAddRootSTLVToBuf [08:12:07]FM_MakeSignedData [08:12:07]FM_MakeSignedData [08:12:07]SAM_PROTO_SignData [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 0D 01 02 [08:12:07]Write to MH i2c: E2 08 00 FA 0D 80 0D 01 02 00 00 00 00 80 [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 FA 0D 00 90 00 7B [08:12:07]RAPDU: 90 00 [08:12:07]wFMCommunicate OK [08:12:07]wFMCommunicate request_size=255 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 0D 02 02 FA 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 58 87 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 [08:12:07]Write to MH i2c: E2 02 01 FB 0D 80 0D 02 02 FA 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 58 87 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 00 00 CA [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 FB 0D 00 90 00 7C [08:12:07]RAPDU: 90 00 [08:12:07]wFMCommunicate OK [08:12:07]wFMCommunicate request_size=23 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 0D 02 02 12 10 04 04 00 1A 2C 01 00 35 04 06 00 73 E8 06 6A 18 55 [08:12:07]Write to MH i2c: E2 1A 00 FC 0D 80 0D 02 02 12 00 10 04 04 00 1A 2C 01 00 35 04 06 00 73 E8 06 6A 18 55 00 00 7D [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 03 00 FC 0D 00 90 00 7D [08:12:07]RAPDU: 90 00 [08:12:07]wFMCommunicate OK [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 0D 03 02 [08:12:07]Write to MH i2c: E2 08 00 FD 0D 80 0D 03 02 00 00 00 00 85 [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 0B 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 0B 00 FD 0D 00 5A C6 0B 70 14 B4 C0 90 90 00 39 [08:12:07]RAPDU: 5A C6 0B 70 14 B4 C0 90 90 00 [08:12:07]wFMCommunicate OK [08:12:07]SAM_PROTO_SignData done [08:12:07]FM_MakeSignedData done [08:12:07]CreateOFDProtocolMessage [08:12:07]wFMCommunicate request_size=4 [08:12:07]MH_SAM_APDU [08:12:07]CAPDU: 80 11 00 00 [08:12:07]Write to MH i2c: E2 08 00 FE 0D 80 11 00 00 00 00 00 00 85 [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:07]Read from MH i2c: E2 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 17 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: E2 17 00 FE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D5 [08:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:12:07]wFMCommunicate OK [08:12:07]CreateOFDProtocolMessage done [08:12:07]OFDSenderStorePacket 76826 [08:12:07]StoreOFDPacket docnum=76826 [08:12:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1C 01 00 00 78 5E 14 01 D7 1D 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 58 87 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1A 2C 01 00 35 04 06 00 73 E8 06 6A 18 55 5A C6 0B 70 14 B4 C0 90 [08:12:07]CheckFolder [08:12:07]dirname=/storage/ofd_packets [08:12:07]CheckFolder done [08:12:07]ProducePacketName [08:12:07]name=ofd_packets/00076826 [08:12:07]NVStorageSaveData ofd_packets/00076826 [08:12:07]File name is /storage/ofd_packets/00076826 [08:12:07]Write 314 bytes [08:12:07]NVStorageSaveData done [08:12:07]OFDSenderStorePacket done [08:12:07]KKMCreateOFDPacket done [08:12:07]NVStorageSaveData kkm_last_timestamp [08:12:07]File name is /storage/kkm_last_timestamp [08:12:07]Write 4 bytes [08:12:07]NVStorageSaveData done [08:12:07]ExternCall_PrintAddStr [08:12:07]wPrintStart [08:12:07]Write to MH i2c: 01 00 00 FF 0D 0C [08:12:07]Write i2c OK [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: 01 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: 01 07 00 [08:12:07]MH_I2C_Read... [08:12:07]Read from MH i2c: 01 07 00 FF 0D 00 00 00 00 00 FF 0F 21 [08:12:07]RasterBufferAndPrint [08:12:07]line Счет N : (3)220907 [08:12:07]line ИНН: 02508201610067 [08:12:07]line Контрольно-Кассовый Чек [08:12:07]line ПРОДАЖА [08:12:07]line Товар: 4700002083334 [08:12:07]line Водка Level 0,7л [08:12:07]line 2.000 * 630.00 [08:12:07]line = 1260.00 [08:12:07]line НДС 12% НСП 1% [08:12:07]line > о реализуемом товаре [08:12:07]line ИТОГО: 1260.00 [08:12:07]line НСП 1% : 11.15 [08:12:07]line НДС 12% : 133.80 [08:12:07]line Наличными: 1260.00 [08:12:07]line Безнал.: 0.00 [08:12:07]line Место: АЗС № 144 "Партнер Нефть" [08:12:07]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:12:07]line СНО: Общий режим [08:12:07]line Чек 22 22.06.2024 08:12 [08:12:07]line Смена: 395 ФФД: 1.0 [08:12:07]line ЗНМ: 0300000170 [08:12:07]line РНМ: 0000000000095696 [08:12:07]line Версия ККМ: 001 [08:12:07]line ФМ: 0000000000875009 [08:12:07]line ФД: 76826 [08:12:07]line ФПД: 127440377223253 [08:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081208&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76826&fm=127440377223253&tin=02508201610067®Number=0000000000095696&sum=126000 [08:12:08]line 0 [08:12:08]OFD Sender: Processing packet 76826 [packets to send 351, broken 350] [08:12:08]ProducePacketName [08:12:08]name=ofd_packets/00076826 [08:12:08]OFD Sender: To server: pG, [08:12:08]CommunicateWithHost lk.salyk.kg:30040 [08:12:08]ConnectInit lk.salyk.kg [08:12:08]written 0, free lines is 4095 [08:12:08]Connected sock=10 [08:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1C 01 00 00 78 5E 14 01 D7 1D 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 58 87 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1A 2C 01 00 35 04 06 00 73 E8 06 6A 18 55 5A C6 0B 70 14 B4 C0 90 [08:12:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 27 4D 47 00 7D 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1A 2C 01 00 F4 03 04 00 F3 2D 76 66 B6 04 01 00 00 53 A4 4C 57 AB CA 11 53 [08:12:08]CommunicateWithHost err = 0 [08:12:08]CheckOFDResponse [08:12:08]1017 (14) - 77093643461234 [08:12:08]1041 (16) - 0000000000875009 [08:12:08]1040 (4) - 76826 [08:12:08]1012 (4) - 22.06.2024 01:50 [08:12:08]1206 (1) - 0 [08:12:08]OFD Sender: Remove packet 76826 [08:12:08]ProducePacketName [08:12:08]name=ofd_packets/00076826 [08:12:08]NVStorageDeleteData [08:12:08]Write to MH i2c: 01 00 00 27 0E 35 [08:12:08]Write i2c OK [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 07 00 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 07 00 27 0E 00 00 00 00 00 13 0D 5C [08:12:08]RasterBufferAndPrint [08:12:08]line [08:12:08]line [08:12:08]line [08:12:08]line [08:12:08]line [08:12:08]written 0, free lines is 3353 [08:12:08]MH_Cut [08:12:08]Write to MH i2c: D1 01 00 2E 0E 01 0E [08:12:08]Write i2c OK [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: D1 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: D1 01 00 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: D1 01 00 2E 0E 00 0D [08:12:08]Write to MH i2c: 01 00 00 2F 0E 3D [08:12:08]Write i2c OK [08:12:08]MH_I2C_Read... [08:12:08]OFD Sender: No OFD packet to send [08:12:09]*** Cut start [08:12:09]*** Partial cut [08:12:09]*** CUTSNS_PIN = 1 [08:12:09]*** CUTSNS_PIN = 0 [08:12:09]*** Brake cut motor [08:12:09]Read from MH i2c: 01 [08:12:09]MH_I2C_Read... [08:12:09]*** Stop cut motor [08:12:09]*** Cut end [08:12:09]Read from MH i2c: 01 07 00 [08:12:09]MH_I2C_Read... [08:12:09]Read from MH i2c: 01 07 00 2F 0E 00 00 00 00 00 FF 0F 52 [08:12:09]process_action close_receipt done [08:12:09]requested_data is exist [08:12:09]produce_requested_data [08:12:09]requested_item fm.sn is exist - process it [08:12:09]wFMCommunicate request_size=4 [08:12:09]MH_SAM_APDU [08:12:09]CAPDU: 80 11 00 00 [08:12:09]Write to MH i2c: E2 08 00 30 0E 80 11 00 00 00 00 00 00 B8 [08:12:09]Write i2c OK [08:12:09]MH_I2C_Read... [08:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:09]Read from MH i2c: E2 [08:12:09]MH_I2C_Read... [08:12:09]Read from MH i2c: E2 17 00 [08:12:09]MH_I2C_Read... [08:12:09]Read from MH i2c: E2 17 00 30 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 08 [08:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:12:09]wFMCommunicate OK [08:12:09]requested_item fd.num is exist - process it [08:12:09]SAM_PROTO_GetFieldsCounters [08:12:09]wFMCommunicate request_size=4 [08:12:09]MH_SAM_APDU [08:12:09]CAPDU: 80 13 00 00 [08:12:09]Write to MH i2c: E2 08 00 31 0E 80 13 00 00 00 00 00 00 BB [08:12:09]Write i2c OK [08:12:09]MH_I2C_Read... [08:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:10]Read from MH i2c: E2 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 62 00 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 62 00 31 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [08:12: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:10]wFMCommunicate OK [08:12:10]SAM_PROTO_GetFieldsCounters done [08:12:10]requested_item shift.num is exist - process it [08:12:10]requested_item shift.opened is exist - process it [08:12:10]req_shift_opened [08:12:10]FM_GetShiftState [08:12:10]SAM_PROTO_GetShiftState [08:12:10]wFMCommunicate request_size=4 [08:12:10]MH_SAM_APDU [08:12:10]CAPDU: 80 13 01 00 [08:12:10]Write to MH i2c: E2 08 00 32 0E 80 13 01 00 00 00 00 00 BD [08:12:10]Write i2c OK [08:12:10]MH_I2C_Read... [08:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:10]Read from MH i2c: E2 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 0E 00 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 0E 00 32 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B3 [08:12:10]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:12:10]wFMCommunicate OK [08:12:10]SAM_PROTO_GetShiftState done [08:12:10]FM_GetShiftState done [08:12:10]req_shift_opened done [08:12:10]requested_item shift.open_date is exist - process it [08:12:10]req_shift_open_date [08:12:10]req_shift_open_date done [08:12:10]produce_requested_data done [08:12:10]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76826,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [08:12:10]process_action_free close_receipt [08:12:10]json_value_free [08:12:10]json_value_free done [08:12:10]process_json_proto returns [08:12:10]Send response to host [08:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76826,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [08:12:10]free response buf [08:12:10]execute_script done [08:12:10]execute_script returns [08:12:10]free content buf [08:12:10]Sock 8.Close socket [08:12:10]Sock 8.Thread stoped [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:38]OFD Sender: No OFD packet to send [08:12:43]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]accept exits with 9 [08:12:57]New connection [08:12:57]New thread 3066994020 created [08:12:57]Thread 3066850660 joined [08:12:57]Waiting for new connection... [08:12:57] Sock 9.Parse request [08:12:57]Sock 9.Check first char [08:12:57]Sock 9.First char is OK [08:12:57]request: POST /json_proto HTTP/1.0 [08:12:57]Method: POST [08:12:57]URL: /json_proto [08:12:57]Method is POST - this is cgi request [08:12:57]url: /json_proto [08:12:57]query_string will be loaded in cgi processing [08:12:57]execute_cgi json_proto POST (null) [08:12:57]execute_cgi path=json_proto method=POST [08:12:57]POST find Content-Length [08:12:57]Host: 172.17.39.195:8080 [08:12:57]Content-Length: 1125 [08:12:57]Content-Type: application/json [08:12:57] [08:12:57]POST finish read [08:12:57]Found Content-Length = 1125 [08:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220908", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46153715", "name": "\u0420/\u0436 Orbit XXL white bubblemint 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 196.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:57]execute_script... [08:12:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220908", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46153715", "name": "\u0420/\u0436 Orbit XXL white bubblemint 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 196.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:57]POST & json_proto [08:12:57]process_json_proto [08:12:57]json parsed OK: [08:12:57]protocol is kg_v1.0 [08:12:57]action value=close_receipt [08:12:57]process_action close_receipt [08:12:57]cmd_close_receipt [08:12:57]MH_GetDate [08:12:57]Write to MH i2c: F0 00 00 33 0E 30 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: F0 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: F0 09 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: F0 09 00 33 0E 00 8C 87 76 66 99 81 91 64 37 [08:12:57]GetLastDocTimeStamp 1719043928 [08:12:57]current date 1719043980 [08:12:57]FM_GetShiftState [08:12:57]SAM_PROTO_GetShiftState [08:12:57]wFMCommunicate request_size=4 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 13 01 00 [08:12:57]Write to MH i2c: E2 08 00 34 0E 80 13 01 00 00 00 00 00 BF [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 0E 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 0E 00 34 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B5 [08:12:57]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:12:57]wFMCommunicate OK [08:12:57]SAM_PROTO_GetShiftState done [08:12:57]FM_GetShiftState done [08:12:57]opened in 1719016435 [08:12:57]opened+sec_in_day 1719102835 [08:12:57]quantity*price = 7500 [08:12:57]sum+1 = 7501 [08:12:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400358 Семечки ДЖИНН 70г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46153715 Р/ж Orbit XXL white bubblemint 20,4г 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 196.00 НСП 1% : 1.73 НДС 12% : 20.81 Наличными: 196.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 23 22.06.2024 08:13 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76827 ФПД: 26299820844963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081300&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76827&fm=26299820844963&tin=02508201610067®Number=0000000000095696&sum=19600 0 [08:12:58]StoreToDocumentArchive [08:12:58]shift 395 fd 76827 [08:12:58]save to /storage/0395/doc_00076827 [08:12:58]save last doc name /storage/0395/doc_00076827 to /storage/kkm_last_doc_name [08:12:58]save OK [08:12:58]Clear old archive folders... [08:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=483 [08:12:58]tlvbuf is 008AE6C0 [08:12:58]SAM_PROTO_ClearQueue [08:12:58]wFMCommunicate request_size=4 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 09 00 00 [08:12:58]Write to MH i2c: E2 08 00 41 0E 80 09 00 00 00 00 00 00 C1 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 41 0E 00 90 00 C3 [08:12:58]RAPDU: 90 00 [08:12:58]wFMCommunicate OK [08:12:58]SAM_PROTO_ClearQueue done [08:12:58]KKMCreateOFDPacket [08:12:58]OFDProtocolAddRootSTLVToBuf [08:12:58]FM_MakeSignedData [08:12:58]FM_MakeSignedData [08:12:58]SAM_PROTO_SignData [08:12:58]wFMCommunicate request_size=4 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 0D 01 02 [08:12:58]Write to MH i2c: E2 08 00 42 0E 80 0D 01 02 00 00 00 00 C9 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 42 0E 00 90 00 C4 [08:12:58]RAPDU: 90 00 [08:12:58]wFMCommunicate OK [08:12:58]wFMCommunicate request_size=255 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 0D 02 02 FA 03 00 E3 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 [08:12:59]Write to MH i2c: E2 02 01 43 0E 80 0D 02 02 FA 00 03 00 E3 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 00 00 1E [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]OFD Sender: No OFD packet to send [08:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 43 0E 00 90 00 C5 [08:12:59]RAPDU: 90 00 [08:12:59]wFMCommunicate OK [08:12:59]wFMCommunicate request_size=242 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 0D 02 02 ED 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 08 00 00 00 00 07 04 06 00 90 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 8C 87 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1B 2C 01 00 35 04 06 00 17 EB 67 7A A7 A3 [08:12:59]Write to MH i2c: E2 F5 00 44 0E 80 0D 02 02 ED 00 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 08 00 00 00 00 07 04 06 00 90 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 8C 87 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1B 2C 01 00 35 04 06 00 17 EB 67 7A A7 A3 00 00 C2 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:59]Read from MH i2c: E2 03 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 44 0E 00 90 00 C6 [08:12:59]RAPDU: 90 00 [08:12:59]wFMCommunicate OK [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 0D 03 02 [08:12:59]Write to MH i2c: E2 08 00 45 0E 80 0D 03 02 00 00 00 00 CE [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0B 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0B 00 45 0E 00 E9 9E D3 E6 89 21 7A A8 90 00 DB [08:12:59]RAPDU: E9 9E D3 E6 89 21 7A A8 90 00 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_SignData done [08:12:59]FM_MakeSignedData done [08:12:59]CreateOFDProtocolMessage [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 11 00 00 [08:12:59]Write to MH i2c: E2 08 00 46 0E 80 11 00 00 00 00 00 00 CE [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 46 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1E [08:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:12:59]wFMCommunicate OK [08:12:59]CreateOFDProtocolMessage done [08:12:59]OFDSenderStorePacket 76827 [08:12:59]StoreOFDPacket docnum=76827 [08:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 F7 01 00 00 27 E3 EF 01 ED AA 5A 03 01 00 03 00 E3 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 08 00 00 00 00 07 04 06 00 90 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 8C 87 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1B 2C 01 00 35 04 06 00 17 EB 67 7A A7 A3 E9 9E D3 E6 89 21 7A A8 [08:12:59]CheckFolder [08:12:59]dirname=/storage/ofd_packets [08:12:59]CheckFolder done [08:12:59]ProducePacketName [08:12:59]name=ofd_packets/00076827 [08:12:59]NVStorageSaveData ofd_packets/00076827 [08:12:59]File name is /storage/ofd_packets/00076827 [08:12:59]Write 533 bytes [08:12:59]NVStorageSaveData done [08:12:59]OFDSenderStorePacket done [08:12:59]KKMCreateOFDPacket done [08:12:59]NVStorageSaveData kkm_last_timestamp [08:12:59]File name is /storage/kkm_last_timestamp [08:12:59]Write 4 bytes [08:12:59]NVStorageSaveData done [08:12:59]ExternCall_PrintAddStr [08:12:59]wPrintStart [08:12:59]Write to MH i2c: 01 00 00 47 0E 55 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 47 0E 00 00 00 00 00 FF 0F 6A [08:12:59]RasterBufferAndPrint [08:12:59]line Счет N : (3)220908 [08:12:59]line ИНН: 02508201610067 [08:12:59]line Контрольно-Кассовый Чек [08:12:59]line ПРОДАЖА [08:12:59]line Товар: 54491472 [08:12:59]line Напиток Кока-Кола 0,5л [08:12:59]line 1.000 * 75.00 [08:12:59]line = 75.00 [08:12:59]line НДС 12% НСП 1% [08:12:59]line > о реализуемом товаре [08:12:59]line Товар: 4630007400358 [08:12:59]line Семечки ДЖИНН 70г [08:12:59]line 1.000 * 70.00 [08:12:59]line = 70.00 [08:12:59]line НДС 12% НСП 1% [08:12:59]line > о реализуемом товаре [08:12:59]line Товар: 46153715 [08:12:59]line Р/ж Orbit XXL white bubblemint 20,4г [08:12:59]line 1.000 * 51.00 [08:12:59]line = 51.00 [08:12:59]line НДС 12% НСП 1% [08:12:59]line > о реализуемом товаре [08:12:59]line ИТОГО: 196.00 [08:12:59]line НСП 1% : 1.73 [08:12:59]line НДС 12% : 20.81 [08:12:59]line Наличными: 196.00 [08:12:59]line Безнал.: 0.00 [08:12:59]line Место: АЗС № 144 "Партнер Нефть" [08:12:59]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:12:59]line СНО: Общий режим [08:12:59]line Чек 23 22.06.2024 08:13 [08:12:59]line Смена: 395 ФФД: 1.0 [08:12:59]line ЗНМ: 0300000170 [08:12:59]line РНМ: 0000000000095696 [08:12:59]line Версия ККМ: 001 [08:12:59]line ФМ: 0000000000875009 [08:12:59]line ФД: 76827 [08:12:59]line ФПД: 26299820844963 [08:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081300&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76827&fm=26299820844963&tin=02508201610067®Number=0000000000095696&sum=19600 [08:12:59]line 0 [08:12:59]written 0, free lines is 4095 [08:12:59]OFD Sender: Processing packet 76827 [packets to send 351, broken 350] [08:12:59]ProducePacketName [08:12:59]name=ofd_packets/00076827 [08:12:59]OFD Sender: To server: pG, [08:12:59]CommunicateWithHost lk.salyk.kg:30040 [08:12:59]ConnectInit lk.salyk.kg [08:12:59]Connected sock=10 [08:12:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 F7 01 00 00 27 E3 EF 01 ED AA 5A 03 01 00 03 00 E3 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 08 00 00 00 00 07 04 06 00 90 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 8C 87 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1B 2C 01 00 35 04 06 00 17 EB 67 7A A7 A3 E9 9E D3 E6 89 21 7A A8 [08:13:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 01 1C 47 00 1E 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 35 30 30 39 10 04 04 00 1B 2C 01 00 F4 03 04 00 27 2E 76 66 B6 04 01 00 00 A4 D8 AE 09 A9 CE AB D7 [08:13:00]CommunicateWithHost err = 0 [08:13:00]CheckOFDResponse [08:13:00]1017 (14) - 77093643461234 [08:13:00]1041 (16) - 0000000000875009 [08:13:00]1040 (4) - 76827 [08:13:00]1012 (4) - 22.06.2024 01:51 [08:13:00]1206 (1) - 0 [08:13:00]OFD Sender: Remove packet 76827 [08:13:00]ProducePacketName [08:13:00]name=ofd_packets/00076827 [08:13:00]NVStorageDeleteData [08:13:00]Write to MH i2c: 01 00 00 7C 0E 8A [08:13:00]Write i2c OK [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: 01 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: 01 07 00 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: 01 07 00 7C 0E 00 00 00 00 00 2F 0C CC [08:13:00]RasterBufferAndPrint [08:13:00]line [08:13:00]line [08:13:00]line [08:13:00]line [08:13:00]line [08:13:00]written 0, free lines is 3124 [08:13:00]MH_Cut [08:13:00]Write to MH i2c: D1 01 00 83 0E 01 63 [08:13:00]Write i2c OK [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: D1 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: D1 01 00 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: D1 01 00 83 0E 00 62 [08:13:00]Write to MH i2c: 01 00 00 84 0E 92 [08:13:00]Write i2c OK [08:13:00]MH_I2C_Read... [08:13:00]OFD Sender: No OFD packet to send [08:13:01]*** Cut start [08:13:01]*** Partial cut [08:13:01]*** CUTSNS_PIN = 1 [08:13:01]*** CUTSNS_PIN = 0 [08:13:01]*** Brake cut motor [08:13:01]Read from MH i2c: 01 [08:13:01]MH_I2C_Read... [08:13:01]*** Stop cut motor [08:13:01]*** Cut end [08:13:01]Read from MH i2c: 01 07 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: 01 07 00 84 0E 00 00 00 00 00 FF 0F A7 [08:13:01]process_action close_receipt done [08:13:01]requested_data is exist [08:13:01]produce_requested_data [08:13:01]requested_item fm.sn is exist - process it [08:13:01]wFMCommunicate request_size=4 [08:13:01]MH_SAM_APDU [08:13:01]CAPDU: 80 11 00 00 [08:13:01]Write to MH i2c: E2 08 00 85 0E 80 11 00 00 00 00 00 00 0D [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:01]Read from MH i2c: E2 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 17 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 17 00 85 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5D [08:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:13:01]wFMCommunicate OK [08:13:01]requested_item fd.num is exist - process it [08:13:01]SAM_PROTO_GetFieldsCounters [08:13:01]wFMCommunicate request_size=4 [08:13:01]MH_SAM_APDU [08:13:01]CAPDU: 80 13 00 00 [08:13:01]Write to MH i2c: E2 08 00 86 0E 80 13 00 00 00 00 00 00 10 [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:01]Read from MH i2c: E2 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 62 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 62 00 86 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [08:13: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:01]wFMCommunicate OK [08:13:01]SAM_PROTO_GetFieldsCounters done [08:13:01]requested_item shift.num is exist - process it [08:13:01]requested_item shift.opened is exist - process it [08:13:01]req_shift_opened [08:13:01]FM_GetShiftState [08:13:01]SAM_PROTO_GetShiftState [08:13:01]wFMCommunicate request_size=4 [08:13:01]MH_SAM_APDU [08:13:01]CAPDU: 80 13 01 00 [08:13:01]Write to MH i2c: E2 08 00 87 0E 80 13 01 00 00 00 00 00 12 [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:01]Read from MH i2c: E2 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 0E 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 0E 00 87 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 08 [08:13:01]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:13:01]wFMCommunicate OK [08:13:01]SAM_PROTO_GetShiftState done [08:13:01]FM_GetShiftState done [08:13:01]req_shift_opened done [08:13:01]requested_item shift.open_date is exist - process it [08:13:01]req_shift_open_date [08:13:01]req_shift_open_date done [08:13:01]produce_requested_data done [08:13:01]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76827,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [08:13:01]process_action_free close_receipt [08:13:01]json_value_free [08:13:01]json_value_free done [08:13:01]process_json_proto returns [08:13:01]Send response to host [08:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76827,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [08:13:01]free response buf [08:13:01]execute_script done [08:13:01]execute_script returns [08:13:01]free content buf [08:13:01]Sock 9.Close socket [08:13:02]Sock 9.Thread stoped [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:13]accept exits with 8 [08:16:13]New connection [08:16:13]New thread 3066850660 created [08:16:13]Thread 3066994020 joined [08:16:13]Waiting for new connection... [08:16:13] Sock 8.Parse request [08:16:13]Sock 8.Check first char [08:16:13]Sock 8.First char is OK [08:16:13]request: POST /json_proto HTTP/1.0 [08:16:13]Method: POST [08:16:13]URL: /json_proto [08:16:13]Method is POST - this is cgi request [08:16:13]url: /json_proto [08:16:13]query_string will be loaded in cgi processing [08:16:13]execute_cgi json_proto POST (null) [08:16:13]execute_cgi path=json_proto method=POST [08:16:13]POST find Content-Length [08:16:13]Host: 172.17.39.195:8080 [08:16:13]Content-Length: 215 [08:16:13]Content-Type: application/json [08:16:13] [08:16:13]POST finish read [08:16:13]Found Content-Length = 215 [08:16:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:13]execute_script... [08:16:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:13]POST & json_proto [08:16:13]process_json_proto [08:16:13]json parsed OK: [08:16:13]protocol is kg_v1.0 [08:16:13]action value=get_value [08:16:13]process_action get_value [08:16:13]cmd_get_value [08:16:13]process_action get_value done [08:16:13]requested_data is exist [08:16:13]produce_requested_data [08:16:13]requested_item kkm.sn is exist - process it [08:16:13]requested_item kkm.ver is exist - process it [08:16:13]requested_item fm.sn is exist - process it [08:16:13]wFMCommunicate request_size=4 [08:16:13]MH_SAM_APDU [08:16:13]CAPDU: 80 11 00 00 [08:16:13]Write to MH i2c: E2 08 00 88 0E 80 11 00 00 00 00 00 00 10 [08:16:13]Write i2c OK [08:16:13]MH_I2C_Read... [08:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:14]Read from MH i2c: E2 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: E2 17 00 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: E2 17 00 88 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 60 [08:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:16:14]wFMCommunicate OK [08:16:14]requested_item fd.num is exist - process it [08:16:14]SAM_PROTO_GetFieldsCounters [08:16:14]wFMCommunicate request_size=4 [08:16:14]MH_SAM_APDU [08:16:14]CAPDU: 80 13 00 00 [08:16:14]Write to MH i2c: E2 08 00 89 0E 80 13 00 00 00 00 00 00 13 [08:16:14]Write i2c OK [08:16:14]MH_I2C_Read... [08:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:14]Read from MH i2c: E2 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: E2 62 00 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: E2 62 00 89 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [08:16: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:14]wFMCommunicate OK [08:16:14]SAM_PROTO_GetFieldsCounters done [08:16:14]requested_item shift.num is exist - process it [08:16:14]requested_item shift.opened is exist - process it [08:16:14]req_shift_opened [08:16:14]FM_GetShiftState [08:16:14]SAM_PROTO_GetShiftState [08:16:14]wFMCommunicate request_size=4 [08:16:14]MH_SAM_APDU [08:16:14]CAPDU: 80 13 01 00 [08:16:14]Write to MH i2c: E2 08 00 8A 0E 80 13 01 00 00 00 00 00 15 [08:16:14]Write i2c OK [08:16:14]MH_I2C_Read... [08:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:14]Read from MH i2c: E2 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: E2 0E 00 [08:16:14]MH_I2C_Read... [08:16:14]Read from MH i2c: E2 0E 00 8A 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 0B [08:16:14]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:16:14]wFMCommunicate OK [08:16:14]SAM_PROTO_GetShiftState done [08:16:14]FM_GetShiftState done [08:16:14]req_shift_opened done [08:16:14]requested_item shift.open_date is exist - process it [08:16:14]req_shift_open_date [08:16:14]req_shift_open_date done [08:16:14]produce_requested_data done [08:16:14]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76827,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [08:16:14]process_action_free get_value [08:16:14]json_value_free [08:16:14]json_value_free done [08:16:14]process_json_proto returns [08:16:14]Send response to host [08:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76827,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [08:16:14]free response buf [08:16:14]execute_script done [08:16:14]execute_script returns [08:16:14]free content buf [08:16:14]Sock 8.Close socket [08:16:14]Sock 8.Thread stoped [08:16:15]OFD Sender: No OFD packet to send [08:16:17]accept exits with 9 [08:16:17]New connection [08:16:17]New thread 3066994020 created [08:16:17]Thread 3066850660 joined [08:16:17]Waiting for new connection... [08:16:17] Sock 9.Parse request [08:16:17]Sock 9.Check first char [08:16:17]Sock 9.First char is OK [08:16:17]request: POST /json_proto HTTP/1.0 [08:16:17]Method: POST [08:16:17]URL: /json_proto [08:16:17]Method is POST - this is cgi request [08:16:17]url: /json_proto [08:16:17]query_string will be loaded in cgi processing [08:16:17]execute_cgi json_proto POST (null) [08:16:17]execute_cgi path=json_proto method=POST [08:16:17]POST find Content-Length [08:16:17]Host: 172.17.39.195:8080 [08:16:17]Content-Length: 331 [08:16:17]Content-Type: application/json [08:16:17] [08:16:17]POST finish read [08:16:17]Found Content-Length = 331 [08:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:16:17]execute_script... [08:16:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:16:17]POST & json_proto [08:16:17]process_json_proto [08:16:17]json parsed OK: [08:16:17]protocol is kg_v1.0 [08:16:17]action value=get_value [08:16:17]process_action get_value [08:16:17]cmd_get_value [08:16:17]process_action get_value done [08:16:17]requested_data is exist [08:16:17]produce_requested_data [08:16:17]requested_item fm.sale.total is exist - process it [08:16:17]SAM_PROTO_GetFMData [08:16:17]wFMCommunicate request_size=4 [08:16:17]MH_SAM_APDU [08:16:17]CAPDU: 80 13 03 00 [08:16:17]Write to MH i2c: E2 08 00 8B 0E 80 13 03 00 00 00 00 00 18 [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:16:17]Read from MH i2c: E2 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 FD 00 [08:16:17]MH_I2C_Read... [08:16:17]Read from MH i2c: E2 FD 00 8B 0E 00 C6 04 85 04 C2 04 6E 04 04 00 05 29 01 00 69 04 A3 00 6F 04 04 00 C6 25 01 00 B1 04 05 00 6D C5 BE B0 01 70 04 05 00 38 FE 69 6D 01 72 04 04 00 35 C7 54 43 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 0C 6B F6 2D 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 02 70 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 1D [08:16:17]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 05 29 01 00 69 04 A3 00 6F 04 04 00 C6 25 01 00 B1 04 05 00 6D C5 BE B0 01 70 04 05 00 38 FE 69 6D 01 72 04 04 00 35 C7 54 43 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 0C 6B F6 2D 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 02 70 D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [08:16:17]wFMCommunicate OK [08:16:17]wFMCommunicate request_size=4 [08:16:17]MH_SAM_APDU [08:16:17]CAPDU: 80 17 00 00 [08:16:17]Write to MH i2c: E2 08 00 8C 0E 80 17 00 00 00 00 00 00 1A [08:16:17]Write i2c OK [08:16:17]MH_I2C_Read... [08:16:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:16:18]Read from MH i2c: E2 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 FD 00 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 FD 00 8C 0E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 A7 [08:16:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [08:16:18]wFMCommunicate OK [08:16:18]wFMCommunicate request_size=4 [08:16:18]MH_SAM_APDU [08:16:18]CAPDU: 80 17 00 00 [08:16:18]Write to MH i2c: E2 08 00 8D 0E 80 17 00 00 00 00 00 00 1B [08:16:18]Write i2c OK [08:16:18]MH_I2C_Read... [08:16:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:16:18]Read from MH i2c: E2 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 FD 00 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 FD 00 8D 0E 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [08:16:18]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:16:18]wFMCommunicate OK [08:16:18]wFMCommunicate request_size=4 [08:16:18]MH_SAM_APDU [08:16:18]CAPDU: 80 17 00 00 [08:16:18]Write to MH i2c: E2 08 00 8E 0E 80 17 00 00 00 00 00 00 1C [08:16:18]Write i2c OK [08:16:18]MH_I2C_Read... [08:16:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:16:18]Read from MH i2c: E2 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 FD 00 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 FD 00 8E 0E 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [08:16:18]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:16:18]wFMCommunicate OK [08:16:18]wFMCommunicate request_size=4 [08:16:18]MH_SAM_APDU [08:16:18]CAPDU: 80 17 00 00 [08:16:18]Write to MH i2c: E2 08 00 8F 0E 80 17 00 00 00 00 00 00 1D [08:16:18]Write i2c OK [08:16:18]MH_I2C_Read... [08:16:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [08:16:18]Read from MH i2c: E2 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 E3 00 [08:16:18]MH_I2C_Read... [08:16:18]Read from MH i2c: E2 E3 00 8F 0E 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:16:18]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:16:18]wFMCommunicate OK [08:16:18]SAM_PROTO_GetFMData done [08:16:18]requested_item fm.sale_refund.total is exist - process it [08:16:18]requested_item fm.buy.total is exist - process it [08:16:18]requested_item shift.sale.total is exist - process it [08:16:18]SAM_PROTO_GetShiftData [08:16:18]wFMCommunicate request_size=4 [08:16:18]MH_SAM_APDU [08:16:18]CAPDU: 80 13 02 00 [08:16:18]Write to MH i2c: E2 08 00 90 0E 80 13 02 00 00 00 00 00 1C [08:16:18]Write i2c OK [08:16:18]MH_I2C_Read... [08:16:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:16:19]Read from MH i2c: E2 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 FD 00 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 FD 00 90 0E 00 AE 04 AA 04 AA 04 6E 04 04 00 17 00 00 00 69 04 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 83 FE 0C 70 04 03 00 4C DB 0A 72 04 03 00 37 23 02 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 4D 61 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6E 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5F [08:16:19]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 17 00 00 00 69 04 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 83 FE 0C 70 04 03 00 4C DB 0A 72 04 03 00 37 23 02 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 4D 61 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6E 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:16:19]wFMCommunicate OK [08:16:19]wFMCommunicate request_size=4 [08:16:19]MH_SAM_APDU [08:16:19]CAPDU: 80 17 00 00 [08:16:19]Write to MH i2c: E2 08 00 91 0E 80 17 00 00 00 00 00 00 1F [08:16:19]Write i2c OK [08:16:19]MH_I2C_Read... [08:16:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:16:19]Read from MH i2c: E2 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 FD 00 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 FD 00 91 0E 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 41 [08:16: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 [08:16:19]wFMCommunicate OK [08:16:19]wFMCommunicate request_size=4 [08:16:19]MH_SAM_APDU [08:16:19]CAPDU: 80 17 00 00 [08:16:19]Write to MH i2c: E2 08 00 92 0E 80 17 00 00 00 00 00 00 20 [08:16:19]Write i2c OK [08:16:19]MH_I2C_Read... [08:16:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:16:19]Read from MH i2c: E2 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 FD 00 [08:16:19]MH_I2C_Read... [08:16:19]Read from MH i2c: E2 FD 00 92 0E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D7 [08:16:19]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:16:19]wFMCommunicate OK [08:16:19]wFMCommunicate request_size=4 [08:16:19]MH_SAM_APDU [08:16:19]CAPDU: 80 17 00 00 [08:16:19]Write to MH i2c: E2 08 00 93 0E 80 17 00 00 00 00 00 00 21 [08:16:19]Write i2c OK [08:16:19]MH_I2C_Read... [08:16:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:16:20]Read from MH i2c: E2 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 FD 00 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 FD 00 93 0E 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 93 [08:16: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 [08:16:20]wFMCommunicate OK [08:16:20]wFMCommunicate request_size=4 [08:16:20]MH_SAM_APDU [08:16:20]CAPDU: 80 17 00 00 [08:16:20]Write to MH i2c: E2 08 00 94 0E 80 17 00 00 00 00 00 00 22 [08:16:20]Write i2c OK [08:16:20]MH_I2C_Read... [08:16:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:16:20]Read from MH i2c: E2 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 CB 00 [08:16:20]MH_I2C_Read... [08:16:20]Read from MH i2c: E2 CB 00 94 0E 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 0B [08:16:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:16:20]wFMCommunicate OK [08:16:20]SAM_PROTO_GetShiftData done [08:16:20]requested_item shift.sale.total_cash is exist - process it [08:16:20]requested_item shift.sale_refund.total is exist - process it [08:16:20]requested_item shift.sale_refund.total_cash is exist - process it [08:16:20]requested_item shift.buy.total is exist - process it [08:16:20]requested_item shift.buy.total_cash is exist - process it [08:16:20]produce_requested_data done [08:16:20]produce_requested_data return {"fm.sale.total":72602596.93,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":8515.87,"shift.sale.total_cash":7115.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:16:20]process_action_free get_value [08:16:20]json_value_free [08:16:20]json_value_free done [08:16:20]process_json_proto returns [08:16:20]Send response to host [08:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72602596.93,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":8515.87,"shift.sale.total_cash":7115.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:16:20]free response buf [08:16:20]execute_script done [08:16:20]execute_script returns [08:16:20]free content buf [08:16:20]Sock 9.Close socket [08:16:20]Sock 9.Thread stoped [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:09]accept exits with 10 [08:18:09]New connection [08:18:09]New thread 3066850660 created [08:18:09]Thread 3066994020 joined [08:18:09]Waiting for new connection... [08:18:09] Sock 10.Parse request [08:18:09]Sock 10.Check first char [08:18:09]Sock 10.First char is OK [08:18:09]request: POST /json_proto HTTP/1.0 [08:18:09]Method: POST [08:18:09]URL: /json_proto [08:18:09]Method is POST - this is cgi request [08:18:09]url: /json_proto [08:18:09]query_string will be loaded in cgi processing [08:18:09]execute_cgi json_proto POST (null) [08:18:09]execute_cgi path=json_proto method=POST [08:18:09]POST find Content-Length [08:18:09]Host: 172.17.39.195:8080 [08:18:09]Content-Length: 606 [08:18:09]Content-Type: application/json [08:18:09] [08:18:09]POST finish read [08:18:09]Found Content-Length = 606 [08:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220909", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 2.000, "sum" : 1260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:09]execute_script... [08:18:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220909", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\u043B", "price" : 630.00, "quantity" : 2.000, "sum" : 1260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:09]POST & json_proto [08:18:09]process_json_proto [08:18:09]json parsed OK: [08:18:09]protocol is kg_v1.0 [08:18:09]action value=close_receipt [08:18:09]process_action close_receipt [08:18:09]cmd_close_receipt [08:18:09]MH_GetDate [08:18:09]Write to MH i2c: F0 00 00 95 0E 92 [08:18:09]Write i2c OK [08:18:09]MH_I2C_Read... [08:18:09]Read from MH i2c: F0 [08:18:09]MH_I2C_Read... [08:18:09]Read from MH i2c: F0 09 00 [08:18:09]MH_I2C_Read... [08:18:09]Read from MH i2c: F0 09 00 95 0E 00 C4 88 76 66 99 81 91 64 D2 [08:18:09]GetLastDocTimeStamp 1719043980 [08:18:09]current date 1719044292 [08:18:09]FM_GetShiftState [08:18:09]SAM_PROTO_GetShiftState [08:18:09]wFMCommunicate request_size=4 [08:18:09]MH_SAM_APDU [08:18:09]CAPDU: 80 13 01 00 [08:18:09]Write to MH i2c: E2 08 00 96 0E 80 13 01 00 00 00 00 00 21 [08:18:09]Write i2c OK [08:18:09]MH_I2C_Read... [08:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:09]Read from MH i2c: E2 [08:18:09]MH_I2C_Read... [08:18:09]Read from MH i2c: E2 0E 00 [08:18:09]MH_I2C_Read... [08:18:09]Read from MH i2c: E2 0E 00 96 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 17 [08:18:09]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:18:09]wFMCommunicate OK [08:18:09]SAM_PROTO_GetShiftState done [08:18:09]FM_GetShiftState done [08:18:09]opened in 1719016435 [08:18:09]opened+sec_in_day 1719102835 [08:18:09]quantity*price = 126000 [08:18:09]sum+1 = 126001 [08:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1260.00 НСП 1% : 11.15 НДС 12% : 133.80 Наличными: 1260.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 24 22.06.2024 08:18 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76828 ФПД: 135666914037484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081812&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76828&fm=135666914037484&tin=02508201610067®Number=0000000000095696&sum=126000 0 [08:18:10]StoreToDocumentArchive [08:18:10]shift 395 fd 76828 [08:18:10]save to /storage/0395/doc_00076828 [08:18:10]save last doc name /storage/0395/doc_00076828 to /storage/kkm_last_doc_name [08:18:10]save OK [08:18:10]Clear old archive folders... [08:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=264 [08:18:10]tlvbuf is 0088D460 [08:18:10]SAM_PROTO_ClearQueue [08:18:10]wFMCommunicate request_size=4 [08:18:10]MH_SAM_APDU [08:18:10]CAPDU: 80 09 00 00 [08:18:10]Write to MH i2c: E2 08 00 A3 0E 80 09 00 00 00 00 00 00 23 [08:18:10]Write i2c OK [08:18:10]MH_I2C_Read... [08:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:10]Read from MH i2c: E2 [08:18:10]MH_I2C_Read... [08:18:10]Read from MH i2c: E2 03 00 [08:18:10]MH_I2C_Read... [08:18:10]Read from MH i2c: E2 03 00 A3 0E 00 90 00 25 [08:18:10]RAPDU: 90 00 [08:18:10]wFMCommunicate OK [08:18:10]SAM_PROTO_ClearQueue done [08:18:10]KKMCreateOFDPacket [08:18:10]OFDProtocolAddRootSTLVToBuf [08:18:10]FM_MakeSignedData [08:18:10]FM_MakeSignedData [08:18:10]SAM_PROTO_SignData [08:18:10]wFMCommunicate request_size=4 [08:18:10]MH_SAM_APDU [08:18:10]CAPDU: 80 0D 01 02 [08:18:10]Write to MH i2c: E2 08 00 A4 0E 80 0D 01 02 00 00 00 00 2B [08:18:10]Write i2c OK [08:18:10]MH_I2C_Read... [08:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 A4 0E 00 90 00 26 [08:18:11]RAPDU: 90 00 [08:18:11]wFMCommunicate OK [08:18:11]wFMCommunicate request_size=255 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 0D 02 02 FA 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 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 C4 88 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 [08:18:11]Write to MH i2c: E2 02 01 A5 0E 80 0D 02 02 FA 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 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 C4 88 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 00 00 E4 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 A5 0E 00 90 00 27 [08:18:11]RAPDU: 90 00 [08:18:11]wFMCommunicate OK [08:18:11]wFMCommunicate request_size=23 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 0D 02 02 12 10 04 04 00 1C 2C 01 00 35 04 06 00 7B 63 6A 38 0E EC [08:18:11]Write to MH i2c: E2 1A 00 A6 0E 80 0D 02 02 12 00 10 04 04 00 1C 2C 01 00 35 04 06 00 7B 63 6A 38 0E EC 00 00 6C [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]OFD Sender: No OFD packet to send [08:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 03 00 A6 0E 00 90 00 28 [08:18:11]RAPDU: 90 00 [08:18:11]wFMCommunicate OK [08:18:11]wFMCommunicate request_size=4 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 0D 03 02 [08:18:11]Write to MH i2c: E2 08 00 A7 0E 80 0D 03 02 00 00 00 00 30 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 0B 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 0B 00 A7 0E 00 D9 86 57 B7 8C 00 01 01 90 00 2C [08:18:11]RAPDU: D9 86 57 B7 8C 00 01 01 90 00 [08:18:11]wFMCommunicate OK [08:18:11]SAM_PROTO_SignData done [08:18:11]FM_MakeSignedData done [08:18:11]CreateOFDProtocolMessage [08:18:11]wFMCommunicate request_size=4 [08:18:11]MH_SAM_APDU [08:18:11]CAPDU: 80 11 00 00 [08:18:11]Write to MH i2c: E2 08 00 A8 0E 80 11 00 00 00 00 00 00 30 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:11]Read from MH i2c: E2 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 17 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: E2 17 00 A8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 80 [08:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:18:11]wFMCommunicate OK [08:18:11]CreateOFDProtocolMessage done [08:18:11]OFDSenderStorePacket 76828 [08:18:11]StoreOFDPacket docnum=76828 [08:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1C 01 00 00 DF D1 14 01 56 AE 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 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 C4 88 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1C 2C 01 00 35 04 06 00 7B 63 6A 38 0E EC D9 86 57 B7 8C 00 01 01 [08:18:11]CheckFolder [08:18:11]dirname=/storage/ofd_packets [08:18:11]CheckFolder done [08:18:11]ProducePacketName [08:18:11]name=ofd_packets/00076828 [08:18:11]NVStorageSaveData ofd_packets/00076828 [08:18:11]File name is /storage/ofd_packets/00076828 [08:18:11]Write 314 bytes [08:18:11]NVStorageSaveData done [08:18:11]OFDSenderStorePacket done [08:18:11]KKMCreateOFDPacket done [08:18:11]NVStorageSaveData kkm_last_timestamp [08:18:11]File name is /storage/kkm_last_timestamp [08:18:11]Write 4 bytes [08:18:11]NVStorageSaveData done [08:18:11]ExternCall_PrintAddStr [08:18:11]wPrintStart [08:18:11]Write to MH i2c: 01 00 00 A9 0E B7 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: 01 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: 01 07 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 FF 0F CC [08:18:11]RasterBufferAndPrint [08:18:11]line Счет N : (3)220909 [08:18:11]line ИНН: 02508201610067 [08:18:11]line Контрольно-Кассовый Чек [08:18:11]line ПРОДАЖА [08:18:11]line Товар: 4700002083334 [08:18:11]line Водка Level 0,7л [08:18:11]line 2.000 * 630.00 [08:18:11]line = 1260.00 [08:18:11]line НДС 12% НСП 1% [08:18:11]line > о реализуемом товаре [08:18:11]line ИТОГО: 1260.00 [08:18:11]line НСП 1% : 11.15 [08:18:11]line НДС 12% : 133.80 [08:18:11]line Наличными: 1260.00 [08:18:11]line Безнал.: 0.00 [08:18:11]line Место: АЗС № 144 "Партнер Нефть" [08:18:11]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:18:11]line СНО: Общий режим [08:18:11]line Чек 24 22.06.2024 08:18 [08:18:11]line Смена: 395 ФФД: 1.0 [08:18:11]line ЗНМ: 0300000170 [08:18:11]line РНМ: 0000000000095696 [08:18:11]line Версия ККМ: 001 [08:18:11]line ФМ: 0000000000875009 [08:18:11]line ФД: 76828 [08:18:11]line ФПД: 135666914037484 [08:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T081812&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76828&fm=135666914037484&tin=02508201610067®Number=0000000000095696&sum=126000 [08:18:11]line 0 [08:18:11]written 0, free lines is 4095 [08:18:11]OFD Sender: Processing packet 76828 [packets to send 351, broken 350] [08:18:11]ProducePacketName [08:18:11]name=ofd_packets/00076828 [08:18:11]OFD Sender: To server: pG, [08:18:11]CommunicateWithHost lk.salyk.kg:30040 [08:18:11]ConnectInit lk.salyk.kg [08:18:11]Connected sock=9 [08:18:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1C 01 00 00 DF D1 14 01 56 AE 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 18 F6 00 00 00 00 13 04 06 00 30 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 34 00 00 00 00 07 04 06 00 30 EC 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 C4 88 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1C 2C 01 00 35 04 06 00 7B 63 6A 38 0E EC D9 86 57 B7 8C 00 01 01 [08:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D9 CE 47 00 9C C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1C 2C 01 00 F4 03 04 00 5F 2F 76 66 B6 04 01 00 00 46 A2 B9 F2 53 46 86 D0 [08:18:11]CommunicateWithHost err = 0 [08:18:11]CheckOFDResponse [08:18:11]1017 (14) - 77093643461234 [08:18:11]1041 (16) - 0000000000875009 [08:18:11]1040 (4) - 76828 [08:18:11]1012 (4) - 22.06.2024 01:56 [08:18:11]1206 (1) - 0 [08:18:11]OFD Sender: Remove packet 76828 [08:18:11]ProducePacketName [08:18:11]name=ofd_packets/00076828 [08:18:11]NVStorageDeleteData [08:18:11]Write to MH i2c: 01 00 00 D1 0E DF [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: 01 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: 01 07 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: 01 07 00 D1 0E 00 00 00 00 00 11 0D 04 [08:18:11]RasterBufferAndPrint [08:18:11]line [08:18:11]line [08:18:11]line [08:18:11]line [08:18:11]line [08:18:11]written 0, free lines is 3352 [08:18:11]MH_Cut [08:18:11]Write to MH i2c: D1 01 00 D8 0E 01 B8 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: D1 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: D1 01 00 [08:18:11]MH_I2C_Read... [08:18:11]Read from MH i2c: D1 01 00 D8 0E 00 B7 [08:18:11]Write to MH i2c: 01 00 00 D9 0E E7 [08:18:11]Write i2c OK [08:18:11]MH_I2C_Read... [08:18:12]OFD Sender: No OFD packet to send [08:18:12]*** Cut start [08:18:12]*** Partial cut [08:18:12]*** CUTSNS_PIN = 1 [08:18:12]*** CUTSNS_PIN = 0 [08:18:12]*** Brake cut motor [08:18:13]Read from MH i2c: 01 [08:18:13]MH_I2C_Read... [08:18:13]*** Stop cut motor [08:18:13]*** Cut end [08:18:13]Read from MH i2c: 01 07 00 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: 01 07 00 D9 0E 00 00 00 00 00 FF 0F FC [08:18:13]process_action close_receipt done [08:18:13]requested_data is exist [08:18:13]produce_requested_data [08:18:13]requested_item fm.sn is exist - process it [08:18:13]wFMCommunicate request_size=4 [08:18:13]MH_SAM_APDU [08:18:13]CAPDU: 80 11 00 00 [08:18:13]Write to MH i2c: E2 08 00 DA 0E 80 11 00 00 00 00 00 00 62 [08:18:13]Write i2c OK [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: E2 [08:18:13]MH_I2C_Read... [08:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:13]Read from MH i2c: E2 17 00 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: E2 17 00 DA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B2 [08:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:18:13]wFMCommunicate OK [08:18:13]requested_item fd.num is exist - process it [08:18:13]SAM_PROTO_GetFieldsCounters [08:18:13]wFMCommunicate request_size=4 [08:18:13]MH_SAM_APDU [08:18:13]CAPDU: 80 13 00 00 [08:18:13]Write to MH i2c: E2 08 00 DB 0E 80 13 00 00 00 00 00 00 65 [08:18:13]Write i2c OK [08:18:13]MH_I2C_Read... [08:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:13]Read from MH i2c: E2 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: E2 62 00 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: E2 62 00 DB 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [08:18: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:13]wFMCommunicate OK [08:18:13]SAM_PROTO_GetFieldsCounters done [08:18:13]requested_item shift.num is exist - process it [08:18:13]requested_item shift.opened is exist - process it [08:18:13]req_shift_opened [08:18:13]FM_GetShiftState [08:18:13]SAM_PROTO_GetShiftState [08:18:13]wFMCommunicate request_size=4 [08:18:13]MH_SAM_APDU [08:18:13]CAPDU: 80 13 01 00 [08:18:13]Write to MH i2c: E2 08 00 DC 0E 80 13 01 00 00 00 00 00 67 [08:18:13]Write i2c OK [08:18:13]MH_I2C_Read... [08:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:13]Read from MH i2c: E2 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: E2 0E 00 [08:18:13]MH_I2C_Read... [08:18:13]Read from MH i2c: E2 0E 00 DC 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 5D [08:18:13]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:18:13]wFMCommunicate OK [08:18:13]SAM_PROTO_GetShiftState done [08:18:13]FM_GetShiftState done [08:18:13]req_shift_opened done [08:18:13]requested_item shift.open_date is exist - process it [08:18:13]req_shift_open_date [08:18:13]req_shift_open_date done [08:18:13]produce_requested_data done [08:18:13]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76828,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [08:18:13]process_action_free close_receipt [08:18:13]json_value_free [08:18:13]json_value_free done [08:18:13]process_json_proto returns [08:18:13]Send response to host [08:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76828,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [08:18:13]free response buf [08:18:13]execute_script done [08:18:13]execute_script returns [08:18:13]free content buf [08:18:13]Sock 10.Close socket [08:18:13]Sock 10.Thread stoped [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]accept exits with 8 [08:20:42]New connection [08:20:42]New thread 3066994020 created [08:20:42]Thread 3066850660 joined [08:20:42]Waiting for new connection... [08:20:42] Sock 8.Parse request [08:20:42]Sock 8.Check first char [08:20:42]Sock 8.First char is OK [08:20:42]request: POST /json_proto HTTP/1.0 [08:20:42]Method: POST [08:20:42]URL: /json_proto [08:20:42]Method is POST - this is cgi request [08:20:42]url: /json_proto [08:20:42]query_string will be loaded in cgi processing [08:20:42]execute_cgi json_proto POST (null) [08:20:42]execute_cgi path=json_proto method=POST [08:20:42]POST find Content-Length [08:20:42]Host: 172.17.39.195:8080 [08:20:42]Content-Length: 1172 [08:20:42]Content-Type: application/json [08:20:42] [08:20:42]POST finish read [08:20:42]Found Content-Length = 1172 [08:20:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694288\u000A22.06.2024 07:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102166\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:42]execute_script... [08:20:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694288\u000A22.06.2024 07:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102166\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:42]POST & json_proto [08:20:42]process_json_proto [08:20:42]json parsed OK: [08:20:42]protocol is kg_v1.0 [08:20:42]action value=print_text [08:20:42]process_action print_text [08:20:42]cmd_print_text [08:20:42]ExternCall_PrintAddStr [08:20:42]wPrintStart [08:20:42]Write to MH i2c: 01 00 00 DD 0E EB [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 DD 0E 00 00 00 00 00 FF 0F 00 [08:20:42]RasterBufferAndPrint [08:20:42]line *****ТОВАРНЫЙ ЧЕК***** [08:20:42]line АЗС 144 [08:20:42]line Партнер нефть [08:20:42]line 02508201610067 [08:20:42]line Кассир : Шайлообек у. Т. [08:20:42]line Счет N : (1)1694288 [08:20:42]line 22.06.2024 07:51 [08:20:42]line ПРОДАЖА [08:20:42]line ТРК (МРК, ГНК): 53 [08:20:42]line Вид ГСМ : 2710124130 [08:20:42]line Аи-92-К-5 [08:20:42]line 20.000 x 66.40 [08:20:42]line ИТОГ: 1328.00 [08:20:42]line Тип оплаты: Талоны: ТК ГПНА Online [08:20:42]line 30102166 [08:20:42]line ______________________ [08:20:42]line (подпись) [08:20:42]written 0, free lines is 4095 [08:20:42]Write to MH i2c: 01 00 00 F2 0E 00 [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 F2 0E 00 00 00 00 00 F7 0D 0B [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 3576 [08:20:42]MH_Cut [08:20:42]Write to MH i2c: D1 01 00 F9 0E 01 D9 [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 F9 0E 00 D8 [08:20:42]Write to MH i2c: 01 00 00 FA 0E 08 [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]OFD Sender: No OFD packet to send [08:20:43]*** Cut start [08:20:43]*** Partial cut [08:20:43]*** CUTSNS_PIN = 1 [08:20:43]*** 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]Read from MH i2c: 01 07 00 [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 FA 0E 00 00 00 00 00 FF 0F 1D [08:20:43]process_action print_text 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 FB 0E 80 11 00 00 00 00 00 00 83 [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 17 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 17 00 FB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D3 [08:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:20:43]wFMCommunicate OK [08:20:43]requested_item fd.num is exist - process it [08:20:43]SAM_PROTO_GetFieldsCounters [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 13 00 00 [08:20:43]Write to MH i2c: E2 08 00 FC 0E 80 13 00 00 00 00 00 00 86 [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 62 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 62 00 FC 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [08:20: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:43]wFMCommunicate OK [08:20:43]SAM_PROTO_GetFieldsCounters done [08:20:43]requested_item shift.num is exist - process it [08:20:43]requested_item shift.opened is exist - process it [08:20:43]req_shift_opened [08:20:43]FM_GetShiftState [08:20:43]SAM_PROTO_GetShiftState [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 13 01 00 [08:20:43]Write to MH i2c: E2 08 00 FD 0E 80 13 01 00 00 00 00 00 88 [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 0E 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 0E 00 FD 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 7E [08:20:43]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:20:43]wFMCommunicate OK [08:20:43]SAM_PROTO_GetShiftState done [08:20:43]FM_GetShiftState done [08:20:43]req_shift_opened done [08:20:43]requested_item shift.open_date is exist - process it [08:20:43]req_shift_open_date [08:20:43]req_shift_open_date done [08:20:43]produce_requested_data done [08:20:43]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76828,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [08:20:43]process_action_free print_text [08:20:43]json_value_free [08:20:43]json_value_free done [08:20:43]process_json_proto returns [08:20:43]Send response to host [08:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76828,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [08:20:43]free response buf [08:20:43]execute_script done [08:20:43]execute_script returns [08:20:43]free content buf [08:20:43]Sock 8.Close socket [08:20:43]Sock 8.Thread stoped [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]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:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:35]accept exits with 9 [08:32:35]New connection [08:32:35]New thread 3066850660 created [08:32:35]Thread 3066994020 joined [08:32:35]Waiting for new connection... [08:32:35] Sock 9.Parse request [08:32:35]Sock 9.Check first char [08:32:35]Sock 9.First char is OK [08:32:35]request: POST /json_proto HTTP/1.0 [08:32:35]Method: POST [08:32:35]URL: /json_proto [08:32:35]Method is POST - this is cgi request [08:32:35]url: /json_proto [08:32:35]query_string will be loaded in cgi processing [08:32:35]execute_cgi json_proto POST (null) [08:32:35]execute_cgi path=json_proto method=POST [08:32:35]POST find Content-Length [08:32:35]Host: 172.17.39.195:8080 [08:32:35]Content-Length: 683 [08:32:35]Content-Type: application/json [08:32:35] [08:32:35]POST finish read [08:32:35]Found Content-Length = 683 [08:32:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:35]execute_script... [08:32: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)1694291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:35]POST & json_proto [08:32:35]process_json_proto [08:32:35]json parsed OK: [08:32:35]protocol is kg_v1.0 [08:32:35]action value=close_receipt [08:32:35]process_action close_receipt [08:32:35]cmd_close_receipt [08:32:35]MH_GetDate [08:32:35]Write to MH i2c: F0 00 00 FE 0E FB [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: F0 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: F0 09 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: F0 09 00 FE 0E 00 26 8C 76 66 99 81 91 64 A1 [08:32:35]GetLastDocTimeStamp 1719044292 [08:32:35]current date 1719045158 [08:32:35]FM_GetShiftState [08:32:35]SAM_PROTO_GetShiftState [08:32:35]wFMCommunicate request_size=4 [08:32:35]MH_SAM_APDU [08:32:35]CAPDU: 80 13 01 00 [08:32:35]Write to MH i2c: E2 08 00 FF 0E 80 13 01 00 00 00 00 00 8A [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:35]Read from MH i2c: E2 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 0E 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 0E 00 FF 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 80 [08:32:35]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:32:35]wFMCommunicate OK [08:32:35]SAM_PROTO_GetShiftState done [08:32:35]FM_GetShiftState done [08:32:35]opened in 1719016435 [08:32:35]opened+sec_in_day 1719102835 [08:32:35]quantity*price = 100064 [08:32:35]sum+1 = 100066 [08:32:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 25 22.06.2024 08:32 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76829 ФПД: 124512260121479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T083238&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76829&fm=124512260121479&tin=02508201610067®Number=0000000000095696&sum=100000 [08:32:36]StoreToDocumentArchive [08:32:36]shift 395 fd 76829 [08:32:36]save to /storage/0395/doc_00076829 [08:32:36]save last doc name /storage/0395/doc_00076829 to /storage/kkm_last_doc_name [08:32:36]save OK [08:32:36]Clear old archive folders... [08:32:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:36]tlvbuf is 0086CA70 [08:32:36]SAM_PROTO_ClearQueue [08:32:36]wFMCommunicate request_size=4 [08:32:36]MH_SAM_APDU [08:32:36]CAPDU: 80 09 00 00 [08:32:36]Write to MH i2c: E2 08 00 0C 0F 80 09 00 00 00 00 00 00 8D [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:36]Read from MH i2c: E2 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 03 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [08:32:36]RAPDU: 90 00 [08:32:36]wFMCommunicate OK [08:32:36]SAM_PROTO_ClearQueue done [08:32:36]KKMCreateOFDPacket [08:32:36]OFDProtocolAddRootSTLVToBuf [08:32:36]FM_MakeSignedData [08:32:36]FM_MakeSignedData [08:32:36]SAM_PROTO_SignData [08:32:36]wFMCommunicate request_size=4 [08:32:36]MH_SAM_APDU [08:32:36]CAPDU: 80 0D 01 02 [08:32:36]Write to MH i2c: E2 08 00 0D 0F 80 0D 01 02 00 00 00 00 95 [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:36]Read from MH i2c: E2 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 03 00 [08:32:36]MH_I2C_Read... [08:32:36]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [08:32:36]RAPDU: 90 00 [08:32:36]wFMCommunicate OK [08:32:36]wFMCommunicate request_size=255 [08:32:36]MH_SAM_APDU [08:32:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 19 00 00 00 F4 03 04 00 26 8C 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1D 2C 01 00 35 04 06 00 71 [08:32:36]Write to MH i2c: E2 02 01 0E 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 19 00 00 00 F4 03 04 00 26 8C 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1D 2C 01 00 35 04 06 00 71 00 00 8E [08:32:36]Write i2c OK [08:32:36]MH_I2C_Read... [08:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:37]Read from MH i2c: E2 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 03 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 03 00 0E 0F 00 90 00 91 [08:32:37]RAPDU: 90 00 [08:32:37]wFMCommunicate OK [08:32:37]wFMCommunicate request_size=10 [08:32:37]MH_SAM_APDU [08:32:37]CAPDU: 80 0D 02 02 05 3E 45 08 E3 87 [08:32:37]Write to MH i2c: E2 0D 00 0F 0F 80 0D 02 02 05 00 3E 45 08 E3 87 00 00 97 [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:37]Read from MH i2c: E2 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 03 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 03 00 0F 0F 00 90 00 92 [08:32:37]RAPDU: 90 00 [08:32:37]wFMCommunicate OK [08:32:37]wFMCommunicate request_size=4 [08:32:37]MH_SAM_APDU [08:32:37]CAPDU: 80 0D 03 02 [08:32:37]Write to MH i2c: E2 08 00 10 0F 80 0D 03 02 00 00 00 00 9A [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:37]Read from MH i2c: E2 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 0B 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 0B 00 10 0F 00 C8 92 97 6A D1 D6 91 90 90 00 BE [08:32:37]RAPDU: C8 92 97 6A D1 D6 91 90 90 00 [08:32:37]wFMCommunicate OK [08:32:37]SAM_PROTO_SignData done [08:32:37]FM_MakeSignedData done [08:32:37]CreateOFDProtocolMessage [08:32:37]wFMCommunicate request_size=4 [08:32:37]MH_SAM_APDU [08:32:37]CAPDU: 80 11 00 00 [08:32:37]Write to MH i2c: E2 08 00 11 0F 80 11 00 00 00 00 00 00 9A [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:37]Read from MH i2c: E2 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 17 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 17 00 11 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 EA [08:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:32:37]wFMCommunicate OK [08:32:37]CreateOFDProtocolMessage done [08:32:37]OFDSenderStorePacket 76829 [08:32:37]StoreOFDPacket docnum=76829 [08:32:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 A2 E0 07 01 95 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 19 00 00 00 F4 03 04 00 26 8C 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1D 2C 01 00 35 04 06 00 71 3E 45 08 E3 87 C8 92 97 6A D1 D6 91 90 [08:32:37]CheckFolder [08:32:37]dirname=/storage/ofd_packets [08:32:37]CheckFolder done [08:32:37]ProducePacketName [08:32:37]name=ofd_packets/00076829 [08:32:37]NVStorageSaveData ofd_packets/00076829 [08:32:37]File name is /storage/ofd_packets/00076829 [08:32:37]Write 301 bytes [08:32:37]NVStorageSaveData done [08:32:37]OFDSenderStorePacket done [08:32:37]KKMCreateOFDPacket done [08:32:37]NVStorageSaveData kkm_last_timestamp [08:32:37]File name is /storage/kkm_last_timestamp [08:32:37]Write 4 bytes [08:32:37]NVStorageSaveData done [08:32:37]ExternCall_PrintAddStr [08:32:37]wPrintStart [08:32:37]Write to MH i2c: 01 00 00 12 0F 21 [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: 01 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: 01 07 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: 01 07 00 12 0F 00 00 00 00 00 FF 0F 36 [08:32:37]RasterBufferAndPrint [08:32:37]line Счет N : (1)1694291 [08:32:37]line ИНН: 02508201610067 [08:32:37]line Контрольно-Кассовый Чек [08:32:37]line ПРОДАЖА [08:32:37]line ТРК (МРК, ГНК) : 53 [08:32:37]line Товар: 2710124130 [08:32:37]line Аи-92-К-5 [08:32:37]line 15.070 * 66.40 [08:32:37]line = 1000.65 [08:32:37]line НДС 12% НСП 1% [08:32:37]line > о реализуемом товаре [08:32:37]line ОКРУГЛЕНИЕ: -0.65 [08:32:37]line ИТОГО: 1000.00 [08:32:37]line Внесено: 1000.00 [08:32:37]line СДАЧА: 0.00 [08:32:37]line НСП 1% : 8.85 [08:32:37]line НДС 12% : 106.26 [08:32:37]line Наличными: 1000.00 [08:32:37]line Безнал.: 0.00 [08:32:37]line Место: АЗС № 144 "Партнер Нефть" [08:32:37]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [08:32:37]line СНО: Общий режим [08:32:37]line Чек 25 22.06.2024 08:32 [08:32:37]line Смена: 395 ФФД: 1.0 [08:32:37]line ЗНМ: 0300000170 [08:32:37]line РНМ: 0000000000095696 [08:32:37]line Версия ККМ: 001 [08:32:37]line ФМ: 0000000000875009 [08:32:37]line ФД: 76829 [08:32:37]line ФПД: 124512260121479 [08:32:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T083238&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76829&fm=124512260121479&tin=02508201610067®Number=0000000000095696&sum=100000 [08:32:37]OFD Sender: Processing packet 76829 [packets to send 351, broken 350] [08:32:37]ProducePacketName [08:32:37]name=ofd_packets/00076829 [08:32:37]OFD Sender: To server: pG, [08:32:37]CommunicateWithHost lk.salyk.kg:30040 [08:32:37]ConnectInit lk.salyk.kg [08:32:37]written 0, free lines is 4095 [08:32:37]Connected sock=10 [08:32:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 A2 E0 07 01 95 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 19 00 00 00 F4 03 04 00 26 8C 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1D 2C 01 00 35 04 06 00 71 3E 45 08 E3 87 C8 92 97 6A D1 D6 91 90 [08:32:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 00 7E 47 00 67 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1D 2C 01 00 F4 03 04 00 C1 32 76 66 B6 04 01 00 00 EE 04 12 BC 3D E5 26 9E [08:32:37]CommunicateWithHost err = 0 [08:32:37]CheckOFDResponse [08:32:37]1017 (14) - 77093643461234 [08:32:37]1041 (16) - 0000000000875009 [08:32:37]1040 (4) - 76829 [08:32:37]1012 (4) - 22.06.2024 02:11 [08:32:37]1206 (1) - 0 [08:32:37]OFD Sender: Remove packet 76829 [08:32:37]ProducePacketName [08:32:37]name=ofd_packets/00076829 [08:32:37]NVStorageDeleteData [08:32:38]Write to MH i2c: 01 00 00 3D 0F 4C [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: 01 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: 01 07 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: 01 07 00 3D 0F 00 00 00 00 00 ED 0C 4C [08:32:38]RasterBufferAndPrint [08:32:38]line [08:32:38]line [08:32:38]line [08:32:38]line [08:32:38]line [08:32:38]written 0, free lines is 3318 [08:32:38]MH_Cut [08:32:38]Write to MH i2c: D1 01 00 44 0F 01 25 [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: D1 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: D1 01 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: D1 01 00 44 0F 00 24 [08:32:38]Write to MH i2c: 01 00 00 45 0F 54 [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]OFD Sender: No OFD packet to send [08:32:38]*** Cut start [08:32:38]*** Partial cut [08:32:38]*** CUTSNS_PIN = 1 [08:32:38]*** CUTSNS_PIN = 0 [08:32:39]*** Brake cut motor [08:32:39]Read from MH i2c: 01 [08:32:39]MH_I2C_Read... [08:32:39]*** Stop cut motor [08:32:39]*** Cut end [08:32:39]Read from MH i2c: 01 07 00 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: 01 07 00 45 0F 00 00 00 00 00 FF 0F 69 [08:32:39]process_action close_receipt done [08:32:39]requested_data is exist [08:32:39]produce_requested_data [08:32:39]requested_item fm.sn is exist - process it [08:32:39]wFMCommunicate request_size=4 [08:32:39]MH_SAM_APDU [08:32:39]CAPDU: 80 11 00 00 [08:32:39]Write to MH i2c: E2 08 00 46 0F 80 11 00 00 00 00 00 00 CF [08:32:39]Write i2c OK [08:32:39]MH_I2C_Read... [08:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:39]Read from MH i2c: E2 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: E2 17 00 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: E2 17 00 46 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1F [08:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:32:39]wFMCommunicate OK [08:32:39]requested_item fd.num is exist - process it [08:32:39]SAM_PROTO_GetFieldsCounters [08:32:39]wFMCommunicate request_size=4 [08:32:39]MH_SAM_APDU [08:32:39]CAPDU: 80 13 00 00 [08:32:39]Write to MH i2c: E2 08 00 47 0F 80 13 00 00 00 00 00 00 D2 [08:32:39]Write i2c OK [08:32:39]MH_I2C_Read... [08:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:39]Read from MH i2c: E2 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: E2 62 00 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: E2 62 00 47 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [08:32: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:39]wFMCommunicate OK [08:32:39]SAM_PROTO_GetFieldsCounters done [08:32:39]requested_item shift.num is exist - process it [08:32:39]requested_item shift.opened is exist - process it [08:32:39]req_shift_opened [08:32:39]FM_GetShiftState [08:32:39]SAM_PROTO_GetShiftState [08:32:39]wFMCommunicate request_size=4 [08:32:39]MH_SAM_APDU [08:32:39]CAPDU: 80 13 01 00 [08:32:39]Write to MH i2c: E2 08 00 48 0F 80 13 01 00 00 00 00 00 D4 [08:32:39]Write i2c OK [08:32:39]MH_I2C_Read... [08:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:39]Read from MH i2c: E2 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: E2 0E 00 [08:32:39]MH_I2C_Read... [08:32:39]Read from MH i2c: E2 0E 00 48 0F 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 CA [08:32:39]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [08:32:39]wFMCommunicate OK [08:32:39]SAM_PROTO_GetShiftState done [08:32:39]FM_GetShiftState done [08:32:39]req_shift_opened done [08:32:39]requested_item shift.open_date is exist - process it [08:32:39]req_shift_open_date [08:32:39]req_shift_open_date done [08:32:39]produce_requested_data done [08:32:39]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76829,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [08:32:39]process_action_free close_receipt [08:32:39]json_value_free [08:32:39]json_value_free done [08:32:39]process_json_proto returns [08:32:39]Send response to host [08:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76829,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [08:32:39]free response buf [08:32:39]execute_script done [08:32:39]execute_script returns [08:32:39]free content buf [08:32:39]Sock 9.Close socket [08:32:39]Sock 9.Thread stoped [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005724E0 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 31788078+1687257497=1719045575 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 C8 8D 76 66 99 81 91 64 3F [08:39:36]Current date/time: 22.06.2024 08:39 [08:39:36]FM_Init [08:39:36]wFMConnect [08:39:36]MH_SAM_On [08:39:36]Write to MH i2c: E0 00 00 08 00 E7 [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_init finished! [08:39:36]*** atr: [08:39:36]*** 0F 3B D5 18 FF 81 91 FE [08:39:36]*** 1F C3 80 73 C8 21 10 0A [08:39:36]*** 00 00 00 00 00 00 00 00 [08:39:36]*** 00 00 00 00 00 00 00 00 [08:39:36]*** 00 00 00 00 00 00 00 00 [08:39:36]*** 00 00 00 00 00 00 00 00 [08:39:36]*** 00 00 00 00 00 00 00 00 [08:39:36]*** 00 00 00 00 00 00 00 00 [08:39:36]Read from MH i2c: E0 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E0 10 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [08:39:36]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:39:36]wFMCommunicate request_size=10 [08:39:36]MH_SAM_APDU [08:39:36]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:39:36]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:39:36]Read from MH i2c: E2 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 03 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:39:36]RAPDU: 90 00 [08:39:36]wFMCommunicate OK [08:39:36]wFMCommunicate request_size=4 [08:39:36]MH_SAM_APDU [08:39:36]CAPDU: 80 11 00 00 [08:39:36]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:36]Read from MH i2c: E2 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 17 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D4 [08:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:39:36]wFMCommunicate OK [08:39:36]Detected FM SN is 0000000000875009 [08:39:36]Stored FM SN is 0000000000875009 [08:39:36]wFMCommunicate request_size=9 [08:39:36]MH_SAM_APDU [08:39:36]CAPDU: 80 16 00 00 04 FA 14 01 00 [08:39:36]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 14 01 00 00 00 A1 [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:39:36]Read from MH i2c: E2 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 03 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:39:36]RAPDU: 90 00 [08:39:36]wFMCommunicate OK [08:39:36]FM PIN OK [08:39:36]wFMCommunicate request_size=8 [08:39:36]MH_SAM_APDU [08:39:36]CAPDU: 80 14 04 00 03 02 00 01 [08:39:36]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:39:36]Read from MH i2c: E2 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 03 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:39:36]RAPDU: 90 00 [08:39:36]wFMCommunicate OK [08:39:36]wFMCommunicate request_size=13 [08:39:36]MH_SAM_APDU [08:39:36]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:39:36]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:39:36]Read from MH i2c: E2 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 03 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:39:36]RAPDU: 90 00 [08:39:36]wFMCommunicate OK [08:39:36]wFMCommunicate request_size=4 [08:39:36]MH_SAM_APDU [08:39:36]CAPDU: 80 11 00 00 [08:39:36]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:36]Read from MH i2c: E2 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 17 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D8 [08:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [08:39:36]wFMCommunicate OK [08:39:36]DocumentArchiveInit [08:39:36]Start Httpd... [08:39:36]Httpd thread 3066891620 created [08:39:36]Write to MH i2c: 01 00 00 0F 00 0F [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: 01 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: 01 07 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:39:36]MH Int Process started [08:39:36]Allocated Socket 8 [08:39:36]Bind OK [08:39:36]Listen OK [08:39:36]httpd running on port 8080 [08:39:36]Waiting for new connection... [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [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: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:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:32]accept exits with 9 [09:00:32]New connection [09:00:32]New thread 3066604900 created [09:00:32]Waiting for new connection... [09:00:32] Sock 9.Parse request [09:00:32]Sock 9.Check first char [09:00:32]Sock 9.First char is OK [09:00:32]request: POST /json_proto HTTP/1.0 [09:00:32]Method: POST [09:00:32]URL: /json_proto [09:00:32]Method is POST - this is cgi request [09:00:32]url: /json_proto [09:00:32]query_string will be loaded in cgi processing [09:00:32]execute_cgi json_proto POST (null) [09:00:32]execute_cgi path=json_proto method=POST [09:00:32]POST find Content-Length [09:00:32]Host: 172.17.39.195:8080 [09:00:32]Content-Length: 655 [09:00:32]Content-Type: application/json [09:00:32] [09:00:32]POST finish read [09:00:32]Found Content-Length = 655 [09:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220910", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:32]execute_script... [09:00:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220910", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:32]POST & json_proto [09:00:32]process_json_proto [09:00:32]json parsed OK: [09:00:32]protocol is kg_v1.0 [09:00:32]action value=close_receipt [09:00:32]process_action close_receipt [09:00:32]cmd_close_receipt [09:00:32]MH_GetDate [09:00:32]Write to MH i2c: F0 00 00 10 00 FF [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: F0 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: F0 09 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: F0 09 00 10 00 00 B0 92 76 66 99 81 91 64 35 [09:00:32]GetLastDocTimeStamp 1719045158 [09:00:32]current date 1719046832 [09:00:32]FM_GetShiftState [09:00:32]SAM_PROTO_GetShiftState [09:00:32]wFMCommunicate request_size=4 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 13 01 00 [09:00:32]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 0E 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 84 [09:00:32]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [09:00:32]wFMCommunicate OK [09:00:32]SAM_PROTO_GetShiftState done [09:00:32]FM_GetShiftState done [09:00:32]opened in 1719016435 [09:00:32]opened+sec_in_day 1719102835 [09:00:32]quantity*price = 7200 [09:00:32]sum+1 = 7201 [09:00:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 72.00 НСП 1% : 0.64 НДС 12% : 7.65 Наличными: 72.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 26 22.06.2024 09:00 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76830 ФПД: 269040543274374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090032&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76830&fm=269040543274374&tin=02508201610067®Number=0000000000095696&sum=7200 0 [09:00:33]StoreToDocumentArchive [09:00:33]shift 395 fd 76830 [09:00:33]save to /storage/0395/doc_00076830 [09:00:33]save last doc name /storage/0395/doc_00076830 to /storage/kkm_last_doc_name [09:00:33]save OK [09:00:33]Clear old archive folders... [09:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=294 [09:00:33]tlvbuf is 01FCCB60 [09:00:33]SAM_PROTO_ClearQueue [09:00:33]wFMCommunicate request_size=4 [09:00:33]MH_SAM_APDU [09:00:33]CAPDU: 80 09 00 00 [09:00:33]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [09:00:33]Write i2c OK [09:00:33]MH_I2C_Read... [09:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:33]Read from MH i2c: E2 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 03 00 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [09:00:33]RAPDU: 90 00 [09:00:33]wFMCommunicate OK [09:00:33]SAM_PROTO_ClearQueue done [09:00:33]KKMCreateOFDPacket [09:00:33]OFDProtocolAddRootSTLVToBuf [09:00:33]FM_MakeSignedData [09:00:33]FM_MakeSignedData [09:00:33]SAM_PROTO_SignData [09:00:33]wFMCommunicate request_size=4 [09:00:33]MH_SAM_APDU [09:00:33]CAPDU: 80 0D 01 02 [09:00:33]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [09:00:33]Write i2c OK [09:00:33]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [09:00:34]RAPDU: 90 00 [09:00:34]wFMCommunicate OK [09:00:34]wFMCommunicate request_size=255 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 B0 92 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [09:00:34]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 B0 92 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 46 [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [09:00:34]RAPDU: 90 00 [09:00:34]wFMCommunicate OK [09:00:34]wFMCommunicate request_size=53 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1E 2C 01 00 35 04 06 00 F4 B0 E2 03 15 86 [09:00:34]Write to MH i2c: E2 38 00 21 00 80 0D 02 02 30 00 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1E 2C 01 00 35 04 06 00 F4 B0 E2 03 15 86 00 00 06 [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [09:00:34]RAPDU: 90 00 [09:00:34]wFMCommunicate OK [09:00:34]wFMCommunicate request_size=4 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 0D 03 02 [09:00:34]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [09:00:34]OFD Sender: No OFD packet to send [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 0B 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 0B 00 22 00 00 BC B8 01 1A F2 7A 09 ED 90 00 8F [09:00:34]RAPDU: BC B8 01 1A F2 7A 09 ED 90 00 [09:00:34]wFMCommunicate OK [09:00:34]SAM_PROTO_SignData done [09:00:34]FM_MakeSignedData done [09:00:34]CreateOFDProtocolMessage [09:00:34]wFMCommunicate request_size=4 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 11 00 00 [09:00:34]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 17 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 ED [09:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:00:34]wFMCommunicate OK [09:00:34]CreateOFDProtocolMessage done [09:00:34]OFDSenderStorePacket 76830 [09:00:34]StoreOFDPacket docnum=76830 [09:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 91 61 32 01 3A F0 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 B0 92 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1E 2C 01 00 35 04 06 00 F4 B0 E2 03 15 86 BC B8 01 1A F2 7A 09 ED [09:00:34]CheckFolder [09:00:34]dirname=/storage/ofd_packets [09:00:34]CheckFolder done [09:00:34]ProducePacketName [09:00:34]name=ofd_packets/00076830 [09:00:34]NVStorageSaveData ofd_packets/00076830 [09:00:34]File name is /storage/ofd_packets/00076830 [09:00:34]Write 344 bytes [09:00:34]NVStorageSaveData done [09:00:34]OFDSenderStorePacket done [09:00:34]KKMCreateOFDPacket done [09:00:34]NVStorageSaveData kkm_last_timestamp [09:00:34]File name is /storage/kkm_last_timestamp [09:00:34]Write 4 bytes [09:00:34]NVStorageSaveData done [09:00:34]ExternCall_PrintAddStr [09:00:34]wPrintStart [09:00:34]Write to MH i2c: 01 00 00 24 00 24 [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: 01 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: 01 07 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [09:00:34]RasterBufferAndPrint [09:00:34]line Счет N : (3)220910 [09:00:34]OFD Sender: Processing packet 76830 [packets to send 351, broken 350] [09:00:34]ProducePacketName [09:00:34]name=ofd_packets/00076830 [09:00:34]OFD Sender: To server: pG, [09:00:34]CommunicateWithHost lk.salyk.kg:30040 [09:00:34]ConnectInit lk.salyk.kg [09:00:34]line ИНН: 02508201610067 [09:00:34]line Контрольно-Кассовый Чек [09:00:34]line ПРОДАЖА [09:00:34]line Товар: 4600682557456 [09:00:34]line Напиток FLash up energy эн ж/б 0,5/0,45л [09:00:34]line 1.000 * 72.00 [09:00:34]line = 72.00 [09:00:34]line НДС 12% НСП 1% [09:00:34]line > о реализуемом товаре [09:00:34]line ИТОГО: 72.00 [09:00:34]line НСП 1% : 0.64 [09:00:34]line НДС 12% : 7.65 [09:00:34]line Наличными: 72.00 [09:00:34]line Безнал.: 0.00 [09:00:34]line Место: АЗС № 144 "Партнер Нефть" [09:00:34]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:00:34]line СНО: Общий режим [09:00:34]line Чек 26 22.06.2024 09:00 [09:00:34]line Смена: 395 ФФД: 1.0 [09:00:34]line ЗНМ: 0300000170 [09:00:34]line РНМ: 0000000000095696 [09:00:34]line Версия ККМ: 001 [09:00:34]line ФМ: 0000000000875009 [09:00:34]line ФД: 76830 [09:00:34]line ФПД: 269040543274374 [09:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090032&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76830&fm=269040543274374&tin=02508201610067®Number=0000000000095696&sum=7200 [09:00:34]line 0 [09:00:34]written 0, free lines is 4095 [09:00:34]Connected sock=10 [09:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 91 61 32 01 3A F0 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 B0 92 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1E 2C 01 00 35 04 06 00 F4 B0 E2 03 15 86 BC B8 01 1A F2 7A 09 ED [09:00:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 FC 71 47 00 3C 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 35 30 30 39 10 04 04 00 1E 2C 01 00 F4 03 04 00 4B 39 76 66 B6 04 01 00 00 67 2F C8 14 E9 31 F9 50 [09:00:34]CommunicateWithHost err = 0 [09:00:34]CheckOFDResponse [09:00:34]1017 (14) - 77093643461234 [09:00:34]1041 (16) - 0000000000875009 [09:00:34]1040 (4) - 76830 [09:00:34]1012 (4) - 22.06.2024 02:39 [09:00:34]1206 (1) - 0 [09:00:34]OFD Sender: Remove packet 76830 [09:00:34]ProducePacketName [09:00:34]name=ofd_packets/00076830 [09:00:34]NVStorageDeleteData [09:00:35]Write to MH i2c: 01 00 00 4D 00 4D [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: 01 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: 01 07 00 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: 01 07 00 4D 00 00 00 00 00 00 EB 0C 4B [09:00:35]RasterBufferAndPrint [09:00:35]line [09:00:35]line [09:00:35]line [09:00:35]line [09:00:35]line [09:00:35]written 0, free lines is 3313 [09:00:35]MH_Cut [09:00:35]Write to MH i2c: D1 01 00 54 00 01 26 [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: D1 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: D1 01 00 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: D1 01 00 54 00 00 25 [09:00:35]Write to MH i2c: 01 00 00 55 00 55 [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:35]OFD Sender: No OFD packet to send [09:00:35]*** Cut start [09:00:35]*** Partial cut [09:00:35]*** CUTSNS_PIN = 1 [09:00:35]*** CUTSNS_PIN = 0 [09:00:36]*** Brake cut motor [09:00:36]Read from MH i2c: 01 [09:00:36]MH_I2C_Read... [09:00:36]*** Stop cut motor [09:00:36]*** Cut end [09:00:36]Read from MH i2c: 01 07 00 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: 01 07 00 55 00 00 00 00 00 00 FF 0F 6A [09:00:36]process_action close_receipt done [09:00:36]requested_data is exist [09:00:36]produce_requested_data [09:00:36]requested_item fm.sn is exist - process it [09:00:36]wFMCommunicate request_size=4 [09:00:36]MH_SAM_APDU [09:00:36]CAPDU: 80 11 00 00 [09:00:36]Write to MH i2c: E2 08 00 56 00 80 11 00 00 00 00 00 00 D0 [09:00:36]Write i2c OK [09:00:36]MH_I2C_Read... [09:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:36]Read from MH i2c: E2 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: E2 17 00 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: E2 17 00 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 20 [09:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:00:36]wFMCommunicate OK [09:00:36]requested_item fd.num is exist - process it [09:00:36]SAM_PROTO_GetFieldsCounters [09:00:36]wFMCommunicate request_size=4 [09:00:36]MH_SAM_APDU [09:00:36]CAPDU: 80 13 00 00 [09:00:36]Write to MH i2c: E2 08 00 57 00 80 13 00 00 00 00 00 00 D3 [09:00:36]Write i2c OK [09:00:36]MH_I2C_Read... [09:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:36]Read from MH i2c: E2 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: E2 62 00 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: E2 62 00 57 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [09:00:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:36]wFMCommunicate OK [09:00:36]SAM_PROTO_GetFieldsCounters done [09:00:36]requested_item shift.num is exist - process it [09:00:36]requested_item shift.opened is exist - process it [09:00:36]req_shift_opened [09:00:36]FM_GetShiftState [09:00:36]SAM_PROTO_GetShiftState [09:00:36]wFMCommunicate request_size=4 [09:00:36]MH_SAM_APDU [09:00:36]CAPDU: 80 13 01 00 [09:00:36]Write to MH i2c: E2 08 00 58 00 80 13 01 00 00 00 00 00 D5 [09:00:36]Write i2c OK [09:00:36]MH_I2C_Read... [09:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:36]Read from MH i2c: E2 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: E2 0E 00 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: E2 0E 00 58 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 CB [09:00:36]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [09:00:36]wFMCommunicate OK [09:00:36]SAM_PROTO_GetShiftState done [09:00:36]FM_GetShiftState done [09:00:36]req_shift_opened done [09:00:36]requested_item shift.open_date is exist - process it [09:00:36]req_shift_open_date [09:00:36]req_shift_open_date done [09:00:36]produce_requested_data done [09:00:36]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76830,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [09:00:36]process_action_free close_receipt [09:00:36]json_value_free [09:00:36]json_value_free done [09:00:36]process_json_proto returns [09:00:36]Send response to host [09:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76830,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [09:00:36]free response buf [09:00:36]execute_script done [09:00:36]execute_script returns [09:00:36]free content buf [09:00:36]Sock 9.Close socket [09:00:36]Sock 9.Thread stoped [09:00:39]accept exits with 7 [09:00:39]New connection [09:00:39]New thread 3066461540 created [09:00:39]Thread 3066604900 joined [09:00:39]Waiting for new connection... [09:00:39] Sock 7.Parse request [09:00:39]Sock 7.Check first char [09:00:39]Sock 7.First char is OK [09:00:39]request: POST /json_proto HTTP/1.0 [09:00:39]Method: POST [09:00:39]URL: /json_proto [09:00:39]Method is POST - this is cgi request [09:00:39]url: /json_proto [09:00:39]query_string will be loaded in cgi processing [09:00:39]execute_cgi json_proto POST (null) [09:00:39]execute_cgi path=json_proto method=POST [09:00:39]POST find Content-Length [09:00:39]Host: 172.17.39.195:8080 [09:00:39]Content-Length: 623 [09:00:39]Content-Type: application/json [09:00:39] [09:00:39]POST finish read [09:00:39]Found Content-Length = 623 [09:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220911", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:39]execute_script... [09:00:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220911", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:39]POST & json_proto [09:00:39]process_json_proto [09:00:39]json parsed OK: [09:00:39]protocol is kg_v1.0 [09:00:39]action value=close_receipt [09:00:39]process_action close_receipt [09:00:39]cmd_close_receipt [09:00:39]MH_GetDate [09:00:39]Write to MH i2c: F0 00 00 59 00 48 [09:00:39]Write i2c OK [09:00:39]MH_I2C_Read... [09:00:39]Read from MH i2c: F0 [09:00:39]MH_I2C_Read... [09:00:39]Read from MH i2c: F0 09 00 [09:00:39]MH_I2C_Read... [09:00:39]Read from MH i2c: F0 09 00 59 00 00 B7 92 76 66 99 81 91 64 85 [09:00:39]GetLastDocTimeStamp 1719046832 [09:00:39]current date 1719046839 [09:00:39]FM_GetShiftState [09:00:39]SAM_PROTO_GetShiftState [09:00:39]wFMCommunicate request_size=4 [09:00:39]MH_SAM_APDU [09:00:39]CAPDU: 80 13 01 00 [09:00:39]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [09:00:39]Write i2c OK [09:00:39]MH_I2C_Read... [09:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:39]Read from MH i2c: E2 [09:00:39]MH_I2C_Read... [09:00:39]Read from MH i2c: E2 0E 00 [09:00:39]MH_I2C_Read... [09:00:39]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 CD [09:00:39]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [09:00:39]wFMCommunicate OK [09:00:39]SAM_PROTO_GetShiftState done [09:00:39]FM_GetShiftState done [09:00:39]opened in 1719016435 [09:00:39]opened+sec_in_day 1719102835 [09:00:39]quantity*price = 14000 [09:00:39]sum+1 = 14001 [09:00:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 27 22.06.2024 09:00 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76831 ФПД: 98194502327907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090039&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76831&fm=98194502327907&tin=02508201610067®Number=0000000000095696&sum=14000 0 [09:00:40]StoreToDocumentArchive [09:00:40]shift 395 fd 76831 [09:00:40]save to /storage/0395/doc_00076831 [09:00:40]save last doc name /storage/0395/doc_00076831 to /storage/kkm_last_doc_name [09:00:40]save OK [09:00:40]Clear old archive folders... [09:00:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:00:40]tlvbuf is 01FCCA30 [09:00:40]SAM_PROTO_ClearQueue [09:00:40]wFMCommunicate request_size=4 [09:00:40]MH_SAM_APDU [09:00:40]CAPDU: 80 09 00 00 [09:00:40]Write to MH i2c: E2 08 00 67 00 80 09 00 00 00 00 00 00 D9 [09:00:40]Write i2c OK [09:00:40]MH_I2C_Read... [09:00:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:40]Read from MH i2c: E2 [09:00:40]MH_I2C_Read... [09:00:40]Read from MH i2c: E2 03 00 [09:00:40]MH_I2C_Read... [09:00:40]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [09:00:40]RAPDU: 90 00 [09:00:40]wFMCommunicate OK [09:00:40]SAM_PROTO_ClearQueue done [09:00:40]KKMCreateOFDPacket [09:00:40]OFDProtocolAddRootSTLVToBuf [09:00:40]FM_MakeSignedData [09:00:40]FM_MakeSignedData [09:00:40]SAM_PROTO_SignData [09:00:40]wFMCommunicate request_size=4 [09:00:40]MH_SAM_APDU [09:00:40]CAPDU: 80 0D 01 02 [09:00:40]Write to MH i2c: E2 08 00 68 00 80 0D 01 02 00 00 00 00 E1 [09:00:40]Write i2c OK [09:00:40]MH_I2C_Read... [09:00:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:41]Read from MH i2c: E2 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 03 00 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [09:00:41]RAPDU: 90 00 [09:00:41]wFMCommunicate OK [09:00:41]wFMCommunicate request_size=255 [09:00:41]MH_SAM_APDU [09:00:41]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B7 92 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 [09:00:41]Write to MH i2c: E2 02 01 69 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B7 92 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 00 00 47 [09:00:41]Write i2c OK [09:00:41]MH_I2C_Read... [09:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:41]Read from MH i2c: E2 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 03 00 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [09:00:41]RAPDU: 90 00 [09:00:41]wFMCommunicate OK [09:00:41]wFMCommunicate request_size=34 [09:00:41]MH_SAM_APDU [09:00:41]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1F 2C 01 00 35 04 06 00 59 4E B0 6E 1E 63 [09:00:41]Write to MH i2c: E2 25 00 6A 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1F 2C 01 00 35 04 06 00 59 4E B0 6E 1E 63 00 00 34 [09:00:41]Write i2c OK [09:00:41]MH_I2C_Read... [09:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:41]Read from MH i2c: E2 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 03 00 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [09:00:41]RAPDU: 90 00 [09:00:41]wFMCommunicate OK [09:00:41]wFMCommunicate request_size=4 [09:00:41]MH_SAM_APDU [09:00:41]CAPDU: 80 0D 03 02 [09:00:41]Write to MH i2c: E2 08 00 6B 00 80 0D 03 02 00 00 00 00 E6 [09:00:41]Write i2c OK [09:00:41]MH_I2C_Read... [09:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:41]Read from MH i2c: E2 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 0B 00 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 0B 00 6B 00 00 9C B9 E8 A0 4C B9 AD 99 90 00 0F [09:00:41]RAPDU: 9C B9 E8 A0 4C B9 AD 99 90 00 [09:00:41]wFMCommunicate OK [09:00:41]SAM_PROTO_SignData done [09:00:41]FM_MakeSignedData done [09:00:41]CreateOFDProtocolMessage [09:00:41]wFMCommunicate request_size=4 [09:00:41]MH_SAM_APDU [09:00:41]CAPDU: 80 11 00 00 [09:00:41]Write to MH i2c: E2 08 00 6C 00 80 11 00 00 00 00 00 00 E6 [09:00:41]Write i2c OK [09:00:41]MH_I2C_Read... [09:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:41]Read from MH i2c: E2 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 17 00 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: E2 17 00 6C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 36 [09:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:00:41]wFMCommunicate OK [09:00:41]CreateOFDProtocolMessage done [09:00:41]OFDSenderStorePacket 76831 [09:00:41]StoreOFDPacket docnum=76831 [09:00:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 27 01 00 00 88 CC 1F 01 4B 5E 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B7 92 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1F 2C 01 00 35 04 06 00 59 4E B0 6E 1E 63 9C B9 E8 A0 4C B9 AD 99 [09:00:41]CheckFolder [09:00:41]dirname=/storage/ofd_packets [09:00:41]CheckFolder done [09:00:41]ProducePacketName [09:00:41]name=ofd_packets/00076831 [09:00:41]NVStorageSaveData ofd_packets/00076831 [09:00:41]File name is /storage/ofd_packets/00076831 [09:00:41]Write 325 bytes [09:00:41]NVStorageSaveData done [09:00:41]OFDSenderStorePacket done [09:00:41]KKMCreateOFDPacket done [09:00:41]NVStorageSaveData kkm_last_timestamp [09:00:41]File name is /storage/kkm_last_timestamp [09:00:41]Write 4 bytes [09:00:41]NVStorageSaveData done [09:00:41]ExternCall_PrintAddStr [09:00:41]wPrintStart [09:00:41]Write to MH i2c: 01 00 00 6D 00 6D [09:00:41]Write i2c OK [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: 01 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: 01 07 00 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [09:00:41]RasterBufferAndPrint [09:00:41]line Счет N : (3)220911 [09:00:41]line ИНН: 02508201610067 [09:00:41]line Контрольно-Кассовый Чек [09:00:41]line ПРОДАЖА [09:00:41]line Товар: 48743587 [09:00:41]line Сигареты Winston XStyle Silver [09:00:41]line 1.000 * 140.00 [09:00:41]line = 140.00 [09:00:41]line НДС 12% НСП 1% [09:00:41]line > о реализуемом товаре [09:00:41]line ИТОГО: 140.00 [09:00:41]line НСП 1% : 1.24 [09:00:41]line НДС 12% : 14.87 [09:00:41]line Наличными: 140.00 [09:00:41]line Безнал.: 0.00 [09:00:41]line Место: АЗС № 144 "Партнер Нефть" [09:00:41]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:00:41]line СНО: Общий режим [09:00:41]line Чек 27 22.06.2024 09:00 [09:00:41]line Смена: 395 ФФД: 1.0 [09:00:41]line ЗНМ: 0300000170 [09:00:41]line РНМ: 0000000000095696 [09:00:41]line Версия ККМ: 001 [09:00:41]line ФМ: 0000000000875009 [09:00:41]line ФД: 76831 [09:00:41]line ФПД: 98194502327907 [09:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T090039&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76831&fm=98194502327907&tin=02508201610067®Number=0000000000095696&sum=14000 [09:00:41]line 0 [09:00:41]written 0, free lines is 4095 [09:00:41]OFD Sender: Processing packet 76831 [packets to send 351, broken 350] [09:00:41]ProducePacketName [09:00:41]name=ofd_packets/00076831 [09:00:41]OFD Sender: To server: pG, [09:00:41]CommunicateWithHost lk.salyk.kg:30040 [09:00:41]ConnectInit lk.salyk.kg [09:00:41]Connected sock=11 [09:00:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 27 01 00 00 88 CC 1F 01 4B 5E 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B7 92 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1F 2C 01 00 35 04 06 00 59 4E B0 6E 1E 63 9C B9 E8 A0 4C B9 AD 99 [09:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 08 3B 47 00 90 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 1F 2C 01 00 F4 03 04 00 52 39 76 66 B6 04 01 00 00 8E 94 BA 62 CC 35 9F 49 [09:00:41]CommunicateWithHost err = 0 [09:00:41]CheckOFDResponse [09:00:41]1017 (14) - 77093643461234 [09:00:41]1041 (16) - 0000000000875009 [09:00:41]1040 (4) - 76831 [09:00:41]1012 (4) - 22.06.2024 02:39 [09:00:41]1206 (1) - 0 [09:00:41]OFD Sender: Remove packet 76831 [09:00:41]ProducePacketName [09:00:41]name=ofd_packets/00076831 [09:00:41]NVStorageDeleteData [09:00:41]Write to MH i2c: 01 00 00 96 00 96 [09:00:41]Write i2c OK [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: 01 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: 01 07 00 [09:00:41]MH_I2C_Read... [09:00:41]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 04 0D AE [09:00:41]RasterBufferAndPrint [09:00:41]line [09:00:41]line [09:00:41]line [09:00:41]line [09:00:41]line [09:00:41]written 0, free lines is 3342 [09:00:42]MH_Cut [09:00:42]Write to MH i2c: D1 01 00 9D 00 01 6F [09:00:42]Write i2c OK [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: D1 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: D1 01 00 [09:00:42]MH_I2C_Read... [09:00:42]Read from MH i2c: D1 01 00 9D 00 00 6E [09:00:42]Write to MH i2c: 01 00 00 9E 00 9E [09:00:42]Write i2c OK [09:00:42]MH_I2C_Read... [09:00:42]OFD Sender: No OFD packet to send [09:00:42]*** Cut start [09:00:42]*** Partial cut [09:00:42]*** CUTSNS_PIN = 1 [09:00:42]*** CUTSNS_PIN = 0 [09:00:42]*** Brake cut motor [09:00:43]Read from MH i2c: 01 [09:00:43]MH_I2C_Read... [09:00:43]*** Stop cut motor [09:00:43]*** Cut end [09:00:43]Read from MH i2c: 01 07 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: 01 07 00 9E 00 00 00 00 00 00 FF 0F B3 [09:00:43]process_action close_receipt done [09:00:43]requested_data is exist [09:00:43]produce_requested_data [09:00:43]requested_item fm.sn is exist - process it [09:00:43]wFMCommunicate request_size=4 [09:00:43]MH_SAM_APDU [09:00:43]CAPDU: 80 11 00 00 [09:00:43]Write to MH i2c: E2 08 00 9F 00 80 11 00 00 00 00 00 00 19 [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:43]Read from MH i2c: E2 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 17 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 17 00 9F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 69 [09:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:00:43]wFMCommunicate OK [09:00:43]requested_item fd.num is exist - process it [09:00:43]SAM_PROTO_GetFieldsCounters [09:00:43]wFMCommunicate request_size=4 [09:00:43]MH_SAM_APDU [09:00:43]CAPDU: 80 13 00 00 [09:00:43]Write to MH i2c: E2 08 00 A0 00 80 13 00 00 00 00 00 00 1C [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 [09:00:43]MH_I2C_Read... [09:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:43]Read from MH i2c: E2 62 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 62 00 A0 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [09:00: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:43]wFMCommunicate OK [09:00:43]SAM_PROTO_GetFieldsCounters done [09:00:43]requested_item shift.num is exist - process it [09:00:43]requested_item shift.opened is exist - process it [09:00:43]req_shift_opened [09:00:43]FM_GetShiftState [09:00:43]SAM_PROTO_GetShiftState [09:00:43]wFMCommunicate request_size=4 [09:00:43]MH_SAM_APDU [09:00:43]CAPDU: 80 13 01 00 [09:00:43]Write to MH i2c: E2 08 00 A1 00 80 13 01 00 00 00 00 00 1E [09:00:43]Write i2c OK [09:00:43]MH_I2C_Read... [09:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:43]Read from MH i2c: E2 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 0E 00 [09:00:43]MH_I2C_Read... [09:00:43]Read from MH i2c: E2 0E 00 A1 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 14 [09:00:43]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [09:00:43]wFMCommunicate OK [09:00:43]SAM_PROTO_GetShiftState done [09:00:43]FM_GetShiftState done [09:00:43]req_shift_opened done [09:00:43]requested_item shift.open_date is exist - process it [09:00:43]req_shift_open_date [09:00:43]req_shift_open_date done [09:00:43]produce_requested_data done [09:00:43]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76831,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [09:00:43]process_action_free close_receipt [09:00:43]json_value_free [09:00:43]json_value_free done [09:00:43]process_json_proto returns [09:00:43]Send response to host [09:00:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76831,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [09:00:43]free response buf [09:00:43]execute_script done [09:00:43]execute_script returns [09:00:43]free content buf [09:00:43]Sock 7.Close socket [09:00:43]Sock 7.Thread stoped [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:31]accept exits with 9 [09:16:31]New connection [09:16:31]New thread 3066604900 created [09:16:31]Thread 3066461540 joined [09:16:31]Waiting for new connection... [09:16:31] Sock 9.Parse request [09:16:31]Sock 9.Check first char [09:16:31]Sock 9.First char is OK [09:16:31]request: POST /json_proto HTTP/1.0 [09:16:31]Method: POST [09:16:31]URL: /json_proto [09:16:31]Method is POST - this is cgi request [09:16:31]url: /json_proto [09:16:31]query_string will be loaded in cgi processing [09:16:31]execute_cgi json_proto POST (null) [09:16:31]execute_cgi path=json_proto method=POST [09:16:31]POST find Content-Length [09:16:31]Host: 172.17.39.195:8080 [09:16:31]Content-Length: 1172 [09:16:31]Content-Type: application/json [09:16:31] [09:16:31]POST finish read [09:16:31]Found Content-Length = 1172 [09:16:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694297\u000A22.06.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102125\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:31]execute_script... [09:16:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694297\u000A22.06.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102125\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:31]POST & json_proto [09:16:31]process_json_proto [09:16:31]json parsed OK: [09:16:31]protocol is kg_v1.0 [09:16:31]action value=print_text [09:16:31]process_action print_text [09:16:31]cmd_print_text [09:16:31]ExternCall_PrintAddStr [09:16:31]wPrintStart [09:16:31]Write to MH i2c: 01 00 00 A2 00 A2 [09:16:31]Write i2c OK [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 07 00 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [09:16:31]RasterBufferAndPrint [09:16:31]line *****ТОВАРНЫЙ ЧЕК***** [09:16:31]line АЗС 144 [09:16:31]line Партнер нефть [09:16:31]line 02508201610067 [09:16:31]line Кассир : Шайлообек у. Т. [09:16:31]line Счет N : (1)1694297 [09:16:31]line 22.06.2024 08:47 [09:16:31]line ПРОДАЖА [09:16:31]line ТРК (МРК, ГНК): 43 [09:16:31]line Вид ГСМ : 2710124130 [09:16:31]line Аи-92-К-5 [09:16:31]line 20.000 x 66.40 [09:16:31]line ИТОГ: 1328.00 [09:16:31]line Тип оплаты: Талоны: ТК ГПНА Online [09:16:31]line 30102125 [09:16:31]line ______________________ [09:16:31]line (подпись) [09:16:31]written 0, free lines is 4095 [09:16:32]Write to MH i2c: 01 00 00 B7 00 B7 [09:16:32]Write i2c OK [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: 01 [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: 01 07 00 [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: 01 07 00 B7 00 00 00 00 00 00 F5 0D C0 [09:16:32]RasterBufferAndPrint [09:16:32]line [09:16:32]line [09:16:32]line [09:16:32]line [09:16:32]line [09:16:32]written 0, free lines is 3575 [09:16:32]MH_Cut [09:16:32]Write to MH i2c: D1 01 00 BE 00 01 90 [09:16:32]Write i2c OK [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: D1 [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: D1 01 00 [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: D1 01 00 BE 00 00 8F [09:16:32]Write to MH i2c: 01 00 00 BF 00 BF [09:16:32]Write i2c OK [09:16:32]MH_I2C_Read... [09:16:32]*** Cut start [09:16:32]*** Partial cut [09:16:32]*** CUTSNS_PIN = 1 [09:16:32]*** CUTSNS_PIN = 0 [09:16:32]*** Brake cut motor [09:16:33]Read from MH i2c: 01 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: 01 07 00 [09:16:33]MH_I2C_Read... [09:16:33]*** Stop cut motor [09:16:33]*** Cut end [09:16:33]Read from MH i2c: 01 07 00 BF 00 00 00 00 00 00 FF 0F D4 [09:16:33]process_action print_text done [09:16:33]requested_data is exist [09:16:33]produce_requested_data [09:16:33]requested_item fm.sn is exist - process it [09:16:33]wFMCommunicate request_size=4 [09:16:33]MH_SAM_APDU [09:16:33]CAPDU: 80 11 00 00 [09:16:33]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [09:16:33]Write i2c OK [09:16:33]MH_I2C_Read... [09:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:33]Read from MH i2c: E2 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 17 00 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8A [09:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:16:33]wFMCommunicate OK [09:16:33]requested_item fd.num is exist - process it [09:16:33]SAM_PROTO_GetFieldsCounters [09:16:33]wFMCommunicate request_size=4 [09:16:33]MH_SAM_APDU [09:16:33]CAPDU: 80 13 00 00 [09:16:33]Write to MH i2c: E2 08 00 C1 00 80 13 00 00 00 00 00 00 3D [09:16:33]Write i2c OK [09:16:33]MH_I2C_Read... [09:16:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:33]Read from MH i2c: E2 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 62 00 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 62 00 C1 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [09:16: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 1F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:33]wFMCommunicate OK [09:16:33]SAM_PROTO_GetFieldsCounters done [09:16:33]requested_item shift.num is exist - process it [09:16:33]requested_item shift.opened is exist - process it [09:16:33]req_shift_opened [09:16:33]FM_GetShiftState [09:16:33]SAM_PROTO_GetShiftState [09:16:33]wFMCommunicate request_size=4 [09:16:33]MH_SAM_APDU [09:16:33]CAPDU: 80 13 01 00 [09:16:33]Write to MH i2c: E2 08 00 C2 00 80 13 01 00 00 00 00 00 3F [09:16:33]Write i2c OK [09:16:33]MH_I2C_Read... [09:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:33]Read from MH i2c: E2 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 0E 00 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 0E 00 C2 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 35 [09:16:33]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [09:16:33]wFMCommunicate OK [09:16:33]SAM_PROTO_GetShiftState done [09:16:33]FM_GetShiftState done [09:16:33]req_shift_opened done [09:16:33]requested_item shift.open_date is exist - process it [09:16:33]req_shift_open_date [09:16:33]req_shift_open_date done [09:16:33]produce_requested_data done [09:16:33]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76831,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [09:16:33]process_action_free print_text [09:16:33]json_value_free [09:16:33]json_value_free done [09:16:33]process_json_proto returns [09:16:33]Send response to host [09:16:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76831,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [09:16:33]free response buf [09:16:33]execute_script done [09:16:33]execute_script returns [09:16:33]free content buf [09:16:33]Sock 9.Close socket [09:16:33]Sock 9.Thread stoped [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09: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: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:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:22]accept exits with 7 [09:32:22]New connection [09:32:22]New thread 3066461540 created [09:32:22]Thread 3066604900 joined [09:32:22]Waiting for new connection... [09:32:22] Sock 7.Parse request [09:32:22]Sock 7.Check first char [09:32:22]Sock 7.First char is OK [09:32:22]request: POST /json_proto HTTP/1.0 [09:32:22]Method: POST [09:32:22]URL: /json_proto [09:32:22]Method is POST - this is cgi request [09:32:22]url: /json_proto [09:32:22]query_string will be loaded in cgi processing [09:32:22]execute_cgi json_proto POST (null) [09:32:22]execute_cgi path=json_proto method=POST [09:32:22]POST find Content-Length [09:32:22]Host: 172.17.39.195:8080 [09:32:22]Content-Length: 910 [09:32:22]Content-Type: application/json [09:32:22] [09:32:22]POST finish read [09:32:22]Found Content-Length = 910 [09:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220912", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:22]execute_script... [09:32:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220912", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:22]POST & json_proto [09:32:22]process_json_proto [09:32:22]json parsed OK: [09:32:22]protocol is kg_v1.0 [09:32:22]action value=close_receipt [09:32:22]process_action close_receipt [09:32:22]cmd_close_receipt [09:32:22]MH_GetDate [09:32:22]Write to MH i2c: F0 00 00 C3 00 B2 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: F0 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: F0 09 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: F0 09 00 C3 00 00 27 9A 76 66 99 81 91 64 67 [09:32:22]GetLastDocTimeStamp 1719046839 [09:32:22]current date 1719048743 [09:32:22]FM_GetShiftState [09:32:22]SAM_PROTO_GetShiftState [09:32:22]wFMCommunicate request_size=4 [09:32:22]MH_SAM_APDU [09:32:22]CAPDU: 80 13 01 00 [09:32:22]Write to MH i2c: E2 08 00 C4 00 80 13 01 00 00 00 00 00 41 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:22]Read from MH i2c: E2 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 0E 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 0E 00 C4 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 37 [09:32:22]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [09:32:22]wFMCommunicate OK [09:32:22]SAM_PROTO_GetShiftState done [09:32:22]FM_GetShiftState done [09:32:22]opened in 1719016435 [09:32:22]opened+sec_in_day 1719102835 [09:32:22]quantity*price = 11300 [09:32:22]sum+1 = 11301 [09:32:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 208.00 НСП 1% : 1.84 НДС 12% : 22.09 Наличными: 208.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 28 22.06.2024 09:32 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76832 ФПД: 187238638316305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093223&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76832&fm=187238638316305&tin=02508201610067®Number=0000000000095696&sum=20800 0 [09:32:23]StoreToDocumentArchive [09:32:23]shift 395 fd 76832 [09:32:23]save to /storage/0395/doc_00076832 [09:32:23]save last doc name /storage/0395/doc_00076832 to /storage/kkm_last_doc_name [09:32:23]save OK [09:32:23]Clear old archive folders... [09:32:23]ProcessDocumentItem done err = 0, tmpTLVsize=394 [09:32:23]tlvbuf is 01FD2820 [09:32:23]SAM_PROTO_ClearQueue [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 09 00 00 [09:32:23]Write to MH i2c: E2 08 00 D1 00 80 09 00 00 00 00 00 00 43 [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:24]Read from MH i2c: E2 03 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [09:32:24]RAPDU: 90 00 [09:32:24]wFMCommunicate OK [09:32:24]SAM_PROTO_ClearQueue done [09:32:24]KKMCreateOFDPacket [09:32:24]OFDProtocolAddRootSTLVToBuf [09:32:24]FM_MakeSignedData [09:32:24]FM_MakeSignedData [09:32:24]SAM_PROTO_SignData [09:32:24]wFMCommunicate request_size=4 [09:32:24]MH_SAM_APDU [09:32:24]CAPDU: 80 0D 01 02 [09:32:24]Write to MH i2c: E2 08 00 D2 00 80 0D 01 02 00 00 00 00 4B [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 03 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [09:32:24]RAPDU: 90 00 [09:32:24]wFMCommunicate OK [09:32:24]wFMCommunicate request_size=255 [09:32:24]MH_SAM_APDU [09:32:24]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F [09:32:24]Write to MH i2c: E2 02 01 D3 00 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 9D [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 03 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [09:32:24]RAPDU: 90 00 [09:32:24]wFMCommunicate OK [09:32:24]wFMCommunicate request_size=153 [09:32:24]MH_SAM_APDU [09:32:24]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 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 27 9A 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 20 2C 01 00 35 04 06 00 AA 4A E4 86 6B 11 [09:32:24]Write to MH i2c: E2 9C 00 D4 00 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 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 27 9A 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 20 2C 01 00 35 04 06 00 AA 4A E4 86 6B 11 00 00 03 [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 03 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 03 00 D4 00 00 90 00 48 [09:32:24]RAPDU: 90 00 [09:32:24]wFMCommunicate OK [09:32:24]wFMCommunicate request_size=4 [09:32:24]MH_SAM_APDU [09:32:24]CAPDU: 80 0D 03 02 [09:32:24]Write to MH i2c: E2 08 00 D5 00 80 0D 03 02 00 00 00 00 50 [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 0B 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 0B 00 D5 00 00 56 76 E6 6E BF C0 DB 74 90 00 3F [09:32:24]RAPDU: 56 76 E6 6E BF C0 DB 74 90 00 [09:32:24]wFMCommunicate OK [09:32:24]SAM_PROTO_SignData done [09:32:24]FM_MakeSignedData done [09:32:24]CreateOFDProtocolMessage [09:32:24]wFMCommunicate request_size=4 [09:32:24]MH_SAM_APDU [09:32:24]CAPDU: 80 11 00 00 [09:32:24]Write to MH i2c: E2 08 00 D6 00 80 11 00 00 00 00 00 00 50 [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:24]Read from MH i2c: E2 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 17 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: E2 17 00 D6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A0 [09:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:32:24]wFMCommunicate OK [09:32:24]CreateOFDProtocolMessage done [09:32:24]OFDSenderStorePacket 76832 [09:32:24]StoreOFDPacket docnum=76832 [09:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 9E 01 00 00 08 87 96 01 30 5C 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 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 27 9A 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 20 2C 01 00 35 04 06 00 AA 4A E4 86 6B 11 56 76 E6 6E BF C0 DB 74 [09:32:24]CheckFolder [09:32:24]dirname=/storage/ofd_packets [09:32:24]CheckFolder done [09:32:24]ProducePacketName [09:32:24]name=ofd_packets/00076832 [09:32:24]NVStorageSaveData ofd_packets/00076832 [09:32:24]File name is /storage/ofd_packets/00076832 [09:32:24]Write 444 bytes [09:32:24]NVStorageSaveData done [09:32:24]OFDSenderStorePacket done [09:32:24]KKMCreateOFDPacket done [09:32:24]NVStorageSaveData kkm_last_timestamp [09:32:24]File name is /storage/kkm_last_timestamp [09:32:24]Write 4 bytes [09:32:24]NVStorageSaveData done [09:32:24]ExternCall_PrintAddStr [09:32:24]wPrintStart [09:32:24]Write to MH i2c: 01 00 00 D7 00 D7 [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 D7 00 00 00 00 00 00 FF 0F EC [09:32:24]RasterBufferAndPrint [09:32:24]line Счет N : (3)220912 [09:32:24]line ИНН: 02508201610067 [09:32:24]line Контрольно-Кассовый Чек [09:32:24]line ПРОДАЖА [09:32:24]line Товар: 5449000006271 [09:32:24]line Напиток Фанта 1л [09:32:24]line 1.000 * 113.00 [09:32:24]line = 113.00 [09:32:24]line НДС 12% НСП 1% [09:32:24]line > о реализуемом товаре [09:32:24]line Товар: 4700000480050 [09:32:24]line Напиток Nitro Energy эн green ж/б 0,45л [09:32:24]line 1.000 * 95.00 [09:32:24]line = 95.00 [09:32:24]line НДС 12% НСП 1% [09:32:24]line > о реализуемом товаре [09:32:24]line ИТОГО: 208.00 [09:32:24]line НСП 1% : 1.84 [09:32:24]line НДС 12% : 22.09 [09:32:24]line Наличными: 208.00 [09:32:24]line Безнал.: 0.00 [09:32:24]line Место: АЗС № 144 "Партнер Нефть" [09:32:24]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:32:24]line СНО: Общий режим [09:32:24]line Чек 28 22.06.2024 09:32 [09:32:24]line Смена: 395 ФФД: 1.0 [09:32:24]line ЗНМ: 0300000170 [09:32:24]line РНМ: 0000000000095696 [09:32:24]line Версия ККМ: 001 [09:32:24]line ФМ: 0000000000875009 [09:32:24]line ФД: 76832 [09:32:24]line ФПД: 187238638316305 [09:32:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T093223&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76832&fm=187238638316305&tin=02508201610067®Number=0000000000095696&sum=20800 [09:32:24]line 0 [09:32:24]OFD Sender: Processing packet 76832 [packets to send 351, broken 350] [09:32:24]ProducePacketName [09:32:24]name=ofd_packets/00076832 [09:32:24]OFD Sender: To server: pG, [09:32:24]CommunicateWithHost lk.salyk.kg:30040 [09:32:24]ConnectInit lk.salyk.kg [09:32:24]written 0, free lines is 4095 [09:32:25]Connected sock=10 [09:32:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 9E 01 00 00 08 87 96 01 30 5C 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 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 27 9A 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 20 2C 01 00 35 04 06 00 AA 4A E4 86 6B 11 56 76 E6 6E BF C0 DB 74 [09:32:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 3C 72 47 00 90 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 20 2C 01 00 F4 03 04 00 C1 40 76 66 B6 04 01 00 00 DD 60 2B E5 1E D1 16 65 [09:32:25]CommunicateWithHost err = 0 [09:32:25]CheckOFDResponse [09:32:25]1017 (14) - 77093643461234 [09:32:25]1041 (16) - 0000000000875009 [09:32:25]1040 (4) - 76832 [09:32:25]1012 (4) - 22.06.2024 03:10 [09:32:25]1206 (1) - 0 [09:32:25]OFD Sender: Remove packet 76832 [09:32:25]ProducePacketName [09:32:25]name=ofd_packets/00076832 [09:32:25]NVStorageDeleteData [09:32:25]Write to MH i2c: 01 00 00 06 01 07 [09:32:25]Write i2c OK [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: 01 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: 01 07 00 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: 01 07 00 06 01 00 00 00 00 00 A2 0C BC [09:32:25]RasterBufferAndPrint [09:32:25]line [09:32:25]line [09:32:25]line [09:32:25]line [09:32:25]line [09:32:25]written 0, free lines is 3241 [09:32:25]MH_Cut [09:32:25]Write to MH i2c: D1 01 00 0D 01 01 E0 [09:32:25]Write i2c OK [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: D1 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: D1 01 00 [09:32:25]MH_I2C_Read... [09:32:25]Read from MH i2c: D1 01 00 0D 01 00 DF [09:32:25]Write to MH i2c: 01 00 00 0E 01 0F [09:32:25]Write i2c OK [09:32:25]MH_I2C_Read... [09:32:25]OFD Sender: No OFD packet to send [09:32:26]*** Cut start [09:32:26]*** Partial cut [09:32:26]*** CUTSNS_PIN = 1 [09:32:26]*** CUTSNS_PIN = 0 [09:32:26]*** Brake cut motor [09:32:26]Read from MH i2c: 01 [09:32:26]MH_I2C_Read... [09:32:26]*** Stop cut motor [09:32:26]*** Cut end [09:32:26]Read from MH i2c: 01 07 00 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [09:32:26]process_action close_receipt done [09:32:26]requested_data is exist [09:32:26]produce_requested_data [09:32:26]requested_item fm.sn is exist - process it [09:32:26]wFMCommunicate request_size=4 [09:32:26]MH_SAM_APDU [09:32:26]CAPDU: 80 11 00 00 [09:32:26]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [09:32:26]Write i2c OK [09:32:26]MH_I2C_Read... [09:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:26]Read from MH i2c: E2 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: E2 17 00 [09:32:26]MH_I2C_Read... [09:32:26]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DA [09:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:32:26]wFMCommunicate OK [09:32:26]requested_item fd.num is exist - process it [09:32:26]SAM_PROTO_GetFieldsCounters [09:32:26]wFMCommunicate request_size=4 [09:32:26]MH_SAM_APDU [09:32:26]CAPDU: 80 13 00 00 [09:32:26]Write to MH i2c: E2 08 00 10 01 80 13 00 00 00 00 00 00 8D [09:32:26]Write i2c OK [09:32:26]MH_I2C_Read... [09:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:27]Read from MH i2c: E2 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: E2 62 00 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: E2 62 00 10 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 20 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [09:32: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 20 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:27]wFMCommunicate OK [09:32:27]SAM_PROTO_GetFieldsCounters done [09:32:27]requested_item shift.num is exist - process it [09:32:27]requested_item shift.opened is exist - process it [09:32:27]req_shift_opened [09:32:27]FM_GetShiftState [09:32:27]SAM_PROTO_GetShiftState [09:32:27]wFMCommunicate request_size=4 [09:32:27]MH_SAM_APDU [09:32:27]CAPDU: 80 13 01 00 [09:32:27]Write to MH i2c: E2 08 00 11 01 80 13 01 00 00 00 00 00 8F [09:32:27]Write i2c OK [09:32:27]MH_I2C_Read... [09:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:27]Read from MH i2c: E2 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: E2 0E 00 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: E2 0E 00 11 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 85 [09:32:27]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [09:32:27]wFMCommunicate OK [09:32:27]SAM_PROTO_GetShiftState done [09:32:27]FM_GetShiftState done [09:32:27]req_shift_opened done [09:32:27]requested_item shift.open_date is exist - process it [09:32:27]req_shift_open_date [09:32:27]req_shift_open_date done [09:32:27]produce_requested_data done [09:32:27]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76832,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [09:32:27]process_action_free close_receipt [09:32:27]json_value_free [09:32:27]json_value_free done [09:32:27]process_json_proto returns [09:32:27]Send response to host [09:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76832,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [09:32:27]free response buf [09:32:27]execute_script done [09:32:27]execute_script returns [09:32:27]free content buf [09:32:27]Sock 7.Close socket [09:32:27]Sock 7.Thread stoped [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:31]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: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: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:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:58]accept exits with 9 [09:58:58]New connection [09:58:58]New thread 3066604900 created [09:58:58]Thread 3066461540 joined [09:58:58]Waiting for new connection... [09:58:58] Sock 9.Parse request [09:58:58]Sock 9.Check first char [09:58:58]Sock 9.First char is OK [09:58:58]request: POST /json_proto HTTP/1.0 [09:58:58]Method: POST [09:58:58]URL: /json_proto [09:58:58]Method is POST - this is cgi request [09:58:58]url: /json_proto [09:58:58]query_string will be loaded in cgi processing [09:58:58]execute_cgi json_proto POST (null) [09:58:58]execute_cgi path=json_proto method=POST [09:58:58]POST find Content-Length [09:58:58]Host: 172.17.39.195:8080 [09:58:58]Content-Length: 804 [09:58:58]Content-Type: application/json [09:58:58] [09:58:58]POST finish read [09:58:58]Found Content-Length = 804 [09:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:58]execute_script... [09:58: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)1694324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:58]POST & json_proto [09:58:58]process_json_proto [09:58:58]json parsed OK: [09:58:58]protocol is kg_v1.0 [09:58:58]action value=close_receipt [09:58:58]process_action close_receipt [09:58:58]cmd_close_receipt [09:58:58]MH_GetDate [09:58:58]Write to MH i2c: F0 00 00 12 01 02 [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: F0 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: F0 09 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: F0 09 00 12 01 00 63 A0 76 66 99 81 91 64 F9 [09:58:58]GetLastDocTimeStamp 1719048743 [09:58:58]current date 1719050339 [09:58:58]FM_GetShiftState [09:58:58]SAM_PROTO_GetShiftState [09:58:58]wFMCommunicate request_size=4 [09:58:58]MH_SAM_APDU [09:58:58]CAPDU: 80 13 01 00 [09:58:58]Write to MH i2c: E2 08 00 13 01 80 13 01 00 00 00 00 00 91 [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:58]Read from MH i2c: E2 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 0E 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 0E 00 13 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 87 [09:58:58]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [09:58:58]wFMCommunicate OK [09:58:58]SAM_PROTO_GetShiftState done [09:58:58]FM_GetShiftState done [09:58:58]opened in 1719016435 [09:58:58]opened+sec_in_day 1719102835 [09:58:58]quantity*price = 100060 [09:58:58]sum+1 = 100062 [09:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.61 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.61 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 29 22.06.2024 09:58 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76833 ФПД: 39986664356156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095859&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76833&fm=39986664356156&tin=02508201610067®Number=0000000000095696&sum=100061 [09:58:59]StoreToDocumentArchive [09:58:59]shift 395 fd 76833 [09:58:59]save to /storage/0395/doc_00076833 [09:58:59]save last doc name /storage/0395/doc_00076833 to /storage/kkm_last_doc_name [09:58:59]save OK [09:58:59]Clear old archive folders... [09:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:59]tlvbuf is 01FCA6B0 [09:58:59]SAM_PROTO_ClearQueue [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 09 00 00 [09:58:59]Write to MH i2c: E2 08 00 20 01 80 09 00 00 00 00 00 00 93 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 20 01 00 90 00 95 [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]SAM_PROTO_ClearQueue done [09:58:59]KKMCreateOFDPacket [09:58:59]OFDProtocolAddRootSTLVToBuf [09:58:59]FM_MakeSignedData [09:58:59]FM_MakeSignedData [09:58:59]SAM_PROTO_SignData [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 0D 01 02 [09:58:59]Write to MH i2c: E2 08 00 21 01 80 0D 01 02 00 00 00 00 9B [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 03 00 21 01 00 90 00 96 [09:58:59]RAPDU: 90 00 [09:58:59]wFMCommunicate OK [09:58:59]wFMCommunicate request_size=255 [09:58:59]MH_SAM_APDU [09:58: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 63 A0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 21 2C 01 00 35 04 06 00 24 [09:58:59]Write to MH i2c: E2 02 01 22 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 63 A0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 21 2C 01 00 35 04 06 00 24 00 00 09 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 22 01 00 90 00 97 [09:59:00]RAPDU: 90 00 [09:59:00]wFMCommunicate OK [09:59:00]wFMCommunicate request_size=10 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 0D 02 02 05 5E 1E EC B9 3C [09:59:00]Write to MH i2c: E2 0D 00 23 01 80 0D 02 02 05 00 5E 1E EC B9 3C 00 00 05 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 23 01 00 90 00 98 [09:59:00]RAPDU: 90 00 [09:59:00]wFMCommunicate OK [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 0D 03 02 [09:59:00]Write to MH i2c: E2 08 00 24 01 80 0D 03 02 00 00 00 00 A0 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0B 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0B 00 24 01 00 B7 71 D1 5D F9 B1 09 82 90 00 2C [09:59:00]RAPDU: B7 71 D1 5D F9 B1 09 82 90 00 [09:59:00]wFMCommunicate OK [09:59:00]SAM_PROTO_SignData done [09:59:00]FM_MakeSignedData done [09:59:00]CreateOFDProtocolMessage [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 11 00 00 [09:59:00]Write to MH i2c: E2 08 00 25 01 80 11 00 00 00 00 00 00 A0 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 17 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 17 00 25 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F0 [09:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:59:00]wFMCommunicate OK [09:59:00]CreateOFDProtocolMessage done [09:59:00]OFDSenderStorePacket 76833 [09:59:00]StoreOFDPacket docnum=76833 [09:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 4C 86 07 01 FF 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 63 A0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 21 2C 01 00 35 04 06 00 24 5E 1E EC B9 3C B7 71 D1 5D F9 B1 09 82 [09:59:00]CheckFolder [09:59:00]dirname=/storage/ofd_packets [09:59:00]CheckFolder done [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00076833 [09:59:00]NVStorageSaveData ofd_packets/00076833 [09:59:00]File name is /storage/ofd_packets/00076833 [09:59:00]Write 301 bytes [09:59:00]NVStorageSaveData done [09:59:00]OFDSenderStorePacket done [09:59:00]KKMCreateOFDPacket done [09:59:00]NVStorageSaveData kkm_last_timestamp [09:59:00]File name is /storage/kkm_last_timestamp [09:59:00]Write 4 bytes [09:59:00]NVStorageSaveData done [09:59:00]ExternCall_PrintAddStr [09:59:00]wPrintStart [09:59:00]Write to MH i2c: 01 00 00 26 01 27 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [09:59:00]RasterBufferAndPrint [09:59:00]line Счет N : (1)1694324 [09:59:00]line ИНН: 02508201610067 [09:59:00]line Контрольно-Кассовый Чек [09:59:00]line ПРОДАЖА [09:59:00]line ТРК (МРК, ГНК) : 41 [09:59:00]line Товар: 2710124500 [09:59:00]line Аи-95-К-3 [09:59:00]line 13.540 * 73.90 [09:59:00]line = 1000.61 [09:59:00]line НДС 12% НСП 1% [09:59:00]line > о реализуемом товаре [09:59:00]line ИТОГО: 1000.61 [09:59:00]line НСП 1% : 8.85 [09:59:00]line НДС 12% : 106.26 [09:59:00]line Наличными: 0.00 [09:59:00]line Безнал.: 1000.61 [09:59:00]line Место: АЗС № 144 "Партнер Нефть" [09:59:00]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [09:59:00]line СНО: Общий режим [09:59:00]line Чек 29 22.06.2024 09:58 [09:59:00]line Смена: 395 ФФД: 1.0 [09:59:00]line ЗНМ: 0300000170 [09:59:00]line РНМ: 0000000000095696 [09:59:00]line Версия ККМ: 001 [09:59:00]line Платежная система: O! деньги [09:59:00]line ФМ: 0000000000875009 [09:59:00]line ФД: 76833 [09:59:00]line ФПД: 39986664356156 [09:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T095859&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76833&fm=39986664356156&tin=02508201610067®Number=0000000000095696&sum=100061 [09:59:00]written 0, free lines is 4095 [09:59:00]OFD Sender: Processing packet 76833 [packets to send 351, broken 350] [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00076833 [09:59:00]OFD Sender: To server: pG, [09:59:00]CommunicateWithHost lk.salyk.kg:30040 [09:59:00]ConnectInit lk.salyk.kg [09:59:00]Connected sock=10 [09:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 4C 86 07 01 FF 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 63 A0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 21 2C 01 00 35 04 06 00 24 5E 1E EC B9 3C B7 71 D1 5D F9 B1 09 82 [09:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 7E D4 47 00 C3 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 21 2C 01 00 F4 03 04 00 FD 46 76 66 B6 04 01 00 00 23 97 09 EB B2 98 A9 C3 [09:59:00]CommunicateWithHost err = 0 [09:59:00]CheckOFDResponse [09:59:00]1017 (14) - 77093643461234 [09:59:00]1041 (16) - 0000000000875009 [09:59:00]1040 (4) - 76833 [09:59:00]1012 (4) - 22.06.2024 03:37 [09:59:00]1206 (1) - 0 [09:59:00]OFD Sender: Remove packet 76833 [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00076833 [09:59:00]NVStorageDeleteData [09:59:00]Write to MH i2c: 01 00 00 50 01 51 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 E4 0C 48 [09:59:00]RasterBufferAndPrint [09:59:00]line [09:59:00]line [09:59:00]line [09:59:00]line [09:59:00]line [09:59:00]written 0, free lines is 3307 [09:59:00]MH_Cut [09:59:00]Write to MH i2c: D1 01 00 57 01 01 2A [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: D1 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: D1 01 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: D1 01 00 57 01 00 29 [09:59:00]Write to MH i2c: 01 00 00 58 01 59 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:01]OFD Sender: No OFD packet to send [09:59:01]*** Cut start [09:59:01]*** Partial cut [09:59:01]*** CUTSNS_PIN = 1 [09:59:01]*** CUTSNS_PIN = 0 [09:59:01]*** Brake cut motor [09:59:02]Read from MH i2c: 01 [09:59:02]MH_I2C_Read... [09:59:02]*** Stop cut motor [09:59:02]*** Cut end [09:59:02]Read from MH i2c: 01 07 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [09:59:02]process_action close_receipt done [09:59:02]requested_data is exist [09:59:02]produce_requested_data [09:59:02]requested_item fm.sn is exist - process it [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 11 00 00 [09:59:02]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 17 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 24 [09:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [09:59:02]wFMCommunicate OK [09:59:02]requested_item fd.num is exist - process it [09:59:02]SAM_PROTO_GetFieldsCounters [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 13 00 00 [09:59:02]Write to MH i2c: E2 08 00 5A 01 80 13 00 00 00 00 00 00 D7 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 62 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 62 00 5A 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 21 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [09:59: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 21 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_GetFieldsCounters done [09:59:02]requested_item shift.num is exist - process it [09:59:02]requested_item shift.opened is exist - process it [09:59:02]req_shift_opened [09:59:02]FM_GetShiftState [09:59:02]SAM_PROTO_GetShiftState [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 13 01 00 [09:59:02]Write to MH i2c: E2 08 00 5B 01 80 13 01 00 00 00 00 00 D9 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 5B 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 CF [09:59:02]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_GetShiftState done [09:59:02]FM_GetShiftState done [09:59:02]req_shift_opened done [09:59:02]requested_item shift.open_date is exist - process it [09:59:02]req_shift_open_date [09:59:02]req_shift_open_date done [09:59:02]produce_requested_data done [09:59:02]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76833,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [09:59:02]process_action_free close_receipt [09:59:02]json_value_free [09:59:02]json_value_free done [09:59:02]process_json_proto returns [09:59:02]Send response to host [09:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76833,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [09:59:02]free response buf [09:59:02]execute_script done [09:59:02]execute_script returns [09:59:02]free content buf [09:59:02]Sock 9.Close socket [09:59:02]Sock 9.Thread stoped [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:16]accept exits with 7 [10:21:16]New connection [10:21:16]New thread 3066461540 created [10:21:16]Thread 3066604900 joined [10:21:16]Waiting for new connection... [10:21:16] Sock 7.Parse request [10:21:16]Sock 7.Check first char [10:21:16]Sock 7.First char is OK [10:21:16]request: POST /json_proto HTTP/1.0 [10:21:16]Method: POST [10:21:16]URL: /json_proto [10:21:16]Method is POST - this is cgi request [10:21:16]url: /json_proto [10:21:16]query_string will be loaded in cgi processing [10:21:16]execute_cgi json_proto POST (null) [10:21:16]execute_cgi path=json_proto method=POST [10:21:16]POST find Content-Length [10:21:16]Host: 172.17.39.195:8080 [10:21:16]Content-Length: 1169 [10:21:16]Content-Type: application/json [10:21:16] [10:21:16]POST finish read [10:21:16]Found Content-Length = 1169 [10:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694334\u000A22.06.2024 09:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 32.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2332.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102158\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:16]execute_script... [10:21:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694334\u000A22.06.2024 09:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 32.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2332.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102158\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:16]POST & json_proto [10:21:16]process_json_proto [10:21:16]json parsed OK: [10:21:16]protocol is kg_v1.0 [10:21:16]action value=print_text [10:21:16]process_action print_text [10:21:16]cmd_print_text [10:21:16]ExternCall_PrintAddStr [10:21:16]wPrintStart [10:21:16]Write to MH i2c: 01 00 00 5C 01 5D [10:21:16]Write i2c OK [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: 01 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: 01 07 00 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [10:21:16]RasterBufferAndPrint [10:21:16]line *****ТОВАРНЫЙ ЧЕК***** [10:21:16]line АЗС 144 [10:21:16]line Партнер нефть [10:21:16]line 02508201610067 [10:21:16]line Кассир : Шайлообек у. Т. [10:21:16]line Счет N : (1)1694334 [10:21:16]line 22.06.2024 09:52 [10:21:16]line ПРОДАЖА [10:21:16]line ТРК (МРК, ГНК): 21 [10:21:16]line Вид ГСМ : 2710194210 [10:21:16]line ДТ-К-2 [10:21:16]line 32.000 x 72.90 [10:21:16]line ИТОГ: 2332.80 [10:21:16]line Тип оплаты: Талоны: ТК ГПНА Online [10:21:16]line 30102158 [10:21:16]line ______________________ [10:21:16]line (подпись) [10:21:16]written 0, free lines is 4095 [10:21:16]Write to MH i2c: 01 00 00 71 01 72 [10:21:16]Write i2c OK [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: 01 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: 01 07 00 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 F4 0D 7A [10:21:16]RasterBufferAndPrint [10:21:16]line [10:21:16]line [10:21:16]line [10:21:16]line [10:21:16]line [10:21:16]written 0, free lines is 3573 [10:21:16]MH_Cut [10:21:16]Write to MH i2c: D1 01 00 78 01 01 4B [10:21:16]Write i2c OK [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: D1 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: D1 01 00 [10:21:16]MH_I2C_Read... [10:21:16]Read from MH i2c: D1 01 00 78 01 00 4A [10:21:16]Write to MH i2c: 01 00 00 79 01 7A [10:21:16]Write i2c OK [10:21:16]MH_I2C_Read... [10:21:16]*** Cut start [10:21:16]*** Partial cut [10:21:16]*** CUTSNS_PIN = 1 [10:21:16]*** CUTSNS_PIN = 0 [10:21:17]*** Brake cut motor [10:21:17]Read from MH i2c: 01 [10:21:17]MH_I2C_Read... [10:21:17]Read from MH i2c: 01 07 00 [10:21:17]MH_I2C_Read... [10:21:17]*** Stop cut motor [10:21:17]*** Cut end [10:21:17]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [10:21:17]process_action print_text done [10:21:17]requested_data is exist [10:21:17]produce_requested_data [10:21:17]requested_item fm.sn is exist - process it [10:21:17]wFMCommunicate request_size=4 [10:21:17]MH_SAM_APDU [10:21:17]CAPDU: 80 11 00 00 [10:21:17]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [10:21:17]Write i2c OK [10:21:17]MH_I2C_Read... [10:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:17]Read from MH i2c: E2 [10:21:17]MH_I2C_Read... [10:21:17]Read from MH i2c: E2 17 00 [10:21:17]MH_I2C_Read... [10:21:17]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 45 [10:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:21:17]wFMCommunicate OK [10:21:17]requested_item fd.num is exist - process it [10:21:17]SAM_PROTO_GetFieldsCounters [10:21:17]wFMCommunicate request_size=4 [10:21:17]MH_SAM_APDU [10:21:17]CAPDU: 80 13 00 00 [10:21:17]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [10:21:17]Write i2c OK [10:21:17]MH_I2C_Read... [10:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:17]Read from MH i2c: E2 [10:21:17]MH_I2C_Read... [10:21:17]Read from MH i2c: E2 62 00 [10:21:17]MH_I2C_Read... [10:21:17]Read from MH i2c: E2 62 00 7B 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 21 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [10:21: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 21 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:17]wFMCommunicate OK [10:21:17]SAM_PROTO_GetFieldsCounters done [10:21:17]requested_item shift.num is exist - process it [10:21:17]requested_item shift.opened is exist - process it [10:21:17]req_shift_opened [10:21:17]FM_GetShiftState [10:21:17]SAM_PROTO_GetShiftState [10:21:17]wFMCommunicate request_size=4 [10:21:17]MH_SAM_APDU [10:21:17]CAPDU: 80 13 01 00 [10:21:17]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [10:21:17]Write i2c OK [10:21:17]MH_I2C_Read... [10:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:17]Read from MH i2c: E2 [10:21:17]MH_I2C_Read... [10:21:17]Read from MH i2c: E2 0E 00 [10:21:17]MH_I2C_Read... [10:21:17]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F0 [10:21:17]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [10:21:17]wFMCommunicate OK [10:21:17]SAM_PROTO_GetShiftState done [10:21:17]FM_GetShiftState done [10:21:17]req_shift_opened done [10:21:17]requested_item shift.open_date is exist - process it [10:21:17]req_shift_open_date [10:21:17]req_shift_open_date done [10:21:17]produce_requested_data done [10:21:17]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76833,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [10:21:17]process_action_free print_text [10:21:17]json_value_free [10:21:17]json_value_free done [10:21:17]process_json_proto returns [10:21:17]Send response to host [10:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76833,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [10:21:17]free response buf [10:21:17]execute_script done [10:21:17]execute_script returns [10:21:17]free content buf [10:21:17]Sock 7.Close socket [10:21:17]Sock 7.Thread stoped [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:45]accept exits with 9 [10:23:45]New connection [10:23:45]New thread 3066604900 created [10:23:45]Thread 3066461540 joined [10:23:45]Waiting for new connection... [10:23:45] Sock 9.Parse request [10:23:45]Sock 9.Check first char [10:23:45]Sock 9.First char is OK [10:23:45]request: POST /json_proto HTTP/1.0 [10:23:45]Method: POST [10:23:45]URL: /json_proto [10:23:45]Method is POST - this is cgi request [10:23:45]url: /json_proto [10:23:45]query_string will be loaded in cgi processing [10:23:45]execute_cgi json_proto POST (null) [10:23:45]execute_cgi path=json_proto method=POST [10:23:45]POST find Content-Length [10:23:45]Host: 172.17.39.195:8080 [10:23:45]Content-Length: 646 [10:23:45]Content-Type: application/json [10:23:45] [10:23:45]POST finish read [10:23:45]Found Content-Length = 646 [10:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220913", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 2.000, "sum" : 314.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 314.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:45]execute_script... [10:23:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220913", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 2.000, "sum" : 314.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 314.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:45]POST & json_proto [10:23:45]process_json_proto [10:23:45]json parsed OK: [10:23:45]protocol is kg_v1.0 [10:23:45]action value=close_receipt [10:23:45]process_action close_receipt [10:23:45]cmd_close_receipt [10:23:45]MH_GetDate [10:23:45]Write to MH i2c: F0 00 00 7D 01 6D [10:23:45]Write i2c OK [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: F0 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: F0 09 00 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: F0 09 00 7D 01 00 32 A6 76 66 99 81 91 64 39 [10:23:45]GetLastDocTimeStamp 1719050339 [10:23:45]current date 1719051826 [10:23:45]FM_GetShiftState [10:23:45]SAM_PROTO_GetShiftState [10:23:45]wFMCommunicate request_size=4 [10:23:45]MH_SAM_APDU [10:23:45]CAPDU: 80 13 01 00 [10:23:45]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [10:23:45]Write i2c OK [10:23:45]MH_I2C_Read... [10:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:45]Read from MH i2c: E2 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: E2 0E 00 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F2 [10:23:45]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [10:23:45]wFMCommunicate OK [10:23:45]SAM_PROTO_GetShiftState done [10:23:45]FM_GetShiftState done [10:23:45]opened in 1719016435 [10:23:45]opened+sec_in_day 1719102835 [10:23:45]quantity*price = 31400 [10:23:45]sum+1 = 31401 [10:23:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 314.00 НСП 1% : 2.78 НДС 12% : 33.34 Наличными: 314.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 30 22.06.2024 10:23 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76834 ФПД: 67541556964924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102346&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76834&fm=67541556964924&tin=02508201610067®Number=0000000000095696&sum=31400 0 [10:23:46]StoreToDocumentArchive [10:23:46]shift 395 fd 76834 [10:23:46]save to /storage/0395/doc_00076834 [10:23:46]save last doc name /storage/0395/doc_00076834 to /storage/kkm_last_doc_name [10:23:46]save OK [10:23:46]Clear old archive folders... [10:23:46]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:23:46]tlvbuf is 01FAE040 [10:23:46]SAM_PROTO_ClearQueue [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 09 00 00 [10:23:46]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:46]Read from MH i2c: E2 03 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [10:23:46]RAPDU: 90 00 [10:23:46]wFMCommunicate OK [10:23:46]SAM_PROTO_ClearQueue done [10:23:46]KKMCreateOFDPacket [10:23:46]OFDProtocolAddRootSTLVToBuf [10:23:46]FM_MakeSignedData [10:23:46]FM_MakeSignedData [10:23:46]SAM_PROTO_SignData [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 0D 01 02 [10:23:46]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 03 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [10:23:46]RAPDU: 90 00 [10:23:46]wFMCommunicate OK [10:23:46]wFMCommunicate request_size=255 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 A8 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 32 A6 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 [10:23:46]Write to MH i2c: E2 02 01 8D 01 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 A8 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 32 A6 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 00 00 61 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [10:23:47]RAPDU: 90 00 [10:23:47]wFMCommunicate OK [10:23:47]wFMCommunicate request_size=37 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 22 2C 01 00 35 04 06 00 3D 6D BE 82 AE 3C [10:23:47]Write to MH i2c: E2 28 00 8E 01 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 22 2C 01 00 35 04 06 00 3D 6D BE 82 AE 3C 00 00 80 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [10:23:47]RAPDU: 90 00 [10:23:47]wFMCommunicate OK [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 0D 03 02 [10:23:47]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 0B 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 0B 00 8F 01 00 7F 04 B2 14 A3 E6 27 D5 90 00 DA [10:23:47]RAPDU: 7F 04 B2 14 A3 E6 27 D5 90 00 [10:23:47]wFMCommunicate OK [10:23:47]SAM_PROTO_SignData done [10:23:47]FM_MakeSignedData done [10:23:47]CreateOFDProtocolMessage [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 11 00 00 [10:23:47]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 17 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5B [10:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:23:47]wFMCommunicate OK [10:23:47]CreateOFDProtocolMessage done [10:23:47]OFDSenderStorePacket 76834 [10:23:47]StoreOFDPacket docnum=76834 [10:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 80 A9 22 01 47 2E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 A8 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 32 A6 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 22 2C 01 00 35 04 06 00 3D 6D BE 82 AE 3C 7F 04 B2 14 A3 E6 27 D5 [10:23:47]CheckFolder [10:23:47]dirname=/storage/ofd_packets [10:23:47]CheckFolder done [10:23:47]ProducePacketName [10:23:47]name=ofd_packets/00076834 [10:23:47]NVStorageSaveData ofd_packets/00076834 [10:23:47]File name is /storage/ofd_packets/00076834 [10:23:47]Write 328 bytes [10:23:47]NVStorageSaveData done [10:23:47]OFDSenderStorePacket done [10:23:47]KKMCreateOFDPacket done [10:23:47]NVStorageSaveData kkm_last_timestamp [10:23:47]File name is /storage/kkm_last_timestamp [10:23:47]Write 4 bytes [10:23:47]NVStorageSaveData done [10:23:47]ExternCall_PrintAddStr [10:23:47]wPrintStart [10:23:47]Write to MH i2c: 01 00 00 91 01 92 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: 01 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: 01 07 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [10:23:47]RasterBufferAndPrint [10:23:47]line Счет N : (3)220913 [10:23:47]line ИНН: 02508201610067 [10:23:47]line Контрольно-Кассовый Чек [10:23:47]line ПРОДАЖА [10:23:47]line Товар: 90162602 [10:23:47]line Энерг напиток Red bull 0,25л [10:23:47]line 2.000 * 157.00 [10:23:47]line = 314.00 [10:23:47]line НДС 12% НСП 1% [10:23:47]line > о реализуемом товаре [10:23:47]line ИТОГО: 314.00 [10:23:47]line НСП 1% : 2.78 [10:23:47]line НДС 12% : 33.34 [10:23:47]line Наличными: 314.00 [10:23:47]line Безнал.: 0.00 [10:23:47]line Место: АЗС № 144 "Партнер Нефть" [10:23:47]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [10:23:47]line СНО: Общий режим [10:23:47]line Чек 30 22.06.2024 10:23 [10:23:47]line Смена: 395 ФФД: 1.0 [10:23:47]line ЗНМ: 0300000170 [10:23:47]line РНМ: 0000000000095696 [10:23:47]line Версия ККМ: 001 [10:23:47]line ФМ: 0000000000875009 [10:23:47]line ФД: 76834 [10:23:47]line ФПД: 67541556964924 [10:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102346&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76834&fm=67541556964924&tin=02508201610067®Number=0000000000095696&sum=31400 [10:23:47]line 0 [10:23:47]OFD Sender: Processing packet 76834 [packets to send 351, broken 350] [10:23:47]ProducePacketName [10:23:47]name=ofd_packets/00076834 [10:23:47]OFD Sender: To server: pG, [10:23:47]CommunicateWithHost lk.salyk.kg:30040 [10:23:47]ConnectInit lk.salyk.kg [10:23:47]written 0, free lines is 4095 [10:23:47]Connected sock=7 [10:23:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 80 A9 22 01 47 2E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 A8 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 32 A6 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 22 2C 01 00 35 04 06 00 3D 6D BE 82 AE 3C 7F 04 B2 14 A3 E6 27 D5 [10:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 61 45 47 00 56 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 22 2C 01 00 F4 03 04 00 CC 4C 76 66 B6 04 01 00 00 E5 1F E2 BF AE 65 2B 8F [10:23:48]CommunicateWithHost err = 0 [10:23:48]CheckOFDResponse [10:23:48]1017 (14) - 77093643461234 [10:23:48]1041 (16) - 0000000000875009 [10:23:48]1040 (4) - 76834 [10:23:48]1012 (4) - 22.06.2024 04:02 [10:23:48]1206 (1) - 0 [10:23:48]OFD Sender: Remove packet 76834 [10:23:48]ProducePacketName [10:23:48]name=ofd_packets/00076834 [10:23:48]NVStorageDeleteData [10:23:48]Write to MH i2c: 01 00 00 B9 01 BA [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: 01 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: 01 07 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 15 0D E3 [10:23:48]RasterBufferAndPrint [10:23:48]line [10:23:48]line [10:23:48]line [10:23:48]line [10:23:48]line [10:23:48]written 0, free lines is 3357 [10:23:48]MH_Cut [10:23:48]Write to MH i2c: D1 01 00 C0 01 01 93 [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: D1 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: D1 01 00 [10:23:48]MH_I2C_Read... [10:23:48]Read from MH i2c: D1 01 00 C0 01 00 92 [10:23:48]Write to MH i2c: 01 00 00 C1 01 C2 [10:23:48]Write i2c OK [10:23:48]MH_I2C_Read... [10:23:48]OFD Sender: No OFD packet to send [10:23:48]*** Cut start [10:23:48]*** Partial cut [10:23:48]*** CUTSNS_PIN = 1 [10:23:48]*** CUTSNS_PIN = 0 [10:23:49]*** Brake cut motor [10:23:49]Read from MH i2c: 01 [10:23:49]MH_I2C_Read... [10:23:49]*** Stop cut motor [10:23:49]*** Cut end [10:23:49]Read from MH i2c: 01 07 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [10:23:49]process_action close_receipt done [10:23:49]requested_data is exist [10:23:49]produce_requested_data [10:23:49]requested_item fm.sn is exist - process it [10:23:49]wFMCommunicate request_size=4 [10:23:49]MH_SAM_APDU [10:23:49]CAPDU: 80 11 00 00 [10:23:49]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:49]Read from MH i2c: E2 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 17 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8D [10:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:23:49]wFMCommunicate OK [10:23:49]requested_item fd.num is exist - process it [10:23:49]SAM_PROTO_GetFieldsCounters [10:23:49]wFMCommunicate request_size=4 [10:23:49]MH_SAM_APDU [10:23:49]CAPDU: 80 13 00 00 [10:23:49]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:49]Read from MH i2c: E2 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 62 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 62 00 C3 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 22 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [10:23: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 22 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:49]wFMCommunicate OK [10:23:49]SAM_PROTO_GetFieldsCounters done [10:23:49]requested_item shift.num is exist - process it [10:23:49]requested_item shift.opened is exist - process it [10:23:49]req_shift_opened [10:23:49]FM_GetShiftState [10:23:49]SAM_PROTO_GetShiftState [10:23:49]wFMCommunicate request_size=4 [10:23:49]MH_SAM_APDU [10:23:49]CAPDU: 80 13 01 00 [10:23:49]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:49]Read from MH i2c: E2 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 0E 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 38 [10:23:49]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [10:23:49]wFMCommunicate OK [10:23:49]SAM_PROTO_GetShiftState done [10:23:49]FM_GetShiftState done [10:23:49]req_shift_opened done [10:23:49]requested_item shift.open_date is exist - process it [10:23:49]req_shift_open_date [10:23:49]req_shift_open_date done [10:23:49]produce_requested_data done [10:23:49]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76834,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [10:23:49]process_action_free close_receipt [10:23:49]json_value_free [10:23:49]json_value_free done [10:23:49]process_json_proto returns [10:23:49]Send response to host [10:23:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76834,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [10:23:49]free response buf [10:23:49]execute_script done [10:23:49]execute_script returns [10:23:49]free content buf [10:23:49]Sock 9.Close socket [10:23:49]Sock 9.Thread stoped [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:06]accept exits with 10 [10:24:06]New connection [10:24:06]New thread 3066461540 created [10:24:06]Thread 3066604900 joined [10:24:06]Waiting for new connection... [10:24:06] Sock 10.Parse request [10:24:06]Sock 10.Check first char [10:24:06]Sock 10.First char is OK [10:24:06]request: POST /json_proto HTTP/1.0 [10:24:06]Method: POST [10:24:06]URL: /json_proto [10:24:06]Method is POST - this is cgi request [10:24:06]url: /json_proto [10:24:06]query_string will be loaded in cgi processing [10:24:06]execute_cgi json_proto POST (null) [10:24:06]execute_cgi path=json_proto method=POST [10:24:06]POST find Content-Length [10:24:06]Host: 172.17.39.195:8080 [10:24:06]Content-Length: 895 [10:24:06]Content-Type: application/json [10:24:06] [10:24:06]POST finish read [10:24:06]Found Content-Length = 895 [10:24:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220914", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:06]execute_script... [10:24:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220914", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:06]POST & json_proto [10:24:06]process_json_proto [10:24:06]json parsed OK: [10:24:06]protocol is kg_v1.0 [10:24:06]action value=close_receipt [10:24:06]process_action close_receipt [10:24:06]cmd_close_receipt [10:24:06]MH_GetDate [10:24:06]Write to MH i2c: F0 00 00 C5 01 B5 [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: F0 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: F0 09 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: F0 09 00 C5 01 00 47 A6 76 66 99 81 91 64 96 [10:24:06]GetLastDocTimeStamp 1719051826 [10:24:06]current date 1719051847 [10:24:06]FM_GetShiftState [10:24:06]SAM_PROTO_GetShiftState [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 13 01 00 [10:24:06]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0E 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 3A [10:24:06]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [10:24:06]wFMCommunicate OK [10:24:06]SAM_PROTO_GetShiftState done [10:24:06]FM_GetShiftState done [10:24:06]opened in 1719016435 [10:24:06]opened+sec_in_day 1719102835 [10:24:06]quantity*price = 20500 [10:24:06]sum+1 = 20501 [10:24:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 345.00 НСП 1% : 3.05 НДС 12% : 36.64 Наличными: 345.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 31 22.06.2024 10:24 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76835 ФПД: 247647776669874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102407&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76835&fm=247647776669874&tin=02508201610067®Number=0000000000095696&sum=34500 0 [10:24:07]StoreToDocumentArchive [10:24:07]shift 395 fd 76835 [10:24:07]save to /storage/0395/doc_00076835 [10:24:07]save last doc name /storage/0395/doc_00076835 to /storage/kkm_last_doc_name [10:24:07]save OK [10:24:07]Clear old archive folders... [10:24:07]ProcessDocumentItem done err = 0, tmpTLVsize=381 [10:24:07]tlvbuf is 01FAF920 [10:24:07]SAM_PROTO_ClearQueue [10:24:07]wFMCommunicate request_size=4 [10:24:07]MH_SAM_APDU [10:24:07]CAPDU: 80 09 00 00 [10:24:07]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [10:24:07]Write i2c OK [10:24:07]MH_I2C_Read... [10:24:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:08]Read from MH i2c: E2 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 03 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [10:24:08]RAPDU: 90 00 [10:24:08]wFMCommunicate OK [10:24:08]SAM_PROTO_ClearQueue done [10:24:08]KKMCreateOFDPacket [10:24:08]OFDProtocolAddRootSTLVToBuf [10:24:08]FM_MakeSignedData [10:24:08]FM_MakeSignedData [10:24:08]SAM_PROTO_SignData [10:24:08]wFMCommunicate request_size=4 [10:24:08]MH_SAM_APDU [10:24:08]CAPDU: 80 0D 01 02 [10:24:08]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [10:24:08]Write i2c OK [10:24:08]MH_I2C_Read... [10:24:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:08]Read from MH i2c: E2 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 03 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [10:24:08]RAPDU: 90 00 [10:24:08]wFMCommunicate OK [10:24:08]wFMCommunicate request_size=255 [10:24:08]MH_SAM_APDU [10:24:08]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 [10:24:08]Write to MH i2c: E2 02 01 D5 01 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 53 [10:24:08]Write i2c OK [10:24:08]MH_I2C_Read... [10:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:08]Read from MH i2c: E2 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 03 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [10:24:08]RAPDU: 90 00 [10:24:08]wFMCommunicate OK [10:24:08]wFMCommunicate request_size=140 [10:24:08]MH_SAM_APDU [10:24:08]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 47 A6 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 23 2C 01 00 35 04 06 00 E1 3B FD C2 00 B2 [10:24:08]Write to MH i2c: E2 8F 00 D6 01 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 47 A6 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 23 2C 01 00 35 04 06 00 E1 3B FD C2 00 B2 00 00 8C [10:24:08]Write i2c OK [10:24:08]MH_I2C_Read... [10:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:08]Read from MH i2c: E2 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 03 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [10:24:08]RAPDU: 90 00 [10:24:08]wFMCommunicate OK [10:24:08]wFMCommunicate request_size=4 [10:24:08]MH_SAM_APDU [10:24:08]CAPDU: 80 0D 03 02 [10:24:08]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [10:24:08]Write i2c OK [10:24:08]MH_I2C_Read... [10:24:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:08]Read from MH i2c: E2 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 0B 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 0B 00 D7 01 00 81 41 32 11 B1 30 B3 E8 90 00 D5 [10:24:08]RAPDU: 81 41 32 11 B1 30 B3 E8 90 00 [10:24:08]wFMCommunicate OK [10:24:08]SAM_PROTO_SignData done [10:24:08]FM_MakeSignedData done [10:24:08]CreateOFDProtocolMessage [10:24:08]wFMCommunicate request_size=4 [10:24:08]MH_SAM_APDU [10:24:08]CAPDU: 80 11 00 00 [10:24:08]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [10:24:08]Write i2c OK [10:24:08]MH_I2C_Read... [10:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:08]Read from MH i2c: E2 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 17 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A3 [10:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:24:08]wFMCommunicate OK [10:24:08]CreateOFDProtocolMessage done [10:24:08]OFDSenderStorePacket 76835 [10:24:08]StoreOFDPacket docnum=76835 [10:24:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 91 01 00 00 A2 48 89 01 9B 12 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 47 A6 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 23 2C 01 00 35 04 06 00 E1 3B FD C2 00 B2 81 41 32 11 B1 30 B3 E8 [10:24:08]CheckFolder [10:24:08]dirname=/storage/ofd_packets [10:24:08]CheckFolder done [10:24:08]ProducePacketName [10:24:08]name=ofd_packets/00076835 [10:24:08]NVStorageSaveData ofd_packets/00076835 [10:24:08]File name is /storage/ofd_packets/00076835 [10:24:08]Write 431 bytes [10:24:08]NVStorageSaveData done [10:24:08]OFDSenderStorePacket done [10:24:08]KKMCreateOFDPacket done [10:24:08]NVStorageSaveData kkm_last_timestamp [10:24:08]File name is /storage/kkm_last_timestamp [10:24:08]Write 4 bytes [10:24:08]NVStorageSaveData done [10:24:08]ExternCall_PrintAddStr [10:24:08]wPrintStart [10:24:08]Write to MH i2c: 01 00 00 D9 01 DA [10:24:08]Write i2c OK [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: 01 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: 01 07 00 [10:24:08]MH_I2C_Read... [10:24:08]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [10:24:08]RasterBufferAndPrint [10:24:08]line Счет N : (3)220914 [10:24:08]line ИНН: 02508201610067 [10:24:08]line Контрольно-Кассовый Чек [10:24:08]line ПРОДАЖА [10:24:08]line Товар: 5449000000286 [10:24:08]line Напиток Кока-Кола 2л [10:24:08]line 1.000 * 205.00 [10:24:08]line = 205.00 [10:24:08]line НДС 12% НСП 1% [10:24:08]line > о реализуемом товаре [10:24:08]line Товар: 48747059 [10:24:08]line Сигареты Winston Legend Blue [10:24:08]line 1.000 * 140.00 [10:24:08]line = 140.00 [10:24:08]line НДС 12% НСП 1% [10:24:08]line > о реализуемом товаре [10:24:08]line ИТОГО: 345.00 [10:24:08]line НСП 1% : 3.05 [10:24:08]line НДС 12% : 36.64 [10:24:08]line Наличными: 345.00 [10:24:08]line Безнал.: 0.00 [10:24:08]line Место: АЗС № 144 "Партнер Нефть" [10:24:08]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [10:24:08]line СНО: Общий режим [10:24:08]line Чек 31 22.06.2024 10:24 [10:24:08]line Смена: 395 ФФД: 1.0 [10:24:08]line ЗНМ: 0300000170 [10:24:08]line РНМ: 0000000000095696 [10:24:08]line Версия ККМ: 001 [10:24:08]line ФМ: 0000000000875009 [10:24:08]line ФД: 76835 [10:24:08]line ФПД: 247647776669874 [10:24:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T102407&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76835&fm=247647776669874&tin=02508201610067®Number=0000000000095696&sum=34500 [10:24:08]line 0 [10:24:08]OFD Sender: Processing packet 76835 [packets to send 351, broken 350] [10:24:08]ProducePacketName [10:24:08]name=ofd_packets/00076835 [10:24:08]OFD Sender: To server: pG, [10:24:08]CommunicateWithHost lk.salyk.kg:30040 [10:24:08]ConnectInit lk.salyk.kg [10:24:08]written 0, free lines is 4095 [10:24:09]Connected sock=9 [10:24:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 91 01 00 00 A2 48 89 01 9B 12 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 47 A6 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 23 2C 01 00 35 04 06 00 E1 3B FD C2 00 B2 81 41 32 11 B1 30 B3 E8 [10:24:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F5 B8 47 00 93 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 23 2C 01 00 F4 03 04 00 E1 4C 76 66 B6 04 01 00 00 35 2E DA 69 30 AB A5 28 [10:24:09]CommunicateWithHost err = 0 [10:24:09]CheckOFDResponse [10:24:09]1017 (14) - 77093643461234 [10:24:09]1041 (16) - 0000000000875009 [10:24:09]1040 (4) - 76835 [10:24:09]1012 (4) - 22.06.2024 04:02 [10:24:09]1206 (1) - 0 [10:24:09]OFD Sender: Remove packet 76835 [10:24:09]ProducePacketName [10:24:09]name=ofd_packets/00076835 [10:24:09]NVStorageDeleteData [10:24:09]Write to MH i2c: 01 00 00 08 02 0A [10:24:09]Write i2c OK [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: 01 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: 01 07 00 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 7E 0C 9B [10:24:09]RasterBufferAndPrint [10:24:09]line [10:24:09]line [10:24:09]line [10:24:09]line [10:24:09]line [10:24:09]written 0, free lines is 3204 [10:24:09]MH_Cut [10:24:09]Write to MH i2c: D1 01 00 0F 02 01 E3 [10:24:09]Write i2c OK [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: D1 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: D1 01 00 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: D1 01 00 0F 02 00 E2 [10:24:09]Write to MH i2c: 01 00 00 10 02 12 [10:24:09]Write i2c OK [10:24:09]MH_I2C_Read... [10:24:09]OFD Sender: No OFD packet to send [10:24:10]*** Cut start [10:24:10]*** Partial cut [10:24:10]*** CUTSNS_PIN = 1 [10:24:10]*** CUTSNS_PIN = 0 [10:24:10]*** Brake cut motor [10:24:10]Read from MH i2c: 01 [10:24:10]MH_I2C_Read... [10:24:10]*** Stop cut motor [10:24:10]*** Cut end [10:24:10]Read from MH i2c: 01 07 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 FF 0F 27 [10:24:10]process_action close_receipt done [10:24:10]requested_data is exist [10:24:10]produce_requested_data [10:24:10]requested_item fm.sn is exist - process it [10:24:10]wFMCommunicate request_size=4 [10:24:10]MH_SAM_APDU [10:24:10]CAPDU: 80 11 00 00 [10:24:10]Write to MH i2c: E2 08 00 11 02 80 11 00 00 00 00 00 00 8D [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:10]Read from MH i2c: E2 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 17 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 17 00 11 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DD [10:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [10:24:10]wFMCommunicate OK [10:24:10]requested_item fd.num is exist - process it [10:24:10]SAM_PROTO_GetFieldsCounters [10:24:10]wFMCommunicate request_size=4 [10:24:10]MH_SAM_APDU [10:24:10]CAPDU: 80 13 00 00 [10:24:10]Write to MH i2c: E2 08 00 12 02 80 13 00 00 00 00 00 00 90 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 62 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 62 00 12 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 23 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [10:24: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 23 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_GetFieldsCounters done [10:24:11]requested_item shift.num is exist - process it [10:24:11]requested_item shift.opened is exist - process it [10:24:11]req_shift_opened [10:24:11]FM_GetShiftState [10:24:11]SAM_PROTO_GetShiftState [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 13 01 00 [10:24:11]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0E 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 88 [10:24:11]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_GetShiftState done [10:24:11]FM_GetShiftState done [10:24:11]req_shift_opened done [10:24:11]requested_item shift.open_date is exist - process it [10:24:11]req_shift_open_date [10:24:11]req_shift_open_date done [10:24:11]produce_requested_data done [10:24:11]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76835,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [10:24:11]process_action_free close_receipt [10:24:11]json_value_free [10:24:11]json_value_free done [10:24:11]process_json_proto returns [10:24:11]Send response to host [10:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76835,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [10:24:11]free response buf [10:24:11]execute_script done [10:24:11]execute_script returns [10:24:11]free content buf [10:24:11]Sock 10.Close socket [10:24:11]Sock 10.Thread stoped [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48: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:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:56]accept exits with 7 [11:05:56]New connection [11:05:56]New thread 3066604900 created [11:05:56]Thread 3066461540 joined [11:05:56]Waiting for new connection... [11:05:56] Sock 7.Parse request [11:05:56]Sock 7.Check first char [11:05:56]Sock 7.First char is OK [11:05:56]request: POST /json_proto HTTP/1.0 [11:05:56]Method: POST [11:05:56]URL: /json_proto [11:05:56]Method is POST - this is cgi request [11:05:56]url: /json_proto [11:05:56]query_string will be loaded in cgi processing [11:05:56]execute_cgi json_proto POST (null) [11:05:56]execute_cgi path=json_proto method=POST [11:05:56]POST find Content-Length [11:05:56]Host: 172.17.39.195:8080 [11:05:56]Content-Length: 619 [11:05:56]Content-Type: application/json [11:05:56] [11:05:56]POST finish read [11:05:56]Found Content-Length = 619 [11:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220915", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:56]execute_script... [11:05:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220915", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:56]POST & json_proto [11:05:56]process_json_proto [11:05:56]json parsed OK: [11:05:56]protocol is kg_v1.0 [11:05:56]action value=close_receipt [11:05:56]process_action close_receipt [11:05:56]cmd_close_receipt [11:05:56]MH_GetDate [11:05:56]Write to MH i2c: F0 00 00 14 02 05 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: F0 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: F0 09 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: F0 09 00 14 02 00 15 B0 76 66 99 81 91 64 BE [11:05:56]GetLastDocTimeStamp 1719051847 [11:05:56]current date 1719054357 [11:05:56]FM_GetShiftState [11:05:56]SAM_PROTO_GetShiftState [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 13 01 00 [11:05:56]Write to MH i2c: E2 08 00 15 02 80 13 01 00 00 00 00 00 94 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:56]Read from MH i2c: E2 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 0E 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 0E 00 15 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 8A [11:05:56]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:05:56]wFMCommunicate OK [11:05:56]SAM_PROTO_GetShiftState done [11:05:56]FM_GetShiftState done [11:05:56]opened in 1719016435 [11:05:56]opened+sec_in_day 1719102835 [11:05:56]quantity*price = 14000 [11:05:56]sum+1 = 14001 [11:05:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 32 22.06.2024 11:05 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76836 ФПД: 240120145135954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110557&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76836&fm=240120145135954&tin=02508201610067®Number=0000000000095696&sum=14000 0 [11:05:57]StoreToDocumentArchive [11:05:57]shift 395 fd 76836 [11:05:57]save to /storage/0395/doc_00076836 [11:05:57]save last doc name /storage/0395/doc_00076836 to /storage/kkm_last_doc_name [11:05:57]save OK [11:05:57]Clear old archive folders... [11:05:57]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:05:57]tlvbuf is 01FD4310 [11:05:57]SAM_PROTO_ClearQueue [11:05:57]wFMCommunicate request_size=4 [11:05:57]MH_SAM_APDU [11:05:57]CAPDU: 80 09 00 00 [11:05:57]Write to MH i2c: E2 08 00 22 02 80 09 00 00 00 00 00 00 96 [11:05:57]Write i2c OK [11:05:57]MH_I2C_Read... [11:05:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:57]Read from MH i2c: E2 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 03 00 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [11:05:57]RAPDU: 90 00 [11:05:57]wFMCommunicate OK [11:05:57]SAM_PROTO_ClearQueue done [11:05:57]KKMCreateOFDPacket [11:05:57]OFDProtocolAddRootSTLVToBuf [11:05:57]FM_MakeSignedData [11:05:57]FM_MakeSignedData [11:05:57]SAM_PROTO_SignData [11:05:57]wFMCommunicate request_size=4 [11:05:57]MH_SAM_APDU [11:05:57]CAPDU: 80 0D 01 02 [11:05:57]Write to MH i2c: E2 08 00 23 02 80 0D 01 02 00 00 00 00 9E [11:05:57]Write i2c OK [11:05:57]MH_I2C_Read... [11:05:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:57]Read from MH i2c: E2 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 03 00 [11:05:57]MH_I2C_Read... [11:05:57]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [11:05:57]RAPDU: 90 00 [11:05:57]wFMCommunicate OK [11:05:57]wFMCommunicate request_size=255 [11:05:57]MH_SAM_APDU [11:05:57]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 15 B0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:05:57]Write to MH i2c: E2 02 01 24 02 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 15 B0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 79 [11:05:57]Write i2c OK [11:05:57]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]wFMCommunicate request_size=30 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 02 02 19 30 38 37 35 30 30 39 10 04 04 00 24 2C 01 00 35 04 06 00 DA 63 53 F4 49 52 [11:05:58]Write to MH i2c: E2 21 00 25 02 80 0D 02 02 19 00 30 38 37 35 30 30 39 10 04 04 00 24 2C 01 00 35 04 06 00 DA 63 53 F4 49 52 00 00 07 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [11:05:58]RAPDU: 90 00 [11:05:58]wFMCommunicate OK [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 0D 03 02 [11:05:58]Write to MH i2c: E2 08 00 26 02 80 0D 03 02 00 00 00 00 A3 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 0B 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 0B 00 26 02 00 47 50 F2 0E 9D 60 2F A7 90 00 0E [11:05:58]RAPDU: 47 50 F2 0E 9D 60 2F A7 90 00 [11:05:58]wFMCommunicate OK [11:05:58]SAM_PROTO_SignData done [11:05:58]FM_MakeSignedData done [11:05:58]CreateOFDProtocolMessage [11:05:58]wFMCommunicate request_size=4 [11:05:58]MH_SAM_APDU [11:05:58]CAPDU: 80 11 00 00 [11:05:58]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:58]Read from MH i2c: E2 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 17 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F3 [11:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:05:58]wFMCommunicate OK [11:05:58]CreateOFDProtocolMessage done [11:05:58]OFDSenderStorePacket 76836 [11:05:58]StoreOFDPacket docnum=76836 [11:05:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 26 60 1B 01 D6 2A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 15 B0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 24 2C 01 00 35 04 06 00 DA 63 53 F4 49 52 47 50 F2 0E 9D 60 2F A7 [11:05:58]CheckFolder [11:05:58]dirname=/storage/ofd_packets [11:05:58]CheckFolder done [11:05:58]ProducePacketName [11:05:58]name=ofd_packets/00076836 [11:05:58]NVStorageSaveData ofd_packets/00076836 [11:05:58]File name is /storage/ofd_packets/00076836 [11:05:58]Write 321 bytes [11:05:58]NVStorageSaveData done [11:05:58]OFDSenderStorePacket done [11:05:58]KKMCreateOFDPacket done [11:05:58]NVStorageSaveData kkm_last_timestamp [11:05:58]File name is /storage/kkm_last_timestamp [11:05:58]Write 4 bytes [11:05:58]NVStorageSaveData done [11:05:58]ExternCall_PrintAddStr [11:05:58]wPrintStart [11:05:58]Write to MH i2c: 01 00 00 28 02 2A [11:05:58]Write i2c OK [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: 01 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: 01 07 00 [11:05:58]MH_I2C_Read... [11:05:58]Read from MH i2c: 01 07 00 28 02 00 00 00 00 00 FF 0F 3F [11:05:58]RasterBufferAndPrint [11:05:58]line Счет N : (3)220915 [11:05:58]line ИНН: 02508201610067 [11:05:58]line Контрольно-Кассовый Чек [11:05:58]line ПРОДАЖА [11:05:58]line Товар: 47802995 [11:05:58]line Сигареты Winston XS Silver [11:05:58]line 1.000 * 140.00 [11:05:58]line = 140.00 [11:05:58]line НДС 12% НСП 1% [11:05:58]line > о реализуемом товаре [11:05:58]line ИТОГО: 140.00 [11:05:58]line НСП 1% : 1.24 [11:05:58]line НДС 12% : 14.87 [11:05:58]line Наличными: 140.00 [11:05:58]line Безнал.: 0.00 [11:05:58]line Место: АЗС № 144 "Партнер Нефть" [11:05:58]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:05:58]line СНО: Общий режим [11:05:58]line Чек 32 22.06.2024 11:05 [11:05:58]line Смена: 395 ФФД: 1.0 [11:05:58]line ЗНМ: 0300000170 [11:05:58]line РНМ: 0000000000095696 [11:05:58]line Версия ККМ: 001 [11:05:58]line ФМ: 0000000000875009 [11:05:58]line ФД: 76836 [11:05:58]line ФПД: 240120145135954 [11:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T110557&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76836&fm=240120145135954&tin=02508201610067®Number=0000000000095696&sum=14000 [11:05:58]OFD Sender: Processing packet 76836 [packets to send 351, broken 350] [11:05:58]ProducePacketName [11:05:58]name=ofd_packets/00076836 [11:05:58]OFD Sender: To server: pG, [11:05:58]CommunicateWithHost lk.salyk.kg:30040 [11:05:58]ConnectInit lk.salyk.kg [11:05:58]line 0 [11:05:58]written 0, free lines is 4095 [11:05:58]Connected sock=10 [11:05:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 26 60 1B 01 D6 2A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 15 B0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 24 2C 01 00 35 04 06 00 DA 63 53 F4 49 52 47 50 F2 0E 9D 60 2F A7 [11:05:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B9 7A 47 00 47 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 24 2C 01 00 F4 03 04 00 AF 56 76 66 B6 04 01 00 00 45 9A 65 FD D8 41 77 A6 [11:05:59]CommunicateWithHost err = 0 [11:05:59]CheckOFDResponse [11:05:59]1017 (14) - 77093643461234 [11:05:59]1041 (16) - 0000000000875009 [11:05:59]1040 (4) - 76836 [11:05:59]1012 (4) - 22.06.2024 04:44 [11:05:59]1206 (1) - 0 [11:05:59]OFD Sender: Remove packet 76836 [11:05:59]ProducePacketName [11:05:59]name=ofd_packets/00076836 [11:05:59]NVStorageDeleteData [11:05:59]Write to MH i2c: 01 00 00 50 02 52 [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: 01 07 00 50 02 00 00 00 00 00 03 0D 69 [11:05:59]RasterBufferAndPrint [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]line [11:05:59]written 0, free lines is 3337 [11:05:59]MH_Cut [11:05:59]Write to MH i2c: D1 01 00 57 02 01 2B [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 01 00 [11:05:59]MH_I2C_Read... [11:05:59]Read from MH i2c: D1 01 00 57 02 00 2A [11:05:59]Write to MH i2c: 01 00 00 58 02 5A [11:05:59]Write i2c OK [11:05:59]MH_I2C_Read... [11:05:59]OFD Sender: No OFD packet to send [11:05:59]*** Cut start [11:05:59]*** Partial cut [11:05:59]*** CUTSNS_PIN = 1 [11:05:59]*** CUTSNS_PIN = 0 [11:06:00]*** Brake cut motor [11:06:00]Read from MH i2c: 01 [11:06:00]MH_I2C_Read... [11:06:00]*** Stop cut motor [11:06:00]*** Cut end [11:06:00]Read from MH i2c: 01 07 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 FF 0F 6F [11:06:00]process_action close_receipt done [11:06:00]requested_data is exist [11:06:00]produce_requested_data [11:06:00]requested_item fm.sn is exist - process it [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 11 00 00 [11:06:00]Write to MH i2c: E2 08 00 59 02 80 11 00 00 00 00 00 00 D5 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 17 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 17 00 59 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 25 [11:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:06:00]wFMCommunicate OK [11:06:00]requested_item fd.num is exist - process it [11:06:00]SAM_PROTO_GetFieldsCounters [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 13 00 00 [11:06:00]Write to MH i2c: E2 08 00 5A 02 80 13 00 00 00 00 00 00 D8 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 62 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 62 00 5A 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 24 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [11:06: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 24 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:00]wFMCommunicate OK [11:06:00]SAM_PROTO_GetFieldsCounters done [11:06:00]requested_item shift.num is exist - process it [11:06:00]requested_item shift.opened is exist - process it [11:06:00]req_shift_opened [11:06:00]FM_GetShiftState [11:06:00]SAM_PROTO_GetShiftState [11:06:00]wFMCommunicate request_size=4 [11:06:00]MH_SAM_APDU [11:06:00]CAPDU: 80 13 01 00 [11:06:00]Write to MH i2c: E2 08 00 5B 02 80 13 01 00 00 00 00 00 DA [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:00]Read from MH i2c: E2 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 0E 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: E2 0E 00 5B 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 D0 [11:06:00]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:06:00]wFMCommunicate OK [11:06:00]SAM_PROTO_GetShiftState done [11:06:00]FM_GetShiftState done [11:06:00]req_shift_opened done [11:06:00]requested_item shift.open_date is exist - process it [11:06:00]req_shift_open_date [11:06:00]req_shift_open_date done [11:06:00]produce_requested_data done [11:06:00]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76836,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:06:00]process_action_free close_receipt [11:06:00]json_value_free [11:06:00]json_value_free done [11:06:00]process_json_proto returns [11:06:00]Send response to host [11:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76836,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:06:00]free response buf [11:06:00]execute_script done [11:06:00]execute_script returns [11:06:00]free content buf [11:06:00]Sock 7.Close socket [11:06:00]Sock 7.Thread stoped [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:52]accept exits with 9 [11:09:52]New connection [11:09:52]New thread 3066461540 created [11:09:52]Thread 3066604900 joined [11:09:52]Waiting for new connection... [11:09:52] Sock 9.Parse request [11:09:52]Sock 9.Check first char [11:09:52]Sock 9.First char is OK [11:09:52]request: POST /json_proto HTTP/1.0 [11:09:52]Method: POST [11:09:52]URL: /json_proto [11:09:52]Method is POST - this is cgi request [11:09:52]url: /json_proto [11:09:52]query_string will be loaded in cgi processing [11:09:52]execute_cgi json_proto POST (null) [11:09:52]execute_cgi path=json_proto method=POST [11:09:52]POST find Content-Length [11:09:52]Host: 172.17.39.195:8080 [11:09:52]Content-Length: 3116 [11:09:52]Content-Type: application/json [11:09:52] [11:09:52]POST finish read [11:09:52]Found Content-Length = 3116 [11:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220916", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420386", "name": "\u0421\u043E\u043A Rich \u042F\u0431\u043B\u043E\u043A\u043E 0,2", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code" [11:09:52]execute_script... [11:09:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220916", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420386", "name": "\u0421\u043E\u043A Rich \u042F\u0431\u043B\u043E\u043A\u043E 0,2", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code" [11:09:52]POST & json_proto [11:09:52]process_json_proto [11:09:52]json parse error [11:09:52]process_json_proto returns [11:09:52]execute_script returns [11:09:52]free content buf [11:09:52]Sock 9.Close socket [11:09:52]Sock 9.Thread stoped [11:09:54]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31797629+1687257497=1719055126 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 17 B3 76 66 99 81 91 64 B4 [11:18:47]Current date/time: 22.06.2024 11:18 [11:18:47]FM_Init [11:18:47]wFMConnect [11:18:47]MH_SAM_On [11:18:47]Write to MH i2c: E0 00 00 08 00 E7 [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]*** iso7816_init finished! [11:18:47]*** atr: [11:18:47]*** 0F 3B D5 18 FF 81 91 FE [11:18:47]*** 1F C3 80 73 C8 21 10 0A [11:18:47]*** 00 00 00 00 00 00 00 00 [11:18:47]*** 00 00 00 00 00 00 00 00 [11:18:47]*** 00 00 00 00 00 00 00 00 [11:18:47]*** 00 00 00 00 00 00 00 00 [11:18:47]*** 00 00 00 00 00 00 00 00 [11:18:47]*** 00 00 00 00 00 00 00 00 [11:18:47]Read from MH i2c: E0 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E0 10 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:18:47]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:18:47]wFMCommunicate request_size=10 [11:18:47]MH_SAM_APDU [11:18:47]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:18:47]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:18:47]Read from MH i2c: E2 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 03 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:18:47]RAPDU: 90 00 [11:18:47]wFMCommunicate OK [11:18:47]wFMCommunicate request_size=4 [11:18:47]MH_SAM_APDU [11:18:47]CAPDU: 80 11 00 00 [11:18:47]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:47]Read from MH i2c: E2 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 17 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D4 [11:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:18:47]wFMCommunicate OK [11:18:47]Detected FM SN is 0000000000875009 [11:18:47]Stored FM SN is 0000000000875009 [11:18:47]wFMCommunicate request_size=9 [11:18:47]MH_SAM_APDU [11:18:47]CAPDU: 80 16 00 00 04 FA 14 01 00 [11:18:47]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 14 01 00 00 00 A1 [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:18:47]Read from MH i2c: E2 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 03 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:18:47]RAPDU: 90 00 [11:18:47]wFMCommunicate OK [11:18:47]FM PIN OK [11:18:47]wFMCommunicate request_size=8 [11:18:47]MH_SAM_APDU [11:18:47]CAPDU: 80 14 04 00 03 02 00 01 [11:18:47]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:18:47]Read from MH i2c: E2 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 03 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:18:47]RAPDU: 90 00 [11:18:47]wFMCommunicate OK [11:18:47]wFMCommunicate request_size=13 [11:18:47]MH_SAM_APDU [11:18:47]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:18:47]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:18:47]Read from MH i2c: E2 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 03 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:18:47]RAPDU: 90 00 [11:18:47]wFMCommunicate OK [11:18:47]wFMCommunicate request_size=4 [11:18:47]MH_SAM_APDU [11:18:47]CAPDU: 80 11 00 00 [11:18:47]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:47]Read from MH i2c: E2 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 17 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D8 [11:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:18:47]wFMCommunicate OK [11:18:47]DocumentArchiveInit [11:18:47]Start Httpd... [11:18:47]Httpd thread 3067649380 created [11:18:47]Write to MH i2c: 01 00 00 0F 00 0F [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: 01 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: 01 07 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:18:47]MH Int Process started [11:18:47]Allocated Socket 7 [11:18:47]Bind OK [11:18:47]Listen OK [11:18:47]httpd running on port 8080 [11:18:47]Waiting for new connection... [11:18:47]OFD Sender: No OFD packet to send [11:18:49]accept exits with 8 [11:18:49]New connection [11:18:49]New thread 3067362660 created [11:18:49]Waiting for new connection... [11:18:49] Sock 8.Parse request [11:18:49]Sock 8.Check first char [11:18:49]Sock 8.First char is OK [11:18:49]request: POST /json_proto HTTP/1.0 [11:18:49]Method: POST [11:18:49]URL: /json_proto [11:18:49]Method is POST - this is cgi request [11:18:49]url: /json_proto [11:18:49]query_string will be loaded in cgi processing [11:18:49]execute_cgi json_proto POST (null) [11:18:49]execute_cgi path=json_proto method=POST [11:18:49]POST find Content-Length [11:18:49]Host: 172.17.39.195:8080 [11:18:49]Content-Length: 215 [11:18:49]Content-Type: application/json [11:18:49] [11:18:49]POST finish read [11:18:49]Found Content-Length = 215 [11:18: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" ] } } [11:18:49]execute_script... [11:18: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" ] } } [11:18:49]POST & json_proto [11:18:49]process_json_proto [11:18:49]json parsed OK: [11:18:49]protocol is kg_v1.0 [11:18:49]action value=get_value [11:18:49]process_action get_value [11:18:49]cmd_get_value [11:18:49]process_action get_value done [11:18:49]requested_data is exist [11:18:49]produce_requested_data [11:18:49]requested_item kkm.sn is exist - process it [11:18:49]requested_item kkm.ver is exist - process it [11:18:49]requested_item fm.sn is exist - process it [11:18:49]wFMCommunicate request_size=4 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 11 00 00 [11:18:49]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 17 00 [11:18:49]MH_I2C_Read... [11:18: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 35 30 30 39 90 00 DA [11:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:18:49]wFMCommunicate OK [11:18:49]requested_item fd.num is exist - process it [11:18:49]SAM_PROTO_GetFieldsCounters [11:18:49]wFMCommunicate request_size=4 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 13 00 00 [11:18:49]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 62 00 [11:18:49]MH_I2C_Read... [11:18: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 24 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [11:18: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 24 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:49]wFMCommunicate OK [11:18:49]SAM_PROTO_GetFieldsCounters done [11:18:49]requested_item shift.num is exist - process it [11:18:49]requested_item shift.opened is exist - process it [11:18:49]req_shift_opened [11:18:49]FM_GetShiftState [11:18:49]SAM_PROTO_GetShiftState [11:18:49]wFMCommunicate request_size=4 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 13 01 00 [11:18:49]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 0E 00 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 85 [11:18:49]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:18:49]wFMCommunicate OK [11:18:49]SAM_PROTO_GetShiftState done [11:18:49]FM_GetShiftState done [11:18:49]req_shift_opened done [11:18:49]requested_item shift.open_date is exist - process it [11:18:49]req_shift_open_date [11:18:49]req_shift_open_date done [11:18:49]produce_requested_data done [11:18:49]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76836,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:18:49]process_action_free get_value [11:18:49]json_value_free [11:18:49]json_value_free done [11:18:49]process_json_proto returns [11:18:49]Send response to host [11:18:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76836,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:18:49]free response buf [11:18:49]execute_script done [11:18:49]execute_script returns [11:18:49]free content buf [11:18:49]Sock 8.Close socket [11:18:49]Sock 8.Thread stoped [11:18:49]accept exits with 9 [11:18:49]New connection [11:18:49]New thread 3067219300 created [11:18:49]Thread 3067362660 joined [11:18:49]Waiting for new connection... [11:18:49] Sock 9.Parse request [11:18:49]Sock 9.Check first char [11:18:49]Sock 9.First char is OK [11:18:49]request: POST /json_proto HTTP/1.0 [11:18:49]Method: POST [11:18:49]URL: /json_proto [11:18:49]Method is POST - this is cgi request [11:18:49]url: /json_proto [11:18:49]query_string will be loaded in cgi processing [11:18:49]execute_cgi json_proto POST (null) [11:18:49]execute_cgi path=json_proto method=POST [11:18:49]POST find Content-Length [11:18:49]Host: 172.17.39.195:8080 [11:18:49]Content-Length: 331 [11:18:49]Content-Type: application/json [11:18:49] [11:18:49]POST finish read [11:18:49]Found Content-Length = 331 [11:18: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" ] } } [11:18:49]execute_script... [11:18:49]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:18:49]POST & json_proto [11:18:49]process_json_proto [11:18:49]json parsed OK: [11:18:49]protocol is kg_v1.0 [11:18:49]action value=get_value [11:18:49]process_action get_value [11:18:49]cmd_get_value [11:18:49]process_action get_value done [11:18:49]requested_data is exist [11:18:49]produce_requested_data [11:18:49]requested_item fm.sale.total is exist - process it [11:18:49]SAM_PROTO_GetFMData [11:18:49]wFMCommunicate request_size=4 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 13 03 00 [11:18:49]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 FD 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 0E 29 01 00 69 04 A3 00 6F 04 04 00 CF 25 01 00 B1 04 05 00 46 9B C5 B0 01 70 04 05 00 34 4D 6F 6D 01 72 04 04 00 12 4E 56 43 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 E6 24 F7 2D 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 7E 7F D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 35 [11:18:50]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 0E 29 01 00 69 04 A3 00 6F 04 04 00 CF 25 01 00 B1 04 05 00 46 9B C5 B0 01 70 04 05 00 34 4D 6F 6D 01 72 04 04 00 12 4E 56 43 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 E6 24 F7 2D 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 7E 7F D4 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [11:18:50]wFMCommunicate OK [11:18:50]wFMCommunicate request_size=4 [11:18:50]MH_SAM_APDU [11:18:50]CAPDU: 80 17 00 00 [11:18:50]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 FD 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 21 [11:18:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [11:18:50]wFMCommunicate OK [11:18:50]wFMCommunicate request_size=4 [11:18:50]MH_SAM_APDU [11:18:50]CAPDU: 80 17 00 00 [11:18:50]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 FD 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [11:18:50]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:18:50]wFMCommunicate OK [11:18:50]wFMCommunicate request_size=4 [11:18:50]MH_SAM_APDU [11:18:50]CAPDU: 80 17 00 00 [11:18:50]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:18:51]Read from MH i2c: E2 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 FD 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [11:18:51]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:18:51]wFMCommunicate OK [11:18:51]wFMCommunicate request_size=4 [11:18:51]MH_SAM_APDU [11:18:51]CAPDU: 80 17 00 00 [11:18:51]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [11:18:51]Read from MH i2c: E2 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 E3 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 E3 00 17 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 [11:18:51]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:51]wFMCommunicate OK [11:18:51]SAM_PROTO_GetFMData done [11:18:51]requested_item fm.sale_refund.total is exist - process it [11:18:51]requested_item fm.buy.total is exist - process it [11:18:51]requested_item shift.sale.total is exist - process it [11:18:51]SAM_PROTO_GetShiftData [11:18:51]wFMCommunicate request_size=4 [11:18:51]MH_SAM_APDU [11:18:51]CAPDU: 80 13 02 00 [11:18:51]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 [11:18:51]MH_I2C_Read... [11:18:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:18:51]Read from MH i2c: E2 FD 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 20 00 00 00 69 04 9B 00 6F 04 04 00 20 00 00 00 B1 04 03 00 5C D4 13 70 04 03 00 48 2A 10 72 04 03 00 14 AA 03 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 27 1B 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 EA 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [11:18:51]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 20 00 00 00 69 04 9B 00 6F 04 04 00 20 00 00 00 B1 04 03 00 5C D4 13 70 04 03 00 48 2A 10 72 04 03 00 14 AA 03 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 27 1B 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 EA 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:51]wFMCommunicate OK [11:18:51]wFMCommunicate request_size=4 [11:18:51]MH_SAM_APDU [11:18:51]CAPDU: 80 17 00 00 [11:18:51]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 FD 00 [11:18:52]MH_I2C_Read... [11:18: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 [11:18: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 [11:18:52]wFMCommunicate OK [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 17 00 00 [11:18:52]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 FD 00 [11:18:52]MH_I2C_Read... [11:18: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 [11:18: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 [11:18:52]wFMCommunicate OK [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 17 00 00 [11:18:52]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 FD 00 [11:18:52]MH_I2C_Read... [11:18:52]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:18:52]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:18:52]wFMCommunicate OK [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 17 00 00 [11:18:52]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:53]OFD Sender: No OFD packet to send [11:18:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:18:53]Read from MH i2c: E2 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: E2 CB 00 [11:18:53]MH_I2C_Read... [11:18: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 [11:18: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 [11:18:53]wFMCommunicate OK [11:18:53]SAM_PROTO_GetShiftData done [11:18:53]requested_item shift.sale.total_cash is exist - process it [11:18:53]requested_item shift.sale_refund.total is exist - process it [11:18:53]requested_item shift.sale_refund.total_cash is exist - process it [11:18:53]requested_item shift.buy.total is exist - process it [11:18:53]requested_item shift.buy.total_cash is exist - process it [11:18:53]produce_requested_data done [11:18:53]produce_requested_data return {"fm.sale.total":72607076.54,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":12995.48,"shift.sale.total_cash":10594.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:18:53]process_action_free get_value [11:18:53]json_value_free [11:18:53]json_value_free done [11:18:53]process_json_proto returns [11:18:53]Send response to host [11:18:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72607076.54,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":12995.48,"shift.sale.total_cash":10594.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:18:53]free response buf [11:18:53]execute_script done [11:18:53]execute_script returns [11:18:53]free content buf [11:18:53]Sock 9.Close socket [11:18:53]Sock 9.Thread stoped [11:18:57]accept exits with 8 [11:18:57]New connection [11:18:57]New thread 3067362660 created [11:18:57]Thread 3067219300 joined [11:18:57]Waiting for new connection... [11:18:57] Sock 8.Parse request [11:18:57]Sock 8.Check first char [11:18:57]Sock 8.First char is OK [11:18:57]request: POST /json_proto HTTP/1.0 [11:18:57]Method: POST [11:18:57]URL: /json_proto [11:18:57]Method is POST - this is cgi request [11:18:57]url: /json_proto [11:18:57]query_string will be loaded in cgi processing [11:18:57]execute_cgi json_proto POST (null) [11:18:57]execute_cgi path=json_proto method=POST [11:18:57]POST find Content-Length [11:18:57]Host: 172.17.39.195:8080 [11:18:57]Content-Length: 3116 [11:18:57]Content-Type: application/json [11:18:57] [11:18:57]POST finish read [11:18:57]Found Content-Length = 3116 [11:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220916", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420386", "name": "\u0421\u043E\u043A Rich \u042F\u0431\u043B\u043E\u043A\u043E 0,2", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 5.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600452021149", "name": "\u0428\u043E\u043A.Oz.\u043C\u043E\u043B.MilkExtraHazeln.90\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2426.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:57]execute_script... [11:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220916", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650075420386", "name": "\u0421\u043E\u043A Rich \u042F\u0431\u043B\u043E\u043A\u043E 0,2", "price" : 85.00, "quantity" : 3.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 6.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 5.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600452021149", "name": "\u0428\u043E\u043A.Oz.\u043C\u043E\u043B.MilkExtraHazeln.90\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2426.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:57]POST & json_proto [11:18:57]process_json_proto [11:18:57]json parsed OK: [11:18:57]protocol is kg_v1.0 [11:18:57]action value=close_receipt [11:18:57]process_action close_receipt [11:18:57]cmd_close_receipt [11:18:57]MH_GetDate [11:18:57]Write to MH i2c: F0 00 00 1D 00 0C [11:18:57]Write i2c OK [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: F0 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: F0 09 00 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: F0 09 00 1D 00 00 22 B3 76 66 99 81 91 64 D5 [11:18:57]GetLastDocTimeStamp 1719054357 [11:18:57]current date 1719055138 [11:18:57]FM_GetShiftState [11:18:57]SAM_PROTO_GetShiftState [11:18:57]wFMCommunicate request_size=4 [11:18:57]MH_SAM_APDU [11:18:57]CAPDU: 80 13 01 00 [11:18:57]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:18:57]Write i2c OK [11:18:57]MH_I2C_Read... [11:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:57]Read from MH i2c: E2 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: E2 0E 00 [11:18:57]MH_I2C_Read... [11:18:57]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 91 [11:18:57]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:18:57]wFMCommunicate OK [11:18:57]SAM_PROTO_GetShiftState done [11:18:57]FM_GetShiftState done [11:18:57]opened in 1719016435 [11:18:57]opened+sec_in_day 1719102835 [11:18:57]quantity*price = 79500 [11:18:57]sum+1 = 79501 [11:18:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000286 Напиток Кока-Кола 2л 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4650075420386 Сок Rich Яблоко 0,2 3.000 * 85.00 = 255.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 6.000 * 7.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400655 Семечки ДЖИНН 70г синий 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700001060152 Коньяк Бишкек 0,5л 1.000 * 660.00 = 660.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 2.000 * 4.00 = 8.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160013 Снек Курут индивидуальный 5.000 * 15.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600452021149 Шок.Oz.мол.MilkExtraHazeln.90г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 2426.00 НСП 1% : 21.46 НДС 12% : 257.62 Наличными: 2426.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 33 22.06.2024 11:18 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76837 ФПД: 115628328379355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111858&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76837&fm=115628328379355&tin=02508201610067®Number=0000000000095696&sum=242600 0 [11:18:59]StoreToDocumentArchive [11:18:59]shift 395 fd 76837 [11:18:59]save to /storage/0395/doc_00076837 [11:18:59]save last doc name /storage/0395/doc_00076837 to /storage/kkm_last_doc_name [11:18:59]save OK [11:18:59]Clear old archive folders... [11:18:59]ProcessDocumentItem done err = 0, tmpTLVsize=1282 [11:18:59]tlvbuf is 00944250 [11:18:59]SAM_PROTO_ClearQueue [11:18:59]wFMCommunicate request_size=4 [11:18:59]MH_SAM_APDU [11:18:59]CAPDU: 80 09 00 00 [11:18:59]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:59]Read from MH i2c: E2 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:18:59]RAPDU: 90 00 [11:18:59]wFMCommunicate OK [11:18:59]SAM_PROTO_ClearQueue done [11:18:59]KKMCreateOFDPacket [11:18:59]OFDProtocolAddRootSTLVToBuf [11:18:59]FM_MakeSignedData [11:18:59]FM_MakeSignedData [11:18:59]SAM_PROTO_SignData [11:18:59]wFMCommunicate request_size=4 [11:18:59]MH_SAM_APDU [11:18:59]CAPDU: 80 0D 01 02 [11:18:59]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:18:59]Write i2c OK [11:18:59]MH_I2C_Read... [11:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:59]Read from MH i2c: E2 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 [11:18:59]MH_I2C_Read... [11:18:59]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:18:59]RAPDU: 90 00 [11:18:59]wFMCommunicate OK [11:18:59]wFMCommunicate request_size=255 [11:18:59]MH_SAM_APDU [11:18:59]CAPDU: 80 0D 02 02 FA 03 00 02 05 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 [11:18:59]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 02 05 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 00 59 [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:00]Read from MH i2c: E2 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 03 00 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:19:00]RAPDU: 90 00 [11:19:00]wFMCommunicate OK [11:19:00]wFMCommunicate request_size=255 [11:19:00]MH_SAM_APDU [11:19:00]CAPDU: 80 0D 02 02 FA 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 33 38 36 06 04 1C 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 AF D0 B1 D0 BB D0 BE D0 BA D0 BE 20 30 2C 32 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 [11:19:00]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 33 38 36 06 04 1C 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 AF D0 B1 D0 BB D0 BE D0 BA D0 BE 20 30 2C 32 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 00 00 0D [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:00]Read from MH i2c: E2 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 03 00 [11:19:00]MH_I2C_Read... [11:19:00]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:19:00]RAPDU: 90 00 [11:19:00]wFMCommunicate OK [11:19:00]wFMCommunicate request_size=255 [11:19:00]MH_SAM_APDU [11:19:00]CAPDU: 80 0D 02 02 FA BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 [11:19:00]Write to MH i2c: E2 02 01 2F 00 80 0D 02 02 FA 00 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 CC [11:19:00]Write i2c OK [11:19:00]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [11:19:01]RAPDU: 90 00 [11:19:01]wFMCommunicate OK [11:19:01]wFMCommunicate request_size=255 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 0D 02 02 FA 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 [11:19:01]Write to MH i2c: E2 02 01 30 00 80 0D 02 02 FA 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 00 F3 [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:01]Read from MH i2c: E2 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 [11:19:01]MH_I2C_Read... [11:19:01]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [11:19:01]RAPDU: 90 00 [11:19:01]wFMCommunicate OK [11:19:01]wFMCommunicate request_size=255 [11:19:01]MH_SAM_APDU [11:19:01]CAPDU: 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 31 34 39 06 04 25 00 D0 A8 D0 BE D0 BA 2E 4F 7A 2E D0 BC D0 BE D0 BB 2E 4D 69 6C 6B 45 78 74 72 61 48 61 7A 65 6C 6E 2E 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 64 00 00 00 00 07 04 06 00 A8 B3 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 22 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 [11:19:01]Write to MH i2c: E2 02 01 31 00 80 0D 02 02 FA 00 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 31 34 39 06 04 25 00 D0 A8 D0 BE D0 BA 2E 4F 7A 2E D0 BC D0 BE D0 BB 2E 4D 69 6C 6B 45 78 74 72 61 48 61 7A 65 6C 6E 2E 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 64 00 00 00 00 07 04 06 00 A8 B3 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 22 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 00 00 BE [11:19:01]Write i2c OK [11:19:01]MH_I2C_Read... [11:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:02]Read from MH i2c: E2 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 03 00 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 03 00 31 00 00 90 00 A5 [11:19:02]RAPDU: 90 00 [11:19:02]wFMCommunicate OK [11:19:02]wFMCommunicate request_size=41 [11:19:02]MH_SAM_APDU [11:19:02]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 25 2C 01 00 35 04 06 00 69 29 D1 70 63 DB [11:19:02]Write to MH i2c: E2 2C 00 32 00 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 25 2C 01 00 35 04 06 00 69 29 D1 70 63 DB 00 00 DB [11:19:02]Write i2c OK [11:19:02]MH_I2C_Read... [11:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:02]Read from MH i2c: E2 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 03 00 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 03 00 32 00 00 90 00 A6 [11:19:02]RAPDU: 90 00 [11:19:02]wFMCommunicate OK [11:19:02]wFMCommunicate request_size=4 [11:19:02]MH_SAM_APDU [11:19:02]CAPDU: 80 0D 03 02 [11:19:02]Write to MH i2c: E2 08 00 33 00 80 0D 03 02 00 00 00 00 AE [11:19:02]Write i2c OK [11:19:02]MH_I2C_Read... [11:19:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:02]Read from MH i2c: E2 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 0B 00 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 0B 00 33 00 00 63 F8 DD 29 55 84 E2 EE 90 00 B9 [11:19:02]RAPDU: 63 F8 DD 29 55 84 E2 EE 90 00 [11:19:02]wFMCommunicate OK [11:19:02]SAM_PROTO_SignData done [11:19:02]FM_MakeSignedData done [11:19:02]CreateOFDProtocolMessage [11:19:02]wFMCommunicate request_size=4 [11:19:02]MH_SAM_APDU [11:19:02]CAPDU: 80 11 00 00 [11:19:02]Write to MH i2c: E2 08 00 34 00 80 11 00 00 00 00 00 00 AE [11:19:02]Write i2c OK [11:19:02]MH_I2C_Read... [11:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:02]Read from MH i2c: E2 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 17 00 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 17 00 34 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FE [11:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:19:02]wFMCommunicate OK [11:19:02]CreateOFDProtocolMessage done [11:19:02]OFDSenderStorePacket 76837 [11:19:02]StoreOFDPacket docnum=76837 [11:19:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 16 05 00 00 FF 84 0E 05 5F F7 5A 03 01 00 03 00 02 05 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 33 38 36 06 04 1C 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 AF D0 B1 D0 BB D0 BE D0 BA D0 BE 20 30 2C 32 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 31 34 39 06 04 25 00 D0 A8 D0 BE D0 BA 2E 4F 7A 2E D0 BC D0 BE D0 BB 2E 4D 69 6C 6B 45 78 74 72 61 48 61 7A 65 6C 6E 2E 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 64 00 00 00 00 07 04 06 00 A8 B3 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 22 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 25 2C 01 00 35 04 06 00 69 29 D1 70 63 DB 63 F8 DD 29 55 84 E2 EE [11:19:02]CheckFolder [11:19:02]dirname=/storage/ofd_packets [11:19:02]CheckFolder done [11:19:02]ProducePacketName [11:19:02]name=ofd_packets/00076837 [11:19:02]NVStorageSaveData ofd_packets/00076837 [11:19:02]File name is /storage/ofd_packets/00076837 [11:19:02]Write 1332 bytes [11:19:02]NVStorageSaveData done [11:19:02]OFDSenderStorePacket done [11:19:02]KKMCreateOFDPacket done [11:19:02]NVStorageSaveData kkm_last_timestamp [11:19:02]File name is /storage/kkm_last_timestamp [11:19:02]Write 4 bytes [11:19:02]NVStorageSaveData done [11:19:02]ExternCall_PrintAddStr [11:19:02]wPrintStart [11:19:02]Write to MH i2c: 01 00 00 35 00 35 [11:19:02]Write i2c OK [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: 01 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: 01 07 00 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: 01 07 00 35 00 00 00 00 00 00 FF 0F 4A [11:19:02]RasterBufferAndPrint [11:19:02]line Счет N : (3)220916 [11:19:02]OFD Sender: Processing packet 76837 [packets to send 351, broken 350] [11:19:02]ProducePacketName [11:19:02]name=ofd_packets/00076837 [11:19:02]OFD Sender: To server: pG, [11:19:02]CommunicateWithHost lk.salyk.kg:30040 [11:19:02]ConnectInit lk.salyk.kg [11:19:02]line ИНН: 02508201610067 [11:19:02]line Контрольно-Кассовый Чек [11:19:02]line ПРОДАЖА [11:19:02]line Товар: 4700003150806 [11:19:02]line Водка Настроение V премиум 40% 0,7л [11:19:02]line 1.000 * 795.00 [11:19:02]line = 795.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line Товар: 5449000000286 [11:19:02]line Напиток Кока-Кола 2л [11:19:02]line 1.000 * 205.00 [11:19:02]line = 205.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line Товар: 4650075420386 [11:19:02]line Сок Rich Яблоко 0,2 [11:19:02]line 3.000 * 85.00 [11:19:02]line = 255.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line Товар: 2000053020015 [11:19:02]line Бумажные стаканы 250мл 1шт [11:19:02]line 6.000 * 7.00 [11:19:02]line = 42.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line Товар: 4630007400655 [11:19:02]line Семечки ДЖИНН 70г синий [11:19:02]line 2.000 * 70.00 [11:19:02]line = 140.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line Товар: 4700001060152 [11:19:02]line Коньяк Бишкек 0,5л [11:19:02]line 1.000 * 660.00 [11:19:02]line = 660.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line Товар: 2000031750019 [11:19:02]line Пакет Партнер Нефть [11:19:02]line 2.000 * 4.00 [11:19:02]line = 8.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line Товар: 48741958 [11:19:02]line Сигареты Parliament Aqua Blue [11:19:02]line 1.000 * 151.00 [11:19:02]line = 151.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line Товар: 4700000160013 [11:19:02]line Снек Курут индивидуальный [11:19:02]line 5.000 * 15.00 [11:19:02]line = 75.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line Товар: 4600452021149 [11:19:02]line Шок.Oz.мол.MilkExtraHazeln.90г [11:19:02]line 1.000 * 95.00 [11:19:02]line = 95.00 [11:19:02]line НДС 12% НСП 1% [11:19:02]line > о реализуемом товаре [11:19:02]line ИТОГО: 2426.00 [11:19:02]line НСП 1% : 21.46 [11:19:02]line НДС 12% : 257.62 [11:19:02]line Наличными: 2426.00 [11:19:02]line Безнал.: 0.00 [11:19:02]line Место: АЗС № 144 "Партнер Нефть" [11:19:02]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:19:02]line СНО: Общий режим [11:19:02]line Чек 33 22.06.2024 11:18 [11:19:02]line Смена: 395 ФФД: 1.0 [11:19:02]line ЗНМ: 0300000170 [11:19:02]line РНМ: 0000000000095696 [11:19:02]line Версия ККМ: 001 [11:19:02]line ФМ: 0000000000875009 [11:19:02]line ФД: 76837 [11:19:02]line ФПД: 115628328379355 [11:19:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111858&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76837&fm=115628328379355&tin=02508201610067®Number=0000000000095696&sum=242600 [11:19:02]line 0 [11:19:02]written 0, free lines is 4095 [11:19:02]Connected sock=10 [11:19:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 16 05 00 00 FF 84 0E 05 5F F7 5A 03 01 00 03 00 02 05 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 33 38 36 06 04 1C 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 AF D0 B1 D0 BB D0 BE D0 BA D0 BE 20 30 2C 32 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 9C 63 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 31 34 39 06 04 25 00 D0 A8 D0 BE D0 BA 2E 4F 7A 2E D0 BC D0 BE D0 BB 2E 4D 69 6C 6B 45 78 74 72 61 48 61 7A 65 6C 6E 2E 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 64 00 00 00 00 07 04 06 00 A8 B3 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 22 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 25 2C 01 00 35 04 06 00 69 29 D1 70 63 DB 63 F8 DD 29 55 84 E2 EE [11:19:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B3 B0 47 00 DD F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 25 2C 01 00 F4 03 04 00 C0 59 76 66 B6 04 01 00 00 49 FE B3 B5 AB 95 18 75 [11:19:03]CommunicateWithHost err = 0 [11:19:03]CheckOFDResponse [11:19:03]1017 (14) - 77093643461234 [11:19:03]1041 (16) - 0000000000875009 [11:19:03]1040 (4) - 76837 [11:19:03]1012 (4) - 22.06.2024 04:57 [11:19:03]1206 (1) - 0 [11:19:03]OFD Sender: Remove packet 76837 [11:19:03]ProducePacketName [11:19:03]name=ofd_packets/00076837 [11:19:03]NVStorageDeleteData [11:19:03]Write to MH i2c: 01 00 00 96 00 96 [11:19:03]Write i2c OK [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: 01 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: 01 07 00 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 F7 09 9D [11:19:03]RasterBufferAndPrint [11:19:03]line [11:19:03]line [11:19:03]line [11:19:03]line [11:19:03]line [11:19:03]written 0, free lines is 2572 [11:19:03]MH_Cut [11:19:03]Write to MH i2c: D1 01 00 9D 00 01 6F [11:19:03]Write i2c OK [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: D1 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: D1 01 00 [11:19:03]MH_I2C_Read... [11:19:03]Read from MH i2c: D1 01 00 9D 00 00 6E [11:19:03]Write to MH i2c: 01 00 00 9E 00 9E [11:19:03]Write i2c OK [11:19:03]MH_I2C_Read... [11:19:04]OFD Sender: No OFD packet to send [11:19:05]*** Cut start [11:19:05]*** Partial cut [11:19:05]*** CUTSNS_PIN = 1 [11:19:05]*** CUTSNS_PIN = 0 [11:19:05]*** Brake cut motor [11:19:05]Read from MH i2c: 01 [11:19:05]MH_I2C_Read... [11:19:05]*** Stop cut motor [11:19:05]*** Cut end [11:19:05]Read from MH i2c: 01 07 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: 01 07 00 9E 00 00 00 00 00 00 FF 0F B3 [11:19:05]process_action close_receipt done [11:19:05]requested_data is exist [11:19:05]produce_requested_data [11:19:05]requested_item fm.sn is exist - process it [11:19:05]wFMCommunicate request_size=4 [11:19:05]MH_SAM_APDU [11:19:05]CAPDU: 80 11 00 00 [11:19:05]Write to MH i2c: E2 08 00 9F 00 80 11 00 00 00 00 00 00 19 [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:05]Read from MH i2c: E2 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 17 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 17 00 9F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 69 [11:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:19:05]wFMCommunicate OK [11:19:05]requested_item fd.num is exist - process it [11:19:05]SAM_PROTO_GetFieldsCounters [11:19:05]wFMCommunicate request_size=4 [11:19:05]MH_SAM_APDU [11:19:05]CAPDU: 80 13 00 00 [11:19:05]Write to MH i2c: E2 08 00 A0 00 80 13 00 00 00 00 00 00 1C [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:06]Read from MH i2c: E2 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 62 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 62 00 A0 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 25 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:19: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 25 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:06]wFMCommunicate OK [11:19:06]SAM_PROTO_GetFieldsCounters done [11:19:06]requested_item shift.num is exist - process it [11:19:06]requested_item shift.opened is exist - process it [11:19:06]req_shift_opened [11:19:06]FM_GetShiftState [11:19:06]SAM_PROTO_GetShiftState [11:19:06]wFMCommunicate request_size=4 [11:19:06]MH_SAM_APDU [11:19:06]CAPDU: 80 13 01 00 [11:19:06]Write to MH i2c: E2 08 00 A1 00 80 13 01 00 00 00 00 00 1E [11:19:06]Write i2c OK [11:19:06]MH_I2C_Read... [11:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:06]Read from MH i2c: E2 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 0E 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 0E 00 A1 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 14 [11:19:06]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:19:06]wFMCommunicate OK [11:19:06]SAM_PROTO_GetShiftState done [11:19:06]FM_GetShiftState done [11:19:06]req_shift_opened done [11:19:06]requested_item shift.open_date is exist - process it [11:19:06]req_shift_open_date [11:19:06]req_shift_open_date done [11:19:06]produce_requested_data done [11:19:06]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76837,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:19:06]process_action_free close_receipt [11:19:06]json_value_free [11:19:06]json_value_free done [11:19:06]process_json_proto returns [11:19:06]Send response to host [11:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76837,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:19:06]free response buf [11:19:06]execute_script done [11:19:06]execute_script returns [11:19:06]free content buf [11:19:06]Sock 8.Close socket [11:19:06]Sock 8.Thread stoped [11:19:09]OFD Sender: No OFD packet to send [11:19:10]accept exits with 9 [11:19:10]New connection [11:19:10]New thread 3067219300 created [11:19:10]Thread 3067362660 joined [11:19:10]Waiting for new connection... [11:19:10] Sock 9.Parse request [11:19:10]Sock 9.Check first char [11:19:10]Sock 9.First char is OK [11:19:10]request: POST /json_proto HTTP/1.0 [11:19:10]Method: POST [11:19:10]URL: /json_proto [11:19:10]Method is POST - this is cgi request [11:19:10]url: /json_proto [11:19:10]query_string will be loaded in cgi processing [11:19:10]execute_cgi json_proto POST (null) [11:19:10]execute_cgi path=json_proto method=POST [11:19:10]POST find Content-Length [11:19:10]Host: 172.17.39.195:8080 [11:19:10]Content-Length: 660 [11:19:10]Content-Type: application/json [11:19:10] [11:19:10]POST finish read [11:19:10]Found Content-Length = 660 [11:19:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220917", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:10]execute_script... [11:19:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220917", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:10]POST & json_proto [11:19:10]process_json_proto [11:19:10]json parsed OK: [11:19:10]protocol is kg_v1.0 [11:19:10]action value=close_receipt [11:19:10]process_action close_receipt [11:19:10]cmd_close_receipt [11:19:10]MH_GetDate [11:19:10]Write to MH i2c: F0 00 00 A2 00 91 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: F0 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: F0 09 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: F0 09 00 A2 00 00 2F B3 76 66 99 81 91 64 67 [11:19:10]GetLastDocTimeStamp 1719055138 [11:19:10]current date 1719055151 [11:19:10]FM_GetShiftState [11:19:10]SAM_PROTO_GetShiftState [11:19:10]wFMCommunicate request_size=4 [11:19:10]MH_SAM_APDU [11:19:10]CAPDU: 80 13 01 00 [11:19:10]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 0E 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 16 [11:19:10]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:19:10]wFMCommunicate OK [11:19:10]SAM_PROTO_GetShiftState done [11:19:10]FM_GetShiftState done [11:19:10]opened in 1719016435 [11:19:10]opened+sec_in_day 1719102835 [11:19:10]quantity*price = 4900 [11:19:10]sum+1 = 4901 [11:19:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 34 22.06.2024 11:19 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76838 ФПД: 65188341569907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111911&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76838&fm=65188341569907&tin=02508201610067®Number=0000000000095696&sum=4900 0 [11:19:11]StoreToDocumentArchive [11:19:11]shift 395 fd 76838 [11:19:11]save to /storage/0395/doc_00076838 [11:19:11]save last doc name /storage/0395/doc_00076838 to /storage/kkm_last_doc_name [11:19:11]save OK [11:19:11]Clear old archive folders... [11:19:11]ProcessDocumentItem done err = 0, tmpTLVsize=291 [11:19:11]tlvbuf is 00943DE0 [11:19:11]SAM_PROTO_ClearQueue [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 09 00 00 [11:19:11]Write to MH i2c: E2 08 00 B0 00 80 09 00 00 00 00 00 00 22 [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [11:19:11]RAPDU: 90 00 [11:19:11]wFMCommunicate OK [11:19:11]SAM_PROTO_ClearQueue done [11:19:11]KKMCreateOFDPacket [11:19:11]OFDProtocolAddRootSTLVToBuf [11:19:11]FM_MakeSignedData [11:19:11]FM_MakeSignedData [11:19:11]SAM_PROTO_SignData [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 0D 01 02 [11:19:11]Write to MH i2c: E2 08 00 B1 00 80 0D 01 02 00 00 00 00 2A [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [11:19:11]RAPDU: 90 00 [11:19:11]wFMCommunicate OK [11:19:11]wFMCommunicate request_size=255 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 2F B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [11:19:12]Write to MH i2c: E2 02 01 B2 00 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 2F B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 48 [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 03 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [11:19:12]RAPDU: 90 00 [11:19:12]wFMCommunicate OK [11:19:12]wFMCommunicate request_size=50 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 0D 02 02 2D 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 26 2C 01 00 35 04 06 00 3B 49 D7 F1 59 73 [11:19:12]Write to MH i2c: E2 35 00 B3 00 80 0D 02 02 2D 00 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 26 2C 01 00 35 04 06 00 3B 49 D7 F1 59 73 00 00 FE [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:12]Read from MH i2c: E2 03 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [11:19:12]RAPDU: 90 00 [11:19:12]wFMCommunicate OK [11:19:12]wFMCommunicate request_size=4 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 0D 03 02 [11:19:12]Write to MH i2c: E2 08 00 B4 00 80 0D 03 02 00 00 00 00 2F [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0B 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0B 00 B4 00 00 9B 5D A1 7D C2 0D 4E 40 90 00 A3 [11:19:12]RAPDU: 9B 5D A1 7D C2 0D 4E 40 90 00 [11:19:12]wFMCommunicate OK [11:19:12]SAM_PROTO_SignData done [11:19:12]FM_MakeSignedData done [11:19:12]CreateOFDProtocolMessage [11:19:12]wFMCommunicate request_size=4 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 11 00 00 [11:19:12]Write to MH i2c: E2 08 00 B5 00 80 11 00 00 00 00 00 00 2F [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:12]Read from MH i2c: E2 17 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 17 00 B5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7F [11:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:19:12]wFMCommunicate OK [11:19:12]CreateOFDProtocolMessage done [11:19:12]OFDSenderStorePacket 76838 [11:19:12]StoreOFDPacket docnum=76838 [11:19:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 37 01 00 00 D4 7C 2F 01 37 5B 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 2F B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 26 2C 01 00 35 04 06 00 3B 49 D7 F1 59 73 9B 5D A1 7D C2 0D 4E 40 [11:19:12]CheckFolder [11:19:12]dirname=/storage/ofd_packets [11:19:12]CheckFolder done [11:19:12]ProducePacketName [11:19:12]name=ofd_packets/00076838 [11:19:12]NVStorageSaveData ofd_packets/00076838 [11:19:12]File name is /storage/ofd_packets/00076838 [11:19:12]Write 341 bytes [11:19:12]NVStorageSaveData done [11:19:12]OFDSenderStorePacket done [11:19:12]KKMCreateOFDPacket done [11:19:12]NVStorageSaveData kkm_last_timestamp [11:19:12]File name is /storage/kkm_last_timestamp [11:19:12]Write 4 bytes [11:19:12]NVStorageSaveData done [11:19:12]ExternCall_PrintAddStr [11:19:12]wPrintStart [11:19:12]Write to MH i2c: 01 00 00 B6 00 B6 [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: 01 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: 01 07 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [11:19:12]RasterBufferAndPrint [11:19:12]line Счет N : (3)220917 [11:19:12]line ИНН: 02508201610067 [11:19:12]line Контрольно-Кассовый Чек [11:19:12]line ПРОДАЖА [11:19:12]line Товар: 46227720 [11:19:12]line Р/ж mentos pure fresh виноград ролл 15,5 [11:19:12]line 1.000 * 49.00 [11:19:12]line = 49.00 [11:19:12]line НДС 12% НСП 1% [11:19:12]line > о реализуемом товаре [11:19:12]line ИТОГО: 49.00 [11:19:12]line НСП 1% : 0.43 [11:19:12]line НДС 12% : 5.20 [11:19:12]line Наличными: 49.00 [11:19:12]line Безнал.: 0.00 [11:19:12]line Место: АЗС № 144 "Партнер Нефть" [11:19:12]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:19:12]line СНО: Общий режим [11:19:12]line Чек 34 22.06.2024 11:19 [11:19:12]line Смена: 395 ФФД: 1.0 [11:19:12]line ЗНМ: 0300000170 [11:19:12]line РНМ: 0000000000095696 [11:19:12]line Версия ККМ: 001 [11:19:12]line ФМ: 0000000000875009 [11:19:12]line ФД: 76838 [11:19:12]line ФПД: 65188341569907 [11:19:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111911&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76838&fm=65188341569907&tin=02508201610067®Number=0000000000095696&sum=4900 [11:19:12]line 0 [11:19:12]written 0, free lines is 4095 [11:19:12]OFD Sender: Processing packet 76838 [packets to send 351, broken 350] [11:19:12]ProducePacketName [11:19:12]name=ofd_packets/00076838 [11:19:12]OFD Sender: To server: pG, [11:19:12]CommunicateWithHost lk.salyk.kg:30040 [11:19:12]ConnectInit lk.salyk.kg [11:19:13]Connected sock=10 [11:19:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 37 01 00 00 D4 7C 2F 01 37 5B 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 2F B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 26 2C 01 00 35 04 06 00 3B 49 D7 F1 59 73 9B 5D A1 7D C2 0D 4E 40 [11:19:13]Write to MH i2c: 01 00 00 DF 00 DF [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 DF 00 00 00 00 00 00 E3 0C D5 [11:19:13]RasterBufferAndPrint [11:19:13]line [11:19:13]line [11:19:13]line [11:19:13]line [11:19:13]line [11:19:13]written 0, free lines is 3329 [11:19:13]MH_Cut [11:19:13]Write to MH i2c: D1 01 00 E6 00 01 B8 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: D1 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: D1 01 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: D1 01 00 E6 00 00 B7 [11:19:13]Write to MH i2c: 01 00 00 E7 00 E7 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C3 E8 47 00 31 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 35 30 30 39 10 04 04 00 26 2C 01 00 F4 03 04 00 C9 59 76 66 B6 04 01 00 00 AF 69 2F 15 E6 16 94 46 [11:19:13]CommunicateWithHost err = 0 [11:19:13]CheckOFDResponse [11:19:13]1017 (14) - 77093643461234 [11:19:13]1041 (16) - 0000000000875009 [11:19:13]1040 (4) - 76838 [11:19:13]1012 (4) - 22.06.2024 04:57 [11:19:13]1206 (1) - 0 [11:19:13]OFD Sender: Remove packet 76838 [11:19:13]ProducePacketName [11:19:13]name=ofd_packets/00076838 [11:19:13]NVStorageDeleteData [11:19:13]OFD Sender: No OFD packet to send [11:19:13]*** Cut start [11:19:13]*** Partial cut [11:19:13]*** CUTSNS_PIN = 1 [11:19:14]*** CUTSNS_PIN = 0 [11:19:14]*** Brake cut motor [11:19:14]Read from MH i2c: 01 [11:19:14]MH_I2C_Read... [11:19:14]*** Stop cut motor [11:19:14]*** Cut end [11:19:14]Read from MH i2c: 01 07 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 07 00 E7 00 00 00 00 00 00 FF 0F FC [11:19:14]process_action close_receipt done [11:19:14]requested_data is exist [11:19:14]produce_requested_data [11:19:14]requested_item fm.sn is exist - process it [11:19:14]wFMCommunicate request_size=4 [11:19:14]MH_SAM_APDU [11:19:14]CAPDU: 80 11 00 00 [11:19:14]Write to MH i2c: E2 08 00 E8 00 80 11 00 00 00 00 00 00 62 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:14]Read from MH i2c: E2 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 17 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 17 00 E8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B2 [11:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:19:14]wFMCommunicate OK [11:19:14]requested_item fd.num is exist - process it [11:19:14]SAM_PROTO_GetFieldsCounters [11:19:14]wFMCommunicate request_size=4 [11:19:14]MH_SAM_APDU [11:19:14]CAPDU: 80 13 00 00 [11:19:14]Write to MH i2c: E2 08 00 E9 00 80 13 00 00 00 00 00 00 65 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:14]Read from MH i2c: E2 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 62 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 62 00 E9 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 26 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [11:19: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 26 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:14]wFMCommunicate OK [11:19:14]SAM_PROTO_GetFieldsCounters done [11:19:14]requested_item shift.num is exist - process it [11:19:14]requested_item shift.opened is exist - process it [11:19:14]req_shift_opened [11:19:15]FM_GetShiftState [11:19:15]SAM_PROTO_GetShiftState [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 13 01 00 [11:19:15]Write to MH i2c: E2 08 00 EA 00 80 13 01 00 00 00 00 00 67 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0E 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0E 00 EA 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 5D [11:19:15]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:19:15]wFMCommunicate OK [11:19:15]SAM_PROTO_GetShiftState done [11:19:15]FM_GetShiftState done [11:19:15]req_shift_opened done [11:19:15]requested_item shift.open_date is exist - process it [11:19:15]req_shift_open_date [11:19:15]req_shift_open_date done [11:19:15]produce_requested_data done [11:19:15]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76838,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:19:15]process_action_free close_receipt [11:19:15]json_value_free [11:19:15]json_value_free done [11:19:15]process_json_proto returns [11:19:15]Send response to host [11:19:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76838,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:19:15]free response buf [11:19:15]execute_script done [11:19:15]execute_script returns [11:19:15]free content buf [11:19:15]Sock 9.Close socket [11:19:15]Sock 9.Thread stoped [11:19:18]OFD Sender: No OFD packet to send [11:19:19]accept exits with 8 [11:19:19]New connection [11:19:19]New thread 3067362660 created [11:19:19]Thread 3067219300 joined [11:19:19]Waiting for new connection... [11:19:19] Sock 8.Parse request [11:19:19]Sock 8.Check first char [11:19:19]Sock 8.First char is OK [11:19:19]request: POST /json_proto HTTP/1.0 [11:19:19]Method: POST [11:19:19]URL: /json_proto [11:19:19]Method is POST - this is cgi request [11:19:19]url: /json_proto [11:19:19]query_string will be loaded in cgi processing [11:19:19]execute_cgi json_proto POST (null) [11:19:19]execute_cgi path=json_proto method=POST [11:19:19]POST find Content-Length [11:19:19]Host: 172.17.39.195:8080 [11:19:19]Content-Length: 658 [11:19:19]Content-Type: application/json [11:19:19] [11:19:19]POST finish read [11:19:19]Found Content-Length = 658 [11:19:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220918", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:19]execute_script... [11:19:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220918", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:19]POST & json_proto [11:19:19]process_json_proto [11:19:19]json parsed OK: [11:19:19]protocol is kg_v1.0 [11:19:19]action value=close_receipt [11:19:19]process_action close_receipt [11:19:19]cmd_close_receipt [11:19:19]MH_GetDate [11:19:19]Write to MH i2c: F0 00 00 EB 00 DA [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: F0 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: F0 09 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: F0 09 00 EB 00 00 38 B3 76 66 99 81 91 64 B9 [11:19:19]GetLastDocTimeStamp 1719055151 [11:19:19]current date 1719055160 [11:19:19]FM_GetShiftState [11:19:19]SAM_PROTO_GetShiftState [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 13 01 00 [11:19:19]Write to MH i2c: E2 08 00 EC 00 80 13 01 00 00 00 00 00 69 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 0E 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 0E 00 EC 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 5F [11:19:19]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:19:19]wFMCommunicate OK [11:19:19]SAM_PROTO_GetShiftState done [11:19:19]FM_GetShiftState done [11:19:19]opened in 1719016435 [11:19:19]opened+sec_in_day 1719102835 [11:19:19]quantity*price = 20500 [11:19:19]sum+1 = 20501 [11:19:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 35 22.06.2024 11:19 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76839 ФПД: 235284577260854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111920&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76839&fm=235284577260854&tin=02508201610067®Number=0000000000095696&sum=20500 0 [11:19:21]StoreToDocumentArchive [11:19:21]shift 395 fd 76839 [11:19:21]save to /storage/0395/doc_00076839 [11:19:21]save last doc name /storage/0395/doc_00076839 to /storage/kkm_last_doc_name [11:19:21]save OK [11:19:21]Clear old archive folders... [11:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:19:21]tlvbuf is 00993DA0 [11:19:21]SAM_PROTO_ClearQueue [11:19:21]wFMCommunicate request_size=4 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 09 00 00 [11:19:21]Write to MH i2c: E2 08 00 F9 00 80 09 00 00 00 00 00 00 6B [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [11:19:21]RAPDU: 90 00 [11:19:21]wFMCommunicate OK [11:19:21]SAM_PROTO_ClearQueue done [11:19:21]KKMCreateOFDPacket [11:19:21]OFDProtocolAddRootSTLVToBuf [11:19:21]FM_MakeSignedData [11:19:21]FM_MakeSignedData [11:19:21]SAM_PROTO_SignData [11:19:21]wFMCommunicate request_size=4 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 0D 01 02 [11:19:21]Write to MH i2c: E2 08 00 FA 00 80 0D 01 02 00 00 00 00 73 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [11:19:21]RAPDU: 90 00 [11:19:21]wFMCommunicate OK [11:19:21]wFMCommunicate request_size=255 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 38 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 [11:19:21]Write to MH i2c: E2 02 01 FB 00 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 38 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 00 00 B7 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [11:19:21]RAPDU: 90 00 [11:19:21]wFMCommunicate OK [11:19:21]wFMCommunicate request_size=37 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2C 01 00 35 04 06 00 D5 FD 75 A6 15 36 [11:19:21]Write to MH i2c: E2 28 00 FC 00 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2C 01 00 35 04 06 00 D5 FD 75 A6 15 36 00 00 56 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [11:19:21]RAPDU: 90 00 [11:19:21]wFMCommunicate OK [11:19:21]wFMCommunicate request_size=4 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 0D 03 02 [11:19:21]Write to MH i2c: E2 08 00 FD 00 80 0D 03 02 00 00 00 00 78 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 0B 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 0B 00 FD 00 00 10 5E 54 06 D2 3F 40 A9 90 00 3B [11:19:21]RAPDU: 10 5E 54 06 D2 3F 40 A9 90 00 [11:19:21]wFMCommunicate OK [11:19:22]SAM_PROTO_SignData done [11:19:22]FM_MakeSignedData done [11:19:22]CreateOFDProtocolMessage [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 11 00 00 [11:19:22]Write to MH i2c: E2 08 00 FE 00 80 11 00 00 00 00 00 00 78 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 17 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 17 00 FE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C8 [11:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:19:22]wFMCommunicate OK [11:19:22]CreateOFDProtocolMessage done [11:19:22]OFDSenderStorePacket 76839 [11:19:22]StoreOFDPacket docnum=76839 [11:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 BA 6F 22 01 29 A9 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 38 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2C 01 00 35 04 06 00 D5 FD 75 A6 15 36 10 5E 54 06 D2 3F 40 A9 [11:19:22]CheckFolder [11:19:22]dirname=/storage/ofd_packets [11:19:22]CheckFolder done [11:19:22]ProducePacketName [11:19:22]name=ofd_packets/00076839 [11:19:22]NVStorageSaveData ofd_packets/00076839 [11:19:22]File name is /storage/ofd_packets/00076839 [11:19:22]Write 328 bytes [11:19:22]NVStorageSaveData done [11:19:22]OFDSenderStorePacket done [11:19:22]KKMCreateOFDPacket done [11:19:22]NVStorageSaveData kkm_last_timestamp [11:19:22]File name is /storage/kkm_last_timestamp [11:19:22]Write 4 bytes [11:19:22]NVStorageSaveData done [11:19:22]ExternCall_PrintAddStr [11:19:22]wPrintStart [11:19:22]Write to MH i2c: 01 00 00 FF 00 FF [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 FF 00 00 00 00 00 00 FF 0F 14 [11:19:22]RasterBufferAndPrint [11:19:22]line Счет N : (3)220918 [11:19:22]line ИНН: 02508201610067 [11:19:22]line Контрольно-Кассовый Чек [11:19:22]line ПРОДАЖА [11:19:22]line Товар: 5449000000286 [11:19:22]line Напиток Кока-Кола 2л [11:19:22]line 1.000 * 205.00 [11:19:22]line = 205.00 [11:19:22]line НДС 12% НСП 1% [11:19:22]line > о реализуемом товаре [11:19:22]line ИТОГО: 205.00 [11:19:22]line НСП 1% : 1.81 [11:19:22]line НДС 12% : 21.77 [11:19:22]line Наличными: 205.00 [11:19:22]line Безнал.: 0.00 [11:19:22]line Место: АЗС № 144 "Партнер Нефть" [11:19:22]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:19:22]line СНО: Общий режим [11:19:22]line Чек 35 22.06.2024 11:19 [11:19:22]line Смена: 395 ФФД: 1.0 [11:19:22]line ЗНМ: 0300000170 [11:19:22]line РНМ: 0000000000095696 [11:19:22]line Версия ККМ: 001 [11:19:22]line ФМ: 0000000000875009 [11:19:22]line ФД: 76839 [11:19:22]line ФПД: 235284577260854 [11:19:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111920&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76839&fm=235284577260854&tin=02508201610067®Number=0000000000095696&sum=20500 [11:19:22]line 0 [11:19:22]written 0, free lines is 4095 [11:19:22]OFD Sender: Processing packet 76839 [packets to send 351, broken 350] [11:19:22]ProducePacketName [11:19:22]name=ofd_packets/00076839 [11:19:22]OFD Sender: To server: pG, [11:19:22]CommunicateWithHost lk.salyk.kg:30040 [11:19:22]ConnectInit lk.salyk.kg [11:19:22]Connected sock=10 [11:19:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 BA 6F 22 01 29 A9 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 38 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2C 01 00 35 04 06 00 D5 FD 75 A6 15 36 10 5E 54 06 D2 3F 40 A9 [11:19:22]Write to MH i2c: 01 00 00 27 01 28 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 27 01 00 00 00 00 00 2B 0D 67 [11:19:22]RasterBufferAndPrint [11:19:22]line [11:19:22]line [11:19:22]line [11:19:22]line [11:19:22]line [11:19:22]written 0, free lines is 3405 [11:19:22]MH_Cut [11:19:22]Write to MH i2c: D1 01 00 2E 01 01 01 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: D1 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: D1 01 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: D1 01 00 2E 01 00 00 [11:19:22]Write to MH i2c: 01 00 00 2F 01 30 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F7 6B 47 00 51 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 27 2C 01 00 F4 03 04 00 D3 59 76 66 B6 04 01 00 00 AE 78 31 4A 75 0A 51 06 [11:19:22]CommunicateWithHost err = 0 [11:19:22]CheckOFDResponse [11:19:22]1017 (14) - 77093643461234 [11:19:22]1041 (16) - 0000000000875009 [11:19:22]1040 (4) - 76839 [11:19:22]1012 (4) - 22.06.2024 04:57 [11:19:22]1206 (1) - 0 [11:19:22]OFD Sender: Remove packet 76839 [11:19:22]ProducePacketName [11:19:22]name=ofd_packets/00076839 [11:19:22]NVStorageDeleteData [11:19:23]*** Cut start [11:19:23]*** Partial cut [11:19:23]*** CUTSNS_PIN = 1 [11:19:23]*** CUTSNS_PIN = 0 [11:19:23]OFD Sender: No OFD packet to send [11:19:23]*** Brake cut motor [11:19:23]Read from MH i2c: 01 [11:19:23]MH_I2C_Read... [11:19:23]*** Stop cut motor [11:19:23]*** Cut end [11:19:23]Read from MH i2c: 01 07 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 FF 0F 45 [11:19:23]process_action close_receipt done [11:19:23]requested_data is exist [11:19:23]produce_requested_data [11:19:23]requested_item fm.sn is exist - process it [11:19:23]wFMCommunicate request_size=4 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 11 00 00 [11:19:23]Write to MH i2c: E2 08 00 30 01 80 11 00 00 00 00 00 00 AB [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 17 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 17 00 30 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FB [11:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:19:24]wFMCommunicate OK [11:19:24]requested_item fd.num is exist - process it [11:19:24]SAM_PROTO_GetFieldsCounters [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 13 00 00 [11:19:24]Write to MH i2c: E2 08 00 31 01 80 13 00 00 00 00 00 00 AE [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 62 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 62 00 31 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 27 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [11:19: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 27 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:24]wFMCommunicate OK [11:19:24]SAM_PROTO_GetFieldsCounters done [11:19:24]requested_item shift.num is exist - process it [11:19:24]requested_item shift.opened is exist - process it [11:19:24]req_shift_opened [11:19:24]FM_GetShiftState [11:19:24]SAM_PROTO_GetShiftState [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 13 01 00 [11:19:24]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 0E 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 A6 [11:19:24]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:19:24]wFMCommunicate OK [11:19:24]SAM_PROTO_GetShiftState done [11:19:24]FM_GetShiftState done [11:19:24]req_shift_opened done [11:19:24]requested_item shift.open_date is exist - process it [11:19:24]req_shift_open_date [11:19:24]req_shift_open_date done [11:19:24]produce_requested_data done [11:19:24]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76839,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:19:24]process_action_free close_receipt [11:19:24]json_value_free [11:19:24]json_value_free done [11:19:24]process_json_proto returns [11:19:24]Send response to host [11:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76839,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:19:24]free response buf [11:19:24]execute_script done [11:19:24]execute_script returns [11:19:24]free content buf [11:19:24]Sock 8.Close socket [11:19:24]Sock 8.Thread stoped [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:45]accept exits with 9 [11:19:45]New connection [11:19:45]New thread 3067219300 created [11:19:45]Thread 3067362660 joined [11:19:45]Waiting for new connection... [11:19:45] Sock 9.Parse request [11:19:45]Sock 9.Check first char [11:19:45]Sock 9.First char is OK [11:19:45]request: POST /json_proto HTTP/1.0 [11:19:45]Method: POST [11:19:45]URL: /json_proto [11:19:45]Method is POST - this is cgi request [11:19:45]url: /json_proto [11:19:45]query_string will be loaded in cgi processing [11:19:45]execute_cgi json_proto POST (null) [11:19:45]execute_cgi path=json_proto method=POST [11:19:45]POST find Content-Length [11:19:45]Host: 172.17.39.195:8080 [11:19:45]Content-Length: 678 [11:19:45]Content-Type: application/json [11:19:45] [11:19:45]POST finish read [11:19:45]Found Content-Length = 678 [11:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:19:45]execute_script... [11:19: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)1694380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:19:45]POST & json_proto [11:19:45]process_json_proto [11:19:45]json parsed OK: [11:19:45]protocol is kg_v1.0 [11:19:45]action value=close_receipt [11:19:45]process_action close_receipt [11:19:45]cmd_close_receipt [11:19:45]MH_GetDate [11:19:45]Write to MH i2c: F0 00 00 33 01 23 [11:19:45]Write i2c OK [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: F0 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: F0 09 00 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: F0 09 00 33 01 00 52 B3 76 66 99 81 91 64 1C [11:19:45]GetLastDocTimeStamp 1719055160 [11:19:45]current date 1719055186 [11:19:45]FM_GetShiftState [11:19:45]SAM_PROTO_GetShiftState [11:19:45]wFMCommunicate request_size=4 [11:19:45]MH_SAM_APDU [11:19:45]CAPDU: 80 13 01 00 [11:19:45]Write to MH i2c: E2 08 00 34 01 80 13 01 00 00 00 00 00 B2 [11:19:45]Write i2c OK [11:19:45]MH_I2C_Read... [11:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:45]Read from MH i2c: E2 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: E2 0E 00 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: E2 0E 00 34 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 A8 [11:19:45]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:19:45]wFMCommunicate OK [11:19:45]SAM_PROTO_GetShiftState done [11:19:45]FM_GetShiftState done [11:19:45]opened in 1719016435 [11:19:45]opened+sec_in_day 1719102835 [11:19:45]quantity*price = 20052 [11:19:45]sum+1 = 20054 [11:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 36 22.06.2024 11:19 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76840 ФПД: 59988853407780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111946&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76840&fm=59988853407780&tin=02508201610067®Number=0000000000095696&sum=20000 [11:19:46]StoreToDocumentArchive [11:19:46]shift 395 fd 76840 [11:19:46]save to /storage/0395/doc_00076840 [11:19:46]save last doc name /storage/0395/doc_00076840 to /storage/kkm_last_doc_name [11:19:46]save OK [11:19:46]Clear old archive folders... [11:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:46]tlvbuf is 0093FA40 [11:19:46]SAM_PROTO_ClearQueue [11:19:46]wFMCommunicate request_size=4 [11:19:46]MH_SAM_APDU [11:19:46]CAPDU: 80 09 00 00 [11:19:46]Write to MH i2c: E2 08 00 41 01 80 09 00 00 00 00 00 00 B4 [11:19:46]Write i2c OK [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 [11:19:46]MH_I2C_Read... [11:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:46]Read from MH i2c: E2 03 00 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [11:19:46]RAPDU: 90 00 [11:19:46]wFMCommunicate OK [11:19:46]SAM_PROTO_ClearQueue done [11:19:46]KKMCreateOFDPacket [11:19:46]OFDProtocolAddRootSTLVToBuf [11:19:46]FM_MakeSignedData [11:19:46]FM_MakeSignedData [11:19:46]SAM_PROTO_SignData [11:19:46]wFMCommunicate request_size=4 [11:19:46]MH_SAM_APDU [11:19:46]CAPDU: 80 0D 01 02 [11:19:46]Write to MH i2c: E2 08 00 42 01 80 0D 01 02 00 00 00 00 BC [11:19:46]Write i2c OK [11:19:46]MH_I2C_Read... [11:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:46]Read from MH i2c: E2 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 03 00 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [11:19:46]RAPDU: 90 00 [11:19:46]wFMCommunicate OK [11:19:46]wFMCommunicate request_size=255 [11:19:46]MH_SAM_APDU [11:19:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 24 00 00 00 F4 03 04 00 52 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2C 01 00 35 04 06 00 36 [11:19:47]Write to MH i2c: E2 02 01 43 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 24 00 00 00 F4 03 04 00 52 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2C 01 00 35 04 06 00 36 00 00 52 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [11:19:47]RAPDU: 90 00 [11:19:47]wFMCommunicate OK [11:19:47]wFMCommunicate request_size=10 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 0D 02 02 05 8F 3E 4C 40 24 [11:19:47]Write to MH i2c: E2 0D 00 44 01 80 0D 02 02 05 00 8F 3E 4C 40 24 00 00 46 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [11:19:47]RAPDU: 90 00 [11:19:47]wFMCommunicate OK [11:19:47]wFMCommunicate request_size=4 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 0D 03 02 [11:19:47]Write to MH i2c: E2 08 00 45 01 80 0D 03 02 00 00 00 00 C1 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 0B 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 0B 00 45 01 00 4C B1 FA 89 64 D5 3C 4B 90 00 02 [11:19:47]RAPDU: 4C B1 FA 89 64 D5 3C 4B 90 00 [11:19:47]wFMCommunicate OK [11:19:47]SAM_PROTO_SignData done [11:19:47]FM_MakeSignedData done [11:19:47]CreateOFDProtocolMessage [11:19:47]wFMCommunicate request_size=4 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 11 00 00 [11:19:47]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 17 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 11 [11:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:19:47]wFMCommunicate OK [11:19:47]CreateOFDProtocolMessage done [11:19:47]OFDSenderStorePacket 76840 [11:19:47]StoreOFDPacket docnum=76840 [11:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 05 D8 07 01 AF E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 24 00 00 00 F4 03 04 00 52 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2C 01 00 35 04 06 00 36 8F 3E 4C 40 24 4C B1 FA 89 64 D5 3C 4B [11:19:47]CheckFolder [11:19:47]dirname=/storage/ofd_packets [11:19:47]CheckFolder done [11:19:47]ProducePacketName [11:19:47]name=ofd_packets/00076840 [11:19:47]NVStorageSaveData ofd_packets/00076840 [11:19:47]File name is /storage/ofd_packets/00076840 [11:19:47]Write 301 bytes [11:19:47]NVStorageSaveData done [11:19:47]OFDSenderStorePacket done [11:19:47]KKMCreateOFDPacket done [11:19:47]NVStorageSaveData kkm_last_timestamp [11:19:47]File name is /storage/kkm_last_timestamp [11:19:47]Write 4 bytes [11:19:47]NVStorageSaveData done [11:19:47]ExternCall_PrintAddStr [11:19:47]wPrintStart [11:19:47]Write to MH i2c: 01 00 00 47 01 48 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 07 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 07 00 47 01 00 00 00 00 00 FF 0F 5D [11:19:47]RasterBufferAndPrint [11:19:47]line Счет N : (1)1694380 [11:19:47]line ИНН: 02508201610067 [11:19:47]line Контрольно-Кассовый Чек [11:19:47]line ПРОДАЖА [11:19:47]line ТРК (МРК, ГНК) : 63 [11:19:47]line Товар: 2710124130 [11:19:47]line Аи-92-К-5 [11:19:47]line 3.020 * 66.40 [11:19:47]line = 200.53 [11:19:47]line НДС 12% НСП 1% [11:19:47]line > о реализуемом товаре [11:19:47]line ОКРУГЛЕНИЕ: -0.53 [11:19:47]line ИТОГО: 200.00 [11:19:47]line Внесено: 200.00 [11:19:47]line СДАЧА: 0.00 [11:19:47]line НСП 1% : 1.77 [11:19:47]line НДС 12% : 21.29 [11:19:47]line Наличными: 200.00 [11:19:47]line Безнал.: 0.00 [11:19:47]line Место: АЗС № 144 "Партнер Нефть" [11:19:47]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:19:47]line СНО: Общий режим [11:19:47]line Чек 36 22.06.2024 11:19 [11:19:47]line Смена: 395 ФФД: 1.0 [11:19:47]line ЗНМ: 0300000170 [11:19:47]line РНМ: 0000000000095696 [11:19:47]line Версия ККМ: 001 [11:19:47]line ФМ: 0000000000875009 [11:19:47]line ФД: 76840 [11:19:47]line ФПД: 59988853407780 [11:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T111946&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76840&fm=59988853407780&tin=02508201610067®Number=0000000000095696&sum=20000 [11:19:47]written 0, free lines is 4095 [11:19:47]OFD Sender: Processing packet 76840 [packets to send 351, broken 350] [11:19:47]ProducePacketName [11:19:47]name=ofd_packets/00076840 [11:19:47]OFD Sender: To server: pG, [11:19:47]CommunicateWithHost lk.salyk.kg:30040 [11:19:47]ConnectInit lk.salyk.kg [11:19:47]Connected sock=10 [11:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 05 D8 07 01 AF E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 24 00 00 00 F4 03 04 00 52 B3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2C 01 00 35 04 06 00 36 8F 3E 4C 40 24 4C B1 FA 89 64 D5 3C 4B [11:19:48]Write to MH i2c: 01 00 00 72 01 73 [11:19:48]Write i2c OK [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: 01 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: 01 07 00 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: 01 07 00 72 01 00 00 00 00 00 E5 0C 6B [11:19:48]RasterBufferAndPrint [11:19:48]line [11:19:48]line [11:19:48]line [11:19:48]line [11:19:48]line [11:19:48]written 0, free lines is 3329 [11:19:48]MH_Cut [11:19:48]Write to MH i2c: D1 01 00 79 01 01 4C [11:19:48]Write i2c OK [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: D1 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: D1 01 00 [11:19:48]MH_I2C_Read... [11:19:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 FC 66 47 00 E5 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 28 2C 01 00 F4 03 04 00 EC 59 76 66 B6 04 01 00 00 7E 63 A1 1C BB 89 95 06 [11:19:48]CommunicateWithHost err = 0 [11:19:48]CheckOFDResponse [11:19:48]1017 (14) - 77093643461234 [11:19:48]1041 (16) - 0000000000875009 [11:19:48]1040 (4) - 76840 [11:19:48]1012 (4) - 22.06.2024 04:58 [11:19:48]1206 (1) - 0 [11:19:48]OFD Sender: Remove packet 76840 [11:19:48]ProducePacketName [11:19:48]name=ofd_packets/00076840 [11:19:48]NVStorageDeleteData [11:19:48]Read from MH i2c: D1 01 00 79 01 00 4B [11:19:48]Write to MH i2c: 01 00 00 7A 01 7B [11:19:48]Write i2c OK [11:19:48]MH_I2C_Read... [11:19:48]OFD Sender: No OFD packet to send [11:19:48]*** Cut start [11:19:48]*** Partial cut [11:19:48]*** CUTSNS_PIN = 1 [11:19:48]*** CUTSNS_PIN = 0 [11:19:49]*** Brake cut motor [11:19:49]Read from MH i2c: 01 [11:19:49]MH_I2C_Read... [11:19:49]*** Stop cut motor [11:19:49]*** Cut end [11:19:49]Read from MH i2c: 01 07 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 FF 0F 90 [11:19:49]process_action close_receipt done [11:19:49]requested_data is exist [11:19:49]produce_requested_data [11:19:49]requested_item fm.sn is exist - process it [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 11 00 00 [11:19:49]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 17 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 46 [11:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:19:49]wFMCommunicate OK [11:19:49]requested_item fd.num is exist - process it [11:19:49]SAM_PROTO_GetFieldsCounters [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 13 00 00 [11:19:49]Write to MH i2c: E2 08 00 7C 01 80 13 00 00 00 00 00 00 F9 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 62 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 62 00 7C 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 28 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [11:19: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 28 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:49]wFMCommunicate OK [11:19:49]SAM_PROTO_GetFieldsCounters done [11:19:49]requested_item shift.num is exist - process it [11:19:49]requested_item shift.opened is exist - process it [11:19:49]req_shift_opened [11:19:49]FM_GetShiftState [11:19:49]SAM_PROTO_GetShiftState [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 13 01 00 [11:19:49]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F1 [11:19:49]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:19:49]wFMCommunicate OK [11:19:49]SAM_PROTO_GetShiftState done [11:19:49]FM_GetShiftState done [11:19:49]req_shift_opened done [11:19:49]requested_item shift.open_date is exist - process it [11:19:49]req_shift_open_date [11:19:49]req_shift_open_date done [11:19:49]produce_requested_data done [11:19:49]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76840,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:19:49]process_action_free close_receipt [11:19:49]json_value_free [11:19:49]json_value_free done [11:19:49]process_json_proto returns [11:19:49]Send response to host [11:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76840,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:19:49]free response buf [11:19:49]execute_script done [11:19:49]execute_script returns [11:19:49]free content buf [11:19:49]Sock 9.Close socket [11:19:49]Sock 9.Thread stoped [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]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: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: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:49]accept exits with 8 [11:39:49]New connection [11:39:49]New thread 3067362660 created [11:39:49]Thread 3067219300 joined [11:39:49]Waiting for new connection... [11:39:49] Sock 8.Parse request [11:39:49]Sock 8.Check first char [11:39:49]Sock 8.First char is OK [11:39:49]request: POST /json_proto HTTP/1.0 [11:39:49]Method: POST [11:39:49]URL: /json_proto [11:39:49]Method is POST - this is cgi request [11:39:49]url: /json_proto [11:39:49]query_string will be loaded in cgi processing [11:39:49]execute_cgi json_proto POST (null) [11:39:49]execute_cgi path=json_proto method=POST [11:39:49]POST find Content-Length [11:39:49]Host: 172.17.39.195:8080 [11:39:49]Content-Length: 801 [11:39:49]Content-Type: application/json [11:39:49] [11:39:49]POST finish read [11:39:49]Found Content-Length = 801 [11:39:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:49]execute_script... [11:39: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)1694397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:49]POST & json_proto [11:39:49]process_json_proto [11:39:49]json parsed OK: [11:39:49]protocol is kg_v1.0 [11:39:49]action value=close_receipt [11:39:49]process_action close_receipt [11:39:49]cmd_close_receipt [11:39:49]MH_GetDate [11:39:49]Write to MH i2c: F0 00 00 7E 01 6E [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: F0 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: F0 09 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: F0 09 00 7E 01 00 06 B8 76 66 99 81 91 64 20 [11:39:49]GetLastDocTimeStamp 1719055186 [11:39:49]current date 1719056390 [11:39:49]FM_GetShiftState [11:39:49]SAM_PROTO_GetShiftState [11:39:49]wFMCommunicate request_size=4 [11:39:49]MH_SAM_APDU [11:39:49]CAPDU: 80 13 01 00 [11:39:49]Write to MH i2c: E2 08 00 7F 01 80 13 01 00 00 00 00 00 FD [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:49]Read from MH i2c: E2 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 0E 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 0E 00 7F 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F3 [11:39:49]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:39:49]wFMCommunicate OK [11:39:49]SAM_PROTO_GetShiftState done [11:39:49]FM_GetShiftState done [11:39:49]opened in 1719016435 [11:39:49]opened+sec_in_day 1719102835 [11:39:49]quantity*price = 20052 [11:39:49]sum+1 = 20054 [11:39:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.53 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.53 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 37 22.06.2024 11:39 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76841 ФПД: 200773567240640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113950&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76841&fm=200773567240640&tin=02508201610067®Number=0000000000095696&sum=20053 [11:39:50]StoreToDocumentArchive [11:39:50]shift 395 fd 76841 [11:39:50]save to /storage/0395/doc_00076841 [11:39:50]save last doc name /storage/0395/doc_00076841 to /storage/kkm_last_doc_name [11:39:50]save OK [11:39:50]Clear old archive folders... [11:39:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:50]tlvbuf is B6FB93A0 [11:39:50]SAM_PROTO_ClearQueue [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 09 00 00 [11:39:50]Write to MH i2c: E2 08 00 8C 01 80 09 00 00 00 00 00 00 FF [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 03 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [11:39:50]RAPDU: 90 00 [11:39:50]wFMCommunicate OK [11:39:50]SAM_PROTO_ClearQueue done [11:39:50]KKMCreateOFDPacket [11:39:50]OFDProtocolAddRootSTLVToBuf [11:39:50]FM_MakeSignedData [11:39:50]FM_MakeSignedData [11:39:50]SAM_PROTO_SignData [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 0D 01 02 [11:39:50]Write to MH i2c: E2 08 00 8D 01 80 0D 01 02 00 00 00 00 07 [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [11:39:51]RAPDU: 90 00 [11:39:51]wFMCommunicate OK [11:39:51]wFMCommunicate request_size=255 [11:39:51]MH_SAM_APDU [11:39: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 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 06 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2C 01 00 35 04 06 00 B6 [11:39:51]Write to MH i2c: E2 02 01 8E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 06 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2C 01 00 35 04 06 00 B6 00 00 42 [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]OFD Sender: No OFD packet to send [11:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [11:39:51]RAPDU: 90 00 [11:39:51]wFMCommunicate OK [11:39:51]wFMCommunicate request_size=10 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 0D 02 02 05 9A 3D 27 D9 C0 [11:39:51]Write to MH i2c: E2 0D 00 8F 01 80 0D 02 02 05 00 9A 3D 27 D9 C0 00 00 AB [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [11:39:51]RAPDU: 90 00 [11:39:51]wFMCommunicate OK [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 0D 03 02 [11:39:51]Write to MH i2c: E2 08 00 90 01 80 0D 03 02 00 00 00 00 0C [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 0B 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 0B 00 90 01 00 EF EC 74 F2 8D 64 5B 00 90 00 9A [11:39:51]RAPDU: EF EC 74 F2 8D 64 5B 00 90 00 [11:39:51]wFMCommunicate OK [11:39:51]SAM_PROTO_SignData done [11:39:51]FM_MakeSignedData done [11:39:51]CreateOFDProtocolMessage [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 11 00 00 [11:39:51]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 17 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5C [11:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:39:51]wFMCommunicate OK [11:39:51]CreateOFDProtocolMessage done [11:39:51]OFDSenderStorePacket 76841 [11:39:51]StoreOFDPacket docnum=76841 [11:39:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 98 16 07 01 A9 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 06 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2C 01 00 35 04 06 00 B6 9A 3D 27 D9 C0 EF EC 74 F2 8D 64 5B 00 [11:39:51]CheckFolder [11:39:51]dirname=/storage/ofd_packets [11:39:51]CheckFolder done [11:39:51]ProducePacketName [11:39:51]name=ofd_packets/00076841 [11:39:51]NVStorageSaveData ofd_packets/00076841 [11:39:51]File name is /storage/ofd_packets/00076841 [11:39:51]Write 301 bytes [11:39:51]NVStorageSaveData done [11:39:51]OFDSenderStorePacket done [11:39:51]KKMCreateOFDPacket done [11:39:51]NVStorageSaveData kkm_last_timestamp [11:39:51]File name is /storage/kkm_last_timestamp [11:39:51]Write 4 bytes [11:39:51]NVStorageSaveData done [11:39:51]ExternCall_PrintAddStr [11:39:51]wPrintStart [11:39:51]Write to MH i2c: 01 00 00 92 01 93 [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: 01 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: 01 07 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 FF 0F A8 [11:39:51]RasterBufferAndPrint [11:39:51]line Счет N : (1)1694397 [11:39:51]line ИНН: 02508201610067 [11:39:51]line Контрольно-Кассовый Чек [11:39:51]line ПРОДАЖА [11:39:51]line ТРК (МРК, ГНК) : 53 [11:39:51]line Товар: 2710124130 [11:39:51]line Аи-92-К-5 [11:39:51]line 3.020 * 66.40 [11:39:51]line = 200.53 [11:39:51]line НДС 12% НСП 1% [11:39:51]line > о реализуемом товаре [11:39:51]line ИТОГО: 200.53 [11:39:51]line НСП 1% : 1.77 [11:39:51]line НДС 12% : 21.29 [11:39:51]line Наличными: 0.00 [11:39:51]line Безнал.: 200.53 [11:39:51]line Место: АЗС № 144 "Партнер Нефть" [11:39:51]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:39:51]line СНО: Общий режим [11:39:51]line Чек 37 22.06.2024 11:39 [11:39:51]line Смена: 395 ФФД: 1.0 [11:39:51]line ЗНМ: 0300000170 [11:39:51]line РНМ: 0000000000095696 [11:39:51]line Версия ККМ: 001 [11:39:51]line Платежная система: O! деньги [11:39:51]line ФМ: 0000000000875009 [11:39:51]line ФД: 76841 [11:39:51]line ФПД: 200773567240640 [11:39:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T113950&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76841&fm=200773567240640&tin=02508201610067®Number=0000000000095696&sum=20053 [11:39:51]OFD Sender: Processing packet 76841 [packets to send 351, broken 350] [11:39:51]ProducePacketName [11:39:51]name=ofd_packets/00076841 [11:39:51]OFD Sender: To server: pG, [11:39:51]CommunicateWithHost lk.salyk.kg:30040 [11:39:51]ConnectInit lk.salyk.kg [11:39:51]written 0, free lines is 4095 [11:39:51]Connected sock=10 [11:39:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 98 16 07 01 A9 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 06 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2C 01 00 35 04 06 00 B6 9A 3D 27 D9 C0 EF EC 74 F2 8D 64 5B 00 [11:39:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B5 54 47 00 64 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 29 2C 01 00 F4 03 04 00 A0 5E 76 66 B6 04 01 00 00 59 65 CF FF 12 BC 72 98 [11:39:52]CommunicateWithHost err = 0 [11:39:52]CheckOFDResponse [11:39:52]1017 (14) - 77093643461234 [11:39:52]1041 (16) - 0000000000875009 [11:39:52]1040 (4) - 76841 [11:39:52]1012 (4) - 22.06.2024 05:18 [11:39:52]1206 (1) - 0 [11:39:52]OFD Sender: Remove packet 76841 [11:39:52]ProducePacketName [11:39:52]name=ofd_packets/00076841 [11:39:52]NVStorageDeleteData [11:39:52]Write to MH i2c: 01 00 00 BC 01 BD [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 07 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 E4 0C B4 [11:39:52]RasterBufferAndPrint [11:39:52]line [11:39:52]line [11:39:52]line [11:39:52]line [11:39:52]line [11:39:52]written 0, free lines is 3303 [11:39:52]MH_Cut [11:39:52]Write to MH i2c: D1 01 00 C3 01 01 96 [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: D1 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: D1 01 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: D1 01 00 C3 01 00 95 [11:39:52]Write to MH i2c: 01 00 00 C4 01 C5 [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]OFD Sender: No OFD packet to send [11:39:52]*** Cut start [11:39:52]*** Partial cut [11:39:52]*** CUTSNS_PIN = 1 [11:39:53]*** CUTSNS_PIN = 0 [11:39:53]*** Brake cut motor [11:39:53]Read from MH i2c: 01 [11:39:53]MH_I2C_Read... [11:39:53]*** Stop cut motor [11:39:53]*** Cut end [11:39:53]Read from MH i2c: 01 07 00 [11:39:53]MH_I2C_Read... [11:39:53]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [11:39:53]process_action close_receipt done [11:39:53]requested_data is exist [11:39:53]produce_requested_data [11:39:53]requested_item fm.sn is exist - process it [11:39:53]wFMCommunicate request_size=4 [11:39:53]MH_SAM_APDU [11:39:53]CAPDU: 80 11 00 00 [11:39:53]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [11:39:53]Write i2c OK [11:39:53]MH_I2C_Read... [11:39:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:53]Read from MH i2c: E2 [11:39:53]MH_I2C_Read... [11:39:53]Read from MH i2c: E2 17 00 [11:39:53]MH_I2C_Read... [11:39:53]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 90 [11:39:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:39:53]wFMCommunicate OK [11:39:53]requested_item fd.num is exist - process it [11:39:53]SAM_PROTO_GetFieldsCounters [11:39:53]wFMCommunicate request_size=4 [11:39:53]MH_SAM_APDU [11:39:53]CAPDU: 80 13 00 00 [11:39:53]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [11:39:53]Write i2c OK [11:39:53]MH_I2C_Read... [11:39:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:53]Read from MH i2c: E2 [11:39:53]MH_I2C_Read... [11:39:53]Read from MH i2c: E2 62 00 [11:39:53]MH_I2C_Read... [11:39:53]Read from MH i2c: E2 62 00 C6 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 29 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [11:39: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 29 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:53]wFMCommunicate OK [11:39:53]SAM_PROTO_GetFieldsCounters done [11:39:53]requested_item shift.num is exist - process it [11:39:53]requested_item shift.opened is exist - process it [11:39:53]req_shift_opened [11:39:53]FM_GetShiftState [11:39:53]SAM_PROTO_GetShiftState [11:39:53]wFMCommunicate request_size=4 [11:39:53]MH_SAM_APDU [11:39:53]CAPDU: 80 13 01 00 [11:39:53]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [11:39:53]Write i2c OK [11:39:53]MH_I2C_Read... [11:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:53]Read from MH i2c: E2 [11:39:53]MH_I2C_Read... [11:39:53]Read from MH i2c: E2 0E 00 [11:39:53]MH_I2C_Read... [11:39:53]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 3B [11:39:53]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:39:53]wFMCommunicate OK [11:39:53]SAM_PROTO_GetShiftState done [11:39:53]FM_GetShiftState done [11:39:53]req_shift_opened done [11:39:53]requested_item shift.open_date is exist - process it [11:39:53]req_shift_open_date [11:39:53]req_shift_open_date done [11:39:53]produce_requested_data done [11:39:53]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76841,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:39:53]process_action_free close_receipt [11:39:53]json_value_free [11:39:53]json_value_free done [11:39:53]process_json_proto returns [11:39:53]Send response to host [11:39:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76841,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:39:53]free response buf [11:39:53]execute_script done [11:39:53]execute_script returns [11:39:53]free content buf [11:39:53]Sock 8.Close socket [11:39:53]Sock 8.Thread stoped [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:15]accept exits with 9 [11:40:15]New connection [11:40:15]New thread 3067219300 created [11:40:15]Thread 3067362660 joined [11:40:15]Waiting for new connection... [11:40:15] Sock 9.Parse request [11:40:15]Sock 9.Check first char [11:40:15]Sock 9.First char is OK [11:40:15]request: POST /json_proto HTTP/1.0 [11:40:15]Method: POST [11:40:15]URL: /json_proto [11:40:15]Method is POST - this is cgi request [11:40:15]url: /json_proto [11:40:15]query_string will be loaded in cgi processing [11:40:15]execute_cgi json_proto POST (null) [11:40:15]execute_cgi path=json_proto method=POST [11:40:15]POST find Content-Length [11:40:15]Host: 172.17.39.195:8080 [11:40:15]Content-Length: 801 [11:40:15]Content-Type: application/json [11:40:15] [11:40:15]POST finish read [11:40:15]Found Content-Length = 801 [11:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:15]execute_script... [11:40: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)1694396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:15]POST & json_proto [11:40:15]process_json_proto [11:40:15]json parsed OK: [11:40:15]protocol is kg_v1.0 [11:40:15]action value=close_receipt [11:40:15]process_action close_receipt [11:40:15]cmd_close_receipt [11:40:15]MH_GetDate [11:40:15]Write to MH i2c: F0 00 00 C8 01 B8 [11:40:15]Write i2c OK [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: F0 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: F0 09 00 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: F0 09 00 C8 01 00 20 B8 76 66 99 81 91 64 84 [11:40:15]GetLastDocTimeStamp 1719056390 [11:40:15]current date 1719056416 [11:40:15]FM_GetShiftState [11:40:15]SAM_PROTO_GetShiftState [11:40:15]wFMCommunicate request_size=4 [11:40:15]MH_SAM_APDU [11:40:15]CAPDU: 80 13 01 00 [11:40:15]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [11:40:15]Write i2c OK [11:40:15]MH_I2C_Read... [11:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:15]Read from MH i2c: E2 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 0E 00 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 3D [11:40:15]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:40:15]wFMCommunicate OK [11:40:15]SAM_PROTO_GetShiftState done [11:40:15]FM_GetShiftState done [11:40:15]opened in 1719016435 [11:40:15]opened+sec_in_day 1719102835 [11:40:15]quantity*price = 50030 [11:40:15]sum+1 = 50031 [11:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.30 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.30 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 38 22.06.2024 11:40 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76842 ФПД: 128181214567479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114016&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76842&fm=128181214567479&tin=02508201610067®Number=0000000000095696&sum=50030 [11:40:16]StoreToDocumentArchive [11:40:16]shift 395 fd 76842 [11:40:16]save to /storage/0395/doc_00076842 [11:40:16]save last doc name /storage/0395/doc_00076842 to /storage/kkm_last_doc_name [11:40:16]save OK [11:40:16]Clear old archive folders... [11:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:16]tlvbuf is 0097A020 [11:40:16]SAM_PROTO_ClearQueue [11:40:16]wFMCommunicate request_size=4 [11:40:16]MH_SAM_APDU [11:40:16]CAPDU: 80 09 00 00 [11:40:16]Write to MH i2c: E2 08 00 D6 01 80 09 00 00 00 00 00 00 49 [11:40:16]Write i2c OK [11:40:16]MH_I2C_Read... [11:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:16]Read from MH i2c: E2 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: E2 03 00 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [11:40:16]RAPDU: 90 00 [11:40:16]wFMCommunicate OK [11:40:16]SAM_PROTO_ClearQueue done [11:40:16]KKMCreateOFDPacket [11:40:16]OFDProtocolAddRootSTLVToBuf [11:40:16]FM_MakeSignedData [11:40:16]FM_MakeSignedData [11:40:16]SAM_PROTO_SignData [11:40:16]wFMCommunicate request_size=4 [11:40:16]MH_SAM_APDU [11:40:16]CAPDU: 80 0D 01 02 [11:40:16]Write to MH i2c: E2 08 00 D7 01 80 0D 01 02 00 00 00 00 51 [11:40:16]Write i2c OK [11:40:16]MH_I2C_Read... [11:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:16]Read from MH i2c: E2 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: E2 03 00 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [11:40:16]RAPDU: 90 00 [11:40:16]wFMCommunicate OK [11:40:16]wFMCommunicate request_size=255 [11:40:16]MH_SAM_APDU [11:40: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 20 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2C 01 00 35 04 06 00 74 [11:40:16]Write to MH i2c: E2 02 01 D8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 20 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2C 01 00 35 04 06 00 74 00 00 3F [11:40:16]Write i2c OK [11:40:16]MH_I2C_Read... [11:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:16]Read from MH i2c: E2 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: E2 03 00 [11:40:16]MH_I2C_Read... [11:40:16]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [11:40:16]RAPDU: 90 00 [11:40:16]wFMCommunicate OK [11:40:16]wFMCommunicate request_size=10 [11:40:16]MH_SAM_APDU [11:40:16]CAPDU: 80 0D 02 02 05 94 83 C2 DC 37 [11:40:16]Write to MH i2c: E2 0D 00 D9 01 80 0D 02 02 05 00 94 83 C2 DC 37 00 00 4A [11:40:16]Write i2c OK [11:40:16]MH_I2C_Read... [11:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:17]Read from MH i2c: E2 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 03 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [11:40:17]RAPDU: 90 00 [11:40:17]wFMCommunicate OK [11:40:17]wFMCommunicate request_size=4 [11:40:17]MH_SAM_APDU [11:40:17]CAPDU: 80 0D 03 02 [11:40:17]Write to MH i2c: E2 08 00 DA 01 80 0D 03 02 00 00 00 00 56 [11:40:17]Write i2c OK [11:40:17]MH_I2C_Read... [11:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:17]Read from MH i2c: E2 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 0B 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 0B 00 DA 01 00 95 7B EA 1E 9B ED 26 E9 90 00 06 [11:40:17]RAPDU: 95 7B EA 1E 9B ED 26 E9 90 00 [11:40:17]wFMCommunicate OK [11:40:17]SAM_PROTO_SignData done [11:40:17]FM_MakeSignedData done [11:40:17]CreateOFDProtocolMessage [11:40:17]wFMCommunicate request_size=4 [11:40:17]MH_SAM_APDU [11:40:17]CAPDU: 80 11 00 00 [11:40:17]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [11:40:17]Write i2c OK [11:40:17]MH_I2C_Read... [11:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:17]Read from MH i2c: E2 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 17 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A6 [11:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:40:17]wFMCommunicate OK [11:40:17]CreateOFDProtocolMessage done [11:40:17]OFDSenderStorePacket 76842 [11:40:17]StoreOFDPacket docnum=76842 [11:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 FA B2 07 01 19 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 20 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2C 01 00 35 04 06 00 74 94 83 C2 DC 37 95 7B EA 1E 9B ED 26 E9 [11:40:17]CheckFolder [11:40:17]dirname=/storage/ofd_packets [11:40:17]CheckFolder done [11:40:17]ProducePacketName [11:40:17]name=ofd_packets/00076842 [11:40:17]NVStorageSaveData ofd_packets/00076842 [11:40:17]File name is /storage/ofd_packets/00076842 [11:40:17]Write 301 bytes [11:40:17]NVStorageSaveData done [11:40:17]OFDSenderStorePacket done [11:40:17]KKMCreateOFDPacket done [11:40:17]NVStorageSaveData kkm_last_timestamp [11:40:17]File name is /storage/kkm_last_timestamp [11:40:17]Write 4 bytes [11:40:17]NVStorageSaveData done [11:40:17]ExternCall_PrintAddStr [11:40:17]wPrintStart [11:40:17]Write to MH i2c: 01 00 00 DC 01 DD [11:40:17]Write i2c OK [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: 01 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: 01 07 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [11:40:17]RasterBufferAndPrint [11:40:17]line Счет N : (1)1694396 [11:40:17]line ИНН: 02508201610067 [11:40:17]line Контрольно-Кассовый Чек [11:40:17]line ПРОДАЖА [11:40:17]line ТРК (МРК, ГНК) : 61 [11:40:17]line Товар: 2710124500 [11:40:17]line Аи-95-К-3 [11:40:17]line 6.770 * 73.90 [11:40:17]line = 500.30 [11:40:17]line НДС 12% НСП 1% [11:40:17]line > о реализуемом товаре [11:40:17]line ИТОГО: 500.30 [11:40:17]line НСП 1% : 4.43 [11:40:17]line НДС 12% : 53.13 [11:40:17]line Наличными: 0.00 [11:40:17]line Безнал.: 500.30 [11:40:17]line Место: АЗС № 144 "Партнер Нефть" [11:40:17]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:40:17]line СНО: Общий режим [11:40:17]line Чек 38 22.06.2024 11:40 [11:40:17]line Смена: 395 ФФД: 1.0 [11:40:17]line ЗНМ: 0300000170 [11:40:17]line РНМ: 0000000000095696 [11:40:17]line Версия ККМ: 001 [11:40:17]line Платежная система: O! деньги [11:40:17]line ФМ: 0000000000875009 [11:40:17]line ФД: 76842 [11:40:17]line ФПД: 128181214567479 [11:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114016&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76842&fm=128181214567479&tin=02508201610067®Number=0000000000095696&sum=50030 [11:40:17]written 0, free lines is 4095 [11:40:17]OFD Sender: Processing packet 76842 [packets to send 351, broken 350] [11:40:17]ProducePacketName [11:40:17]name=ofd_packets/00076842 [11:40:17]OFD Sender: To server: pG, [11:40:17]CommunicateWithHost lk.salyk.kg:30040 [11:40:17]ConnectInit lk.salyk.kg [11:40:17]Connected sock=10 [11:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 FA B2 07 01 19 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 20 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2C 01 00 35 04 06 00 74 94 83 C2 DC 37 95 7B EA 1E 9B ED 26 E9 [11:40:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 A7 D9 47 00 7A 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2A 2C 01 00 F4 03 04 00 BA 5E 76 66 B6 04 01 00 00 50 6F EA B1 98 3D EA FC [11:40:17]CommunicateWithHost err = 0 [11:40:17]CheckOFDResponse [11:40:17]1017 (14) - 77093643461234 [11:40:17]1041 (16) - 0000000000875009 [11:40:17]1040 (4) - 76842 [11:40:17]1012 (4) - 22.06.2024 05:18 [11:40:17]1206 (1) - 0 [11:40:17]OFD Sender: Remove packet 76842 [11:40:17]ProducePacketName [11:40:17]name=ofd_packets/00076842 [11:40:17]NVStorageDeleteData [11:40:17]Write to MH i2c: 01 00 00 06 02 08 [11:40:17]Write i2c OK [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: 01 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: 01 07 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 E0 0C FB [11:40:17]RasterBufferAndPrint [11:40:17]line [11:40:17]line [11:40:17]line [11:40:17]line [11:40:17]line [11:40:17]written 0, free lines is 3302 [11:40:17]MH_Cut [11:40:17]Write to MH i2c: D1 01 00 0D 02 01 E1 [11:40:17]Write i2c OK [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: D1 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: D1 01 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: D1 01 00 0D 02 00 E0 [11:40:17]Write to MH i2c: 01 00 00 0E 02 10 [11:40:17]Write i2c OK [11:40:17]MH_I2C_Read... [11:40:18]OFD Sender: No OFD packet to send [11:40:18]*** Cut start [11:40:18]*** Partial cut [11:40:18]*** CUTSNS_PIN = 1 [11:40:18]*** CUTSNS_PIN = 0 [11:40:18]*** Brake cut motor [11:40:18]Read from MH i2c: 01 [11:40:18]MH_I2C_Read... [11:40:18]*** Stop cut motor [11:40:18]*** Cut end [11:40:18]Read from MH i2c: 01 07 00 [11:40:18]MH_I2C_Read... [11:40:18]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [11:40:18]process_action close_receipt done [11:40:18]requested_data is exist [11:40:18]produce_requested_data [11:40:18]requested_item fm.sn is exist - process it [11:40:18]wFMCommunicate request_size=4 [11:40:18]MH_SAM_APDU [11:40:18]CAPDU: 80 11 00 00 [11:40:18]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [11:40:18]Write i2c OK [11:40:18]MH_I2C_Read... [11:40:18]Read from MH i2c: E2 [11:40:18]MH_I2C_Read... [11:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:18]Read from MH i2c: E2 17 00 [11:40:18]MH_I2C_Read... [11:40:18]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DB [11:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:40:18]wFMCommunicate OK [11:40:18]requested_item fd.num is exist - process it [11:40:18]SAM_PROTO_GetFieldsCounters [11:40:18]wFMCommunicate request_size=4 [11:40:18]MH_SAM_APDU [11:40:18]CAPDU: 80 13 00 00 [11:40:18]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [11:40:18]Write i2c OK [11:40:18]MH_I2C_Read... [11:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:19]Read from MH i2c: E2 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 62 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 62 00 10 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11:40: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:19]wFMCommunicate OK [11:40:19]SAM_PROTO_GetFieldsCounters done [11:40:19]requested_item shift.num is exist - process it [11:40:19]requested_item shift.opened is exist - process it [11:40:19]req_shift_opened [11:40:19]FM_GetShiftState [11:40:19]SAM_PROTO_GetShiftState [11:40:19]wFMCommunicate request_size=4 [11:40:19]MH_SAM_APDU [11:40:19]CAPDU: 80 13 01 00 [11:40:19]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:19]Read from MH i2c: E2 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 0E 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 86 [11:40:19]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:40:19]wFMCommunicate OK [11:40:19]SAM_PROTO_GetShiftState done [11:40:19]FM_GetShiftState done [11:40:19]req_shift_opened done [11:40:19]requested_item shift.open_date is exist - process it [11:40:19]req_shift_open_date [11:40:19]req_shift_open_date done [11:40:19]produce_requested_data done [11:40:19]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76842,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:40:19]process_action_free close_receipt [11:40:19]json_value_free [11:40:19]json_value_free done [11:40:19]process_json_proto returns [11:40:19]Send response to host [11:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76842,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:40:19]free response buf [11:40:19]execute_script done [11:40:19]execute_script returns [11:40:19]free content buf [11:40:19]Sock 9.Close socket [11:40:19]Sock 9.Thread stoped [11:40:20]accept exits with 8 [11:40:20]New connection [11:40:20]New thread 3067362660 created [11:40:20]Thread 3067219300 joined [11:40:20]Waiting for new connection... [11:40:20] Sock 8.Parse request [11:40:20]Sock 8.Check first char [11:40:20]Sock 8.First char is OK [11:40:20]request: POST /json_proto HTTP/1.0 [11:40:20]Method: POST [11:40:20]URL: /json_proto [11:40:20]Method is POST - this is cgi request [11:40:20]url: /json_proto [11:40:20]query_string will be loaded in cgi processing [11:40:20]execute_cgi json_proto POST (null) [11:40:20]execute_cgi path=json_proto method=POST [11:40:20]POST find Content-Length [11:40:20]Host: 172.17.39.195:8080 [11:40:20]Content-Length: 801 [11:40:20]Content-Type: application/json [11:40:20] [11:40:20]POST finish read [11:40:20]Found Content-Length = 801 [11:40:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:20]execute_script... [11:40: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)1694398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:20]POST & json_proto [11:40:20]process_json_proto [11:40:20]json parsed OK: [11:40:20]protocol is kg_v1.0 [11:40:20]action value=close_receipt [11:40:20]process_action close_receipt [11:40:20]cmd_close_receipt [11:40:20]MH_GetDate [11:40:20]Write to MH i2c: F0 00 00 12 02 03 [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: F0 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: F0 09 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: F0 09 00 12 02 00 25 B8 76 66 99 81 91 64 D4 [11:40:20]GetLastDocTimeStamp 1719056416 [11:40:20]current date 1719056421 [11:40:20]FM_GetShiftState [11:40:20]SAM_PROTO_GetShiftState [11:40:20]wFMCommunicate request_size=4 [11:40:20]MH_SAM_APDU [11:40:20]CAPDU: 80 13 01 00 [11:40:20]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:20]Read from MH i2c: E2 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 0E 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 88 [11:40:20]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:40:20]wFMCommunicate OK [11:40:20]SAM_PROTO_GetShiftState done [11:40:20]FM_GetShiftState done [11:40:20]opened in 1719016435 [11:40:20]opened+sec_in_day 1719102835 [11:40:20]quantity*price = 50065 [11:40:20]sum+1 = 50067 [11:40:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 39 22.06.2024 11:40 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76843 ФПД: 263887209780125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114021&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76843&fm=263887209780125&tin=02508201610067®Number=0000000000095696&sum=50066 [11:40:21]StoreToDocumentArchive [11:40:21]shift 395 fd 76843 [11:40:21]save to /storage/0395/doc_00076843 [11:40:21]save last doc name /storage/0395/doc_00076843 to /storage/kkm_last_doc_name [11:40:21]save OK [11:40:21]Clear old archive folders... [11:40:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:21]tlvbuf is 008E6EA0 [11:40:21]SAM_PROTO_ClearQueue [11:40:21]wFMCommunicate request_size=4 [11:40:21]MH_SAM_APDU [11:40:21]CAPDU: 80 09 00 00 [11:40:21]Write to MH i2c: E2 08 00 20 02 80 09 00 00 00 00 00 00 94 [11:40:21]Write i2c OK [11:40:21]MH_I2C_Read... [11:40:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:21]Read from MH i2c: E2 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: E2 03 00 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [11:40:21]RAPDU: 90 00 [11:40:21]wFMCommunicate OK [11:40:21]SAM_PROTO_ClearQueue done [11:40:21]KKMCreateOFDPacket [11:40:21]OFDProtocolAddRootSTLVToBuf [11:40:21]FM_MakeSignedData [11:40:21]FM_MakeSignedData [11:40:21]SAM_PROTO_SignData [11:40:21]wFMCommunicate request_size=4 [11:40:21]MH_SAM_APDU [11:40:21]CAPDU: 80 0D 01 02 [11:40:21]Write to MH i2c: E2 08 00 21 02 80 0D 01 02 00 00 00 00 9C [11:40:21]Write i2c OK [11:40:21]MH_I2C_Read... [11:40:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:21]Read from MH i2c: E2 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: E2 03 00 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [11:40:21]RAPDU: 90 00 [11:40:21]wFMCommunicate OK [11:40:21]wFMCommunicate request_size=255 [11:40:21]MH_SAM_APDU [11:40:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 25 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2C 01 00 35 04 06 00 F0 [11:40:21]Write to MH i2c: E2 02 01 22 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 25 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2C 01 00 35 04 06 00 F0 00 00 8F [11:40:21]Write i2c OK [11:40:21]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [11:40:22]RAPDU: 90 00 [11:40:22]wFMCommunicate OK [11:40:22]wFMCommunicate request_size=10 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 0D 02 02 05 01 07 66 53 9D [11:40:22]Write to MH i2c: E2 0D 00 23 02 80 0D 02 02 05 00 01 07 66 53 9D 00 00 07 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [11:40:22]RAPDU: 90 00 [11:40:22]wFMCommunicate OK [11:40:22]wFMCommunicate request_size=4 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 0D 03 02 [11:40:22]Write to MH i2c: E2 08 00 24 02 80 0D 03 02 00 00 00 00 A1 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 0B 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 0B 00 24 02 00 C1 61 9E 99 B5 2F 04 38 90 00 1B [11:40:22]RAPDU: C1 61 9E 99 B5 2F 04 38 90 00 [11:40:22]wFMCommunicate OK [11:40:22]SAM_PROTO_SignData done [11:40:22]FM_MakeSignedData done [11:40:22]CreateOFDProtocolMessage [11:40:22]wFMCommunicate request_size=4 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 11 00 00 [11:40:22]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 17 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F1 [11:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:40:22]wFMCommunicate OK [11:40:22]CreateOFDProtocolMessage done [11:40:22]OFDSenderStorePacket 76843 [11:40:22]StoreOFDPacket docnum=76843 [11:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 BC 32 07 01 6A C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 25 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2C 01 00 35 04 06 00 F0 01 07 66 53 9D C1 61 9E 99 B5 2F 04 38 [11:40:22]CheckFolder [11:40:22]dirname=/storage/ofd_packets [11:40:22]CheckFolder done [11:40:22]ProducePacketName [11:40:22]name=ofd_packets/00076843 [11:40:22]NVStorageSaveData ofd_packets/00076843 [11:40:22]File name is /storage/ofd_packets/00076843 [11:40:22]Write 301 bytes [11:40:22]NVStorageSaveData done [11:40:22]OFDSenderStorePacket done [11:40:22]KKMCreateOFDPacket done [11:40:22]NVStorageSaveData kkm_last_timestamp [11:40:22]File name is /storage/kkm_last_timestamp [11:40:22]Write 4 bytes [11:40:22]NVStorageSaveData done [11:40:22]ExternCall_PrintAddStr [11:40:22]wPrintStart [11:40:22]Write to MH i2c: 01 00 00 26 02 28 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 07 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [11:40:22]RasterBufferAndPrint [11:40:22]line Счет N : (1)1694398 [11:40:22]line ИНН: 02508201610067 [11:40:22]line Контрольно-Кассовый Чек [11:40:22]line ПРОДАЖА [11:40:22]line ТРК (МРК, ГНК) : 43 [11:40:22]line Товар: 2710124130 [11:40:22]line Аи-92-К-5 [11:40:22]line 7.540 * 66.40 [11:40:22]line = 500.66 [11:40:22]line НДС 12% НСП 1% [11:40:22]line > о реализуемом товаре [11:40:22]line ИТОГО: 500.66 [11:40:22]line НСП 1% : 4.43 [11:40:22]line НДС 12% : 53.17 [11:40:22]line Наличными: 0.00 [11:40:22]line Безнал.: 500.66 [11:40:22]line Место: АЗС № 144 "Партнер Нефть" [11:40:22]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:40:22]line СНО: Общий режим [11:40:22]line Чек 39 22.06.2024 11:40 [11:40:22]line Смена: 395 ФФД: 1.0 [11:40:22]line ЗНМ: 0300000170 [11:40:22]line РНМ: 0000000000095696 [11:40:22]line Версия ККМ: 001 [11:40:22]line Платежная система: O! деньги [11:40:22]line ФМ: 0000000000875009 [11:40:22]line ФД: 76843 [11:40:22]line ФПД: 263887209780125 [11:40:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114021&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76843&fm=263887209780125&tin=02508201610067®Number=0000000000095696&sum=50066 [11:40:22]written 0, free lines is 4095 [11:40:22]OFD Sender: Processing packet 76843 [packets to send 351, broken 350] [11:40:22]ProducePacketName [11:40:22]name=ofd_packets/00076843 [11:40:22]OFD Sender: To server: pG, [11:40:22]CommunicateWithHost lk.salyk.kg:30040 [11:40:22]ConnectInit lk.salyk.kg [11:40:22]Connected sock=10 [11:40:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 BC 32 07 01 6A C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 25 B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2C 01 00 35 04 06 00 F0 01 07 66 53 9D C1 61 9E 99 B5 2F 04 38 [11:40:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 89 EA 47 00 3E 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2B 2C 01 00 F4 03 04 00 BF 5E 76 66 B6 04 01 00 00 B1 30 89 F3 09 25 BD A5 [11:40:22]CommunicateWithHost err = 0 [11:40:22]CheckOFDResponse [11:40:22]1017 (14) - 77093643461234 [11:40:22]1041 (16) - 0000000000875009 [11:40:22]1040 (4) - 76843 [11:40:22]1012 (4) - 22.06.2024 05:18 [11:40:22]1206 (1) - 0 [11:40:22]OFD Sender: Remove packet 76843 [11:40:22]ProducePacketName [11:40:22]name=ofd_packets/00076843 [11:40:22]NVStorageDeleteData [11:40:22]Write to MH i2c: 01 00 00 50 02 52 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 07 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 07 00 50 02 00 00 00 00 00 32 0D 98 [11:40:22]RasterBufferAndPrint [11:40:22]line [11:40:22]line [11:40:22]line [11:40:22]line [11:40:22]line [11:40:22]written 0, free lines is 3392 [11:40:22]MH_Cut [11:40:22]Write to MH i2c: D1 01 00 57 02 01 2B [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: D1 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: D1 01 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: D1 01 00 57 02 00 2A [11:40:22]Write to MH i2c: 01 00 00 58 02 5A [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:23]OFD Sender: No OFD packet to send [11:40:23]*** Cut start [11:40:23]*** Partial cut [11:40:23]*** CUTSNS_PIN = 1 [11:40:23]*** CUTSNS_PIN = 0 [11:40:23]*** Brake cut motor [11:40:24]Read from MH i2c: 01 [11:40:24]MH_I2C_Read... [11:40:24]*** Stop cut motor [11:40:24]*** Cut end [11:40:24]Read from MH i2c: 01 07 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 FF 0F 6F [11:40:24]process_action close_receipt done [11:40:24]requested_data is exist [11:40:24]produce_requested_data [11:40:24]requested_item fm.sn is exist - process it [11:40:24]wFMCommunicate request_size=4 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 11 00 00 [11:40:24]Write to MH i2c: E2 08 00 59 02 80 11 00 00 00 00 00 00 D5 [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 17 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 17 00 59 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 25 [11:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:40:24]wFMCommunicate OK [11:40:24]requested_item fd.num is exist - process it [11:40:24]SAM_PROTO_GetFieldsCounters [11:40:24]wFMCommunicate request_size=4 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 13 00 00 [11:40:24]Write to MH i2c: E2 08 00 5A 02 80 13 00 00 00 00 00 00 D8 [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 62 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 62 00 5A 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [11:40:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:24]wFMCommunicate OK [11:40:24]SAM_PROTO_GetFieldsCounters done [11:40:24]requested_item shift.num is exist - process it [11:40:24]requested_item shift.opened is exist - process it [11:40:24]req_shift_opened [11:40:24]FM_GetShiftState [11:40:24]SAM_PROTO_GetShiftState [11:40:24]wFMCommunicate request_size=4 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 13 01 00 [11:40:24]Write to MH i2c: E2 08 00 5B 02 80 13 01 00 00 00 00 00 DA [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 0E 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 0E 00 5B 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 D0 [11:40:24]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:40:24]wFMCommunicate OK [11:40:24]SAM_PROTO_GetShiftState done [11:40:24]FM_GetShiftState done [11:40:24]req_shift_opened done [11:40:24]requested_item shift.open_date is exist - process it [11:40:24]req_shift_open_date [11:40:24]req_shift_open_date done [11:40:24]produce_requested_data done [11:40:24]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76843,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:40:24]process_action_free close_receipt [11:40:24]json_value_free [11:40:24]json_value_free done [11:40:24]process_json_proto returns [11:40:24]Send response to host [11:40:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76843,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:40:24]free response buf [11:40:24]execute_script done [11:40:24]execute_script returns [11:40:24]free content buf [11:40:24]Sock 8.Close socket [11:40:24]Sock 8.Thread stoped [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:25]accept exits with 9 [11:43:25]New connection [11:43:25]New thread 3067219300 created [11:43:25]Thread 3067362660 joined [11:43:25]Waiting for new connection... [11:43:25] Sock 9.Parse request [11:43:25]Sock 9.Check first char [11:43:25]Sock 9.First char is OK [11:43:25]request: POST /json_proto HTTP/1.0 [11:43:25]Method: POST [11:43:25]URL: /json_proto [11:43:25]Method is POST - this is cgi request [11:43:25]url: /json_proto [11:43:25]query_string will be loaded in cgi processing [11:43:25]execute_cgi json_proto POST (null) [11:43:25]execute_cgi path=json_proto method=POST [11:43:25]POST find Content-Length [11:43:25]Host: 172.17.39.195:8080 [11:43:25]Content-Length: 737 [11:43:25]Content-Type: application/json [11:43:25] [11:43:25]POST finish read [11:43:25]Found Content-Length = 737 [11:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220919", "tax_sys" : 0, "items" : [ { "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:25]execute_script... [11:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220919", "tax_sys" : 0, "items" : [ { "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:25]POST & json_proto [11:43:25]process_json_proto [11:43:25]json parsed OK: [11:43:25]protocol is kg_v1.0 [11:43:25]action value=close_receipt [11:43:25]process_action close_receipt [11:43:25]cmd_close_receipt [11:43:25]MH_GetDate [11:43:25]Write to MH i2c: F0 00 00 5C 02 4D [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: F0 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: F0 09 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: F0 09 00 5C 02 00 DE B8 76 66 99 81 91 64 D7 [11:43:25]GetLastDocTimeStamp 1719056421 [11:43:25]current date 1719056606 [11:43:25]FM_GetShiftState [11:43:25]SAM_PROTO_GetShiftState [11:43:25]wFMCommunicate request_size=4 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 13 01 00 [11:43:25]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 0E 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 D2 [11:43:25]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:43:25]wFMCommunicate OK [11:43:25]SAM_PROTO_GetShiftState done [11:43:25]FM_GetShiftState done [11:43:25]opened in 1719016435 [11:43:25]opened+sec_in_day 1719102835 [11:43:25]quantity*price = 8100 [11:43:25]sum+1 = 8101 [11:43:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 81.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 40 22.06.2024 11:43 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76844 ФПД: 199612513989233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114326&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76844&fm=199612513989233&tin=02508201610067®Number=0000000000095696&sum=8100 0 [11:43:26]StoreToDocumentArchive [11:43:26]shift 395 fd 76844 [11:43:26]save to /storage/0395/doc_00076844 [11:43:26]save last doc name /storage/0395/doc_00076844 to /storage/kkm_last_doc_name [11:43:26]save OK [11:43:26]Clear old archive folders... [11:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=308 [11:43:26]tlvbuf is 008E94A0 [11:43:26]SAM_PROTO_ClearQueue [11:43:26]wFMCommunicate request_size=4 [11:43:26]MH_SAM_APDU [11:43:26]CAPDU: 80 09 00 00 [11:43:26]Write to MH i2c: E2 08 00 6A 02 80 09 00 00 00 00 00 00 DE [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:26]Read from MH i2c: E2 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [11:43:26]RAPDU: 90 00 [11:43:26]wFMCommunicate OK [11:43:26]SAM_PROTO_ClearQueue done [11:43:26]KKMCreateOFDPacket [11:43:26]OFDProtocolAddRootSTLVToBuf [11:43:26]FM_MakeSignedData [11:43:26]FM_MakeSignedData [11:43:26]SAM_PROTO_SignData [11:43:26]wFMCommunicate request_size=4 [11:43:26]MH_SAM_APDU [11:43:26]CAPDU: 80 0D 01 02 [11:43:26]Write to MH i2c: E2 08 00 6B 02 80 0D 01 02 00 00 00 00 E6 [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:26]Read from MH i2c: E2 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [11:43:26]RAPDU: 90 00 [11:43:26]wFMCommunicate OK [11:43:26]wFMCommunicate request_size=255 [11:43:26]MH_SAM_APDU [11:43:26]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 DE B8 76 66 0E 04 04 00 8B 01 00 00 B9 [11:43:26]Write to MH i2c: E2 02 01 6C 02 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 DE B8 76 66 0E 04 04 00 8B 01 00 00 B9 00 00 BC [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [11:43:27]RAPDU: 90 00 [11:43:27]wFMCommunicate OK [11:43:27]wFMCommunicate request_size=67 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2C 01 00 35 04 06 00 B5 8B E8 FD 32 71 [11:43:27]Write to MH i2c: E2 46 00 6D 02 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2C 01 00 35 04 06 00 B5 8B E8 FD 32 71 00 00 69 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [11:43:27]RAPDU: 90 00 [11:43:27]wFMCommunicate OK [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 0D 03 02 [11:43:27]Write to MH i2c: E2 08 00 6E 02 80 0D 03 02 00 00 00 00 EB [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 0B 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 0B 00 6E 02 00 B2 50 9A 35 1F 26 B1 B4 90 00 67 [11:43:27]RAPDU: B2 50 9A 35 1F 26 B1 B4 90 00 [11:43:27]wFMCommunicate OK [11:43:27]SAM_PROTO_SignData done [11:43:27]FM_MakeSignedData done [11:43:27]CreateOFDProtocolMessage [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 11 00 00 [11:43:27]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 17 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3B [11:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:43:27]wFMCommunicate OK [11:43:27]CreateOFDProtocolMessage done [11:43:27]OFDSenderStorePacket 76844 [11:43:27]StoreOFDPacket docnum=76844 [11:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 48 01 00 00 F9 0F 40 01 10 57 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 DE B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2C 01 00 35 04 06 00 B5 8B E8 FD 32 71 B2 50 9A 35 1F 26 B1 B4 [11:43:27]CheckFolder [11:43:27]dirname=/storage/ofd_packets [11:43:27]CheckFolder done [11:43:27]ProducePacketName [11:43:27]name=ofd_packets/00076844 [11:43:27]NVStorageSaveData ofd_packets/00076844 [11:43:27]File name is /storage/ofd_packets/00076844 [11:43:27]Write 358 bytes [11:43:27]NVStorageSaveData done [11:43:27]OFDSenderStorePacket done [11:43:27]KKMCreateOFDPacket done [11:43:27]NVStorageSaveData kkm_last_timestamp [11:43:27]File name is /storage/kkm_last_timestamp [11:43:27]Write 4 bytes [11:43:27]NVStorageSaveData done [11:43:27]ExternCall_PrintAddStr [11:43:27]wPrintStart [11:43:27]Write to MH i2c: 01 00 00 70 02 72 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [11:43:27]RasterBufferAndPrint [11:43:27]line Счет N : (3)220919 [11:43:27]line ИНН: 02508201610067 [11:43:27]line Контрольно-Кассовый Чек [11:43:27]line ПРОДАЖА [11:43:27]line Товар: 4607015232592 [11:43:27]line Вафли Яшкино с вареной сгущенкой 200г [11:43:27]line 1.000 * 81.00 [11:43:27]line = 81.00 [11:43:27]line НДС 12% НСП 1% [11:43:27]line > о реализуемом товаре [11:43:27]line ИТОГО: 81.00 [11:43:27]line НСП 1% : 0.72 [11:43:27]line НДС 12% : 8.60 [11:43:27]line Наличными: 81.00 [11:43:27]line Безнал.: 0.00 [11:43:27]line Место: АЗС № 144 "Партнер Нефть" [11:43:27]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:43:27]line СНО: Общий режим [11:43:27]line Чек 40 22.06.2024 11:43 [11:43:27]line Смена: 395 ФФД: 1.0 [11:43:27]line ЗНМ: 0300000170 [11:43:27]line РНМ: 0000000000095696 [11:43:27]line Версия ККМ: 001 [11:43:27]line ФМ: 0000000000875009 [11:43:27]line ФД: 76844 [11:43:27]line ФПД: 199612513989233 [11:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114326&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76844&fm=199612513989233&tin=02508201610067®Number=0000000000095696&sum=8100 [11:43:27]line 0 [11:43:27]OFD Sender: Processing packet 76844 [packets to send 351, broken 350] [11:43:27]ProducePacketName [11:43:27]name=ofd_packets/00076844 [11:43:27]OFD Sender: To server: pG, [11:43:27]CommunicateWithHost lk.salyk.kg:30040 [11:43:27]ConnectInit lk.salyk.kg [11:43:27]written 0, free lines is 4095 [11:43:27]Connected sock=8 [11:43:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 48 01 00 00 F9 0F 40 01 10 57 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 DE B8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2C 01 00 35 04 06 00 B5 8B E8 FD 32 71 B2 50 9A 35 1F 26 B1 B4 [11:43:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C6 28 47 00 08 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2C 2C 01 00 F4 03 04 00 78 5F 76 66 B6 04 01 00 00 76 AE 15 A3 7A F1 F2 83 [11:43:27]CommunicateWithHost err = 0 [11:43:27]CheckOFDResponse [11:43:27]1017 (14) - 77093643461234 [11:43:27]1041 (16) - 0000000000875009 [11:43:27]1040 (4) - 76844 [11:43:27]1012 (4) - 22.06.2024 05:22 [11:43:27]1206 (1) - 0 [11:43:27]OFD Sender: Remove packet 76844 [11:43:27]ProducePacketName [11:43:27]name=ofd_packets/00076844 [11:43:27]NVStorageDeleteData [11:43:27]Write to MH i2c: 01 00 00 99 02 9B [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 99 02 00 00 00 00 00 E3 0C 91 [11:43:27]RasterBufferAndPrint [11:43:27]line [11:43:27]line [11:43:27]line [11:43:27]line [11:43:27]line [11:43:27]written 0, free lines is 3305 [11:43:27]MH_Cut [11:43:27]Write to MH i2c: D1 01 00 A0 02 01 74 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: D1 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: D1 01 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: D1 01 00 A0 02 00 73 [11:43:27]Write to MH i2c: 01 00 00 A1 02 A3 [11:43:28]Write i2c OK [11:43:28]MH_I2C_Read... [11:43:28]OFD Sender: No OFD packet to send [11:43:28]*** Cut start [11:43:28]*** Partial cut [11:43:28]*** CUTSNS_PIN = 1 [11:43:28]*** CUTSNS_PIN = 0 [11:43:29]*** Brake cut motor [11:43:29]Read from MH i2c: 01 [11:43:29]MH_I2C_Read... [11:43:29]*** Stop cut motor [11:43:29]*** Cut end [11:43:29]Read from MH i2c: 01 07 00 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 FF 0F B8 [11:43:29]process_action close_receipt done [11:43:29]requested_data is exist [11:43:29]produce_requested_data [11:43:29]requested_item fm.sn is exist - process it [11:43:29]wFMCommunicate request_size=4 [11:43:29]MH_SAM_APDU [11:43:29]CAPDU: 80 11 00 00 [11:43:29]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [11:43:29]Write i2c OK [11:43:29]MH_I2C_Read... [11:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:29]Read from MH i2c: E2 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 17 00 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 17 00 A2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6E [11:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:43:29]wFMCommunicate OK [11:43:29]requested_item fd.num is exist - process it [11:43:29]SAM_PROTO_GetFieldsCounters [11:43:29]wFMCommunicate request_size=4 [11:43:29]MH_SAM_APDU [11:43:29]CAPDU: 80 13 00 00 [11:43:29]Write to MH i2c: E2 08 00 A3 02 80 13 00 00 00 00 00 00 21 [11:43:29]Write i2c OK [11:43:29]MH_I2C_Read... [11:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:29]Read from MH i2c: E2 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 62 00 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 62 00 A3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [11:43: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:29]wFMCommunicate OK [11:43:29]SAM_PROTO_GetFieldsCounters done [11:43:29]requested_item shift.num is exist - process it [11:43:29]requested_item shift.opened is exist - process it [11:43:29]req_shift_opened [11:43:29]FM_GetShiftState [11:43:29]SAM_PROTO_GetShiftState [11:43:29]wFMCommunicate request_size=4 [11:43:29]MH_SAM_APDU [11:43:29]CAPDU: 80 13 01 00 [11:43:29]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [11:43:29]Write i2c OK [11:43:29]MH_I2C_Read... [11:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:29]Read from MH i2c: E2 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 0E 00 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 19 [11:43:29]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:43:29]wFMCommunicate OK [11:43:29]SAM_PROTO_GetShiftState done [11:43:29]FM_GetShiftState done [11:43:29]req_shift_opened done [11:43:29]requested_item shift.open_date is exist - process it [11:43:29]req_shift_open_date [11:43:29]req_shift_open_date done [11:43:29]produce_requested_data done [11:43:29]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76844,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:43:29]process_action_free close_receipt [11:43:29]json_value_free [11:43:29]json_value_free done [11:43:29]process_json_proto returns [11:43:29]Send response to host [11:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76844,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:43:29]free response buf [11:43:29]execute_script done [11:43:29]execute_script returns [11:43:29]free content buf [11:43:29]Sock 9.Close socket [11:43:29]Sock 9.Thread stoped [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:05]accept exits with 10 [11:47:05]New connection [11:47:05]New thread 3067362660 created [11:47:05]Thread 3067219300 joined [11:47:05]Waiting for new connection... [11:47:05] Sock 10.Parse request [11:47:05]Sock 10.Check first char [11:47:05]Sock 10.First char is OK [11:47:05]request: POST /json_proto HTTP/1.0 [11:47:05]Method: POST [11:47:05]URL: /json_proto [11:47:05]Method is POST - this is cgi request [11:47:05]url: /json_proto [11:47:05]query_string will be loaded in cgi processing [11:47:05]execute_cgi json_proto POST (null) [11:47:05]execute_cgi path=json_proto method=POST [11:47:05]POST find Content-Length [11:47:05]Host: 172.17.39.195:8080 [11:47:05]Content-Length: 678 [11:47:05]Content-Type: application/json [11:47:05] [11:47:05]POST finish read [11:47:05]Found Content-Length = 678 [11:47:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220920", "tax_sys" : 0, "items" : [ { "code": "4680037724078", "name": "\u0422\u0440\u043E\u0441 \u0431\u0443\u043A\u0441\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u044B\u0439 4500\u043A\u0433", "price" : 815.00, "quantity" : 1.000, "sum" : 815.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 815.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:05]execute_script... [11:47:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220920", "tax_sys" : 0, "items" : [ { "code": "4680037724078", "name": "\u0422\u0440\u043E\u0441 \u0431\u0443\u043A\u0441\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u044B\u0439 4500\u043A\u0433", "price" : 815.00, "quantity" : 1.000, "sum" : 815.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 815.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:05]POST & json_proto [11:47:05]process_json_proto [11:47:05]json parsed OK: [11:47:05]protocol is kg_v1.0 [11:47:05]action value=close_receipt [11:47:05]process_action close_receipt [11:47:05]cmd_close_receipt [11:47:05]MH_GetDate [11:47:05]Write to MH i2c: F0 00 00 A5 02 96 [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: F0 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: F0 09 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: F0 09 00 A5 02 00 B9 B9 76 66 99 81 91 64 FC [11:47:05]GetLastDocTimeStamp 1719056606 [11:47:05]current date 1719056825 [11:47:05]FM_GetShiftState [11:47:05]SAM_PROTO_GetShiftState [11:47:05]wFMCommunicate request_size=4 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 13 01 00 [11:47:05]Write to MH i2c: E2 08 00 A6 02 80 13 01 00 00 00 00 00 25 [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:05]Read from MH i2c: E2 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 0E 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 0E 00 A6 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 1B [11:47:05]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:47:05]wFMCommunicate OK [11:47:05]SAM_PROTO_GetShiftState done [11:47:05]FM_GetShiftState done [11:47:05]opened in 1719016435 [11:47:05]opened+sec_in_day 1719102835 [11:47:05]quantity*price = 81500 [11:47:05]sum+1 = 81501 [11:47:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 815.00 НСП 1% : 7.21 НДС 12% : 86.55 Наличными: 815.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 41 22.06.2024 11:47 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76845 ФПД: 260298892425109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114705&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76845&fm=260298892425109&tin=02508201610067®Number=0000000000095696&sum=81500 0 [11:47:06]StoreToDocumentArchive [11:47:06]shift 395 fd 76845 [11:47:06]save to /storage/0395/doc_00076845 [11:47:06]save last doc name /storage/0395/doc_00076845 to /storage/kkm_last_doc_name [11:47:06]save OK [11:47:06]Clear old archive folders... [11:47:06]ProcessDocumentItem done err = 0, tmpTLVsize=286 [11:47:06]tlvbuf is 008F2D80 [11:47:06]SAM_PROTO_ClearQueue [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 09 00 00 [11:47:06]Write to MH i2c: E2 08 00 B3 02 80 09 00 00 00 00 00 00 27 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [11:47:06]RAPDU: 90 00 [11:47:06]wFMCommunicate OK [11:47:06]SAM_PROTO_ClearQueue done [11:47:06]KKMCreateOFDPacket [11:47:06]OFDProtocolAddRootSTLVToBuf [11:47:06]FM_MakeSignedData [11:47:06]FM_MakeSignedData [11:47:06]SAM_PROTO_SignData [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 0D 01 02 [11:47:06]Write to MH i2c: E2 08 00 B4 02 80 0D 01 02 00 00 00 00 2F [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [11:47:06]RAPDU: 90 00 [11:47:06]wFMCommunicate OK [11:47:06]wFMCommunicate request_size=255 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 30 37 38 06 04 2C 00 D0 A2 D1 80 D0 BE D1 81 20 D0 B1 D1 83 D0 BA D1 81 D0 B8 D1 80 D0 BE D0 B2 D0 BE D1 87 D0 BD D1 8B D0 B9 20 34 35 30 30 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 5C 3E 01 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 B9 B9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 [11:47:06]Write to MH i2c: E2 02 01 B5 02 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 30 37 38 06 04 2C 00 D0 A2 D1 80 D0 BE D1 81 20 D0 B1 D1 83 D0 BA D1 81 D0 B8 D1 80 D0 BE D0 B2 D0 BE D1 87 D0 BD D1 8B D0 B9 20 34 35 30 30 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 5C 3E 01 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 B9 B9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 00 00 A4 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [11:47:06]RAPDU: 90 00 [11:47:06]wFMCommunicate OK [11:47:06]wFMCommunicate request_size=45 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 0D 02 02 28 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2C 01 00 35 04 06 00 EC BD 8F 04 B7 95 [11:47:06]Write to MH i2c: E2 30 00 B6 02 80 0D 02 02 28 00 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2C 01 00 35 04 06 00 EC BD 8F 04 B7 95 00 00 6C [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [11:47:06]RAPDU: 90 00 [11:47:06]wFMCommunicate OK [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 0D 03 02 [11:47:06]Write to MH i2c: E2 08 00 B7 02 80 0D 03 02 00 00 00 00 34 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 0B 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 0B 00 B7 02 00 34 30 86 F5 D7 C5 E2 32 90 00 C4 [11:47:06]RAPDU: 34 30 86 F5 D7 C5 E2 32 90 00 [11:47:06]wFMCommunicate OK [11:47:06]SAM_PROTO_SignData done [11:47:06]FM_MakeSignedData done [11:47:06]CreateOFDProtocolMessage [11:47:06]wFMCommunicate request_size=4 [11:47:06]MH_SAM_APDU [11:47:06]CAPDU: 80 11 00 00 [11:47:06]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:06]Read from MH i2c: E2 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 17 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 84 [11:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:47:06]wFMCommunicate OK [11:47:06]CreateOFDProtocolMessage done [11:47:06]OFDSenderStorePacket 76845 [11:47:06]StoreOFDPacket docnum=76845 [11:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 32 01 00 00 DD BF 2A 01 20 BB 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 30 37 38 06 04 2C 00 D0 A2 D1 80 D0 BE D1 81 20 D0 B1 D1 83 D0 BA D1 81 D0 B8 D1 80 D0 BE D0 B2 D0 BE D1 87 D0 BD D1 8B D0 B9 20 34 35 30 30 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 5C 3E 01 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 B9 B9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2C 01 00 35 04 06 00 EC BD 8F 04 B7 95 34 30 86 F5 D7 C5 E2 32 [11:47:06]CheckFolder [11:47:06]dirname=/storage/ofd_packets [11:47:06]CheckFolder done [11:47:06]ProducePacketName [11:47:06]name=ofd_packets/00076845 [11:47:06]NVStorageSaveData ofd_packets/00076845 [11:47:06]File name is /storage/ofd_packets/00076845 [11:47:06]Write 336 bytes [11:47:06]NVStorageSaveData done [11:47:06]OFDSenderStorePacket done [11:47:06]KKMCreateOFDPacket done [11:47:06]NVStorageSaveData kkm_last_timestamp [11:47:06]File name is /storage/kkm_last_timestamp [11:47:06]Write 4 bytes [11:47:06]NVStorageSaveData done [11:47:06]ExternCall_PrintAddStr [11:47:06]wPrintStart [11:47:06]Write to MH i2c: 01 00 00 B9 02 BB [11:47:06]Write i2c OK [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 07 00 [11:47:06]MH_I2C_Read... [11:47:06]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [11:47:06]RasterBufferAndPrint [11:47:06]line Счет N : (3)220920 [11:47:06]line ИНН: 02508201610067 [11:47:06]line Контрольно-Кассовый Чек [11:47:06]line ПРОДАЖА [11:47:06]line Товар: 4680037724078 [11:47:06]line Трос буксировочный 4500кг [11:47:06]line 1.000 * 815.00 [11:47:06]line = 815.00 [11:47:06]line НДС 12% НСП 1% [11:47:06]line > о реализуемом товаре [11:47:06]line ИТОГО: 815.00 [11:47:06]line НСП 1% : 7.21 [11:47:06]line НДС 12% : 86.55 [11:47:06]line Наличными: 815.00 [11:47:06]line Безнал.: 0.00 [11:47:06]line Место: АЗС № 144 "Партнер Нефть" [11:47:06]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [11:47:06]line СНО: Общий режим [11:47:06]line Чек 41 22.06.2024 11:47 [11:47:06]line Смена: 395 ФФД: 1.0 [11:47:06]line ЗНМ: 0300000170 [11:47:06]line РНМ: 0000000000095696 [11:47:06]line Версия ККМ: 001 [11:47:06]line ФМ: 0000000000875009 [11:47:06]line ФД: 76845 [11:47:06]line ФПД: 260298892425109 [11:47:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T114705&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76845&fm=260298892425109&tin=02508201610067®Number=0000000000095696&sum=81500 [11:47:07]line 0 [11:47:07]OFD Sender: Processing packet 76845 [packets to send 351, broken 350] [11:47:07]ProducePacketName [11:47:07]name=ofd_packets/00076845 [11:47:07]OFD Sender: To server: pG, [11:47:07]CommunicateWithHost lk.salyk.kg:30040 [11:47:07]ConnectInit lk.salyk.kg [11:47:07]written 0, free lines is 4095 [11:47:07]Connected sock=11 [11:47:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 32 01 00 00 DD BF 2A 01 20 BB 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 30 37 38 06 04 2C 00 D0 A2 D1 80 D0 BE D1 81 20 D0 B1 D1 83 D0 BA D1 81 D0 B8 D1 80 D0 BE D0 B2 D0 BE D1 87 D0 BD D1 8B D0 B9 20 34 35 30 30 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 3E 01 00 00 00 13 04 06 00 5C 3E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 3E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 21 00 00 00 00 07 04 06 00 5C 3E 01 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 B9 B9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2C 01 00 35 04 06 00 EC BD 8F 04 B7 95 34 30 86 F5 D7 C5 E2 32 [11:47:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 97 46 47 00 AA 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2D 2C 01 00 F4 03 04 00 54 60 76 66 B6 04 01 00 00 AC B5 2F 6A A8 2F F2 5F [11:47:07]CommunicateWithHost err = 0 [11:47:07]CheckOFDResponse [11:47:07]1017 (14) - 77093643461234 [11:47:07]1041 (16) - 0000000000875009 [11:47:07]1040 (4) - 76845 [11:47:07]1012 (4) - 22.06.2024 05:25 [11:47:07]1206 (1) - 0 [11:47:07]OFD Sender: Remove packet 76845 [11:47:07]ProducePacketName [11:47:07]name=ofd_packets/00076845 [11:47:07]NVStorageDeleteData [11:47:07]Write to MH i2c: 01 00 00 E1 02 E3 [11:47:07]Write i2c OK [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: 01 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: 01 07 00 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 0E 0D 05 [11:47:07]RasterBufferAndPrint [11:47:07]line [11:47:07]line [11:47:07]line [11:47:07]line [11:47:07]line [11:47:07]written 0, free lines is 3348 [11:47:07]MH_Cut [11:47:07]Write to MH i2c: D1 01 00 E8 02 01 BC [11:47:07]Write i2c OK [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: D1 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: D1 01 00 [11:47:07]MH_I2C_Read... [11:47:07]Read from MH i2c: D1 01 00 E8 02 00 BB [11:47:07]Write to MH i2c: 01 00 00 E9 02 EB [11:47:07]Write i2c OK [11:47:07]MH_I2C_Read... [11:47:08]OFD Sender: No OFD packet to send [11:47:08]*** Cut start [11:47:08]*** Partial cut [11:47:08]*** CUTSNS_PIN = 1 [11:47:08]*** CUTSNS_PIN = 0 [11:47:08]*** Brake cut motor [11:47:08]Read from MH i2c: 01 [11:47:08]MH_I2C_Read... [11:47:08]*** Stop cut motor [11:47:08]*** Cut end [11:47:08]Read from MH i2c: 01 07 00 [11:47:08]MH_I2C_Read... [11:47:08]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 FF 0F 00 [11:47:08]process_action close_receipt done [11:47:08]requested_data is exist [11:47:08]produce_requested_data [11:47:08]requested_item fm.sn is exist - process it [11:47:08]wFMCommunicate request_size=4 [11:47:08]MH_SAM_APDU [11:47:08]CAPDU: 80 11 00 00 [11:47:08]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [11:47:08]Write i2c OK [11:47:08]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 17 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B6 [11:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [11:47:09]wFMCommunicate OK [11:47:09]requested_item fd.num is exist - process it [11:47:09]SAM_PROTO_GetFieldsCounters [11:47:09]wFMCommunicate request_size=4 [11:47:09]MH_SAM_APDU [11:47:09]CAPDU: 80 13 00 00 [11:47:09]Write to MH i2c: E2 08 00 EB 02 80 13 00 00 00 00 00 00 69 [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 62 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 62 00 EB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [11:47: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:09]wFMCommunicate OK [11:47:09]SAM_PROTO_GetFieldsCounters done [11:47:09]requested_item shift.num is exist - process it [11:47:09]requested_item shift.opened is exist - process it [11:47:09]req_shift_opened [11:47:09]FM_GetShiftState [11:47:09]SAM_PROTO_GetShiftState [11:47:09]wFMCommunicate request_size=4 [11:47:09]MH_SAM_APDU [11:47:09]CAPDU: 80 13 01 00 [11:47:09]Write to MH i2c: E2 08 00 EC 02 80 13 01 00 00 00 00 00 6B [11:47:09]Write i2c OK [11:47:09]MH_I2C_Read... [11:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:09]Read from MH i2c: E2 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 0E 00 [11:47:09]MH_I2C_Read... [11:47:09]Read from MH i2c: E2 0E 00 EC 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 61 [11:47:09]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [11:47:09]wFMCommunicate OK [11:47:09]SAM_PROTO_GetShiftState done [11:47:09]FM_GetShiftState done [11:47:09]req_shift_opened done [11:47:09]requested_item shift.open_date is exist - process it [11:47:09]req_shift_open_date [11:47:09]req_shift_open_date done [11:47:09]produce_requested_data done [11:47:09]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76845,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [11:47:09]process_action_free close_receipt [11:47:09]json_value_free [11:47:09]json_value_free done [11:47:09]process_json_proto returns [11:47:09]Send response to host [11:47:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76845,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [11:47:09]free response buf [11:47:09]execute_script done [11:47:09]execute_script returns [11:47:09]free content buf [11:47:09]Sock 10.Close socket [11:47:09]Sock 10.Thread stoped [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:18]accept exits with 8 [12:08:18]New connection [12:08:18]New thread 3067219300 created [12:08:18]Thread 3067362660 joined [12:08:18]Waiting for new connection... [12:08:18] Sock 8.Parse request [12:08:18]Sock 8.Check first char [12:08:18]Sock 8.First char is OK [12:08:18]request: POST /json_proto HTTP/1.0 [12:08:18]Method: POST [12:08:18]URL: /json_proto [12:08:18]Method is POST - this is cgi request [12:08:18]url: /json_proto [12:08:18]query_string will be loaded in cgi processing [12:08:18]execute_cgi json_proto POST (null) [12:08:18]execute_cgi path=json_proto method=POST [12:08:18]POST find Content-Length [12:08:18]Host: 172.17.39.195:8080 [12:08:18]Content-Length: 621 [12:08:18]Content-Type: application/json [12:08:18] [12:08:18]POST finish read [12:08:18]Found Content-Length = 621 [12:08:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220921", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:18]execute_script... [12:08:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220921", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:18]POST & json_proto [12:08:18]process_json_proto [12:08:18]json parsed OK: [12:08:18]protocol is kg_v1.0 [12:08:18]action value=close_receipt [12:08:18]process_action close_receipt [12:08:18]cmd_close_receipt [12:08:18]MH_GetDate [12:08:18]Write to MH i2c: F0 00 00 ED 02 DE [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: F0 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: F0 09 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: F0 09 00 ED 02 00 B3 BE 76 66 99 81 91 64 43 [12:08:18]GetLastDocTimeStamp 1719056825 [12:08:18]current date 1719058099 [12:08:18]FM_GetShiftState [12:08:18]SAM_PROTO_GetShiftState [12:08:18]wFMCommunicate request_size=4 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 13 01 00 [12:08:18]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:18]Read from MH i2c: E2 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 0E 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 63 [12:08:18]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:08:18]wFMCommunicate OK [12:08:18]SAM_PROTO_GetShiftState done [12:08:18]FM_GetShiftState done [12:08:18]opened in 1719016435 [12:08:18]opened+sec_in_day 1719102835 [12:08:18]quantity*price = 13000 [12:08:18]sum+1 = 13001 [12:08:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 42 22.06.2024 12:08 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76846 ФПД: 86458825163916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T120819&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76846&fm=86458825163916&tin=02508201610067®Number=0000000000095696&sum=13000 0 [12:08:19]StoreToDocumentArchive [12:08:19]shift 395 fd 76846 [12:08:19]save to /storage/0395/doc_00076846 [12:08:19]save last doc name /storage/0395/doc_00076846 to /storage/kkm_last_doc_name [12:08:19]save OK [12:08:19]Clear old archive folders... [12:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:08:19]tlvbuf is 008F4760 [12:08:19]SAM_PROTO_ClearQueue [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 09 00 00 [12:08:19]Write to MH i2c: E2 08 00 FB 02 80 09 00 00 00 00 00 00 6F [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:19]Read from MH i2c: E2 03 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [12:08:19]RAPDU: 90 00 [12:08:19]wFMCommunicate OK [12:08:19]SAM_PROTO_ClearQueue done [12:08:19]KKMCreateOFDPacket [12:08:19]OFDProtocolAddRootSTLVToBuf [12:08:19]FM_MakeSignedData [12:08:19]FM_MakeSignedData [12:08:19]SAM_PROTO_SignData [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 0D 01 02 [12:08:19]Write to MH i2c: E2 08 00 FC 02 80 0D 01 02 00 00 00 00 77 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [12:08:19]RAPDU: 90 00 [12:08:19]wFMCommunicate OK [12:08:19]wFMCommunicate request_size=255 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B3 BE 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [12:08:19]Write to MH i2c: E2 02 01 FD 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B3 BE 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 7E [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [12:08:19]RAPDU: 90 00 [12:08:19]wFMCommunicate OK [12:08:19]wFMCommunicate request_size=32 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 2E 2C 01 00 35 04 06 00 4E A2 43 8F C4 8C [12:08:19]Write to MH i2c: E2 23 00 FE 02 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 2E 2C 01 00 35 04 06 00 4E A2 43 8F C4 8C 00 00 41 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:20]Read from MH i2c: E2 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 03 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [12:08:20]RAPDU: 90 00 [12:08:20]wFMCommunicate OK [12:08:20]wFMCommunicate request_size=4 [12:08:20]MH_SAM_APDU [12:08:20]CAPDU: 80 0D 03 02 [12:08:20]Write to MH i2c: E2 08 00 FF 02 80 0D 03 02 00 00 00 00 7C [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:20]Read from MH i2c: E2 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 0B 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 0B 00 FF 02 00 EC 27 74 C7 BE 73 B4 AF 90 00 5F [12:08:20]RAPDU: EC 27 74 C7 BE 73 B4 AF 90 00 [12:08:20]wFMCommunicate OK [12:08:20]SAM_PROTO_SignData done [12:08:20]FM_MakeSignedData done [12:08:20]CreateOFDProtocolMessage [12:08:20]wFMCommunicate request_size=4 [12:08:20]MH_SAM_APDU [12:08:20]CAPDU: 80 11 00 00 [12:08:20]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:20]Read from MH i2c: E2 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 17 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CD [12:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:08:20]wFMCommunicate OK [12:08:20]CreateOFDProtocolMessage done [12:08:20]OFDSenderStorePacket 76846 [12:08:20]StoreOFDPacket docnum=76846 [12:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 59 E5 1D 01 CA E2 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B3 BE 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2E 2C 01 00 35 04 06 00 4E A2 43 8F C4 8C EC 27 74 C7 BE 73 B4 AF [12:08:20]CheckFolder [12:08:20]dirname=/storage/ofd_packets [12:08:20]CheckFolder done [12:08:20]ProducePacketName [12:08:20]name=ofd_packets/00076846 [12:08:20]NVStorageSaveData ofd_packets/00076846 [12:08:20]File name is /storage/ofd_packets/00076846 [12:08:20]Write 323 bytes [12:08:20]NVStorageSaveData done [12:08:20]OFDSenderStorePacket done [12:08:20]KKMCreateOFDPacket done [12:08:20]NVStorageSaveData kkm_last_timestamp [12:08:20]File name is /storage/kkm_last_timestamp [12:08:20]Write 4 bytes [12:08:20]NVStorageSaveData done [12:08:20]ExternCall_PrintAddStr [12:08:20]wPrintStart [12:08:20]Write to MH i2c: 01 00 00 01 03 04 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [12:08:20]RasterBufferAndPrint [12:08:20]line Счет N : (3)220921 [12:08:20]line ИНН: 02508201610067 [12:08:20]line Контрольно-Кассовый Чек [12:08:20]line ПРОДАЖА [12:08:20]line Товар: 4780014240406 [12:08:20]line Сигареты Sovereign Blue [12:08:20]line 1.000 * 130.00 [12:08:20]line = 130.00 [12:08:20]line НДС 12% НСП 1% [12:08:20]line > о реализуемом товаре [12:08:20]line ИТОГО: 130.00 [12:08:20]line НСП 1% : 1.15 [12:08:20]line НДС 12% : 13.80 [12:08:20]line Наличными: 130.00 [12:08:20]line Безнал.: 0.00 [12:08:20]line Место: АЗС № 144 "Партнер Нефть" [12:08:20]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:08:20]line СНО: Общий режим [12:08:20]line Чек 42 22.06.2024 12:08 [12:08:20]line Смена: 395 ФФД: 1.0 [12:08:20]line ЗНМ: 0300000170 [12:08:20]line РНМ: 0000000000095696 [12:08:20]line Версия ККМ: 001 [12:08:20]line ФМ: 0000000000875009 [12:08:20]line ФД: 76846 [12:08:20]line ФПД: 86458825163916 [12:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T120819&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76846&fm=86458825163916&tin=02508201610067®Number=0000000000095696&sum=13000 [12:08:20]line 0 [12:08:20]OFD Sender: Processing packet 76846 [packets to send 351, broken 350] [12:08:20]ProducePacketName [12:08:20]name=ofd_packets/00076846 [12:08:20]OFD Sender: To server: pG, [12:08:20]CommunicateWithHost lk.salyk.kg:30040 [12:08:20]ConnectInit lk.salyk.kg [12:08:20]written 0, free lines is 4095 [12:08:20]Write to MH i2c: 01 00 00 29 03 2C [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 29 03 00 00 00 00 00 FC 0C 3B [12:08:20]RasterBufferAndPrint [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]written 0, free lines is 3328 [12:08:20]MH_Cut [12:08:20]Write to MH i2c: D1 01 00 30 03 01 05 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 01 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 01 00 30 03 00 04 [12:08:20]Write to MH i2c: 01 00 00 31 03 34 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:21]*** Cut start [12:08:21]*** Partial cut [12:08:21]*** CUTSNS_PIN = 1 [12:08:21]*** CUTSNS_PIN = 0 [12:08:21]*** Brake cut motor [12:08:22]Read from MH i2c: 01 [12:08:22]MH_I2C_Read... [12:08:22]*** Stop cut motor [12:08:22]*** Cut end [12:08:22]Read from MH i2c: 01 07 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: 01 07 00 31 03 00 00 00 00 00 FF 0F 49 [12:08:22]process_action close_receipt done [12:08:22]requested_data is exist [12:08:22]produce_requested_data [12:08:22]requested_item fm.sn is exist - process it [12:08:22]wFMCommunicate request_size=4 [12:08:22]MH_SAM_APDU [12:08:22]CAPDU: 80 11 00 00 [12:08:22]Write to MH i2c: E2 08 00 32 03 80 11 00 00 00 00 00 00 AF [12:08:22]Write i2c OK [12:08:22]MH_I2C_Read... [12:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:22]Read from MH i2c: E2 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 17 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 17 00 32 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FF [12:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:08:22]wFMCommunicate OK [12:08:22]requested_item fd.num is exist - process it [12:08:22]SAM_PROTO_GetFieldsCounters [12:08:22]wFMCommunicate request_size=4 [12:08:22]MH_SAM_APDU [12:08:22]CAPDU: 80 13 00 00 [12:08:22]Write to MH i2c: E2 08 00 33 03 80 13 00 00 00 00 00 00 B2 [12:08:22]Write i2c OK [12:08:22]MH_I2C_Read... [12:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:22]Read from MH i2c: E2 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 62 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 62 00 33 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [12:08: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:22]wFMCommunicate OK [12:08:22]SAM_PROTO_GetFieldsCounters done [12:08:22]requested_item shift.num is exist - process it [12:08:22]requested_item shift.opened is exist - process it [12:08:22]req_shift_opened [12:08:22]FM_GetShiftState [12:08:22]SAM_PROTO_GetShiftState [12:08:22]wFMCommunicate request_size=4 [12:08:22]MH_SAM_APDU [12:08:22]CAPDU: 80 13 01 00 [12:08:22]Write to MH i2c: E2 08 00 34 03 80 13 01 00 00 00 00 00 B4 [12:08:22]Write i2c OK [12:08:22]MH_I2C_Read... [12:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:22]Read from MH i2c: E2 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 0E 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: E2 0E 00 34 03 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 AA [12:08:22]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:08:22]wFMCommunicate OK [12:08:22]SAM_PROTO_GetShiftState done [12:08:22]FM_GetShiftState done [12:08:22]req_shift_opened done [12:08:22]requested_item shift.open_date is exist - process it [12:08:22]req_shift_open_date [12:08:22]req_shift_open_date done [12:08:22]produce_requested_data done [12:08:22]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76846,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:08:22]process_action_free close_receipt [12:08:22]json_value_free [12:08:22]json_value_free done [12:08:22]process_json_proto returns [12:08:22]Send response to host [12:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76846,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:08:22]free response buf [12:08:22]execute_script done [12:08:22]execute_script returns [12:08:22]free content buf [12:08:22]Sock 8.Close socket [12:08:22]Sock 8.Thread stoped [12:10:34]ConnectInit Can't connect to host [12:10:34]CommunicateWithHost connect error [12:10:34]CommunicateWithHost err = -1 [12:10:34]OFD Sender: Server communicate error [12:10:39]OFD Sender: Processing packet 76846 [packets to send 351, broken 350] [12:10:39]ProducePacketName [12:10:39]name=ofd_packets/00076846 [12:10:39]OFD Sender: To server: pG, [12:10:39]CommunicateWithHost lk.salyk.kg:30040 [12:10:39]ConnectInit lk.salyk.kg [12:10:39]Connected sock=8 [12:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 59 E5 1D 01 CA E2 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B3 BE 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2E 2C 01 00 35 04 06 00 4E A2 43 8F C4 8C EC 27 74 C7 BE 73 B4 AF [12:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B5 6B 47 00 C4 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2E 2C 01 00 F4 03 04 00 D8 65 76 66 B6 04 01 00 00 34 C0 04 79 DB 8F 9E 52 [12:10:39]CommunicateWithHost err = 0 [12:10:39]CheckOFDResponse [12:10:39]1017 (14) - 77093643461234 [12:10:39]1041 (16) - 0000000000875009 [12:10:39]1040 (4) - 76846 [12:10:39]1012 (4) - 22.06.2024 05:49 [12:10:39]1206 (1) - 0 [12:10:39]OFD Sender: Remove packet 76846 [12:10:39]ProducePacketName [12:10:39]name=ofd_packets/00076846 [12:10:39]NVStorageDeleteData [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:38]accept exits with 9 [12:16:38]New connection [12:16:38]New thread 3067362660 created [12:16:38]Thread 3067219300 joined [12:16:38]Waiting for new connection... [12:16:38] Sock 9.Parse request [12:16:38]Sock 9.Check first char [12:16:38]Sock 9.First char is OK [12:16:38]request: POST /json_proto HTTP/1.0 [12:16:38]Method: POST [12:16:38]URL: /json_proto [12:16:38]Method is POST - this is cgi request [12:16:38]url: /json_proto [12:16:38]query_string will be loaded in cgi processing [12:16:38]execute_cgi json_proto POST (null) [12:16:38]execute_cgi path=json_proto method=POST [12:16:38]POST find Content-Length [12:16:38]Host: 172.17.39.195:8080 [12:16:38]Content-Length: 621 [12:16:38]Content-Type: application/json [12:16:38] [12:16:38]POST finish read [12:16:38]Found Content-Length = 621 [12:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220922", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:38]execute_script... [12:16:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220922", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:38]POST & json_proto [12:16:38]process_json_proto [12:16:38]json parsed OK: [12:16:38]protocol is kg_v1.0 [12:16:38]action value=close_receipt [12:16:38]process_action close_receipt [12:16:38]cmd_close_receipt [12:16:38]MH_GetDate [12:16:38]Write to MH i2c: F0 00 00 35 03 27 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: F0 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: F0 09 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: F0 09 00 35 03 00 A7 C0 76 66 99 81 91 64 82 [12:16:38]GetLastDocTimeStamp 1719058099 [12:16:38]current date 1719058599 [12:16:38]FM_GetShiftState [12:16:38]SAM_PROTO_GetShiftState [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 13 01 00 [12:16:38]Write to MH i2c: E2 08 00 36 03 80 13 01 00 00 00 00 00 B6 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0E 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0E 00 36 03 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 AC [12:16:38]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_GetShiftState done [12:16:38]FM_GetShiftState done [12:16:38]opened in 1719016435 [12:16:38]opened+sec_in_day 1719102835 [12:16:38]quantity*price = 28000 [12:16:38]sum+1 = 28001 [12:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 43 22.06.2024 12:16 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76847 ФПД: 18108667061598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121639&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76847&fm=18108667061598&tin=02508201610067®Number=0000000000095696&sum=28000 0 [12:16:39]StoreToDocumentArchive [12:16:39]shift 395 fd 76847 [12:16:39]save to /storage/0395/doc_00076847 [12:16:39]save last doc name /storage/0395/doc_00076847 to /storage/kkm_last_doc_name [12:16:39]save OK [12:16:39]Clear old archive folders... [12:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:16:39]tlvbuf is 008F4760 [12:16:39]SAM_PROTO_ClearQueue [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 09 00 00 [12:16:39]Write to MH i2c: E2 08 00 43 03 80 09 00 00 00 00 00 00 B8 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [12:16:39]RAPDU: 90 00 [12:16:39]wFMCommunicate OK [12:16:39]SAM_PROTO_ClearQueue done [12:16:39]KKMCreateOFDPacket [12:16:39]OFDProtocolAddRootSTLVToBuf [12:16:39]FM_MakeSignedData [12:16:39]FM_MakeSignedData [12:16:39]SAM_PROTO_SignData [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 0D 01 02 [12:16:39]Write to MH i2c: E2 08 00 44 03 80 0D 01 02 00 00 00 00 C0 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [12:16:39]RAPDU: 90 00 [12:16:39]wFMCommunicate OK [12:16:39]wFMCommunicate request_size=255 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A7 C0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [12:16:39]Write to MH i2c: E2 02 01 45 03 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A7 C0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 96 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [12:16:39]RAPDU: 90 00 [12:16:39]wFMCommunicate OK [12:16:39]wFMCommunicate request_size=32 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2C 01 00 35 04 06 00 10 78 40 AA E5 5E [12:16:39]Write to MH i2c: E2 23 00 46 03 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2C 01 00 35 04 06 00 10 78 40 AA E5 5E 00 00 2E [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 03 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 03 00 46 03 00 90 00 BD [12:16:40]RAPDU: 90 00 [12:16:40]wFMCommunicate OK [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 0D 03 02 [12:16:40]Write to MH i2c: E2 08 00 47 03 80 0D 03 02 00 00 00 00 C5 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 0B 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 0B 00 47 03 00 EE B0 65 12 A9 57 A6 67 90 00 E8 [12:16:40]RAPDU: EE B0 65 12 A9 57 A6 67 90 00 [12:16:40]wFMCommunicate OK [12:16:40]SAM_PROTO_SignData done [12:16:40]FM_MakeSignedData done [12:16:40]CreateOFDProtocolMessage [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 11 00 00 [12:16:40]Write to MH i2c: E2 08 00 48 03 80 11 00 00 00 00 00 00 C5 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 17 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 17 00 48 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 15 [12:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:16:40]wFMCommunicate OK [12:16:40]CreateOFDProtocolMessage done [12:16:40]OFDSenderStorePacket 76847 [12:16:40]StoreOFDPacket docnum=76847 [12:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 0E B1 1D 01 1F B9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A7 C0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2C 01 00 35 04 06 00 10 78 40 AA E5 5E EE B0 65 12 A9 57 A6 67 [12:16:40]CheckFolder [12:16:40]dirname=/storage/ofd_packets [12:16:40]CheckFolder done [12:16:40]ProducePacketName [12:16:40]name=ofd_packets/00076847 [12:16:40]NVStorageSaveData ofd_packets/00076847 [12:16:40]File name is /storage/ofd_packets/00076847 [12:16:40]Write 323 bytes [12:16:40]NVStorageSaveData done [12:16:40]OFDSenderStorePacket done [12:16:40]KKMCreateOFDPacket done [12:16:40]NVStorageSaveData kkm_last_timestamp [12:16:40]File name is /storage/kkm_last_timestamp [12:16:40]Write 4 bytes [12:16:40]NVStorageSaveData done [12:16:40]ExternCall_PrintAddStr [12:16:40]wPrintStart [12:16:40]Write to MH i2c: 01 00 00 49 03 4C [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [12:16:40]RasterBufferAndPrint [12:16:40]line Счет N : (3)220922 [12:16:40]line ИНН: 02508201610067 [12:16:40]line Контрольно-Кассовый Чек [12:16:40]line ПРОДАЖА [12:16:40]line Товар: 48747059 [12:16:40]line Сигареты Winston Legend Blue [12:16:40]line 2.000 * 140.00 [12:16:40]line = 280.00 [12:16:40]line НДС 12% НСП 1% [12:16:40]line > о реализуемом товаре [12:16:40]line ИТОГО: 280.00 [12:16:40]line НСП 1% : 2.48 [12:16:40]line НДС 12% : 29.73 [12:16:40]line Наличными: 280.00 [12:16:40]line Безнал.: 0.00 [12:16:40]line Место: АЗС № 144 "Партнер Нефть" [12:16:40]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:16:40]line СНО: Общий режим [12:16:40]line Чек 43 22.06.2024 12:16 [12:16:40]line Смена: 395 ФФД: 1.0 [12:16:40]line ЗНМ: 0300000170 [12:16:40]line РНМ: 0000000000095696 [12:16:40]line Версия ККМ: 001 [12:16:40]line ФМ: 0000000000875009 [12:16:40]line ФД: 76847 [12:16:40]line ФПД: 18108667061598 [12:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121639&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76847&fm=18108667061598&tin=02508201610067®Number=0000000000095696&sum=28000 [12:16:40]line 0 [12:16:40]written 0, free lines is 4095 [12:16:40]OFD Sender: Processing packet 76847 [packets to send 351, broken 350] [12:16:40]ProducePacketName [12:16:40]name=ofd_packets/00076847 [12:16:40]OFD Sender: To server: pG, [12:16:40]CommunicateWithHost lk.salyk.kg:30040 [12:16:40]ConnectInit lk.salyk.kg [12:16:40]Connected sock=10 [12:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 0E B1 1D 01 1F B9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A7 C0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2C 01 00 35 04 06 00 10 78 40 AA E5 5E EE B0 65 12 A9 57 A6 67 [12:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 1F 25 47 00 D4 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 2F 2C 01 00 F4 03 04 00 41 67 76 66 B6 04 01 00 00 CF E6 47 B4 73 21 A2 DF [12:16:40]CommunicateWithHost err = 0 [12:16:40]CheckOFDResponse [12:16:40]1017 (14) - 77093643461234 [12:16:40]1041 (16) - 0000000000875009 [12:16:40]1040 (4) - 76847 [12:16:40]1012 (4) - 22.06.2024 05:55 [12:16:40]1206 (1) - 0 [12:16:40]OFD Sender: Remove packet 76847 [12:16:40]ProducePacketName [12:16:40]name=ofd_packets/00076847 [12:16:40]NVStorageDeleteData [12:16:40]Write to MH i2c: 01 00 00 72 03 75 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 D2 0C 5A [12:16:40]RasterBufferAndPrint [12:16:40]line [12:16:40]line [12:16:40]line [12:16:40]line [12:16:40]line [12:16:40]written 0, free lines is 3288 [12:16:40]MH_Cut [12:16:40]Write to MH i2c: D1 01 00 79 03 01 4E [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: D1 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: D1 01 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: D1 01 00 79 03 00 4D [12:16:40]Write to MH i2c: 01 00 00 7A 03 7D [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:41]OFD Sender: No OFD packet to send [12:16:41]*** Cut start [12:16:41]*** Partial cut [12:16:41]*** CUTSNS_PIN = 1 [12:16:41]*** CUTSNS_PIN = 0 [12:16:41]*** Brake cut motor [12:16:41]Read from MH i2c: 01 [12:16:41]MH_I2C_Read... [12:16:41]*** Stop cut motor [12:16:41]*** Cut end [12:16:41]Read from MH i2c: 01 07 00 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 FF 0F 92 [12:16:41]process_action close_receipt done [12:16:41]requested_data is exist [12:16:41]produce_requested_data [12:16:41]requested_item fm.sn is exist - process it [12:16:41]wFMCommunicate request_size=4 [12:16:41]MH_SAM_APDU [12:16:41]CAPDU: 80 11 00 00 [12:16:41]Write to MH i2c: E2 08 00 7B 03 80 11 00 00 00 00 00 00 F8 [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:41]Read from MH i2c: E2 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: E2 17 00 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: E2 17 00 7B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 48 [12:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:16:41]wFMCommunicate OK [12:16:41]requested_item fd.num is exist - process it [12:16:41]SAM_PROTO_GetFieldsCounters [12:16:41]wFMCommunicate request_size=4 [12:16:41]MH_SAM_APDU [12:16:41]CAPDU: 80 13 00 00 [12:16:41]Write to MH i2c: E2 08 00 7C 03 80 13 00 00 00 00 00 00 FB [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:42]Read from MH i2c: E2 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 62 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 62 00 7C 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [12:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 2F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:42]wFMCommunicate OK [12:16:42]SAM_PROTO_GetFieldsCounters done [12:16:42]requested_item shift.num is exist - process it [12:16:42]requested_item shift.opened is exist - process it [12:16:42]req_shift_opened [12:16:42]FM_GetShiftState [12:16:42]SAM_PROTO_GetShiftState [12:16:42]wFMCommunicate request_size=4 [12:16:42]MH_SAM_APDU [12:16:42]CAPDU: 80 13 01 00 [12:16:42]Write to MH i2c: E2 08 00 7D 03 80 13 01 00 00 00 00 00 FD [12:16:42]Write i2c OK [12:16:42]MH_I2C_Read... [12:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:42]Read from MH i2c: E2 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 0E 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: E2 0E 00 7D 03 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F3 [12:16:42]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:16:42]wFMCommunicate OK [12:16:42]SAM_PROTO_GetShiftState done [12:16:42]FM_GetShiftState done [12:16:42]req_shift_opened done [12:16:42]requested_item shift.open_date is exist - process it [12:16:42]req_shift_open_date [12:16:42]req_shift_open_date done [12:16:42]produce_requested_data done [12:16:42]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76847,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:16:42]process_action_free close_receipt [12:16:42]json_value_free [12:16:42]json_value_free done [12:16:42]process_json_proto returns [12:16:42]Send response to host [12:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76847,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:16:42]free response buf [12:16:42]execute_script done [12:16:42]execute_script returns [12:16:42]free content buf [12:16:42]Sock 9.Close socket [12:16:42]Sock 9.Thread stoped [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:43]accept exits with 8 [12:18:43]New connection [12:18:43]New thread 3067219300 created [12:18:43]Thread 3067362660 joined [12:18:43]Waiting for new connection... [12:18:43] Sock 8.Parse request [12:18:43]Sock 8.Check first char [12:18:43]Sock 8.First char is OK [12:18:43]request: POST /json_proto HTTP/1.0 [12:18:43]Method: POST [12:18:43]URL: /json_proto [12:18:43]Method is POST - this is cgi request [12:18:43]url: /json_proto [12:18:43]query_string will be loaded in cgi processing [12:18:43]execute_cgi json_proto POST (null) [12:18:43]execute_cgi path=json_proto method=POST [12:18:43]POST find Content-Length [12:18:43]Host: 172.17.39.195:8080 [12:18:43]Content-Length: 1952 [12:18:43]Content-Type: application/json [12:18:43] [12:18:43]POST finish read [12:18:43]Found Content-Length = 1952 [12:18:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220923", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 5.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 5.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 824.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:43]execute_script... [12:18:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220923", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 5.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 5.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 824.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:43]POST & json_proto [12:18:43]process_json_proto [12:18:43]json parsed OK: [12:18:43]protocol is kg_v1.0 [12:18:43]action value=close_receipt [12:18:43]process_action close_receipt [12:18:43]cmd_close_receipt [12:18:43]MH_GetDate [12:18:43]Write to MH i2c: F0 00 00 7E 03 70 [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: F0 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: F0 09 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: F0 09 00 7E 03 00 24 C1 76 66 99 81 91 64 49 [12:18:43]GetLastDocTimeStamp 1719058599 [12:18:43]current date 1719058724 [12:18:43]FM_GetShiftState [12:18:43]SAM_PROTO_GetShiftState [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 13 01 00 [12:18:43]Write to MH i2c: E2 08 00 7F 03 80 13 01 00 00 00 00 00 FF [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 0E 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 0E 00 7F 03 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F5 [12:18:43]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:18:43]wFMCommunicate OK [12:18:43]SAM_PROTO_GetShiftState done [12:18:43]FM_GetShiftState done [12:18:43]opened in 1719016435 [12:18:43]opened+sec_in_day 1719102835 [12:18:43]quantity*price = 42500 [12:18:43]sum+1 = 42501 [12:18:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017450726 Кар. Страйк ассорти 11.3г/50шт 5.000 * 10.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 5.000 * 10.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 824.00 НСП 1% : 7.28 НДС 12% : 87.50 Наличными: 824.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 44 22.06.2024 12:18 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76848 ФПД: 37828189531611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121844&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76848&fm=37828189531611&tin=02508201610067®Number=0000000000095696&sum=82400 0 [12:18:45]StoreToDocumentArchive [12:18:45]shift 395 fd 76848 [12:18:45]save to /storage/0395/doc_00076848 [12:18:45]save last doc name /storage/0395/doc_00076848 to /storage/kkm_last_doc_name [12:18:45]save OK [12:18:45]Clear old archive folders... [12:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=814 [12:18:45]tlvbuf is 0091BD70 [12:18:45]SAM_PROTO_ClearQueue [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 09 00 00 [12:18:45]Write to MH i2c: E2 08 00 8C 03 80 09 00 00 00 00 00 00 01 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [12:18:45]RAPDU: 90 00 [12:18:45]wFMCommunicate OK [12:18:45]SAM_PROTO_ClearQueue done [12:18:45]KKMCreateOFDPacket [12:18:45]OFDProtocolAddRootSTLVToBuf [12:18:45]FM_MakeSignedData [12:18:45]FM_MakeSignedData [12:18:45]SAM_PROTO_SignData [12:18:45]wFMCommunicate request_size=4 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 0D 01 02 [12:18:45]Write to MH i2c: E2 08 00 8D 03 80 0D 01 02 00 00 00 00 09 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [12:18:45]RAPDU: 90 00 [12:18:45]wFMCommunicate OK [12:18:45]wFMCommunicate request_size=255 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 0D 02 02 FA 03 00 2E 03 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 [12:18:45]Write to MH i2c: E2 02 01 8E 03 80 0D 02 02 FA 00 03 00 2E 03 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 00 00 36 [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [12:18:45]RAPDU: 90 00 [12:18:45]wFMCommunicate OK [12:18:45]wFMCommunicate request_size=255 [12:18:45]MH_SAM_APDU [12:18:45]CAPDU: 80 0D 02 02 FA A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C [12:18:45]Write to MH i2c: E2 02 01 8F 03 80 0D 02 02 FA 00 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 00 00 AF [12:18:45]Write i2c OK [12:18:45]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]wFMCommunicate request_size=255 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 02 02 FA 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 22 00 00 00 00 07 04 06 00 E0 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 24 C1 76 66 0E 04 04 [12:18:46]Write to MH i2c: E2 02 01 90 03 80 0D 02 02 FA 00 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 22 00 00 00 00 07 04 06 00 E0 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 24 C1 76 66 0E 04 04 00 00 38 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]wFMCommunicate request_size=73 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 02 02 44 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 30 2C 01 00 35 04 06 00 22 67 8F CC AD DB [12:18:46]Write to MH i2c: E2 4C 00 91 03 80 0D 02 02 44 00 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 30 2C 01 00 35 04 06 00 22 67 8F CC AD DB 00 00 87 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]OFD Sender: No OFD packet to send [12:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 03 02 [12:18:46]Write to MH i2c: E2 08 00 92 03 80 0D 03 02 00 00 00 00 10 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0B 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0B 00 92 03 00 A7 EF 9C 15 4A AE BD F0 90 00 FD [12:18:46]RAPDU: A7 EF 9C 15 4A AE BD F0 90 00 [12:18:46]wFMCommunicate OK [12:18:46]SAM_PROTO_SignData done [12:18:46]FM_MakeSignedData done [12:18:46]CreateOFDProtocolMessage [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 11 00 00 [12:18:46]Write to MH i2c: E2 08 00 93 03 80 11 00 00 00 00 00 00 10 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 17 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 17 00 93 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 60 [12:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:18:46]wFMCommunicate OK [12:18:46]CreateOFDProtocolMessage done [12:18:46]OFDSenderStorePacket 76848 [12:18:46]StoreOFDPacket docnum=76848 [12:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 42 03 00 00 52 5F 3A 03 98 45 5A 03 01 00 03 00 2E 03 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 22 00 00 00 00 07 04 06 00 E0 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 24 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 30 2C 01 00 35 04 06 00 22 67 8F CC AD DB A7 EF 9C 15 4A AE BD F0 [12:18:46]CheckFolder [12:18:46]dirname=/storage/ofd_packets [12:18:46]CheckFolder done [12:18:46]ProducePacketName [12:18:46]name=ofd_packets/00076848 [12:18:46]NVStorageSaveData ofd_packets/00076848 [12:18:46]File name is /storage/ofd_packets/00076848 [12:18:46]Write 864 bytes [12:18:46]NVStorageSaveData done [12:18:46]OFDSenderStorePacket done [12:18:46]KKMCreateOFDPacket done [12:18:46]NVStorageSaveData kkm_last_timestamp [12:18:46]File name is /storage/kkm_last_timestamp [12:18:46]Write 4 bytes [12:18:46]NVStorageSaveData done [12:18:46]ExternCall_PrintAddStr [12:18:46]wPrintStart [12:18:46]Write to MH i2c: 01 00 00 94 03 97 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 07 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 FF 0F AC [12:18:46]RasterBufferAndPrint [12:18:46]line Счет N : (3)220923 [12:18:46]line ИНН: 02508201610067 [12:18:46]line Контрольно-Кассовый Чек [12:18:46]line ПРОДАЖА [12:18:46]line Товар: 4700003150486 [12:18:46]line Водка Ороон 0,5 [12:18:46]line 1.000 * 425.00 [12:18:46]line = 425.00 [12:18:46]line НДС 12% НСП 1% [12:18:46]line > о реализуемом товаре [12:18:46]line Товар: 5449000000439 [12:18:46]line Напиток Кока-Кола 1,5л [12:18:46]line 1.000 * 155.00 [12:18:46]line = 155.00 [12:18:46]line НДС 12% НСП 1% [12:18:46]line > о реализуемом товаре [12:18:46]line Товар: 4620017450726 [12:18:46]line Кар. Страйк ассорти 11.3г/50шт [12:18:46]line 5.000 * 10.00 [12:18:46]line = 50.00 [12:18:46]line НДС 12% НСП 1% [12:18:46]line > о реализуемом товаре [12:18:46]line Товар: 2000031750019 [12:18:46]line Пакет Партнер Нефть [12:18:46]line 1.000 * 4.00 [12:18:46]line = 4.00 [12:18:46]line НДС 12% НСП 1% [12:18:46]line > о реализуемом товаре [12:18:46]line Товар: 48743587 [12:18:46]line Сигареты Winston XStyle Silver [12:18:46]line 1.000 * 140.00 [12:18:46]line = 140.00 [12:18:46]line НДС 12% НСП 1% [12:18:46]line > о реализуемом товаре [12:18:46]line Товар: 46226624 [12:18:46]line Mentos ПВ Клубника 6*100*2 [12:18:46]line 5.000 * 10.00 [12:18:46]line = 50.00 [12:18:46]line НДС 12% НСП 1% [12:18:46]line > о реализуемом товаре [12:18:46]line ИТОГО: 824.00 [12:18:46]line НСП 1% : 7.28 [12:18:46]line НДС 12% : 87.50 [12:18:46]line Наличными: 824.00 [12:18:46]line Безнал.: 0.00 [12:18:46]line Место: АЗС № 144 "Партнер Нефть" [12:18:46]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:18:46]line СНО: Общий режим [12:18:46]line Чек 44 22.06.2024 12:18 [12:18:46]line Смена: 395 ФФД: 1.0 [12:18:46]line ЗНМ: 0300000170 [12:18:46]line РНМ: 0000000000095696 [12:18:46]line Версия ККМ: 001 [12:18:46]line ФМ: 0000000000875009 [12:18:46]line ФД: 76848 [12:18:46]line ФПД: 37828189531611 [12:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121844&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76848&fm=37828189531611&tin=02508201610067®Number=0000000000095696&sum=82400 [12:18:46]line 0 [12:18:46]OFD Sender: Processing packet 76848 [packets to send 351, broken 350] [12:18:46]ProducePacketName [12:18:46]name=ofd_packets/00076848 [12:18:46]OFD Sender: To server: pG, [12:18:46]CommunicateWithHost lk.salyk.kg:30040 [12:18:46]ConnectInit lk.salyk.kg [12:18:46]written 0, free lines is 4095 [12:18:47]Write to MH i2c: 01 00 00 DC 03 DF [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 07 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 22 0B 13 [12:18:47]RasterBufferAndPrint [12:18:47]line [12:18:47]line [12:18:47]line [12:18:47]line [12:18:47]line [12:18:47]written 0, free lines is 2857 [12:18:47]MH_Cut [12:18:47]Write to MH i2c: D1 01 00 E3 03 01 B8 [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: D1 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: D1 01 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: D1 01 00 E3 03 00 B7 [12:18:47]Write to MH i2c: 01 00 00 E4 03 E7 [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]Connected sock=11 [12:18:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 42 03 00 00 52 5F 3A 03 98 45 5A 03 01 00 03 00 2E 03 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 22 00 00 00 00 07 04 06 00 E0 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 24 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 30 2C 01 00 35 04 06 00 22 67 8F CC AD DB A7 EF 9C 15 4A AE BD F0 [12:18:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 BA EC 47 00 2C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 30 2C 01 00 F4 03 04 00 C0 67 76 66 B6 04 01 00 00 38 60 DE 6E 62 89 08 30 [12:18:48]CommunicateWithHost err = 0 [12:18:48]CheckOFDResponse [12:18:48]1017 (14) - 77093643461234 [12:18:48]1041 (16) - 0000000000875009 [12:18:48]1040 (4) - 76848 [12:18:48]1012 (4) - 22.06.2024 05:57 [12:18:48]1206 (1) - 0 [12:18:48]OFD Sender: Remove packet 76848 [12:18:48]ProducePacketName [12:18:48]name=ofd_packets/00076848 [12:18:48]NVStorageDeleteData [12:18:48]OFD Sender: No OFD packet to send [12:18:48]*** Cut start [12:18:48]*** Partial cut [12:18:48]*** CUTSNS_PIN = 1 [12:18:48]*** CUTSNS_PIN = 0 [12:18:48]*** Brake cut motor [12:18:49]Read from MH i2c: 01 [12:18:49]MH_I2C_Read... [12:18:49]*** Stop cut motor [12:18:49]*** Cut end [12:18:49]Read from MH i2c: 01 07 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [12:18:49]process_action close_receipt done [12:18:49]requested_data is exist [12:18:49]produce_requested_data [12:18:49]requested_item fm.sn is exist - process it [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 11 00 00 [12:18:49]Write to MH i2c: E2 08 00 E5 03 80 11 00 00 00 00 00 00 62 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 17 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 17 00 E5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B2 [12:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:18:49]wFMCommunicate OK [12:18:49]requested_item fd.num is exist - process it [12:18:49]SAM_PROTO_GetFieldsCounters [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 13 00 00 [12:18:49]Write to MH i2c: E2 08 00 E6 03 80 13 00 00 00 00 00 00 65 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 62 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 62 00 E6 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 30 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [12:18: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 30 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:49]wFMCommunicate OK [12:18:49]SAM_PROTO_GetFieldsCounters done [12:18:49]requested_item shift.num is exist - process it [12:18:49]requested_item shift.opened is exist - process it [12:18:49]req_shift_opened [12:18:49]FM_GetShiftState [12:18:49]SAM_PROTO_GetShiftState [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 13 01 00 [12:18:49]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0E 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 5D [12:18:49]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:18:49]wFMCommunicate OK [12:18:49]SAM_PROTO_GetShiftState done [12:18:49]FM_GetShiftState done [12:18:49]req_shift_opened done [12:18:49]requested_item shift.open_date is exist - process it [12:18:49]req_shift_open_date [12:18:49]req_shift_open_date done [12:18:49]produce_requested_data done [12:18:49]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76848,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:18:49]process_action_free close_receipt [12:18:49]json_value_free [12:18:49]json_value_free done [12:18:49]process_json_proto returns [12:18:49]Send response to host [12:18:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76848,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:18:49]free response buf [12:18:49]execute_script done [12:18:49]execute_script returns [12:18:49]free content buf [12:18:49]Sock 8.Close socket [12:18:49]Sock 8.Thread stoped [12:18:50]accept exits with 9 [12:18:50]New connection [12:18:50]New thread 3067362660 created [12:18:50]Thread 3067219300 joined [12:18:50]Waiting for new connection... [12:18:50] Sock 9.Parse request [12:18:50]Sock 9.Check first char [12:18:50]Sock 9.First char is OK [12:18:50]request: POST /json_proto HTTP/1.0 [12:18:50]Method: POST [12:18:50]URL: /json_proto [12:18:50]Method is POST - this is cgi request [12:18:50]url: /json_proto [12:18:50]query_string will be loaded in cgi processing [12:18:50]execute_cgi json_proto POST (null) [12:18:50]execute_cgi path=json_proto method=POST [12:18:50]POST find Content-Length [12:18:50]Host: 172.17.39.195:8080 [12:18:50]Content-Length: 678 [12:18:50]Content-Type: application/json [12:18:50] [12:18:50]POST finish read [12:18:50]Found Content-Length = 678 [12:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [12:18:50]execute_script... [12:18:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [12:18:50]POST & json_proto [12:18:50]process_json_proto [12:18:50]json parsed OK: [12:18:50]protocol is kg_v1.0 [12:18:50]action value=close_receipt [12:18:50]process_action close_receipt [12:18:50]cmd_close_receipt [12:18:50]MH_GetDate [12:18:50]Write to MH i2c: F0 00 00 E8 03 DA [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: F0 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: F0 09 00 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: F0 09 00 E8 03 00 2B C1 76 66 99 81 91 64 BA [12:18:50]GetLastDocTimeStamp 1719058724 [12:18:50]current date 1719058731 [12:18:50]FM_GetShiftState [12:18:50]SAM_PROTO_GetShiftState [12:18:50]wFMCommunicate request_size=4 [12:18:50]MH_SAM_APDU [12:18:50]CAPDU: 80 13 01 00 [12:18:50]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [12:18:50]Write i2c OK [12:18:50]MH_I2C_Read... [12:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:50]Read from MH i2c: E2 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: E2 0E 00 [12:18:50]MH_I2C_Read... [12:18:50]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 5F [12:18:50]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:18:50]wFMCommunicate OK [12:18:50]SAM_PROTO_GetShiftState done [12:18:50]FM_GetShiftState done [12:18:50]opened in 1719016435 [12:18:50]opened+sec_in_day 1719102835 [12:18:50]quantity*price = 60025 [12:18:50]sum+1 = 60027 [12:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 45 22.06.2024 12:18 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76849 ФПД: 201654182903264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121851&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76849&fm=201654182903264&tin=02508201610067®Number=0000000000095696&sum=60000 [12:18:52]StoreToDocumentArchive [12:18:52]shift 395 fd 76849 [12:18:52]save to /storage/0395/doc_00076849 [12:18:52]save last doc name /storage/0395/doc_00076849 to /storage/kkm_last_doc_name [12:18:52]save OK [12:18:52]Clear old archive folders... [12:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:52]tlvbuf is 00992520 [12:18:52]SAM_PROTO_ClearQueue [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 09 00 00 [12:18:52]Write to MH i2c: E2 08 00 F6 03 80 09 00 00 00 00 00 00 6B [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]SAM_PROTO_ClearQueue done [12:18:52]KKMCreateOFDPacket [12:18:52]OFDProtocolAddRootSTLVToBuf [12:18:52]FM_MakeSignedData [12:18:52]FM_MakeSignedData [12:18:52]SAM_PROTO_SignData [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 01 02 [12:18:52]Write to MH i2c: E2 08 00 F7 03 80 0D 01 02 00 00 00 00 73 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=255 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 2D 00 00 00 F4 03 04 00 2B C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 31 2C 01 00 35 04 06 00 B7 [12:18:52]Write to MH i2c: E2 02 01 F8 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 2D 00 00 00 F4 03 04 00 2B C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 31 2C 01 00 35 04 06 00 B7 00 00 A1 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=10 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 02 02 05 67 45 F0 7D E0 [12:18:52]Write to MH i2c: E2 0D 00 F9 03 80 0D 02 02 05 00 67 45 F0 7D E0 00 00 79 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 03 02 [12:18:52]Write to MH i2c: E2 08 00 FA 03 80 0D 03 02 00 00 00 00 78 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:53]Read from MH i2c: E2 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: E2 0B 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: E2 0B 00 FA 03 00 4E 11 E9 93 51 88 A8 11 90 00 E6 [12:18:53]RAPDU: 4E 11 E9 93 51 88 A8 11 90 00 [12:18:53]wFMCommunicate OK [12:18:53]SAM_PROTO_SignData done [12:18:53]FM_MakeSignedData done [12:18:53]CreateOFDProtocolMessage [12:18:53]wFMCommunicate request_size=4 [12:18:53]MH_SAM_APDU [12:18:53]CAPDU: 80 11 00 00 [12:18:53]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:53]Read from MH i2c: E2 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: E2 17 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: E2 17 00 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C8 [12:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:18:53]wFMCommunicate OK [12:18:53]CreateOFDProtocolMessage done [12:18:53]OFDSenderStorePacket 76849 [12:18:53]StoreOFDPacket docnum=76849 [12:18:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F5 82 07 01 6E 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 2D 00 00 00 F4 03 04 00 2B C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 31 2C 01 00 35 04 06 00 B7 67 45 F0 7D E0 4E 11 E9 93 51 88 A8 11 [12:18:53]CheckFolder [12:18:53]dirname=/storage/ofd_packets [12:18:53]CheckFolder done [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00076849 [12:18:53]NVStorageSaveData ofd_packets/00076849 [12:18:53]File name is /storage/ofd_packets/00076849 [12:18:53]Write 301 bytes [12:18:53]NVStorageSaveData done [12:18:53]OFDSenderStorePacket done [12:18:53]KKMCreateOFDPacket done [12:18:53]NVStorageSaveData kkm_last_timestamp [12:18:53]File name is /storage/kkm_last_timestamp [12:18:53]Write 4 bytes [12:18:53]NVStorageSaveData done [12:18:53]ExternCall_PrintAddStr [12:18:53]wPrintStart [12:18:53]Write to MH i2c: 01 00 00 FC 03 FF [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 FC 03 00 00 00 00 00 FF 0F 14 [12:18:53]RasterBufferAndPrint [12:18:53]line Счет N : (1)1694436 [12:18:53]line ИНН: 02508201610067 [12:18:53]line Контрольно-Кассовый Чек [12:18:53]line ПРОДАЖА [12:18:53]line ТРК (МРК, ГНК) : 63 [12:18:53]line Товар: 2710124130 [12:18:53]line Аи-92-К-5 [12:18:53]line 9.040 * 66.40 [12:18:53]line = 600.26 [12:18:53]line НДС 12% НСП 1% [12:18:53]line > о реализуемом товаре [12:18:53]line ОКРУГЛЕНИЕ: -0.26 [12:18:53]line ИТОГО: 600.00 [12:18:53]line Внесено: 600.00 [12:18:53]line СДАЧА: 0.00 [12:18:53]line НСП 1% : 5.31 [12:18:53]line НДС 12% : 63.74 [12:18:53]line Наличными: 600.00 [12:18:53]line Безнал.: 0.00 [12:18:53]line Место: АЗС № 144 "Партнер Нефть" [12:18:53]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:18:53]line СНО: Общий режим [12:18:53]line Чек 45 22.06.2024 12:18 [12:18:53]line Смена: 395 ФФД: 1.0 [12:18:53]line ЗНМ: 0300000170 [12:18:53]line РНМ: 0000000000095696 [12:18:53]line Версия ККМ: 001 [12:18:53]line ФМ: 0000000000875009 [12:18:53]line ФД: 76849 [12:18:53]line ФПД: 201654182903264 [12:18:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T121851&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76849&fm=201654182903264&tin=02508201610067®Number=0000000000095696&sum=60000 [12:18:53]written 0, free lines is 4095 [12:18:53]OFD Sender: Processing packet 76849 [packets to send 351, broken 350] [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00076849 [12:18:53]OFD Sender: To server: pG, [12:18:53]CommunicateWithHost lk.salyk.kg:30040 [12:18:53]ConnectInit lk.salyk.kg [12:18:53]Write to MH i2c: 01 00 00 27 04 2B [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 E9 0C 27 [12:18:53]RasterBufferAndPrint [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]written 0, free lines is 3323 [12:18:53]MH_Cut [12:18:53]Write to MH i2c: D1 01 00 2E 04 01 04 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 01 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 01 00 2E 04 00 03 [12:18:53]Write to MH i2c: 01 00 00 2F 04 33 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:54]*** Cut start [12:18:54]*** Partial cut [12:18:54]*** CUTSNS_PIN = 1 [12:18:54]*** CUTSNS_PIN = 0 [12:18:54]*** Brake cut motor [12:18:54]Read from MH i2c: 01 [12:18:54]MH_I2C_Read... [12:18:54]*** Stop cut motor [12:18:54]*** Cut end [12:18:54]Read from MH i2c: 01 07 00 [12:18:54]MH_I2C_Read... [12:18:54]Read from MH i2c: 01 07 00 2F 04 00 00 00 00 00 FF 0F 48 [12:18:54]process_action close_receipt done [12:18:54]requested_data is exist [12:18:54]produce_requested_data [12:18:54]requested_item fm.sn is exist - process it [12:18:54]wFMCommunicate request_size=4 [12:18:54]MH_SAM_APDU [12:18:54]CAPDU: 80 11 00 00 [12:18:54]Write to MH i2c: E2 08 00 30 04 80 11 00 00 00 00 00 00 AE [12:18:54]Write i2c OK [12:18:54]MH_I2C_Read... [12:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:54]Read from MH i2c: E2 [12:18:54]MH_I2C_Read... [12:18:54]Read from MH i2c: E2 17 00 [12:18:55]MH_I2C_Read... [12:18:55]Connected sock=11 [12:18:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F5 82 07 01 6E 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 Read from MH i2c: 1F E2 04 17 02 00 00 30 01 04 00 00 12 11 04 04 04 10 00 00 2D 30 00 00 30 00 F4 30 03 30 04 30 00 30 2B 30 C1 30 76 30 66 30 38 37 35 30 30 39 90 00 FE [12:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:18:55]wFMCommunicate OK [12:18:55]requested_item fd.num is exist - process it [12:18:55]SAM_PROTO_GetFieldsCounters [12:18:55]wFMCommunicate request_size=4 [12:18:55]0E MH_SAM_APDU [12:18:55]04 CAPDU: 04 80 00 13 8B 00 01 00 00 [12:18:55]00 Write to MH i2c: B9 E2 04 08 01 00 00 31 01 0D 04 04 80 10 13 00 00 30 00 30 00 30 00 30 00 30 00 30 B1 30 [12:18:55]30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 Write i2c OK [12:18:55]30 MH_I2C_Read... [12:18:55]30 30 38 37 35 30 30 39 10 04 04 00 31 2C 01 00 35 04 06 00 B7 67 45 F0 7D E0 4E 11 E9 93 51 88 A8 11 [12:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 62 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 62 00 31 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 31 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [12:18:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 31 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:55]wFMCommunicate OK [12:18:55]SAM_PROTO_GetFieldsCounters done [12:18:55]requested_item shift.num is exist - process it [12:18:55]requested_item shift.opened is exist - process it [12:18:55]req_shift_opened [12:18:55]FM_GetShiftState [12:18:55]SAM_PROTO_GetShiftState [12:18:55]wFMCommunicate request_size=4 [12:18:55]MH_SAM_APDU [12:18:55]CAPDU: 80 13 01 00 [12:18:55]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [12:18:55]Write i2c OK [12:18:55]Received data: MH_I2C_Read... [12:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 13 0B 47 00 F7 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 31 2C 01 00 F4 03 04 00 C7 67 76 66 B6 04 01 00 00 AF 0F 32 78 A8 8A C2 80 [12:18:55]CommunicateWithHost err = 0 [12:18:55]CheckOFDResponse [12:18:55]1017 (14) - 77093643461234 [12:18:55]1041 (16) - 0000000000875009 [12:18:55]1040 (4) - 76849 [12:18:55]1012 (4) - 22.06.2024 05:57 [12:18:55]1206 (1) - 0 [12:18:55]OFD Sender: Remove packet 76849 [12:18:55]ProducePacketName [12:18:55]name=ofd_packets/00076849 [12:18:55]NVStorageDeleteData [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:55]Read from MH i2c: E2 0E 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 A9 [12:18:55]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:18:55]wFMCommunicate OK [12:18:55]SAM_PROTO_GetShiftState done [12:18:55]FM_GetShiftState done [12:18:55]req_shift_opened done [12:18:55]requested_item shift.open_date is exist - process it [12:18:55]req_shift_open_date [12:18:55]req_shift_open_date done [12:18:55]produce_requested_data done [12:18:55]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76849,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:18:55]process_action_free close_receipt [12:18:55]json_value_free [12:18:55]json_value_free done [12:18:55]process_json_proto returns [12:18:55]Send response to host [12:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76849,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:18:55]free response buf [12:18:55]execute_script done [12:18:55]execute_script returns [12:18:55]free content buf [12:18:55]Sock 9.Close socket [12:18:55]Sock 9.Thread stoped [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:07]accept exits with 8 [12:21:07]New connection [12:21:07]New thread 3067219300 created [12:21:07]Thread 3067362660 joined [12:21:07]Waiting for new connection... [12:21:07] Sock 8.Parse request [12:21:07]Sock 8.Check first char [12:21:07]Sock 8.First char is OK [12:21:07]request: POST /json_proto HTTP/1.0 [12:21:07]Method: POST [12:21:07]URL: /json_proto [12:21:07]Method is POST - this is cgi request [12:21:07]url: /json_proto [12:21:07]query_string will be loaded in cgi processing [12:21:07]execute_cgi json_proto POST (null) [12:21:07]execute_cgi path=json_proto method=POST [12:21:07]POST find Content-Length [12:21:07]Host: 172.17.39.195:8080 [12:21:07]Content-Length: 678 [12:21:07]Content-Type: application/json [12:21:07] [12:21:07]POST finish read [12:21:07]Found Content-Length = 678 [12:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:21:07]execute_script... [12: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)1694437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:21:07]POST & json_proto [12:21:07]process_json_proto [12:21:07]json parsed OK: [12:21:07]protocol is kg_v1.0 [12:21:07]action value=close_receipt [12:21:07]process_action close_receipt [12:21:07]cmd_close_receipt [12:21:07]MH_GetDate [12:21:07]Write to MH i2c: F0 00 00 33 04 26 [12:21:07]Write i2c OK [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: F0 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: F0 09 00 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: F0 09 00 33 04 00 B4 C1 76 66 99 81 91 64 8F [12:21:07]GetLastDocTimeStamp 1719058731 [12:21:07]current date 1719058868 [12:21:07]FM_GetShiftState [12:21:07]SAM_PROTO_GetShiftState [12:21:07]wFMCommunicate request_size=4 [12:21:07]MH_SAM_APDU [12:21:07]CAPDU: 80 13 01 00 [12:21:07]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [12:21:07]Write i2c OK [12:21:07]MH_I2C_Read... [12:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:07]Read from MH i2c: E2 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: E2 0E 00 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 AB [12:21:07]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:21:07]wFMCommunicate OK [12:21:07]SAM_PROTO_GetShiftState done [12:21:07]FM_GetShiftState done [12:21:07]opened in 1719016435 [12:21:07]opened+sec_in_day 1719102835 [12:21:07]quantity*price = 50065 [12:21:07]sum+1 = 50067 [12:21:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 46 22.06.2024 12:21 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76850 ФПД: 5072359749025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122108&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76850&fm=5072359749025&tin=02508201610067®Number=0000000000095696&sum=50000 [12:21:08]StoreToDocumentArchive [12:21:08]shift 395 fd 76850 [12:21:08]save to /storage/0395/doc_00076850 [12:21:08]save last doc name /storage/0395/doc_00076850 to /storage/kkm_last_doc_name [12:21:08]save OK [12:21:08]Clear old archive folders... [12:21:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:08]tlvbuf is 0091A230 [12:21:08]SAM_PROTO_ClearQueue [12:21:08]wFMCommunicate request_size=4 [12:21:08]MH_SAM_APDU [12:21:08]CAPDU: 80 09 00 00 [12:21:08]Write to MH i2c: E2 08 00 41 04 80 09 00 00 00 00 00 00 B7 [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:08]Read from MH i2c: E2 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 03 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [12:21:08]RAPDU: 90 00 [12:21:08]wFMCommunicate OK [12:21:08]SAM_PROTO_ClearQueue done [12:21:08]KKMCreateOFDPacket [12:21:08]OFDProtocolAddRootSTLVToBuf [12:21:08]FM_MakeSignedData [12:21:08]FM_MakeSignedData [12:21:08]SAM_PROTO_SignData [12:21:08]wFMCommunicate request_size=4 [12:21:08]MH_SAM_APDU [12:21:08]CAPDU: 80 0D 01 02 [12:21:08]Write to MH i2c: E2 08 00 42 04 80 0D 01 02 00 00 00 00 BF [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:08]Read from MH i2c: E2 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 03 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [12:21:08]RAPDU: 90 00 [12:21:08]wFMCommunicate OK [12:21:08]wFMCommunicate request_size=255 [12:21:08]MH_SAM_APDU [12: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 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2E 00 00 00 F4 03 04 00 B4 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2C 01 00 35 04 06 00 04 [12:21:08]Write to MH i2c: E2 02 01 43 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2E 00 00 00 F4 03 04 00 B4 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2C 01 00 35 04 06 00 04 00 00 E8 [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:08]Read from MH i2c: E2 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 03 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [12:21:08]RAPDU: 90 00 [12:21:08]wFMCommunicate OK [12:21:08]wFMCommunicate request_size=10 [12:21:08]MH_SAM_APDU [12:21:08]CAPDU: 80 0D 02 02 05 9D 00 33 75 A1 [12:21:08]Write to MH i2c: E2 0D 00 44 04 80 0D 02 02 05 00 9D 00 33 75 A1 00 00 B2 [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:08]Read from MH i2c: E2 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 03 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [12:21:08]RAPDU: 90 00 [12:21:08]wFMCommunicate OK [12:21:08]wFMCommunicate request_size=4 [12:21:08]MH_SAM_APDU [12:21:08]CAPDU: 80 0D 03 02 [12:21:08]Write to MH i2c: E2 08 00 45 04 80 0D 03 02 00 00 00 00 C4 [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:08]Read from MH i2c: E2 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 0B 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 0B 00 45 04 00 06 D7 60 A3 8D 8D EE 95 90 00 42 [12:21:08]RAPDU: 06 D7 60 A3 8D 8D EE 95 90 00 [12:21:08]wFMCommunicate OK [12:21:08]SAM_PROTO_SignData done [12:21:08]FM_MakeSignedData done [12:21:08]CreateOFDProtocolMessage [12:21:08]wFMCommunicate request_size=4 [12:21:08]MH_SAM_APDU [12:21:08]CAPDU: 80 11 00 00 [12:21:08]Write to MH i2c: E2 08 00 46 04 80 11 00 00 00 00 00 00 C4 [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:08]Read from MH i2c: E2 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 17 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 17 00 46 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 14 [12:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:21:08]wFMCommunicate OK [12:21:08]CreateOFDProtocolMessage done [12:21:08]OFDSenderStorePacket 76850 [12:21:08]StoreOFDPacket docnum=76850 [12:21:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 B5 8A 07 01 45 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2E 00 00 00 F4 03 04 00 B4 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2C 01 00 35 04 06 00 04 9D 00 33 75 A1 06 D7 60 A3 8D 8D EE 95 [12:21:08]CheckFolder [12:21:08]dirname=/storage/ofd_packets [12:21:08]CheckFolder done [12:21:08]ProducePacketName [12:21:08]name=ofd_packets/00076850 [12:21:08]NVStorageSaveData ofd_packets/00076850 [12:21:08]File name is /storage/ofd_packets/00076850 [12:21:08]Write 301 bytes [12:21:08]NVStorageSaveData done [12:21:08]OFDSenderStorePacket done [12:21:08]KKMCreateOFDPacket done [12:21:08]NVStorageSaveData kkm_last_timestamp [12:21:08]File name is /storage/kkm_last_timestamp [12:21:08]Write 4 bytes [12:21:08]NVStorageSaveData done [12:21:08]ExternCall_PrintAddStr [12:21:08]wPrintStart [12:21:08]Write to MH i2c: 01 00 00 47 04 4B [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 07 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 FF 0F 60 [12:21:08]RasterBufferAndPrint [12:21:08]line Счет N : (1)1694437 [12:21:08]line ИНН: 02508201610067 [12:21:08]line Контрольно-Кассовый Чек [12:21:08]line ПРОДАЖА [12:21:08]line ТРК (МРК, ГНК) : 33 [12:21:08]line Товар: 2710124130 [12:21:08]line Аи-92-К-5 [12:21:08]line 7.540 * 66.40 [12:21:08]line = 500.66 [12:21:08]line НДС 12% НСП 1% [12:21:08]line > о реализуемом товаре [12:21:08]line ОКРУГЛЕНИЕ: -0.66 [12:21:08]line ИТОГО: 500.00 [12:21:08]line Внесено: 500.00 [12:21:08]line СДАЧА: 0.00 [12:21:08]line НСП 1% : 4.43 [12:21:08]line НДС 12% : 53.17 [12:21:08]line Наличными: 500.00 [12:21:08]line Безнал.: 0.00 [12:21:08]line Место: АЗС № 144 "Партнер Нефть" [12:21:08]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:21:08]line СНО: Общий режим [12:21:08]line Чек 46 22.06.2024 12:21 [12:21:08]line Смена: 395 ФФД: 1.0 [12:21:08]line ЗНМ: 0300000170 [12:21:08]line РНМ: 0000000000095696 [12:21:08]line Версия ККМ: 001 [12:21:08]line ФМ: 0000000000875009 [12:21:08]line ФД: 76850 [12:21:08]line ФПД: 5072359749025 [12:21:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122108&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76850&fm=5072359749025&tin=02508201610067®Number=0000000000095696&sum=50000 [12:21:09]written 0, free lines is 4095 [12:21:09]OFD Sender: Processing packet 76850 [packets to send 351, broken 350] [12:21:09]ProducePacketName [12:21:09]name=ofd_packets/00076850 [12:21:09]OFD Sender: To server: pG, [12:21:09]CommunicateWithHost lk.salyk.kg:30040 [12:21:09]ConnectInit lk.salyk.kg [12:21:09]Write to MH i2c: 01 00 00 72 04 76 [12:21:09]Write i2c OK [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: 01 [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: 01 07 00 [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 D0 0C 59 [12:21:09]RasterBufferAndPrint [12:21:09]line [12:21:09]line [12:21:09]line [12:21:09]line [12:21:09]line [12:21:09]written 0, free lines is 3284 [12:21:09]MH_Cut [12:21:09]Write to MH i2c: D1 01 00 79 04 01 4F [12:21:09]Write i2c OK [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: D1 [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: D1 01 00 [12:21:09]MH_I2C_Read... [12:21:09]Read from MH i2c: D1 01 00 79 04 00 4E [12:21:09]Write to MH i2c: 01 00 00 7A 04 7E [12:21:09]Write i2c OK [12:21:09]MH_I2C_Read... [12:21:10]Connected sock=11 [12:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 B5 8A 07 01 45 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 2E 00 00 00 F4 03 04 00 B4 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2C 01 00 35 04 06 00 04 9D 00 33 75 A1 06 D7 60 A3 8D 8D EE 95 [12:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 E6 0B 47 00 78 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 32 2C 01 00 F4 03 04 00 4E 68 76 66 B6 04 01 00 00 BB BB 81 1C 19 3E FB BA [12:21:10]CommunicateWithHost err = 0 [12:21:10]CheckOFDResponse [12:21:10]1017 (14) - 77093643461234 [12:21:10]1041 (16) - 0000000000875009 [12:21:10]1040 (4) - 76850 [12:21:10]1012 (4) - 22.06.2024 05:59 [12:21:10]1206 (1) - 0 [12:21:10]OFD Sender: Remove packet 76850 [12:21:10]ProducePacketName [12:21:10]name=ofd_packets/00076850 [12:21:10]NVStorageDeleteData [12:21:10]*** Cut start [12:21:10]*** Partial cut [12:21:10]*** CUTSNS_PIN = 1 [12:21:10]*** CUTSNS_PIN = 0 [12:21:10]*** Brake cut motor [12:21:10]OFD Sender: No OFD packet to send [12:21:11]Read from MH i2c: 01 [12:21:11]MH_I2C_Read... [12:21:11]*** Stop cut motor [12:21:11]*** Cut end [12:21:11]Read from MH i2c: 01 07 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 FF 0F 93 [12:21:11]process_action close_receipt done [12:21:11]requested_data is exist [12:21:11]produce_requested_data [12:21:11]requested_item fm.sn is exist - process it [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 11 00 00 [12:21:11]Write to MH i2c: E2 08 00 7B 04 80 11 00 00 00 00 00 00 F9 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 17 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 17 00 7B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 49 [12:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:21:11]wFMCommunicate OK [12:21:11]requested_item fd.num is exist - process it [12:21:11]SAM_PROTO_GetFieldsCounters [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 13 00 00 [12:21:11]Write to MH i2c: E2 08 00 7C 04 80 13 00 00 00 00 00 00 FC [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 62 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 62 00 7C 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 32 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [12:21: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 32 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:11]wFMCommunicate OK [12:21:11]SAM_PROTO_GetFieldsCounters done [12:21:11]requested_item shift.num is exist - process it [12:21:11]requested_item shift.opened is exist - process it [12:21:11]req_shift_opened [12:21:11]FM_GetShiftState [12:21:11]SAM_PROTO_GetShiftState [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 13 01 00 [12:21:11]Write to MH i2c: E2 08 00 7D 04 80 13 01 00 00 00 00 00 FE [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 0E 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 0E 00 7D 04 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F4 [12:21:11]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:21:11]wFMCommunicate OK [12:21:11]SAM_PROTO_GetShiftState done [12:21:11]FM_GetShiftState done [12:21:11]req_shift_opened done [12:21:11]requested_item shift.open_date is exist - process it [12:21:11]req_shift_open_date [12:21:11]req_shift_open_date done [12:21:11]produce_requested_data done [12:21:11]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76850,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:21:11]process_action_free close_receipt [12:21:11]json_value_free [12:21:11]json_value_free done [12:21:11]process_json_proto returns [12:21:11]Send response to host [12:21:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76850,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:21:11]free response buf [12:21:11]execute_script done [12:21:11]execute_script returns [12:21:11]free content buf [12:21:11]Sock 8.Close socket [12:21:11]Sock 8.Thread stoped [12:21:11]accept exits with 9 [12:21:11]New connection [12:21:11]New thread 3067362660 created [12:21:11]Thread 3067219300 joined [12:21:11]Waiting for new connection... [12:21:11] Sock 9.Parse request [12:21:11]Sock 9.Check first char [12:21:11]Sock 9.First char is OK [12:21:11]request: POST /json_proto HTTP/1.0 [12:21:11]Method: POST [12:21:11]URL: /json_proto [12:21:11]Method is POST - this is cgi request [12:21:11]url: /json_proto [12:21:11]query_string will be loaded in cgi processing [12:21:11]execute_cgi json_proto POST (null) [12:21:11]execute_cgi path=json_proto method=POST [12:21:11]POST find Content-Length [12:21:11]Host: 172.17.39.195:8080 [12:21:11]Content-Length: 804 [12:21:11]Content-Type: application/json [12:21:11] [12:21:11]POST finish read [12:21:11]Found Content-Length = 804 [12:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:11]execute_script... [12:21: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)1694438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:11]POST & json_proto [12:21:11]process_json_proto [12:21:11]json parsed OK: [12:21:11]protocol is kg_v1.0 [12:21:11]action value=close_receipt [12:21:11]process_action close_receipt [12:21:11]cmd_close_receipt [12:21:11]MH_GetDate [12:21:11]Write to MH i2c: F0 00 00 7E 04 71 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: F0 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: F0 09 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: F0 09 00 7E 04 00 B8 C1 76 66 99 81 91 64 DE [12:21:11]GetLastDocTimeStamp 1719058868 [12:21:11]current date 1719058872 [12:21:11]FM_GetShiftState [12:21:11]SAM_PROTO_GetShiftState [12:21:11]wFMCommunicate request_size=4 [12:21:11]MH_SAM_APDU [12:21:11]CAPDU: 80 13 01 00 [12:21:11]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [12:21:11]Write i2c OK [12:21:11]MH_I2C_Read... [12:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:11]Read from MH i2c: E2 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 0E 00 [12:21:11]MH_I2C_Read... [12:21:11]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F6 [12:21:11]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:21:11]wFMCommunicate OK [12:21:11]SAM_PROTO_GetShiftState done [12:21:11]FM_GetShiftState done [12:21:11]opened in 1719016435 [12:21:11]opened+sec_in_day 1719102835 [12:21:11]quantity*price = 100064 [12:21:11]sum+1 = 100066 [12:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 47 22.06.2024 12:21 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76851 ФПД: 253734348715497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122112&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76851&fm=253734348715497&tin=02508201610067®Number=0000000000095696&sum=100065 [12:21:12]StoreToDocumentArchive [12:21:12]shift 395 fd 76851 [12:21:12]save to /storage/0395/doc_00076851 [12:21:12]save last doc name /storage/0395/doc_00076851 to /storage/kkm_last_doc_name [12:21:12]save OK [12:21:12]Clear old archive folders... [12:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:12]tlvbuf is 0091A0F0 [12:21:12]SAM_PROTO_ClearQueue [12:21:12]wFMCommunicate request_size=4 [12:21:12]MH_SAM_APDU [12:21:12]CAPDU: 80 09 00 00 [12:21:12]Write to MH i2c: E2 08 00 8C 04 80 09 00 00 00 00 00 00 02 [12:21:12]Write i2c OK [12:21:12]MH_I2C_Read... [12:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [12:21:13]RAPDU: 90 00 [12:21:13]wFMCommunicate OK [12:21:13]SAM_PROTO_ClearQueue done [12:21:13]KKMCreateOFDPacket [12:21:13]OFDProtocolAddRootSTLVToBuf [12:21:13]FM_MakeSignedData [12:21:13]FM_MakeSignedData [12:21:13]SAM_PROTO_SignData [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 0D 01 02 [12:21:13]Write to MH i2c: E2 08 00 8D 04 80 0D 01 02 00 00 00 00 0A [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [12:21:13]RAPDU: 90 00 [12:21:13]wFMCommunicate OK [12:21:13]wFMCommunicate request_size=255 [12:21:13]MH_SAM_APDU [12:21: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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B8 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 33 2C 01 00 35 04 06 00 E6 [12:21:13]Write to MH i2c: E2 02 01 8E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B8 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 33 2C 01 00 35 04 06 00 E6 00 00 ED [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [12:21:13]RAPDU: 90 00 [12:21:13]wFMCommunicate OK [12:21:13]wFMCommunicate request_size=10 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 0D 02 02 05 C5 21 B8 F5 E9 [12:21:13]Write to MH i2c: E2 0D 00 8F 04 80 0D 02 02 05 00 C5 21 B8 F5 E9 00 00 93 [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [12:21:13]RAPDU: 90 00 [12:21:13]wFMCommunicate OK [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 0D 03 02 [12:21:13]Write to MH i2c: E2 08 00 90 04 80 0D 03 02 00 00 00 00 0F [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 0B 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 0B 00 90 04 00 85 C3 85 58 2A 93 B4 C2 90 00 68 [12:21:13]RAPDU: 85 C3 85 58 2A 93 B4 C2 90 00 [12:21:13]wFMCommunicate OK [12:21:13]SAM_PROTO_SignData done [12:21:13]FM_MakeSignedData done [12:21:13]CreateOFDProtocolMessage [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 11 00 00 [12:21:13]Write to MH i2c: E2 08 00 91 04 80 11 00 00 00 00 00 00 0F [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 17 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 17 00 91 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5F [12:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:21:13]wFMCommunicate OK [12:21:13]CreateOFDProtocolMessage done [12:21:13]OFDSenderStorePacket 76851 [12:21:13]StoreOFDPacket docnum=76851 [12:21:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 21 00 07 01 F8 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B8 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 33 2C 01 00 35 04 06 00 E6 C5 21 B8 F5 E9 85 C3 85 58 2A 93 B4 C2 [12:21:13]CheckFolder [12:21:13]dirname=/storage/ofd_packets [12:21:13]CheckFolder done [12:21:13]ProducePacketName [12:21:13]name=ofd_packets/00076851 [12:21:13]NVStorageSaveData ofd_packets/00076851 [12:21:13]File name is /storage/ofd_packets/00076851 [12:21:13]Write 301 bytes [12:21:13]NVStorageSaveData done [12:21:13]OFDSenderStorePacket done [12:21:13]KKMCreateOFDPacket done [12:21:13]NVStorageSaveData kkm_last_timestamp [12:21:13]File name is /storage/kkm_last_timestamp [12:21:13]Write 4 bytes [12:21:13]NVStorageSaveData done [12:21:13]OFD Sender: Processing packet 76851 [packets to send 351, broken 350] [12:21:13]ProducePacketName [12:21:13]name=ofd_packets/00076851 [12:21:13]OFD Sender: To server: pG, [12:21:13]CommunicateWithHost lk.salyk.kg:30040 [12:21:13]ConnectInit lk.salyk.kg [12:21:13]ExternCall_PrintAddStr [12:21:13]wPrintStart [12:21:13]Write to MH i2c: 01 00 00 92 04 96 [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: 01 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: 01 07 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 FF 0F AB [12:21:13]RasterBufferAndPrint [12:21:13]line Счет N : (1)1694438 [12:21:13]line ИНН: 02508201610067 [12:21:13]line Контрольно-Кассовый Чек [12:21:13]line ПРОДАЖА [12:21:13]line ТРК (МРК, ГНК) : 43 [12:21:13]line Товар: 2710124130 [12:21:13]line Аи-92-К-5 [12:21:13]line 15.070 * 66.40 [12:21:13]line = 1000.65 [12:21:13]line НДС 12% НСП 1% [12:21:13]line > о реализуемом товаре [12:21:13]line ИТОГО: 1000.65 [12:21:13]line НСП 1% : 8.85 [12:21:13]line НДС 12% : 106.26 [12:21:13]line Наличными: 0.00 [12:21:13]line Безнал.: 1000.65 [12:21:13]line Место: АЗС № 144 "Партнер Нефть" [12:21:13]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:21:13]line СНО: Общий режим [12:21:13]line Чек 47 22.06.2024 12:21 [12:21:13]line Смена: 395 ФФД: 1.0 [12:21:13]line ЗНМ: 0300000170 [12:21:13]line РНМ: 0000000000095696 [12:21:13]line Версия ККМ: 001 [12:21:13]line Платежная система: O! деньги [12:21:13]line ФМ: 0000000000875009 [12:21:13]line ФД: 76851 [12:21:13]line ФПД: 253734348715497 [12:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122112&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76851&fm=253734348715497&tin=02508201610067®Number=0000000000095696&sum=100065 [12:21:13]written 0, free lines is 4095 [12:21:14]Connected sock=11 [12:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 21 00 07 01 F8 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 B8 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 33 2C 01 00 35 04 06 00 E6 C5 21 B8 F5 E9 85 C3 85 58 2A 93 B4 C2 [12:21:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 31 CB 47 00 29 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 35 30 30 39 10 04 04 00 33 2C 01 00 F4 03 04 00 52 68 76 66 B6 04 01 00 00 16 5B 0A 0E 23 BB D8 27 [12:21:14]CommunicateWithHost err = 0 [12:21:14]CheckOFDResponse [12:21:14]1017 (14) - 77093643461234 [12:21:14]1041 (16) - 0000000000875009 [12:21:14]1040 (4) - 76851 [12:21:14]1012 (4) - 22.06.2024 05:59 [12:21:14]1206 (1) - 0 [12:21:14]OFD Sender: Remove packet 76851 [12:21:14]ProducePacketName [12:21:14]name=ofd_packets/00076851 [12:21:14]NVStorageDeleteData [12:21:14]Write to MH i2c: 01 00 00 BC 04 C0 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: 01 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: 01 07 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 F6 0C C9 [12:21:14]RasterBufferAndPrint [12:21:14]line [12:21:14]line [12:21:14]line [12:21:14]line [12:21:14]line [12:21:14]written 0, free lines is 3331 [12:21:14]MH_Cut [12:21:14]Write to MH i2c: D1 01 00 C3 04 01 99 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: D1 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: D1 01 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: D1 01 00 C3 04 00 98 [12:21:14]Write to MH i2c: 01 00 00 C4 04 C8 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]OFD Sender: No OFD packet to send [12:21:15]*** Cut start [12:21:15]*** Partial cut [12:21:15]*** CUTSNS_PIN = 1 [12:21:15]*** CUTSNS_PIN = 0 [12:21:15]*** Brake cut motor [12:21:15]Read from MH i2c: 01 [12:21:15]MH_I2C_Read... [12:21:15]*** Stop cut motor [12:21:15]*** Cut end [12:21:15]Read from MH i2c: 01 07 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [12:21:15]process_action close_receipt done [12:21:15]requested_data is exist [12:21:15]produce_requested_data [12:21:15]requested_item fm.sn is exist - process it [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 11 00 00 [12:21:15]Write to MH i2c: E2 08 00 C5 04 80 11 00 00 00 00 00 00 43 [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 17 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 17 00 C5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 93 [12:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:21:15]wFMCommunicate OK [12:21:15]requested_item fd.num is exist - process it [12:21:15]SAM_PROTO_GetFieldsCounters [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 13 00 00 [12:21:15]Write to MH i2c: E2 08 00 C6 04 80 13 00 00 00 00 00 00 46 [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 62 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 62 00 C6 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 33 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [12:21: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 33 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:15]wFMCommunicate OK [12:21:15]SAM_PROTO_GetFieldsCounters done [12:21:15]requested_item shift.num is exist - process it [12:21:15]requested_item shift.opened is exist - process it [12:21:15]req_shift_opened [12:21:15]FM_GetShiftState [12:21:15]SAM_PROTO_GetShiftState [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 13 01 00 [12:21:15]Write to MH i2c: E2 08 00 C7 04 80 13 01 00 00 00 00 00 48 [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 0E 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 0E 00 C7 04 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 3E [12:21:15]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:21:15]wFMCommunicate OK [12:21:15]SAM_PROTO_GetShiftState done [12:21:15]FM_GetShiftState done [12:21:15]req_shift_opened done [12:21:15]requested_item shift.open_date is exist - process it [12:21:15]req_shift_open_date [12:21:15]req_shift_open_date done [12:21:15]produce_requested_data done [12:21:15]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76851,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:21:15]process_action_free close_receipt [12:21:15]json_value_free [12:21:15]json_value_free done [12:21:15]process_json_proto returns [12:21:15]Send response to host [12:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76851,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:21:15]free response buf [12:21:15]execute_script done [12:21:15]execute_script returns [12:21:15]free content buf [12:21:15]Sock 9.Close socket [12:21:15]Sock 9.Thread stoped [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:40]accept exits with 8 [12:21:40]New connection [12:21:40]New thread 3067219300 created [12:21:40]Thread 3067362660 joined [12:21:40]Waiting for new connection... [12:21:40] Sock 8.Parse request [12:21:40]Sock 8.Check first char [12:21:40]Sock 8.First char is OK [12:21:40]request: POST /json_proto HTTP/1.0 [12:21:40]Method: POST [12:21:40]URL: /json_proto [12:21:40]Method is POST - this is cgi request [12:21:40]url: /json_proto [12:21:40]query_string will be loaded in cgi processing [12:21:40]execute_cgi json_proto POST (null) [12:21:40]execute_cgi path=json_proto method=POST [12:21:40]POST find Content-Length [12:21:40]Host: 172.17.39.195:8080 [12:21:40]Content-Length: 801 [12:21:40]Content-Type: application/json [12:21:40] [12:21:40]POST finish read [12:21:40]Found Content-Length = 801 [12:21:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 20.000, "sum" : 1458.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1458.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:40]execute_script... [12:21:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 20.000, "sum" : 1458.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1458.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:40]POST & json_proto [12:21:40]process_json_proto [12:21:40]json parsed OK: [12:21:40]protocol is kg_v1.0 [12:21:40]action value=close_receipt [12:21:40]process_action close_receipt [12:21:40]cmd_close_receipt [12:21:40]MH_GetDate [12:21:40]Write to MH i2c: F0 00 00 C8 04 BB [12:21:40]Write i2c OK [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: F0 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: F0 09 00 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: F0 09 00 C8 04 00 D5 C1 76 66 99 81 91 64 45 [12:21:40]GetLastDocTimeStamp 1719058872 [12:21:40]current date 1719058901 [12:21:40]FM_GetShiftState [12:21:40]SAM_PROTO_GetShiftState [12:21:40]wFMCommunicate request_size=4 [12:21:40]MH_SAM_APDU [12:21:40]CAPDU: 80 13 01 00 [12:21:40]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [12:21:40]Write i2c OK [12:21:40]MH_I2C_Read... [12:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:40]Read from MH i2c: E2 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: E2 0E 00 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 40 [12:21:40]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:21:40]wFMCommunicate OK [12:21:40]SAM_PROTO_GetShiftState done [12:21:40]FM_GetShiftState done [12:21:40]opened in 1719016435 [12:21:40]opened+sec_in_day 1719102835 [12:21:40]quantity*price = 145800 [12:21:40]sum+1 = 145801 [12:21:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1458.00 НСП 1% : 12.90 НДС 12% : 154.83 Наличными: 0.00 Безнал.: 1458.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 48 22.06.2024 12:21 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76852 ФПД: 225047636552373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122141&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76852&fm=225047636552373&tin=02508201610067®Number=0000000000095696&sum=145800 [12:21:41]StoreToDocumentArchive [12:21:41]shift 395 fd 76852 [12:21:41]save to /storage/0395/doc_00076852 [12:21:41]save last doc name /storage/0395/doc_00076852 to /storage/kkm_last_doc_name [12:21:41]save OK [12:21:41]Clear old archive folders... [12:21:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:21:41]tlvbuf is 00904210 [12:21:41]SAM_PROTO_ClearQueue [12:21:41]wFMCommunicate request_size=4 [12:21:41]MH_SAM_APDU [12:21:41]CAPDU: 80 09 00 00 [12:21:41]Write to MH i2c: E2 08 00 D6 04 80 09 00 00 00 00 00 00 4C [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:41]Read from MH i2c: E2 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [12:21:41]RAPDU: 90 00 [12:21:41]wFMCommunicate OK [12:21:41]SAM_PROTO_ClearQueue done [12:21:41]KKMCreateOFDPacket [12:21:41]OFDProtocolAddRootSTLVToBuf [12:21:41]FM_MakeSignedData [12:21:41]FM_MakeSignedData [12:21:41]SAM_PROTO_SignData [12:21:41]wFMCommunicate request_size=4 [12:21:41]MH_SAM_APDU [12:21:41]CAPDU: 80 0D 01 02 [12:21:41]Write to MH i2c: E2 08 00 D7 04 80 0D 01 02 00 00 00 00 54 [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:41]Read from MH i2c: E2 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 [12:21:41]MH_I2C_Read... [12:21:41]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [12:21:41]RAPDU: 90 00 [12:21:41]wFMCommunicate OK [12:21:41]wFMCommunicate request_size=255 [12:21:41]MH_SAM_APDU [12:21:41]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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D5 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2C 01 00 35 04 06 00 CC AD FC 6F [12:21:41]Write to MH i2c: E2 02 01 D8 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D5 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2C 01 00 35 04 06 00 CC AD FC 6F 00 00 3B [12:21:41]Write i2c OK [12:21:41]MH_I2C_Read... [12:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:42]Read from MH i2c: E2 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 03 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [12:21:42]RAPDU: 90 00 [12:21:42]wFMCommunicate OK [12:21:42]wFMCommunicate request_size=7 [12:21:42]MH_SAM_APDU [12:21:42]CAPDU: 80 0D 02 02 02 2A B5 [12:21:42]Write to MH i2c: E2 0A 00 D9 04 80 0D 02 02 02 00 2A B5 00 00 3A [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:42]Read from MH i2c: E2 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 03 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [12:21:42]RAPDU: 90 00 [12:21:42]wFMCommunicate OK [12:21:42]wFMCommunicate request_size=4 [12:21:42]MH_SAM_APDU [12:21:42]CAPDU: 80 0D 03 02 [12:21:42]Write to MH i2c: E2 08 00 DA 04 80 0D 03 02 00 00 00 00 59 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:42]Read from MH i2c: E2 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 0B 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 0B 00 DA 04 00 81 74 F2 73 06 F1 8F 7C 90 00 B6 [12:21:42]RAPDU: 81 74 F2 73 06 F1 8F 7C 90 00 [12:21:42]wFMCommunicate OK [12:21:42]SAM_PROTO_SignData done [12:21:42]FM_MakeSignedData done [12:21:42]CreateOFDProtocolMessage [12:21:42]wFMCommunicate request_size=4 [12:21:42]MH_SAM_APDU [12:21:42]CAPDU: 80 11 00 00 [12:21:42]Write to MH i2c: E2 08 00 DB 04 80 11 00 00 00 00 00 00 59 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:42]Read from MH i2c: E2 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 17 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: E2 17 00 DB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A9 [12:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:21:42]wFMCommunicate OK [12:21:42]CreateOFDProtocolMessage done [12:21:42]OFDSenderStorePacket 76852 [12:21:42]StoreOFDPacket docnum=76852 [12:21:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 10 19 04 01 E8 74 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D5 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2C 01 00 35 04 06 00 CC AD FC 6F 2A B5 81 74 F2 73 06 F1 8F 7C [12:21:42]CheckFolder [12:21:42]dirname=/storage/ofd_packets [12:21:42]CheckFolder done [12:21:42]ProducePacketName [12:21:42]name=ofd_packets/00076852 [12:21:42]NVStorageSaveData ofd_packets/00076852 [12:21:42]File name is /storage/ofd_packets/00076852 [12:21:42]Write 298 bytes [12:21:42]NVStorageSaveData done [12:21:42]OFDSenderStorePacket done [12:21:42]KKMCreateOFDPacket done [12:21:42]NVStorageSaveData kkm_last_timestamp [12:21:42]File name is /storage/kkm_last_timestamp [12:21:42]Write 4 bytes [12:21:42]NVStorageSaveData done [12:21:42]ExternCall_PrintAddStr [12:21:42]wPrintStart [12:21:42]Write to MH i2c: 01 00 00 DC 04 E0 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 07 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 FF 0F F5 [12:21:42]RasterBufferAndPrint [12:21:42]line Счет N : (1)1694440 [12:21:42]line ИНН: 02508201610067 [12:21:42]line Контрольно-Кассовый Чек [12:21:42]line ПРОДАЖА [12:21:42]line ТРК (МРК, ГНК) : 11 [12:21:42]line Товар: 2710194210 [12:21:42]line ДТ-К-2 [12:21:42]line 20.000 * 72.90 [12:21:42]line = 1458.00 [12:21:42]line НДС 12% НСП 1% [12:21:42]line > о реализуемом товаре [12:21:42]line ИТОГО: 1458.00 [12:21:42]line НСП 1% : 12.90 [12:21:42]line НДС 12% : 154.83 [12:21:42]line Наличными: 0.00 [12:21:42]line Безнал.: 1458.00 [12:21:42]line Место: АЗС № 144 "Партнер Нефть" [12:21:42]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:21:42]line СНО: Общий режим [12:21:42]line Чек 48 22.06.2024 12:21 [12:21:42]line Смена: 395 ФФД: 1.0 [12:21:42]line ЗНМ: 0300000170 [12:21:42]line РНМ: 0000000000095696 [12:21:42]line Версия ККМ: 001 [12:21:42]line Платежная система: O! деньги [12:21:42]line ФМ: 0000000000875009 [12:21:42]line ФД: 76852 [12:21:42]line ФПД: 225047636552373 [12:21:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T122141&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76852&fm=225047636552373&tin=02508201610067®Number=0000000000095696&sum=145800 [12:21:42]written 0, free lines is 4095 [12:21:42]OFD Sender: Processing packet 76852 [packets to send 351, broken 350] [12:21:42]ProducePacketName [12:21:42]name=ofd_packets/00076852 [12:21:42]OFD Sender: To server: pG, [12:21:42]CommunicateWithHost lk.salyk.kg:30040 [12:21:42]ConnectInit lk.salyk.kg [12:21:42]Connected sock=10 [12:21:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 10 19 04 01 E8 74 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D5 C1 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2C 01 00 35 04 06 00 CC AD FC 6F 2A B5 81 74 F2 73 06 F1 8F 7C [12:21:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F2 25 47 00 91 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 34 2C 01 00 F4 03 04 00 6F 68 76 66 B6 04 01 00 00 1A E6 94 E1 C8 27 2E 91 [12:21:42]CommunicateWithHost err = 0 [12:21:42]CheckOFDResponse [12:21:42]1017 (14) - 77093643461234 [12:21:42]1041 (16) - 0000000000875009 [12:21:42]1040 (4) - 76852 [12:21:42]1012 (4) - 22.06.2024 06:00 [12:21:42]1206 (1) - 0 [12:21:42]OFD Sender: Remove packet 76852 [12:21:42]ProducePacketName [12:21:42]name=ofd_packets/00076852 [12:21:42]NVStorageDeleteData [12:21:42]Write to MH i2c: 01 00 00 06 05 0B [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 07 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 02 0D 21 [12:21:42]RasterBufferAndPrint [12:21:42]line [12:21:42]line [12:21:42]line [12:21:42]line [12:21:42]line [12:21:42]written 0, free lines is 3336 [12:21:42]MH_Cut [12:21:42]Write to MH i2c: D1 01 00 0D 05 01 E4 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: D1 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: D1 01 00 [12:21:42]MH_I2C_Read... [12:21:42]Read from MH i2c: D1 01 00 0D 05 00 E3 [12:21:42]Write to MH i2c: 01 00 00 0E 05 13 [12:21:42]Write i2c OK [12:21:42]MH_I2C_Read... [12:21:43]OFD Sender: No OFD packet to send [12:21:43]*** Cut start [12:21:43]*** Partial cut [12:21:43]*** CUTSNS_PIN = 1 [12:21:43]*** CUTSNS_PIN = 0 [12:21:43]*** Brake cut motor [12:21:44]Read from MH i2c: 01 [12:21:44]MH_I2C_Read... [12:21:44]*** Stop cut motor [12:21:44]*** Cut end [12:21:44]Read from MH i2c: 01 07 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 FF 0F 28 [12:21:44]process_action close_receipt done [12:21:44]requested_data is exist [12:21:44]produce_requested_data [12:21:44]requested_item fm.sn is exist - process it [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 11 00 00 [12:21:44]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 17 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 17 00 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DE [12:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:21:44]wFMCommunicate OK [12:21:44]requested_item fd.num is exist - process it [12:21:44]SAM_PROTO_GetFieldsCounters [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 13 00 00 [12:21:44]Write to MH i2c: E2 08 00 10 05 80 13 00 00 00 00 00 00 91 [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 62 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 62 00 10 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 34 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:21:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 34 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:44]wFMCommunicate OK [12:21:44]SAM_PROTO_GetFieldsCounters done [12:21:44]requested_item shift.num is exist - process it [12:21:44]requested_item shift.opened is exist - process it [12:21:44]req_shift_opened [12:21:44]FM_GetShiftState [12:21:44]SAM_PROTO_GetShiftState [12:21:44]wFMCommunicate request_size=4 [12:21:44]MH_SAM_APDU [12:21:44]CAPDU: 80 13 01 00 [12:21:44]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [12:21:44]Write i2c OK [12:21:44]MH_I2C_Read... [12:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:44]Read from MH i2c: E2 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 0E 00 [12:21:44]MH_I2C_Read... [12:21:44]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 89 [12:21:44]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:21:44]wFMCommunicate OK [12:21:44]SAM_PROTO_GetShiftState done [12:21:44]FM_GetShiftState done [12:21:44]req_shift_opened done [12:21:44]requested_item shift.open_date is exist - process it [12:21:44]req_shift_open_date [12:21:44]req_shift_open_date done [12:21:44]produce_requested_data done [12:21:44]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76852,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:21:44]process_action_free close_receipt [12:21:44]json_value_free [12:21:44]json_value_free done [12:21:44]process_json_proto returns [12:21:44]Send response to host [12:21:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76852,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:21:44]free response buf [12:21:44]execute_script done [12:21:44]execute_script returns [12:21:44]free content buf [12:21:44]Sock 8.Close socket [12:21:44]Sock 8.Thread stoped [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [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]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:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38: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: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: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: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]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:45:57]accept exits with 9 [12:45:57]New connection [12:45:57]New thread 3067362660 created [12:45:57]Thread 3067219300 joined [12:45:57]Waiting for new connection... [12:45:57] Sock 9.Parse request [12:45:57]Sock 9.Check first char [12:45:57]Sock 9.First char is OK [12:45:57]request: POST /json_proto HTTP/1.0 [12:45:57]Method: POST [12:45:57]URL: /json_proto [12:45:57]Method is POST - this is cgi request [12:45:57]url: /json_proto [12:45:57]query_string will be loaded in cgi processing [12:45:57]execute_cgi json_proto POST (null) [12:45:57]execute_cgi path=json_proto method=POST [12:45:57]POST find Content-Length [12:45:57]Host: 172.17.39.195:8080 [12:45:57]Content-Length: 658 [12:45:57]Content-Type: application/json [12:45:57] [12:45:57]POST finish read [12:45:57]Found Content-Length = 658 [12:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220924", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:57]execute_script... [12:45:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220924", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:57]POST & json_proto [12:45:57]process_json_proto [12:45:57]json parsed OK: [12:45:57]protocol is kg_v1.0 [12:45:57]action value=close_receipt [12:45:57]process_action close_receipt [12:45:57]cmd_close_receipt [12:45:57]MH_GetDate [12:45:57]Write to MH i2c: F0 00 00 12 05 06 [12:45:57]Write i2c OK [12:45:57]MH_I2C_Read... [12:45:57]Read from MH i2c: F0 [12:45:57]MH_I2C_Read... [12:45:57]Read from MH i2c: F0 09 00 [12:45:57]MH_I2C_Read... [12:45:57]Read from MH i2c: F0 09 00 12 05 00 86 C7 76 66 99 81 91 64 47 [12:45:57]GetLastDocTimeStamp 1719058901 [12:45:57]current date 1719060358 [12:45:57]FM_GetShiftState [12:45:57]SAM_PROTO_GetShiftState [12:45:57]wFMCommunicate request_size=4 [12:45:57]MH_SAM_APDU [12:45:57]CAPDU: 80 13 01 00 [12:45:57]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [12:45:57]Write i2c OK [12:45:57]MH_I2C_Read... [12:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:57]Read from MH i2c: E2 [12:45:57]MH_I2C_Read... [12:45:57]Read from MH i2c: E2 0E 00 [12:45:57]MH_I2C_Read... [12:45:57]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 8B [12:45:57]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:45:57]wFMCommunicate OK [12:45:57]SAM_PROTO_GetShiftState done [12:45:57]FM_GetShiftState done [12:45:57]opened in 1719016435 [12:45:57]opened+sec_in_day 1719102835 [12:45:57]quantity*price = 11300 [12:45:57]sum+1 = 11301 [12:45:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 49 22.06.2024 12:45 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76853 ФПД: 143247083819039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124558&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76853&fm=143247083819039&tin=02508201610067®Number=0000000000095696&sum=11300 0 [12:45:58]StoreToDocumentArchive [12:45:58]shift 395 fd 76853 [12:45:58]save to /storage/0395/doc_00076853 [12:45:58]save last doc name /storage/0395/doc_00076853 to /storage/kkm_last_doc_name [12:45:58]save OK [12:45:58]Clear old archive folders... [12:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=278 [12:45:58]tlvbuf is 0091B8B0 [12:45:58]SAM_PROTO_ClearQueue [12:45:58]wFMCommunicate request_size=4 [12:45:58]MH_SAM_APDU [12:45:58]CAPDU: 80 09 00 00 [12:45:58]Write to MH i2c: E2 08 00 20 05 80 09 00 00 00 00 00 00 97 [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:58]Read from MH i2c: E2 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [12:45:58]RAPDU: 90 00 [12:45:58]wFMCommunicate OK [12:45:58]SAM_PROTO_ClearQueue done [12:45:58]KKMCreateOFDPacket [12:45:58]OFDProtocolAddRootSTLVToBuf [12:45:58]FM_MakeSignedData [12:45:58]FM_MakeSignedData [12:45:58]SAM_PROTO_SignData [12:45:58]wFMCommunicate request_size=4 [12:45:58]MH_SAM_APDU [12:45:58]CAPDU: 80 0D 01 02 [12:45:58]Write to MH i2c: E2 08 00 21 05 80 0D 01 02 00 00 00 00 9F [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:58]Read from MH i2c: E2 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [12:45:58]RAPDU: 90 00 [12:45:58]wFMCommunicate OK [12:45:58]wFMCommunicate request_size=255 [12:45:58]MH_SAM_APDU [12:45:58]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 86 C7 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 [12:45:58]Write to MH i2c: E2 02 01 22 05 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 86 C7 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 00 00 E0 [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:59]Read from MH i2c: E2 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: E2 03 00 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [12:45:59]RAPDU: 90 00 [12:45:59]wFMCommunicate OK [12:45:59]wFMCommunicate request_size=37 [12:45:59]MH_SAM_APDU [12:45:59]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2C 01 00 35 04 06 00 82 48 4F 8B D0 1F [12:45:59]Write to MH i2c: E2 28 00 23 05 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2C 01 00 35 04 06 00 82 48 4F 8B D0 1F 00 00 EB [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:59]Read from MH i2c: E2 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: E2 03 00 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [12:45:59]RAPDU: 90 00 [12:45:59]wFMCommunicate OK [12:45:59]wFMCommunicate request_size=4 [12:45:59]MH_SAM_APDU [12:45:59]CAPDU: 80 0D 03 02 [12:45:59]Write to MH i2c: E2 08 00 24 05 80 0D 03 02 00 00 00 00 A4 [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:59]Read from MH i2c: E2 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: E2 0B 00 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: E2 0B 00 24 05 00 BE B8 50 D1 7F D5 F6 CD 90 00 53 [12:45:59]RAPDU: BE B8 50 D1 7F D5 F6 CD 90 00 [12:45:59]wFMCommunicate OK [12:45:59]SAM_PROTO_SignData done [12:45:59]FM_MakeSignedData done [12:45:59]CreateOFDProtocolMessage [12:45:59]wFMCommunicate request_size=4 [12:45:59]MH_SAM_APDU [12:45:59]CAPDU: 80 11 00 00 [12:45:59]Write to MH i2c: E2 08 00 25 05 80 11 00 00 00 00 00 00 A4 [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:59]Read from MH i2c: E2 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: E2 17 00 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: E2 17 00 25 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F4 [12:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:45:59]wFMCommunicate OK [12:45:59]CreateOFDProtocolMessage done [12:45:59]OFDSenderStorePacket 76853 [12:45:59]StoreOFDPacket docnum=76853 [12:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 77 F1 22 01 E6 8A 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 86 C7 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2C 01 00 35 04 06 00 82 48 4F 8B D0 1F BE B8 50 D1 7F D5 F6 CD [12:45:59]CheckFolder [12:45:59]dirname=/storage/ofd_packets [12:45:59]CheckFolder done [12:45:59]ProducePacketName [12:45:59]name=ofd_packets/00076853 [12:45:59]NVStorageSaveData ofd_packets/00076853 [12:45:59]File name is /storage/ofd_packets/00076853 [12:45:59]Write 328 bytes [12:45:59]NVStorageSaveData done [12:45:59]OFDSenderStorePacket done [12:45:59]KKMCreateOFDPacket done [12:45:59]NVStorageSaveData kkm_last_timestamp [12:45:59]File name is /storage/kkm_last_timestamp [12:45:59]Write 4 bytes [12:45:59]NVStorageSaveData done [12:45:59]ExternCall_PrintAddStr [12:45:59]wPrintStart [12:45:59]Write to MH i2c: 01 00 00 26 05 2B [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: 01 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: 01 07 00 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 FF 0F 40 [12:45:59]RasterBufferAndPrint [12:45:59]line Счет N : (3)220924 [12:45:59]line ИНН: 02508201610067 [12:45:59]line Контрольно-Кассовый Чек [12:45:59]line ПРОДАЖА [12:45:59]line Товар: 5449000054227 [12:45:59]line Напиток Кока-Кола 1л [12:45:59]line 1.000 * 113.00 [12:45:59]line = 113.00 [12:45:59]line НДС 12% НСП 1% [12:45:59]line > о реализуемом товаре [12:45:59]line ИТОГО: 113.00 [12:45:59]line НСП 1% : 1.00 [12:45:59]line НДС 12% : 12.00 [12:45:59]line Наличными: 113.00 [12:45:59]line Безнал.: 0.00 [12:45:59]line Место: АЗС № 144 "Партнер Нефть" [12:45:59]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:45:59]line СНО: Общий режим [12:45:59]line Чек 49 22.06.2024 12:45 [12:45:59]line Смена: 395 ФФД: 1.0 [12:45:59]line ЗНМ: 0300000170 [12:45:59]line РНМ: 0000000000095696 [12:45:59]line Версия ККМ: 001 [12:45:59]line ФМ: 0000000000875009 [12:45:59]line ФД: 76853 [12:45:59]line ФПД: 143247083819039 [12:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124558&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76853&fm=143247083819039&tin=02508201610067®Number=0000000000095696&sum=11300 [12:45:59]line 0 [12:45:59]written 0, free lines is 4095 [12:45:59]OFD Sender: Processing packet 76853 [packets to send 351, broken 350] [12:45:59]ProducePacketName [12:45:59]name=ofd_packets/00076853 [12:45:59]OFD Sender: To server: pG, [12:45:59]CommunicateWithHost lk.salyk.kg:30040 [12:45:59]ConnectInit lk.salyk.kg [12:45:59]Write to MH i2c: 01 00 00 4E 05 53 [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: 01 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: 01 07 00 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 F2 0C 58 [12:45:59]RasterBufferAndPrint [12:45:59]line [12:45:59]line [12:45:59]line [12:45:59]line [12:45:59]line [12:45:59]written 0, free lines is 3320 [12:45:59]MH_Cut [12:45:59]Write to MH i2c: D1 01 00 55 05 01 2C [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: D1 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: D1 01 00 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: D1 01 00 55 05 00 2B [12:45:59]Write to MH i2c: 01 00 00 56 05 5B [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]Connected sock=10 [12:45:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 77 F1 22 01 E6 8A 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 86 C7 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2C 01 00 35 04 06 00 82 48 4F 8B D0 1F BE B8 50 D1 7F D5 F6 CD [12:45:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 77 EB 47 00 1E 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 35 2C 01 00 F4 03 04 00 20 6E 76 66 B6 04 01 00 00 9F 20 D9 62 26 CA 1A D0 [12:45:59]CommunicateWithHost err = 0 [12:45:59]CheckOFDResponse [12:45:59]1017 (14) - 77093643461234 [12:45:59]1041 (16) - 0000000000875009 [12:45:59]1040 (4) - 76853 [12:45:59]1012 (4) - 22.06.2024 06:24 [12:45:59]1206 (1) - 0 [12:45:59]OFD Sender: Remove packet 76853 [12:45:59]ProducePacketName [12:45:59]name=ofd_packets/00076853 [12:45:59]NVStorageDeleteData [12:46:00]*** Cut start [12:46:00]*** Partial cut [12:46:00]*** CUTSNS_PIN = 1 [12:46:00]OFD Sender: No OFD packet to send [12:46:00]*** CUTSNS_PIN = 0 [12:46:00]*** Brake cut motor [12:46:00]Read from MH i2c: 01 [12:46:00]MH_I2C_Read... [12:46:00]*** Stop cut motor [12:46:00]*** Cut end [12:46:00]Read from MH i2c: 01 07 00 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: 01 07 00 56 05 00 00 00 00 00 FF 0F 70 [12:46:00]process_action close_receipt done [12:46:00]requested_data is exist [12:46:00]produce_requested_data [12:46:00]requested_item fm.sn is exist - process it [12:46:00]wFMCommunicate request_size=4 [12:46:00]MH_SAM_APDU [12:46:00]CAPDU: 80 11 00 00 [12:46:00]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [12:46:00]Write i2c OK [12:46:00]MH_I2C_Read... [12:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:01]Read from MH i2c: E2 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 17 00 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 17 00 57 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 26 [12:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:46:01]wFMCommunicate OK [12:46:01]requested_item fd.num is exist - process it [12:46:01]SAM_PROTO_GetFieldsCounters [12:46:01]wFMCommunicate request_size=4 [12:46:01]MH_SAM_APDU [12:46:01]CAPDU: 80 13 00 00 [12:46:01]Write to MH i2c: E2 08 00 58 05 80 13 00 00 00 00 00 00 D9 [12:46:01]Write i2c OK [12:46:01]MH_I2C_Read... [12:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:01]Read from MH i2c: E2 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 62 00 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 62 00 58 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 35 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [12:46: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 35 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:01]wFMCommunicate OK [12:46:01]SAM_PROTO_GetFieldsCounters done [12:46:01]requested_item shift.num is exist - process it [12:46:01]requested_item shift.opened is exist - process it [12:46:01]req_shift_opened [12:46:01]FM_GetShiftState [12:46:01]SAM_PROTO_GetShiftState [12:46:01]wFMCommunicate request_size=4 [12:46:01]MH_SAM_APDU [12:46:01]CAPDU: 80 13 01 00 [12:46:01]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [12:46:01]Write i2c OK [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 [12:46:01]MH_I2C_Read... [12:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:01]Read from MH i2c: E2 0E 00 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 D1 [12:46:01]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:46:01]wFMCommunicate OK [12:46:01]SAM_PROTO_GetShiftState done [12:46:01]FM_GetShiftState done [12:46:01]req_shift_opened done [12:46:01]requested_item shift.open_date is exist - process it [12:46:01]req_shift_open_date [12:46:01]req_shift_open_date done [12:46:01]produce_requested_data done [12:46:01]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76853,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:46:01]process_action_free close_receipt [12:46:01]json_value_free [12:46:01]json_value_free done [12:46:01]process_json_proto returns [12:46:01]Send response to host [12:46:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76853,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:46:01]free response buf [12:46:01]execute_script done [12:46:01]execute_script returns [12:46:01]free content buf [12:46:01]Sock 9.Close socket [12:46:01]Sock 9.Thread stoped [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:51]accept exits with 8 [12:46:51]New connection [12:46:51]New thread 3067219300 created [12:46:51]Thread 3067362660 joined [12:46:51]Waiting for new connection... [12:46:51] Sock 8.Parse request [12:46:51]Sock 8.Check first char [12:46:51]Sock 8.First char is OK [12:46:51]request: POST /json_proto HTTP/1.0 [12:46:51]Method: POST [12:46:51]URL: /json_proto [12:46:51]Method is POST - this is cgi request [12:46:51]url: /json_proto [12:46:51]query_string will be loaded in cgi processing [12:46:51]execute_cgi json_proto POST (null) [12:46:51]execute_cgi path=json_proto method=POST [12:46:51]POST find Content-Length [12:46:51]Host: 172.17.39.195:8080 [12:46:51]Content-Length: 801 [12:46:51]Content-Type: application/json [12:46:51] [12:46:51]POST finish read [12:46:51]Found Content-Length = 801 [12:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:51]execute_script... [12:46:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:51]POST & json_proto [12:46:51]process_json_proto [12:46:51]json parsed OK: [12:46:51]protocol is kg_v1.0 [12:46:51]action value=close_receipt [12:46:51]process_action close_receipt [12:46:51]cmd_close_receipt [12:46:51]MH_GetDate [12:46:51]Write to MH i2c: F0 00 00 5A 05 4E [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: F0 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: F0 09 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: F0 09 00 5A 05 00 BB C7 76 66 99 81 91 64 C4 [12:46:51]GetLastDocTimeStamp 1719060358 [12:46:51]current date 1719060411 [12:46:51]FM_GetShiftState [12:46:51]SAM_PROTO_GetShiftState [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 13 01 00 [12:46:51]Write to MH i2c: E2 08 00 5B 05 80 13 01 00 00 00 00 00 DD [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 0E 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 0E 00 5B 05 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 D3 [12:46:51]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:46:51]wFMCommunicate OK [12:46:51]SAM_PROTO_GetShiftState done [12:46:51]FM_GetShiftState done [12:46:51]opened in 1719016435 [12:46:51]opened+sec_in_day 1719102835 [12:46:51]quantity*price = 40039 [12:46:51]sum+1 = 40040 [12:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 50 22.06.2024 12:46 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76854 ФПД: 123207685664645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124652&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76854&fm=123207685664645&tin=02508201610067®Number=0000000000095696&sum=40039 [12:46:52]StoreToDocumentArchive [12:46:52]shift 395 fd 76854 [12:46:52]save to /storage/0395/doc_00076854 [12:46:52]save last doc name /storage/0395/doc_00076854 to /storage/kkm_last_doc_name [12:46:52]save OK [12:46:52]Clear old archive folders... [12:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:52]tlvbuf is 0097AF30 [12:46:52]SAM_PROTO_ClearQueue [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 09 00 00 [12:46:52]Write to MH i2c: E2 08 00 68 05 80 09 00 00 00 00 00 00 DF [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [12:46:52]RAPDU: 90 00 [12:46:52]wFMCommunicate OK [12:46:52]SAM_PROTO_ClearQueue done [12:46:52]KKMCreateOFDPacket [12:46:52]OFDProtocolAddRootSTLVToBuf [12:46:52]FM_MakeSignedData [12:46:52]FM_MakeSignedData [12:46:52]SAM_PROTO_SignData [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 0D 01 02 [12:46:52]Write to MH i2c: E2 08 00 69 05 80 0D 01 02 00 00 00 00 E7 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [12:46:52]RAPDU: 90 00 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=255 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 BC C7 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 36 2C 01 00 35 04 06 00 70 [12:46:52]Write to MH i2c: E2 02 01 6A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 BC C7 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 36 2C 01 00 35 04 06 00 70 00 00 AE [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [12:46:52]RAPDU: 90 00 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=10 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 0D 02 02 05 0E 86 56 6F 85 [12:46:52]Write to MH i2c: E2 0D 00 6B 05 80 0D 02 02 05 00 0E 86 56 6F 85 00 00 D2 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [12:46:52]RAPDU: 90 00 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 0D 03 02 [12:46:52]Write to MH i2c: E2 08 00 6C 05 80 0D 03 02 00 00 00 00 EC [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 0B 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 0B 00 6C 05 00 3B 07 8F 28 78 72 00 AB 90 00 7B [12:46:52]RAPDU: 3B 07 8F 28 78 72 00 AB 90 00 [12:46:52]wFMCommunicate OK [12:46:52]SAM_PROTO_SignData done [12:46:52]FM_MakeSignedData done [12:46:52]CreateOFDProtocolMessage [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 11 00 00 [12:46:52]Write to MH i2c: E2 08 00 6D 05 80 11 00 00 00 00 00 00 EC [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 17 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 17 00 6D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3C [12:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:46:52]wFMCommunicate OK [12:46:52]CreateOFDProtocolMessage done [12:46:52]OFDSenderStorePacket 76854 [12:46:52]StoreOFDPacket docnum=76854 [12:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 3D 79 07 01 D4 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 BC C7 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 36 2C 01 00 35 04 06 00 70 0E 86 56 6F 85 3B 07 8F 28 78 72 00 AB [12:46:52]CheckFolder [12:46:52]dirname=/storage/ofd_packets [12:46:52]CheckFolder done [12:46:52]ProducePacketName [12:46:52]name=ofd_packets/00076854 [12:46:52]NVStorageSaveData ofd_packets/00076854 [12:46:52]File name is /storage/ofd_packets/00076854 [12:46:52]Write 301 bytes [12:46:52]NVStorageSaveData done [12:46:52]OFDSenderStorePacket done [12:46:52]KKMCreateOFDPacket done [12:46:52]NVStorageSaveData kkm_last_timestamp [12:46:52]File name is /storage/kkm_last_timestamp [12:46:52]Write 4 bytes [12:46:52]NVStorageSaveData done [12:46:52]ExternCall_PrintAddStr [12:46:52]wPrintStart [12:46:52]Write to MH i2c: 01 00 00 6E 05 73 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 07 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: 01 07 00 6E 05 00 00 00 00 00 FF 0F 88 [12:46:52]RasterBufferAndPrint [12:46:52]line Счет N : (1)1694467 [12:46:52]line ИНН: 02508201610067 [12:46:52]line Контрольно-Кассовый Чек [12:46:52]line ПРОДАЖА [12:46:52]line ТРК (МРК, ГНК) : 63 [12:46:52]line Товар: 2710124130 [12:46:52]line Аи-92-К-5 [12:46:52]line 6.030 * 66.40 [12:46:52]line = 400.39 [12:46:52]line НДС 12% НСП 1% [12:46:52]line > о реализуемом товаре [12:46:52]line ИТОГО: 400.39 [12:46:52]line НСП 1% : 3.54 [12:46:52]line НДС 12% : 42.52 [12:46:52]line Наличными: 0.00 [12:46:52]line Безнал.: 400.39 [12:46:52]line Место: АЗС № 144 "Партнер Нефть" [12:46:52]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:46:52]line СНО: Общий режим [12:46:52]line Чек 50 22.06.2024 12:46 [12:46:52]line Смена: 395 ФФД: 1.0 [12:46:52]line ЗНМ: 0300000170 [12:46:52]line РНМ: 0000000000095696 [12:46:52]line Версия ККМ: 001 [12:46:52]line Платежная система: O! деньги [12:46:52]line ФМ: 0000000000875009 [12:46:52]line ФД: 76854 [12:46:52]line ФПД: 123207685664645 [12:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124652&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76854&fm=123207685664645&tin=02508201610067®Number=0000000000095696&sum=40039 [12:46:53]OFD Sender: Processing packet 76854 [packets to send 351, broken 350] [12:46:53]ProducePacketName [12:46:53]name=ofd_packets/00076854 [12:46:53]OFD Sender: To server: pG, [12:46:53]CommunicateWithHost lk.salyk.kg:30040 [12:46:53]ConnectInit lk.salyk.kg [12:46:53]written 0, free lines is 4095 [12:46:53]Connected sock=10 [12:46:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 3D 79 07 01 D4 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 BC C7 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 36 2C 01 00 35 04 06 00 70 0E 86 56 6F 85 3B 07 8F 28 78 72 00 AB [12:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 63 A5 47 00 2F 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 35 30 30 39 10 04 04 00 36 2C 01 00 F4 03 04 00 56 6E 76 66 B6 04 01 00 00 6E 13 57 7C 40 F8 DB 11 [12:46:53]CommunicateWithHost err = 0 [12:46:53]CheckOFDResponse [12:46:53]1017 (14) - 77093643461234 [12:46:53]1041 (16) - 0000000000875009 [12:46:53]1040 (4) - 76854 [12:46:53]1012 (4) - 22.06.2024 06:25 [12:46:53]1206 (1) - 0 [12:46:53]OFD Sender: Remove packet 76854 [12:46:53]ProducePacketName [12:46:53]name=ofd_packets/00076854 [12:46:53]NVStorageDeleteData [12:46:53]Write to MH i2c: 01 00 00 98 05 9D [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: 01 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: 01 07 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: 01 07 00 98 05 00 00 00 00 00 EC 0C 9C [12:46:53]RasterBufferAndPrint [12:46:53]line [12:46:53]line [12:46:53]line [12:46:53]line [12:46:53]line [12:46:53]written 0, free lines is 3314 [12:46:53]MH_Cut [12:46:53]Write to MH i2c: D1 01 00 9F 05 01 76 [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: D1 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: D1 01 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: D1 01 00 9F 05 00 75 [12:46:53]Write to MH i2c: 01 00 00 A0 05 A5 [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]OFD Sender: No OFD packet to send [12:46:54]*** Cut start [12:46:54]*** Partial cut [12:46:54]*** CUTSNS_PIN = 1 [12:46:54]*** CUTSNS_PIN = 0 [12:46:54]*** Brake cut motor [12:46:54]Read from MH i2c: 01 [12:46:54]MH_I2C_Read... [12:46:54]*** Stop cut motor [12:46:54]*** Cut end [12:46:54]Read from MH i2c: 01 07 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 FF 0F BA [12:46:54]process_action close_receipt done [12:46:54]requested_data is exist [12:46:54]produce_requested_data [12:46:54]requested_item fm.sn is exist - process it [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 11 00 00 [12:46:54]Write to MH i2c: E2 08 00 A1 05 80 11 00 00 00 00 00 00 20 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 17 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 17 00 A1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 70 [12:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:46:54]wFMCommunicate OK [12:46:54]requested_item fd.num is exist - process it [12:46:54]SAM_PROTO_GetFieldsCounters [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 13 00 00 [12:46:54]Write to MH i2c: E2 08 00 A2 05 80 13 00 00 00 00 00 00 23 [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 62 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 62 00 A2 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 36 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:46:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 36 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:55]wFMCommunicate OK [12:46:55]SAM_PROTO_GetFieldsCounters done [12:46:55]requested_item shift.num is exist - process it [12:46:55]requested_item shift.opened is exist - process it [12:46:55]req_shift_opened [12:46:55]FM_GetShiftState [12:46:55]SAM_PROTO_GetShiftState [12:46:55]wFMCommunicate request_size=4 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 13 01 00 [12:46:55]Write to MH i2c: E2 08 00 A3 05 80 13 01 00 00 00 00 00 25 [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 0E 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 0E 00 A3 05 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 1B [12:46:55]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:46:55]wFMCommunicate OK [12:46:55]SAM_PROTO_GetShiftState done [12:46:55]FM_GetShiftState done [12:46:55]req_shift_opened done [12:46:55]requested_item shift.open_date is exist - process it [12:46:55]req_shift_open_date [12:46:55]req_shift_open_date done [12:46:55]produce_requested_data done [12:46:55]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76854,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:46:55]process_action_free close_receipt [12:46:55]json_value_free [12:46:55]json_value_free done [12:46:55]process_json_proto returns [12:46:55]Send response to host [12:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76854,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:46:55]free response buf [12:46:55]execute_script done [12:46:55]execute_script returns [12:46:55]free content buf [12:46:55]Sock 8.Close socket [12:46:55]Sock 8.Thread stoped [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:56]accept exits with 9 [12:48:56]New connection [12:48:56]New thread 3067362660 created [12:48:56]Thread 3067219300 joined [12:48:56]Waiting for new connection... [12:48:56] Sock 9.Parse request [12:48:56]Sock 9.Check first char [12:48:56]Sock 9.First char is OK [12:48:56]request: POST /json_proto HTTP/1.0 [12:48:56]Method: POST [12:48:56]URL: /json_proto [12:48:56]Method is POST - this is cgi request [12:48:56]url: /json_proto [12:48:56]query_string will be loaded in cgi processing [12:48:56]execute_cgi json_proto POST (null) [12:48:56]execute_cgi path=json_proto method=POST [12:48:56]POST find Content-Length [12:48:56]Host: 172.17.39.195:8080 [12:48:56]Content-Length: 801 [12:48:56]Content-Type: application/json [12:48:56] [12:48:56]POST finish read [12:48:56]Found Content-Length = 801 [12:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:56]execute_script... [12:48:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:56]POST & json_proto [12:48:56]process_json_proto [12:48:56]json parsed OK: [12:48:56]protocol is kg_v1.0 [12:48:56]action value=close_receipt [12:48:56]process_action close_receipt [12:48:56]cmd_close_receipt [12:48:56]MH_GetDate [12:48:56]Write to MH i2c: F0 00 00 A4 05 98 [12:48:56]Write i2c OK [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: F0 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: F0 09 00 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: F0 09 00 A4 05 00 39 C8 76 66 99 81 91 64 8D [12:48:56]GetLastDocTimeStamp 1719060412 [12:48:56]current date 1719060537 [12:48:56]FM_GetShiftState [12:48:56]SAM_PROTO_GetShiftState [12:48:56]wFMCommunicate request_size=4 [12:48:56]MH_SAM_APDU [12:48:56]CAPDU: 80 13 01 00 [12:48:56]Write to MH i2c: E2 08 00 A5 05 80 13 01 00 00 00 00 00 27 [12:48:56]Write i2c OK [12:48:56]MH_I2C_Read... [12:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:56]Read from MH i2c: E2 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 0E 00 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 0E 00 A5 05 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 1D [12:48:56]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:48:56]wFMCommunicate OK [12:48:56]SAM_PROTO_GetShiftState done [12:48:56]FM_GetShiftState done [12:48:56]opened in 1719016435 [12:48:56]opened+sec_in_day 1719102835 [12:48:56]quantity*price = 50065 [12:48:56]sum+1 = 50067 [12:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 51 22.06.2024 12:48 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76855 ФПД: 162435141184009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124857&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76855&fm=162435141184009&tin=02508201610067®Number=0000000000095696&sum=50066 [12:48:58]StoreToDocumentArchive [12:48:58]shift 395 fd 76855 [12:48:58]save to /storage/0395/doc_00076855 [12:48:58]save last doc name /storage/0395/doc_00076855 to /storage/kkm_last_doc_name [12:48:58]save OK [12:48:58]Clear old archive folders... [12:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:58]tlvbuf is 0097A820 [12:48:58]SAM_PROTO_ClearQueue [12:48:58]wFMCommunicate request_size=4 [12:48:58]MH_SAM_APDU [12:48:58]CAPDU: 80 09 00 00 [12:48:58]Write to MH i2c: E2 08 00 B2 05 80 09 00 00 00 00 00 00 29 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:58]Read from MH i2c: E2 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 03 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [12:48:58]RAPDU: 90 00 [12:48:58]wFMCommunicate OK [12:48:58]SAM_PROTO_ClearQueue done [12:48:58]KKMCreateOFDPacket [12:48:58]OFDProtocolAddRootSTLVToBuf [12:48:58]FM_MakeSignedData [12:48:58]FM_MakeSignedData [12:48:58]SAM_PROTO_SignData [12:48:58]wFMCommunicate request_size=4 [12:48:58]MH_SAM_APDU [12:48:58]CAPDU: 80 0D 01 02 [12:48:58]Write to MH i2c: E2 08 00 B3 05 80 0D 01 02 00 00 00 00 31 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:58]Read from MH i2c: E2 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 03 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [12:48:58]RAPDU: 90 00 [12:48:58]wFMCommunicate OK [12:48:58]wFMCommunicate request_size=255 [12:48:58]MH_SAM_APDU [12:48:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 C8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 37 2C 01 00 35 04 06 00 93 [12:48:58]Write to MH i2c: E2 02 01 B4 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 C8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 37 2C 01 00 35 04 06 00 93 00 00 03 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:58]Read from MH i2c: E2 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 03 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [12:48:58]RAPDU: 90 00 [12:48:58]wFMCommunicate OK [12:48:58]wFMCommunicate request_size=10 [12:48:58]MH_SAM_APDU [12:48:58]CAPDU: 80 0D 02 02 05 BB E0 E3 AA 09 [12:48:58]Write to MH i2c: E2 0D 00 B5 05 80 0D 02 02 05 00 BB E0 E3 AA 09 00 00 6F [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:58]Read from MH i2c: E2 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 03 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [12:48:58]RAPDU: 90 00 [12:48:58]wFMCommunicate OK [12:48:58]wFMCommunicate request_size=4 [12:48:58]MH_SAM_APDU [12:48:58]CAPDU: 80 0D 03 02 [12:48:58]Write to MH i2c: E2 08 00 B6 05 80 0D 03 02 00 00 00 00 36 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:58]Read from MH i2c: E2 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 0B 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 0B 00 B6 05 00 8C 0D 3F AE 0B 8E 63 80 90 00 39 [12:48:58]RAPDU: 8C 0D 3F AE 0B 8E 63 80 90 00 [12:48:58]wFMCommunicate OK [12:48:58]SAM_PROTO_SignData done [12:48:58]FM_MakeSignedData done [12:48:58]CreateOFDProtocolMessage [12:48:58]wFMCommunicate request_size=4 [12:48:58]MH_SAM_APDU [12:48:58]CAPDU: 80 11 00 00 [12:48:58]Write to MH i2c: E2 08 00 B7 05 80 11 00 00 00 00 00 00 36 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:58]Read from MH i2c: E2 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 17 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 17 00 B7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 86 [12:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:48:58]wFMCommunicate OK [12:48:58]CreateOFDProtocolMessage done [12:48:58]OFDSenderStorePacket 76855 [12:48:58]StoreOFDPacket docnum=76855 [12:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 EE A5 07 01 70 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 C8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 37 2C 01 00 35 04 06 00 93 BB E0 E3 AA 09 8C 0D 3F AE 0B 8E 63 80 [12:48:58]CheckFolder [12:48:58]dirname=/storage/ofd_packets [12:48:58]CheckFolder done [12:48:58]ProducePacketName [12:48:58]name=ofd_packets/00076855 [12:48:58]NVStorageSaveData ofd_packets/00076855 [12:48:58]File name is /storage/ofd_packets/00076855 [12:48:58]Write 301 bytes [12:48:58]NVStorageSaveData done [12:48:58]OFDSenderStorePacket done [12:48:58]KKMCreateOFDPacket done [12:48:58]NVStorageSaveData kkm_last_timestamp [12:48:58]File name is /storage/kkm_last_timestamp [12:48:58]Write 4 bytes [12:48:58]NVStorageSaveData done [12:48:58]ExternCall_PrintAddStr [12:48:58]wPrintStart [12:48:58]Write to MH i2c: 01 00 00 B8 05 BD [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 07 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 07 00 B8 05 00 00 00 00 00 FF 0F D2 [12:48:58]RasterBufferAndPrint [12:48:58]line Счет N : (1)1694470 [12:48:58]line ИНН: 02508201610067 [12:48:58]line Контрольно-Кассовый Чек [12:48:58]line ПРОДАЖА [12:48:58]line ТРК (МРК, ГНК) : 33 [12:48:58]line Товар: 2710124130 [12:48:58]line Аи-92-К-5 [12:48:58]line 7.540 * 66.40 [12:48:58]line = 500.66 [12:48:58]line НДС 12% НСП 1% [12:48:58]line > о реализуемом товаре [12:48:58]line ИТОГО: 500.66 [12:48:58]line НСП 1% : 4.43 [12:48:58]line НДС 12% : 53.17 [12:48:58]line Наличными: 0.00 [12:48:58]line Безнал.: 500.66 [12:48:58]line Место: АЗС № 144 "Партнер Нефть" [12:48:58]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:48:58]line СНО: Общий режим [12:48:58]line Чек 51 22.06.2024 12:48 [12:48:58]line Смена: 395 ФФД: 1.0 [12:48:58]line ЗНМ: 0300000170 [12:48:58]line РНМ: 0000000000095696 [12:48:58]line Версия ККМ: 001 [12:48:58]line Платежная система: O! деньги [12:48:58]line ФМ: 0000000000875009 [12:48:58]line ФД: 76855 [12:48:58]line ФПД: 162435141184009 [12:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T124857&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76855&fm=162435141184009&tin=02508201610067®Number=0000000000095696&sum=50066 [12:48:58]written 0, free lines is 4095 [12:48:58]OFD Sender: Processing packet 76855 [packets to send 351, broken 350] [12:48:58]ProducePacketName [12:48:58]name=ofd_packets/00076855 [12:48:58]OFD Sender: To server: pG, [12:48:58]CommunicateWithHost lk.salyk.kg:30040 [12:48:58]ConnectInit lk.salyk.kg [12:48:58]Connected sock=10 [12:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 EE A5 07 01 70 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 C8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 37 2C 01 00 35 04 06 00 93 BB E0 E3 AA 09 8C 0D 3F AE 0B 8E 63 80 [12:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C5 53 47 00 F0 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 35 30 30 39 10 04 04 00 37 2C 01 00 F4 03 04 00 D3 6E 76 66 B6 04 01 00 00 31 80 37 F7 73 A6 EA 17 [12:48:59]CommunicateWithHost err = 0 [12:48:59]CheckOFDResponse [12:48:59]1017 (14) - 77093643461234 [12:48:59]1041 (16) - 0000000000875009 [12:48:59]1040 (4) - 76855 [12:48:59]1012 (4) - 22.06.2024 06:27 [12:48:59]1206 (1) - 0 [12:48:59]OFD Sender: Remove packet 76855 [12:48:59]ProducePacketName [12:48:59]name=ofd_packets/00076855 [12:48:59]NVStorageDeleteData [12:48:59]Write to MH i2c: 01 00 00 E2 05 E7 [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: 01 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: 01 07 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 E1 0C DB [12:48:59]RasterBufferAndPrint [12:48:59]line [12:48:59]line [12:48:59]line [12:48:59]line [12:48:59]line [12:48:59]written 0, free lines is 3303 [12:48:59]MH_Cut [12:48:59]Write to MH i2c: D1 01 00 E9 05 01 C0 [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: D1 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: D1 01 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: D1 01 00 E9 05 00 BF [12:48:59]Write to MH i2c: 01 00 00 EA 05 EF [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]OFD Sender: No OFD packet to send [12:48:59]*** Cut start [12:48:59]*** Partial cut [12:48:59]*** CUTSNS_PIN = 1 [12:48:59]*** CUTSNS_PIN = 0 [12:49:00]*** Brake cut motor [12:49:00]Read from MH i2c: 01 [12:49:00]MH_I2C_Read... [12:49:00]*** Stop cut motor [12:49:00]*** Cut end [12:49:00]Read from MH i2c: 01 07 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 EA 05 00 00 00 00 00 FF 0F 04 [12:49:00]process_action close_receipt done [12:49:00]requested_data is exist [12:49:00]produce_requested_data [12:49:00]requested_item fm.sn is exist - process it [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 11 00 00 [12:49:00]Write to MH i2c: E2 08 00 EB 05 80 11 00 00 00 00 00 00 6A [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 EB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BA [12:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:49:00]wFMCommunicate OK [12:49:00]requested_item fd.num is exist - process it [12:49:00]SAM_PROTO_GetFieldsCounters [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 13 00 00 [12:49:00]Write to MH i2c: E2 08 00 EC 05 80 13 00 00 00 00 00 00 6D [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 62 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 62 00 EC 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 37 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [12:49: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 37 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_GetFieldsCounters done [12:49:00]requested_item shift.num is exist - process it [12:49:00]requested_item shift.opened is exist - process it [12:49:00]req_shift_opened [12:49:00]FM_GetShiftState [12:49:00]SAM_PROTO_GetShiftState [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 13 01 00 [12:49:00]Write to MH i2c: E2 08 00 ED 05 80 13 01 00 00 00 00 00 6F [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:00]Read from MH i2c: E2 0E 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0E 00 ED 05 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 65 [12:49:00]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_GetShiftState done [12:49:00]FM_GetShiftState done [12:49:00]req_shift_opened done [12:49:00]requested_item shift.open_date is exist - process it [12:49:00]req_shift_open_date [12:49:00]req_shift_open_date done [12:49:00]produce_requested_data done [12:49:00]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76855,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:49:00]process_action_free close_receipt [12:49:00]json_value_free [12:49:00]json_value_free done [12:49:00]process_json_proto returns [12:49:00]Send response to host [12:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76855,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:49:00]free response buf [12:49:00]execute_script done [12:49:00]execute_script returns [12:49:00]free content buf [12:49:00]Sock 9.Close socket [12:49:00]Sock 9.Thread stoped [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:55]accept exits with 8 [12:50:55]New connection [12:50:55]New thread 3067219300 created [12:50:55]Thread 3067362660 joined [12:50:55]Waiting for new connection... [12:50:55] Sock 8.Parse request [12:50:55]Sock 8.Check first char [12:50:55]Sock 8.First char is OK [12:50:55]request: POST /json_proto HTTP/1.0 [12:50:55]Method: POST [12:50:55]URL: /json_proto [12:50:55]Method is POST - this is cgi request [12:50:55]url: /json_proto [12:50:55]query_string will be loaded in cgi processing [12:50:55]execute_cgi json_proto POST (null) [12:50:55]execute_cgi path=json_proto method=POST [12:50:55]POST find Content-Length [12:50:55]Host: 172.17.39.195:8080 [12:50:55]Content-Length: 678 [12:50:55]Content-Type: application/json [12:50:55] [12:50:55]POST finish read [12:50:55]Found Content-Length = 678 [12:50:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:55]execute_script... [12:50: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)1694475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:55]POST & json_proto [12:50:55]process_json_proto [12:50:55]json parsed OK: [12:50:55]protocol is kg_v1.0 [12:50:55]action value=close_receipt [12:50:55]process_action close_receipt [12:50:55]cmd_close_receipt [12:50:55]MH_GetDate [12:50:55]Write to MH i2c: F0 00 00 EE 05 E2 [12:50:55]Write i2c OK [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: F0 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: F0 09 00 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: F0 09 00 EE 05 00 B0 C8 76 66 99 81 91 64 4E [12:50:55]GetLastDocTimeStamp 1719060537 [12:50:55]current date 1719060656 [12:50:55]FM_GetShiftState [12:50:55]SAM_PROTO_GetShiftState [12:50:55]wFMCommunicate request_size=4 [12:50:55]MH_SAM_APDU [12:50:55]CAPDU: 80 13 01 00 [12:50:55]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [12:50:55]Write i2c OK [12:50:55]MH_I2C_Read... [12:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:55]Read from MH i2c: E2 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: E2 0E 00 [12:50:55]MH_I2C_Read... [12:50:55]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 67 [12:50:55]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:50:55]wFMCommunicate OK [12:50:55]SAM_PROTO_GetShiftState done [12:50:55]FM_GetShiftState done [12:50:55]opened in 1719016435 [12:50:55]opened+sec_in_day 1719102835 [12:50:55]quantity*price = 20052 [12:50:55]sum+1 = 20054 [12:50:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 52 22.06.2024 12:50 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76856 ФПД: 110389061404677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125056&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76856&fm=110389061404677&tin=02508201610067®Number=0000000000095696&sum=20000 [12:50:56]StoreToDocumentArchive [12:50:56]shift 395 fd 76856 [12:50:56]save to /storage/0395/doc_00076856 [12:50:56]save last doc name /storage/0395/doc_00076856 to /storage/kkm_last_doc_name [12:50:56]save OK [12:50:56]Clear old archive folders... [12:50:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:56]tlvbuf is 008EF1B0 [12:50:56]SAM_PROTO_ClearQueue [12:50:56]wFMCommunicate request_size=4 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 09 00 00 [12:50:56]Write to MH i2c: E2 08 00 FC 05 80 09 00 00 00 00 00 00 73 [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:56]Read from MH i2c: E2 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [12:50:56]RAPDU: 90 00 [12:50:56]wFMCommunicate OK [12:50:56]SAM_PROTO_ClearQueue done [12:50:56]KKMCreateOFDPacket [12:50:56]OFDProtocolAddRootSTLVToBuf [12:50:56]FM_MakeSignedData [12:50:56]FM_MakeSignedData [12:50:56]SAM_PROTO_SignData [12:50:56]wFMCommunicate request_size=4 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 0D 01 02 [12:50:56]Write to MH i2c: E2 08 00 FD 05 80 0D 01 02 00 00 00 00 7B [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:56]Read from MH i2c: E2 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 03 00 FD 05 00 90 00 76 [12:50:56]RAPDU: 90 00 [12:50:56]wFMCommunicate OK [12:50:56]wFMCommunicate request_size=255 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 34 00 00 00 F4 03 04 00 B0 C8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2C 01 00 35 04 06 00 64 [12:50:56]Write to MH i2c: E2 02 01 FE 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 34 00 00 00 F4 03 04 00 B0 C8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2C 01 00 35 04 06 00 64 00 00 D2 [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:57]Read from MH i2c: E2 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 03 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [12:50:57]RAPDU: 90 00 [12:50:57]wFMCommunicate OK [12:50:57]wFMCommunicate request_size=10 [12:50:57]MH_SAM_APDU [12:50:57]CAPDU: 80 0D 02 02 05 65 F4 CA C8 05 [12:50:57]Write to MH i2c: E2 0D 00 FF 05 80 0D 02 02 05 00 65 F4 CA C8 05 00 00 78 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:57]Read from MH i2c: E2 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 03 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [12:50:57]RAPDU: 90 00 [12:50:57]wFMCommunicate OK [12:50:57]wFMCommunicate request_size=4 [12:50:57]MH_SAM_APDU [12:50:57]CAPDU: 80 0D 03 02 [12:50:57]Write to MH i2c: E2 08 00 00 06 80 0D 03 02 00 00 00 00 81 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:57]Read from MH i2c: E2 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 0B 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 0B 00 00 06 00 69 E9 1E 71 6B 16 0A 4F 90 00 3D [12:50:57]RAPDU: 69 E9 1E 71 6B 16 0A 4F 90 00 [12:50:57]wFMCommunicate OK [12:50:57]SAM_PROTO_SignData done [12:50:57]FM_MakeSignedData done [12:50:57]CreateOFDProtocolMessage [12:50:57]wFMCommunicate request_size=4 [12:50:57]MH_SAM_APDU [12:50:57]CAPDU: 80 11 00 00 [12:50:57]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:57]Read from MH i2c: E2 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 17 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D1 [12:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:50:57]wFMCommunicate OK [12:50:57]CreateOFDProtocolMessage done [12:50:57]OFDSenderStorePacket 76856 [12:50:57]StoreOFDPacket docnum=76856 [12:50:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F3 E7 07 01 FB 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 34 00 00 00 F4 03 04 00 B0 C8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2C 01 00 35 04 06 00 64 65 F4 CA C8 05 69 E9 1E 71 6B 16 0A 4F [12:50:57]CheckFolder [12:50:57]dirname=/storage/ofd_packets [12:50:57]CheckFolder done [12:50:57]ProducePacketName [12:50:57]name=ofd_packets/00076856 [12:50:57]NVStorageSaveData ofd_packets/00076856 [12:50:57]File name is /storage/ofd_packets/00076856 [12:50:57]Write 301 bytes [12:50:57]NVStorageSaveData done [12:50:57]OFDSenderStorePacket done [12:50:57]KKMCreateOFDPacket done [12:50:57]NVStorageSaveData kkm_last_timestamp [12:50:57]File name is /storage/kkm_last_timestamp [12:50:57]Write 4 bytes [12:50:57]NVStorageSaveData done [12:50:57]ExternCall_PrintAddStr [12:50:57]wPrintStart [12:50:57]Write to MH i2c: 01 00 00 02 06 08 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: 01 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: 01 07 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: 01 07 00 02 06 00 00 00 00 00 FF 0F 1D [12:50:57]RasterBufferAndPrint [12:50:57]line Счет N : (1)1694475 [12:50:57]line ИНН: 02508201610067 [12:50:57]line Контрольно-Кассовый Чек [12:50:57]line ПРОДАЖА [12:50:57]line ТРК (МРК, ГНК) : 43 [12:50:57]line Товар: 2710124130 [12:50:57]line Аи-92-К-5 [12:50:57]line 3.020 * 66.40 [12:50:57]line = 200.53 [12:50:57]line НДС 12% НСП 1% [12:50:57]line > о реализуемом товаре [12:50:57]line ОКРУГЛЕНИЕ: -0.53 [12:50:57]line ИТОГО: 200.00 [12:50:57]line Внесено: 200.00 [12:50:57]line СДАЧА: 0.00 [12:50:57]line НСП 1% : 1.77 [12:50:57]line НДС 12% : 21.29 [12:50:57]line Наличными: 200.00 [12:50:57]line Безнал.: 0.00 [12:50:57]line Место: АЗС № 144 "Партнер Нефть" [12:50:57]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:50:57]line СНО: Общий режим [12:50:57]line Чек 52 22.06.2024 12:50 [12:50:57]line Смена: 395 ФФД: 1.0 [12:50:57]line ЗНМ: 0300000170 [12:50:57]line РНМ: 0000000000095696 [12:50:57]line Версия ККМ: 001 [12:50:57]line ФМ: 0000000000875009 [12:50:57]line ФД: 76856 [12:50:57]line ФПД: 110389061404677 [12:50:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125056&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76856&fm=110389061404677&tin=02508201610067®Number=0000000000095696&sum=20000 [12:50:57]written 0, free lines is 4095 [12:50:57]OFD Sender: Processing packet 76856 [packets to send 351, broken 350] [12:50:57]ProducePacketName [12:50:57]name=ofd_packets/00076856 [12:50:57]OFD Sender: To server: pG, [12:50:57]CommunicateWithHost lk.salyk.kg:30040 [12:50:57]ConnectInit lk.salyk.kg [12:50:57]Connected sock=10 [12:50:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 F3 E7 07 01 FB 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 34 00 00 00 F4 03 04 00 B0 C8 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2C 01 00 35 04 06 00 64 65 F4 CA C8 05 69 E9 1E 71 6B 16 0A 4F [12:50:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 E1 81 47 00 80 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 38 2C 01 00 F4 03 04 00 4A 6F 76 66 B6 04 01 00 00 2A BC BE B6 6E 61 8D 29 [12:50:57]CommunicateWithHost err = 0 [12:50:57]CheckOFDResponse [12:50:57]1017 (14) - 77093643461234 [12:50:57]1041 (16) - 0000000000875009 [12:50:57]1040 (4) - 76856 [12:50:57]1012 (4) - 22.06.2024 06:29 [12:50:57]1206 (1) - 0 [12:50:57]OFD Sender: Remove packet 76856 [12:50:57]ProducePacketName [12:50:57]name=ofd_packets/00076856 [12:50:57]NVStorageDeleteData [12:50:57]Write to MH i2c: 01 00 00 2D 06 33 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: 01 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: 01 07 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 EB 0C 31 [12:50:57]RasterBufferAndPrint [12:50:57]line [12:50:57]line [12:50:57]line [12:50:57]line [12:50:57]line [12:50:57]written 0, free lines is 3313 [12:50:57]MH_Cut [12:50:57]Write to MH i2c: D1 01 00 34 06 01 0C [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: D1 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: D1 01 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: D1 01 00 34 06 00 0B [12:50:57]Write to MH i2c: 01 00 00 35 06 3B [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:58]OFD Sender: No OFD packet to send [12:50:58]*** Cut start [12:50:58]*** Partial cut [12:50:58]*** CUTSNS_PIN = 1 [12:50:58]*** CUTSNS_PIN = 0 [12:50:58]*** Brake cut motor [12:50:58]Read from MH i2c: 01 [12:50:59]MH_I2C_Read... [12:50:59]*** Stop cut motor [12:50:59]*** Cut end [12:50:59]Read from MH i2c: 01 07 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 FF 0F 50 [12:50:59]process_action close_receipt done [12:50:59]requested_data is exist [12:50:59]produce_requested_data [12:50:59]requested_item fm.sn is exist - process it [12:50:59]wFMCommunicate request_size=4 [12:50:59]MH_SAM_APDU [12:50:59]CAPDU: 80 11 00 00 [12:50:59]Write to MH i2c: E2 08 00 36 06 80 11 00 00 00 00 00 00 B6 [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:59]Read from MH i2c: E2 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 17 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 17 00 36 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 06 [12:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:50:59]wFMCommunicate OK [12:50:59]requested_item fd.num is exist - process it [12:50:59]SAM_PROTO_GetFieldsCounters [12:50:59]wFMCommunicate request_size=4 [12:50:59]MH_SAM_APDU [12:50:59]CAPDU: 80 13 00 00 [12:50:59]Write to MH i2c: E2 08 00 37 06 80 13 00 00 00 00 00 00 B9 [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:59]Read from MH i2c: E2 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 62 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 62 00 37 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 38 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [12:50:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 38 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:59]wFMCommunicate OK [12:50:59]SAM_PROTO_GetFieldsCounters done [12:50:59]requested_item shift.num is exist - process it [12:50:59]requested_item shift.opened is exist - process it [12:50:59]req_shift_opened [12:50:59]FM_GetShiftState [12:50:59]SAM_PROTO_GetShiftState [12:50:59]wFMCommunicate request_size=4 [12:50:59]MH_SAM_APDU [12:50:59]CAPDU: 80 13 01 00 [12:50:59]Write to MH i2c: E2 08 00 38 06 80 13 01 00 00 00 00 00 BB [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:59]Read from MH i2c: E2 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 0E 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: E2 0E 00 38 06 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B1 [12:50:59]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:50:59]wFMCommunicate OK [12:50:59]SAM_PROTO_GetShiftState done [12:50:59]FM_GetShiftState done [12:50:59]req_shift_opened done [12:50:59]requested_item shift.open_date is exist - process it [12:50:59]req_shift_open_date [12:50:59]req_shift_open_date done [12:50:59]produce_requested_data done [12:50:59]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76856,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:50:59]process_action_free close_receipt [12:50:59]json_value_free [12:50:59]json_value_free done [12:50:59]process_json_proto returns [12:50:59]Send response to host [12:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76856,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:50:59]free response buf [12:50:59]execute_script done [12:50:59]execute_script returns [12:50:59]free content buf [12:50:59]Sock 8.Close socket [12:50:59]Sock 8.Thread stoped [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:31]accept exits with 9 [12:52:31]New connection [12:52:31]New thread 3067362660 created [12:52:31]Thread 3067219300 joined [12:52:31]Waiting for new connection... [12:52:31] Sock 9.Parse request [12:52:31]Sock 9.Check first char [12:52:31]Sock 9.First char is OK [12:52:31]request: POST /json_proto HTTP/1.0 [12:52:31]Method: POST [12:52:31]URL: /json_proto [12:52:31]Method is POST - this is cgi request [12:52:31]url: /json_proto [12:52:31]query_string will be loaded in cgi processing [12:52:31]execute_cgi json_proto POST (null) [12:52:31]execute_cgi path=json_proto method=POST [12:52:31]POST find Content-Length [12:52:31]Host: 172.17.39.195:8080 [12:52:31]Content-Length: 804 [12:52:31]Content-Type: application/json [12:52:31] [12:52:31]POST finish read [12:52:31]Found Content-Length = 804 [12:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:31]execute_script... [12:52: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)1694471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:31]POST & json_proto [12:52:31]process_json_proto [12:52:31]json parsed OK: [12:52:31]protocol is kg_v1.0 [12:52:31]action value=close_receipt [12:52:31]process_action close_receipt [12:52:31]cmd_close_receipt [12:52:31]MH_GetDate [12:52:31]Write to MH i2c: F0 00 00 39 06 2E [12:52:31]Write i2c OK [12:52:31]MH_I2C_Read... [12:52:31]Read from MH i2c: F0 [12:52:31]MH_I2C_Read... [12:52:31]Read from MH i2c: F0 09 00 [12:52:31]MH_I2C_Read... [12:52:31]Read from MH i2c: F0 09 00 39 06 00 10 C9 76 66 99 81 91 64 FB [12:52:31]GetLastDocTimeStamp 1719060656 [12:52:31]current date 1719060752 [12:52:31]FM_GetShiftState [12:52:31]SAM_PROTO_GetShiftState [12:52:31]wFMCommunicate request_size=4 [12:52:31]MH_SAM_APDU [12:52:31]CAPDU: 80 13 01 00 [12:52:31]Write to MH i2c: E2 08 00 3A 06 80 13 01 00 00 00 00 00 BD [12:52:31]Write i2c OK [12:52:31]MH_I2C_Read... [12:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:31]Read from MH i2c: E2 [12:52:31]MH_I2C_Read... [12:52:31]Read from MH i2c: E2 0E 00 [12:52:31]MH_I2C_Read... [12:52:31]Read from MH i2c: E2 0E 00 3A 06 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B3 [12:52:31]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:52:31]wFMCommunicate OK [12:52:31]SAM_PROTO_GetShiftState done [12:52:31]FM_GetShiftState done [12:52:31]opened in 1719016435 [12:52:31]opened+sec_in_day 1719102835 [12:52:31]quantity*price = 300061 [12:52:31]sum+1 = 300063 [12:52:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.62 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.62 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 53 22.06.2024 12:52 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76857 ФПД: 15137655902875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125232&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76857&fm=15137655902875&tin=02508201610067®Number=0000000000095696&sum=300062 [12:52:33]StoreToDocumentArchive [12:52:33]shift 395 fd 76857 [12:52:33]save to /storage/0395/doc_00076857 [12:52:33]save last doc name /storage/0395/doc_00076857 to /storage/kkm_last_doc_name [12:52:33]save OK [12:52:33]Clear old archive folders... [12:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:33]tlvbuf is 0097ADA0 [12:52:33]SAM_PROTO_ClearQueue [12:52:33]wFMCommunicate request_size=4 [12:52:33]MH_SAM_APDU [12:52:33]CAPDU: 80 09 00 00 [12:52:33]Write to MH i2c: E2 08 00 47 06 80 09 00 00 00 00 00 00 BF [12:52:33]Write i2c OK [12:52:33]MH_I2C_Read... [12:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:33]Read from MH i2c: E2 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 03 00 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [12:52:33]RAPDU: 90 00 [12:52:33]wFMCommunicate OK [12:52:33]SAM_PROTO_ClearQueue done [12:52:33]KKMCreateOFDPacket [12:52:33]OFDProtocolAddRootSTLVToBuf [12:52:33]FM_MakeSignedData [12:52:33]FM_MakeSignedData [12:52:33]SAM_PROTO_SignData [12:52:33]wFMCommunicate request_size=4 [12:52:33]MH_SAM_APDU [12:52:33]CAPDU: 80 0D 01 02 [12:52:33]Write to MH i2c: E2 08 00 48 06 80 0D 01 02 00 00 00 00 C7 [12:52:33]Write i2c OK [12:52:33]MH_I2C_Read... [12:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:33]Read from MH i2c: E2 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 03 00 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [12:52:33]RAPDU: 90 00 [12:52:33]wFMCommunicate OK [12:52:33]wFMCommunicate request_size=255 [12:52:33]MH_SAM_APDU [12:52:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 10 C9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2C 01 00 35 04 06 00 0D [12:52:33]Write to MH i2c: E2 02 01 49 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 10 C9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2C 01 00 35 04 06 00 0D 00 00 80 [12:52:33]Write i2c OK [12:52:33]MH_I2C_Read... [12:52:33]OFD Sender: No OFD packet to send [12:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:33]Read from MH i2c: E2 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 03 00 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [12:52:33]RAPDU: 90 00 [12:52:33]wFMCommunicate OK [12:52:33]wFMCommunicate request_size=10 [12:52:33]MH_SAM_APDU [12:52:33]CAPDU: 80 0D 02 02 05 C4 82 9A 52 9B [12:52:33]Write to MH i2c: E2 0D 00 4A 06 80 0D 02 02 05 00 C4 82 9A 52 9B 00 00 A1 [12:52:33]Write i2c OK [12:52:33]MH_I2C_Read... [12:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:33]Read from MH i2c: E2 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 03 00 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [12:52:33]RAPDU: 90 00 [12:52:33]wFMCommunicate OK [12:52:33]wFMCommunicate request_size=4 [12:52:33]MH_SAM_APDU [12:52:33]CAPDU: 80 0D 03 02 [12:52:33]Write to MH i2c: E2 08 00 4B 06 80 0D 03 02 00 00 00 00 CC [12:52:33]Write i2c OK [12:52:33]MH_I2C_Read... [12:52:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:33]Read from MH i2c: E2 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 0B 00 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 0B 00 4B 06 00 EB 26 EB 24 C7 66 0D D2 90 00 F9 [12:52:33]RAPDU: EB 26 EB 24 C7 66 0D D2 90 00 [12:52:33]wFMCommunicate OK [12:52:33]SAM_PROTO_SignData done [12:52:33]FM_MakeSignedData done [12:52:33]CreateOFDProtocolMessage [12:52:33]wFMCommunicate request_size=4 [12:52:33]MH_SAM_APDU [12:52:33]CAPDU: 80 11 00 00 [12:52:33]Write to MH i2c: E2 08 00 4C 06 80 11 00 00 00 00 00 00 CC [12:52:33]Write i2c OK [12:52:33]MH_I2C_Read... [12:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:33]Read from MH i2c: E2 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 17 00 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: E2 17 00 4C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1C [12:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:52:33]wFMCommunicate OK [12:52:33]CreateOFDProtocolMessage done [12:52:33]OFDSenderStorePacket 76857 [12:52:33]StoreOFDPacket docnum=76857 [12:52:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 AE 0D 07 01 21 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 10 C9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2C 01 00 35 04 06 00 0D C4 82 9A 52 9B EB 26 EB 24 C7 66 0D D2 [12:52:33]CheckFolder [12:52:33]dirname=/storage/ofd_packets [12:52:33]CheckFolder done [12:52:33]ProducePacketName [12:52:33]name=ofd_packets/00076857 [12:52:33]NVStorageSaveData ofd_packets/00076857 [12:52:33]File name is /storage/ofd_packets/00076857 [12:52:33]Write 301 bytes [12:52:33]NVStorageSaveData done [12:52:33]OFDSenderStorePacket done [12:52:33]KKMCreateOFDPacket done [12:52:33]NVStorageSaveData kkm_last_timestamp [12:52:33]File name is /storage/kkm_last_timestamp [12:52:33]Write 4 bytes [12:52:33]NVStorageSaveData done [12:52:33]ExternCall_PrintAddStr [12:52:33]wPrintStart [12:52:33]Write to MH i2c: 01 00 00 4D 06 53 [12:52:33]Write i2c OK [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: 01 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: 01 07 00 [12:52:33]MH_I2C_Read... [12:52:33]Read from MH i2c: 01 07 00 4D 06 00 00 00 00 00 FF 0F 68 [12:52:33]RasterBufferAndPrint [12:52:33]line Счет N : (1)1694471 [12:52:33]line ИНН: 02508201610067 [12:52:33]line Контрольно-Кассовый Чек [12:52:33]line ПРОДАЖА [12:52:33]line ТРК (МРК, ГНК) : 63 [12:52:33]line Товар: 2710124130 [12:52:33]line Аи-92-К-5 [12:52:33]line 45.190 * 66.40 [12:52:33]line = 3000.62 [12:52:33]line НДС 12% НСП 1% [12:52:33]line > о реализуемом товаре [12:52:33]line ИТОГО: 3000.62 [12:52:33]line НСП 1% : 26.55 [12:52:33]line НДС 12% : 318.65 [12:52:33]line Наличными: 0.00 [12:52:33]line Безнал.: 3000.62 [12:52:33]line Место: АЗС № 144 "Партнер Нефть" [12:52:33]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:52:33]line СНО: Общий режим [12:52:33]line Чек 53 22.06.2024 12:52 [12:52:33]line Смена: 395 ФФД: 1.0 [12:52:33]line ЗНМ: 0300000170 [12:52:33]line РНМ: 0000000000095696 [12:52:33]line Версия ККМ: 001 [12:52:33]line Платежная система: O! деньги [12:52:33]line ФМ: 0000000000875009 [12:52:33]line ФД: 76857 [12:52:33]line ФПД: 15137655902875 [12:52:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125232&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76857&fm=15137655902875&tin=02508201610067®Number=0000000000095696&sum=300062 [12:52:33]written 0, free lines is 4095 [12:52:33]OFD Sender: Processing packet 76857 [packets to send 351, broken 350] [12:52:33]ProducePacketName [12:52:33]name=ofd_packets/00076857 [12:52:33]OFD Sender: To server: pG, [12:52:33]CommunicateWithHost lk.salyk.kg:30040 [12:52:33]ConnectInit lk.salyk.kg [12:52:34]Write to MH i2c: 01 00 00 77 06 7D [12:52:34]Write i2c OK [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: 01 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: 01 07 00 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: 01 07 00 77 06 00 00 00 00 00 EC 0C 7C [12:52:34]RasterBufferAndPrint [12:52:34]line [12:52:34]line [12:52:34]line [12:52:34]line [12:52:34]line [12:52:34]written 0, free lines is 3315 [12:52:34]MH_Cut [12:52:34]Write to MH i2c: D1 01 00 7E 06 01 56 [12:52:34]Write i2c OK [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: D1 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: D1 01 00 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: D1 01 00 7E 06 00 55 [12:52:34]Write to MH i2c: 01 00 00 7F 06 85 [12:52:34]Write i2c OK [12:52:34]MH_I2C_Read... [12:52:34]Connected sock=10 [12:52:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 AE 0D 07 01 21 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 10 C9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2C 01 00 35 04 06 00 0D C4 82 9A 52 9B EB 26 EB 24 C7 66 0D D2 [12:52:34]*** Cut start [12:52:34]*** Partial cut [12:52:34]*** CUTSNS_PIN = 1 [12:52:34]*** CUTSNS_PIN = 0 [12:52:35]*** Brake cut motor [12:52:35]Read from MH i2c: 01 [12:52:35]MH_I2C_Read... [12:52:35]*** Stop cut motor [12:52:35]*** Cut end [12:52:35]Read from MH i2c: 01 07 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: 01 07 00 7F 06 00 00 00 00 00 FF 0F 9A [12:52:35]process_action close_receipt done [12:52:35]requested_data is exist [12:52:35]produce_requested_data [12:52:35]requested_item fm.sn is exist - process it [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 11 00 00 [12:52:35]Write to MH i2c: E2 08 00 80 06 80 11 00 00 00 00 00 00 00 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 17 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 17 00 80 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 50 [12:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:52:35]wFMCommunicate OK [12:52:35]requested_item fd.num is exist - process it [12:52:35]SAM_PROTO_GetFieldsCounters [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 13 00 00 [12:52:35]Write to MH i2c: E2 08 00 81 06 80 13 00 00 00 00 00 00 03 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 62 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 62 00 81 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 39 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [12:52: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 39 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:35]wFMCommunicate OK [12:52:35]SAM_PROTO_GetFieldsCounters done [12:52:35]requested_item shift.num is exist - process it [12:52:35]requested_item shift.opened is exist - process it [12:52:35]req_shift_opened [12:52:35]FM_GetShiftState [12:52:35]SAM_PROTO_GetShiftState [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 13 01 00 [12:52:35]Write to MH i2c: E2 08 00 82 06 80 13 01 00 00 00 00 00 05 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 0E 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 0E 00 82 06 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 FB [12:52:35]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:52:35]wFMCommunicate OK [12:52:35]SAM_PROTO_GetShiftState done [12:52:35]FM_GetShiftState done [12:52:35]req_shift_opened done [12:52:35]requested_item shift.open_date is exist - process it [12:52:35]req_shift_open_date [12:52:35]req_shift_open_date done [12:52:35]produce_requested_data done [12:52:35]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76857,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:52:35]process_action_free close_receipt [12:52:35]json_value_free [12:52:35]json_value_free done [12:52:35]process_json_proto returns [12:52:35]Send response to host [12:52:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76857,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:52:35]free response buf [12:52:35]execute_script done [12:52:35]execute_script returns [12:52:35]free content buf [12:52:35]Sock 9.Close socket [12:52:35]Sock 9.Thread stoped [12:52:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 1E 17 47 00 5F B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 39 2C 01 00 F4 03 04 00 AC 6F 76 66 B6 04 01 00 00 1B D5 C3 25 28 E6 BD AC [12:52:35]CommunicateWithHost err = 0 [12:52:35]CheckOFDResponse [12:52:35]1017 (14) - 77093643461234 [12:52:35]1041 (16) - 0000000000875009 [12:52:35]1040 (4) - 76857 [12:52:35]1012 (4) - 22.06.2024 06:31 [12:52:35]1206 (1) - 0 [12:52:35]OFD Sender: Remove packet 76857 [12:52:35]ProducePacketName [12:52:35]name=ofd_packets/00076857 [12:52:35]NVStorageDeleteData [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [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: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: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:22]accept exits with 8 [12:56:22]New connection [12:56:22]New thread 3067219300 created [12:56:22]Thread 3067362660 joined [12:56:22]Waiting for new connection... [12:56:22] Sock 8.Parse request [12:56:22]Sock 8.Check first char [12:56:22]Sock 8.First char is OK [12:56:22]request: POST /json_proto HTTP/1.0 [12:56:22]Method: POST [12:56:22]URL: /json_proto [12:56:22]Method is POST - this is cgi request [12:56:22]url: /json_proto [12:56:22]query_string will be loaded in cgi processing [12:56:22]execute_cgi json_proto POST (null) [12:56:22]execute_cgi path=json_proto method=POST [12:56:22]POST find Content-Length [12:56:22]Host: 172.17.39.195:8080 [12:56:22]Content-Length: 708 [12:56:22]Content-Type: application/json [12:56:22] [12:56:22]POST finish read [12:56:22]Found Content-Length = 708 [12:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220925", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 795.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:22]execute_script... [12:56:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220925", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 795.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:22]POST & json_proto [12:56:22]process_json_proto [12:56:22]json parsed OK: [12:56:22]protocol is kg_v1.0 [12:56:22]action value=close_receipt [12:56:22]process_action close_receipt [12:56:22]cmd_close_receipt [12:56:22]MH_GetDate [12:56:22]Write to MH i2c: F0 00 00 83 06 78 [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: F0 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: F0 09 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: F0 09 00 83 06 00 F7 C9 76 66 99 81 91 64 2C [12:56:22]GetLastDocTimeStamp 1719060752 [12:56:22]current date 1719060983 [12:56:22]FM_GetShiftState [12:56:22]SAM_PROTO_GetShiftState [12:56:22]wFMCommunicate request_size=4 [12:56:22]MH_SAM_APDU [12:56:22]CAPDU: 80 13 01 00 [12:56:22]Write to MH i2c: E2 08 00 84 06 80 13 01 00 00 00 00 00 07 [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:22]Read from MH i2c: E2 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 0E 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 0E 00 84 06 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 FD [12:56:22]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:56:22]wFMCommunicate OK [12:56:22]SAM_PROTO_GetShiftState done [12:56:22]FM_GetShiftState done [12:56:22]opened in 1719016435 [12:56:22]opened+sec_in_day 1719102835 [12:56:22]quantity*price = 79500 [12:56:22]sum+1 = 79501 [12:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 795.00 НСП 1% : 7.03 НДС 12% : 84.42 Наличными: 795.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 54 22.06.2024 12:56 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76858 ФПД: 83031578647888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125623&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76858&fm=83031578647888&tin=02508201610067®Number=0000000000095696&sum=79500 0 [12:56:23]StoreToDocumentArchive [12:56:23]shift 395 fd 76858 [12:56:23]save to /storage/0395/doc_00076858 [12:56:23]save last doc name /storage/0395/doc_00076858 to /storage/kkm_last_doc_name [12:56:23]save OK [12:56:23]Clear old archive folders... [12:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=300 [12:56:23]tlvbuf is 009037B0 [12:56:23]SAM_PROTO_ClearQueue [12:56:23]wFMCommunicate request_size=4 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 09 00 00 [12:56:23]Write to MH i2c: E2 08 00 91 06 80 09 00 00 00 00 00 00 09 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:23]Read from MH i2c: E2 03 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [12:56:23]RAPDU: 90 00 [12:56:23]wFMCommunicate OK [12:56:23]SAM_PROTO_ClearQueue done [12:56:23]KKMCreateOFDPacket [12:56:23]OFDProtocolAddRootSTLVToBuf [12:56:23]FM_MakeSignedData [12:56:23]FM_MakeSignedData [12:56:23]SAM_PROTO_SignData [12:56:23]wFMCommunicate request_size=4 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 0D 01 02 [12:56:23]Write to MH i2c: E2 08 00 92 06 80 0D 01 02 00 00 00 00 11 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 03 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [12:56:23]RAPDU: 90 00 [12:56:23]wFMCommunicate OK [12:56:23]wFMCommunicate request_size=255 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 20 00 00 00 00 07 04 06 00 8C 36 01 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 F7 C9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 [12:56:23]Write to MH i2c: E2 02 01 93 06 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 20 00 00 00 00 07 04 06 00 8C 36 01 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 F7 C9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 52 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 03 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [12:56:23]RAPDU: 90 00 [12:56:23]wFMCommunicate OK [12:56:23]wFMCommunicate request_size=59 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3A 2C 01 00 35 04 06 00 4B 84 4B C0 1D 50 [12:56:23]Write to MH i2c: E2 3E 00 94 06 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3A 2C 01 00 35 04 06 00 4B 84 4B C0 1D 50 00 00 EA [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [12:56:24]RAPDU: 90 00 [12:56:24]wFMCommunicate OK [12:56:24]wFMCommunicate request_size=4 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 0D 03 02 [12:56:24]Write to MH i2c: E2 08 00 95 06 80 0D 03 02 00 00 00 00 16 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 0B 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 0B 00 95 06 00 56 B3 1F EE DE 25 DE E0 90 00 EE [12:56:24]RAPDU: 56 B3 1F EE DE 25 DE E0 90 00 [12:56:24]wFMCommunicate OK [12:56:24]SAM_PROTO_SignData done [12:56:24]FM_MakeSignedData done [12:56:24]CreateOFDProtocolMessage [12:56:24]wFMCommunicate request_size=4 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 11 00 00 [12:56:24]Write to MH i2c: E2 08 00 96 06 80 11 00 00 00 00 00 00 16 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 17 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 17 00 96 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 66 [12:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:56:24]wFMCommunicate OK [12:56:24]CreateOFDProtocolMessage done [12:56:24]OFDSenderStorePacket 76858 [12:56:24]StoreOFDPacket docnum=76858 [12:56:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 40 01 00 00 BC 30 38 01 FF F6 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 20 00 00 00 00 07 04 06 00 8C 36 01 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 F7 C9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3A 2C 01 00 35 04 06 00 4B 84 4B C0 1D 50 56 B3 1F EE DE 25 DE E0 [12:56:24]CheckFolder [12:56:24]dirname=/storage/ofd_packets [12:56:24]CheckFolder done [12:56:24]ProducePacketName [12:56:24]name=ofd_packets/00076858 [12:56:24]NVStorageSaveData ofd_packets/00076858 [12:56:24]File name is /storage/ofd_packets/00076858 [12:56:24]Write 350 bytes [12:56:24]NVStorageSaveData done [12:56:24]OFDSenderStorePacket done [12:56:24]KKMCreateOFDPacket done [12:56:24]NVStorageSaveData kkm_last_timestamp [12:56:24]File name is /storage/kkm_last_timestamp [12:56:24]Write 4 bytes [12:56:24]NVStorageSaveData done [12:56:24]ExternCall_PrintAddStr [12:56:24]wPrintStart [12:56:24]Write to MH i2c: 01 00 00 97 06 9D [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: 01 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: 01 07 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 FF 0F B2 [12:56:24]RasterBufferAndPrint [12:56:24]line Счет N : (3)220925 [12:56:24]line ИНН: 02508201610067 [12:56:24]line Контрольно-Кассовый Чек [12:56:24]line ПРОДАЖА [12:56:24]line Товар: 4700003150806 [12:56:24]line Водка Настроение V премиум 40% 0,7л [12:56:24]line 1.000 * 795.00 [12:56:24]line = 795.00 [12:56:24]line НДС 12% НСП 1% [12:56:24]line > о реализуемом товаре [12:56:24]line ИТОГО: 795.00 [12:56:24]line НСП 1% : 7.03 [12:56:24]line НДС 12% : 84.42 [12:56:24]line Наличными: 795.00 [12:56:24]line Безнал.: 0.00 [12:56:24]line Место: АЗС № 144 "Партнер Нефть" [12:56:24]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [12:56:24]line СНО: Общий режим [12:56:24]line Чек 54 22.06.2024 12:56 [12:56:24]line Смена: 395 ФФД: 1.0 [12:56:24]line ЗНМ: 0300000170 [12:56:24]line РНМ: 0000000000095696 [12:56:24]line Версия ККМ: 001 [12:56:24]line ФМ: 0000000000875009 [12:56:24]line ФД: 76858 [12:56:24]line ФПД: 83031578647888 [12:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T125623&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76858&fm=83031578647888&tin=02508201610067®Number=0000000000095696&sum=79500 [12:56:24]line 0 [12:56:24]written 0, free lines is 4095 [12:56:24]OFD Sender: Processing packet 76858 [packets to send 351, broken 350] [12:56:24]ProducePacketName [12:56:24]name=ofd_packets/00076858 [12:56:24]OFD Sender: To server: pG, [12:56:24]CommunicateWithHost lk.salyk.kg:30040 [12:56:24]ConnectInit lk.salyk.kg [12:56:24]Connected sock=10 [12:56:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 40 01 00 00 BC 30 38 01 FF F6 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 20 00 00 00 00 07 04 06 00 8C 36 01 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 F7 C9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3A 2C 01 00 35 04 06 00 4B 84 4B C0 1D 50 56 B3 1F EE DE 25 DE E0 [12:56:24]Write to MH i2c: 01 00 00 C0 06 C6 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: 01 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: 01 07 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 EB 0C C4 [12:56:24]RasterBufferAndPrint [12:56:24]line [12:56:24]line [12:56:24]line [12:56:24]line [12:56:24]line [12:56:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 5C C9 47 00 E2 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 35 30 30 39 10 04 04 00 3A 2C 01 00 F4 03 04 00 91 70 76 66 B6 04 01 00 00 4B 05 DB 9C 8B C2 47 8E [12:56:24]CommunicateWithHost err = 0 [12:56:24]CheckOFDResponse [12:56:24]1017 (14) - 77093643461234 [12:56:24]1041 (16) - 0000000000875009 [12:56:24]1040 (4) - 76858 [12:56:24]1012 (4) - 22.06.2024 06:34 [12:56:24]1206 (1) - 0 [12:56:24]OFD Sender: Remove packet 76858 [12:56:24]ProducePacketName [12:56:24]name=ofd_packets/00076858 [12:56:24]NVStorageDeleteData [12:56:24]written 0, free lines is 3313 [12:56:24]MH_Cut [12:56:24]Write to MH i2c: D1 01 00 C7 06 01 9F [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: D1 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: D1 01 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: D1 01 00 C7 06 00 9E [12:56:24]Write to MH i2c: 01 00 00 C8 06 CE [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:25]OFD Sender: No OFD packet to send [12:56:25]*** Cut start [12:56:25]*** Partial cut [12:56:25]*** CUTSNS_PIN = 1 [12:56:25]*** CUTSNS_PIN = 0 [12:56:25]*** Brake cut motor [12:56:25]Read from MH i2c: 01 [12:56:25]MH_I2C_Read... [12:56:25]*** Stop cut motor [12:56:25]*** Cut end [12:56:25]Read from MH i2c: 01 07 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: 01 07 00 C8 06 00 00 00 00 00 FF 0F E3 [12:56:25]process_action close_receipt done [12:56:25]requested_data is exist [12:56:25]produce_requested_data [12:56:25]requested_item fm.sn is exist - process it [12:56:25]wFMCommunicate request_size=4 [12:56:25]MH_SAM_APDU [12:56:25]CAPDU: 80 11 00 00 [12:56:25]Write to MH i2c: E2 08 00 C9 06 80 11 00 00 00 00 00 00 49 [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:26]Read from MH i2c: E2 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 17 00 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 17 00 C9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 99 [12:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:56:26]wFMCommunicate OK [12:56:26]requested_item fd.num is exist - process it [12:56:26]SAM_PROTO_GetFieldsCounters [12:56:26]wFMCommunicate request_size=4 [12:56:26]MH_SAM_APDU [12:56:26]CAPDU: 80 13 00 00 [12:56:26]Write to MH i2c: E2 08 00 CA 06 80 13 00 00 00 00 00 00 4C [12:56:26]Write i2c OK [12:56:26]MH_I2C_Read... [12:56:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:26]Read from MH i2c: E2 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 62 00 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 62 00 CA 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [12:56: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:26]wFMCommunicate OK [12:56:26]SAM_PROTO_GetFieldsCounters done [12:56:26]requested_item shift.num is exist - process it [12:56:26]requested_item shift.opened is exist - process it [12:56:26]req_shift_opened [12:56:26]FM_GetShiftState [12:56:26]SAM_PROTO_GetShiftState [12:56:26]wFMCommunicate request_size=4 [12:56:26]MH_SAM_APDU [12:56:26]CAPDU: 80 13 01 00 [12:56:26]Write to MH i2c: E2 08 00 CB 06 80 13 01 00 00 00 00 00 4E [12:56:26]Write i2c OK [12:56:26]MH_I2C_Read... [12:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:26]Read from MH i2c: E2 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 0E 00 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 0E 00 CB 06 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 44 [12:56:26]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:56:26]wFMCommunicate OK [12:56:26]SAM_PROTO_GetShiftState done [12:56:26]FM_GetShiftState done [12:56:26]req_shift_opened done [12:56:26]requested_item shift.open_date is exist - process it [12:56:26]req_shift_open_date [12:56:26]req_shift_open_date done [12:56:26]produce_requested_data done [12:56:26]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76858,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:56:26]process_action_free close_receipt [12:56:26]json_value_free [12:56:26]json_value_free done [12:56:26]process_json_proto returns [12:56:26]Send response to host [12:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76858,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:56:26]free response buf [12:56:26]execute_script done [12:56:26]execute_script returns [12:56:26]free content buf [12:56:26]Sock 8.Close socket [12:56:26]Sock 8.Thread stoped [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]accept exits with 9 [12:57:05]New connection [12:57:05]New thread 3067362660 created [12:57:05]Thread 3067219300 joined [12:57:05]Waiting for new connection... [12:57:05] Sock 9.Parse request [12:57:05]Sock 9.Check first char [12:57:05]Sock 9.First char is OK [12:57:05]request: POST /json_proto HTTP/1.0 [12:57:05]Method: POST [12:57:05]URL: /json_proto [12:57:05]Method is POST - this is cgi request [12:57:05]url: /json_proto [12:57:05]query_string will be loaded in cgi processing [12:57:05]execute_cgi json_proto POST (null) [12:57:05]execute_cgi path=json_proto method=POST [12:57:05]POST find Content-Length [12:57:05]Host: 172.17.39.195:8080 [12:57:05]Content-Length: 1208 [12:57:05]Content-Type: application/json [12:57:05] [12:57:05]POST finish read [12:57:05]Found Content-Length = 1208 [12:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694473\u000A22.06.2024 12:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 120.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 8748.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24054\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:05]execute_script... [12:57:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694473\u000A22.06.2024 12:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 120.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 8748.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24054\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:05]POST & json_proto [12:57:05]process_json_proto [12:57:05]json parsed OK: [12:57:05]protocol is kg_v1.0 [12:57:05]action value=print_text [12:57:05]process_action print_text [12:57:05]cmd_print_text [12:57:05]ExternCall_PrintAddStr [12:57:05]wPrintStart [12:57:05]Write to MH i2c: 01 00 00 CC 06 D2 [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 07 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 FF 0F E7 [12:57:05]RasterBufferAndPrint [12:57:05]line *****ТОВАРНЫЙ ЧЕК***** [12:57:05]line АЗС 144 [12:57:05]line Партнер нефть [12:57:05]line 02508201610067 [12:57:05]line Кассир : Шайлообек у. Т. [12:57:05]line Счет N : (1)1694473 [12:57:05]line 22.06.2024 12:28 [12:57:05]line ПРОДАЖА [12:57:05]line ТРК (МРК, ГНК): 21 [12:57:05]line Вид ГСМ : 2710194210 [12:57:05]line ДТ-К-2 [12:57:05]line 120.000 x 72.90 [12:57:05]line ИТОГ: 8748.00 [12:57:05]line Тип оплаты: Талоны: Топливная Карта [12:57:05]line 24054 [12:57:05]line ______________________ [12:57:05]line (подпись) [12:57:05]written 0, free lines is 4095 [12:57:05]OFD Sender: No OFD packet to send [12:57:05]Write to MH i2c: 01 00 00 E1 06 E7 [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 07 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 F7 0D F2 [12:57:05]RasterBufferAndPrint [12:57:05]line [12:57:05]line [12:57:05]line [12:57:05]line [12:57:05]line [12:57:05]written 0, free lines is 3577 [12:57:05]MH_Cut [12:57:05]Write to MH i2c: D1 01 00 E8 06 01 C0 [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: D1 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: D1 01 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: D1 01 00 E8 06 00 BF [12:57:05]Write to MH i2c: 01 00 00 E9 06 EF [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]*** Cut start [12:57:05]*** Partial cut [12:57:05]*** CUTSNS_PIN = 1 [12:57:05]*** CUTSNS_PIN = 0 [12:57:06]*** Brake cut motor [12:57:06]Read from MH i2c: 01 [12:57:06]MH_I2C_Read... [12:57:06]*** Stop cut motor [12:57:06]*** Cut end [12:57:06]Read from MH i2c: 01 07 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 FF 0F 04 [12:57:06]process_action print_text done [12:57:06]requested_data is exist [12:57:06]produce_requested_data [12:57:06]requested_item fm.sn is exist - process it [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 11 00 00 [12:57:06]Write to MH i2c: E2 08 00 EA 06 80 11 00 00 00 00 00 00 6A [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 17 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 17 00 EA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BA [12:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [12:57:06]wFMCommunicate OK [12:57:06]requested_item fd.num is exist - process it [12:57:06]SAM_PROTO_GetFieldsCounters [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 13 00 00 [12:57:06]Write to MH i2c: E2 08 00 EB 06 80 13 00 00 00 00 00 00 6D [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 62 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 62 00 EB 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [12:57: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:06]wFMCommunicate OK [12:57:06]SAM_PROTO_GetFieldsCounters done [12:57:06]requested_item shift.num is exist - process it [12:57:06]requested_item shift.opened is exist - process it [12:57:06]req_shift_opened [12:57:06]FM_GetShiftState [12:57:06]SAM_PROTO_GetShiftState [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 13 01 00 [12:57:06]Write to MH i2c: E2 08 00 EC 06 80 13 01 00 00 00 00 00 6F [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 0E 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 0E 00 EC 06 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 65 [12:57:06]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [12:57:06]wFMCommunicate OK [12:57:06]SAM_PROTO_GetShiftState done [12:57:06]FM_GetShiftState done [12:57:06]req_shift_opened done [12:57:06]requested_item shift.open_date is exist - process it [12:57:06]req_shift_open_date [12:57:06]req_shift_open_date done [12:57:06]produce_requested_data done [12:57:06]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76858,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [12:57:06]process_action_free print_text [12:57:06]json_value_free [12:57:06]json_value_free done [12:57:06]process_json_proto returns [12:57:06]Send response to host [12:57:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76858,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [12:57:06]free response buf [12:57:06]execute_script done [12:57:06]execute_script returns [12:57:06]free content buf [12:57:06]Sock 9.Close socket [12:57:06]Sock 9.Thread stoped [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:04]accept exits with 8 [13:00:04]New connection [13:00:04]New thread 3067219300 created [13:00:04]Thread 3067362660 joined [13:00:04]Waiting for new connection... [13:00:04] Sock 8.Parse request [13:00:04]Sock 8.Check first char [13:00:04]Sock 8.First char is OK [13:00:04]request: POST /json_proto HTTP/1.0 [13:00:04]Method: POST [13:00:04]URL: /json_proto [13:00:04]Method is POST - this is cgi request [13:00:04]url: /json_proto [13:00:04]query_string will be loaded in cgi processing [13:00:04]execute_cgi json_proto POST (null) [13:00:04]execute_cgi path=json_proto method=POST [13:00:04]POST find Content-Length [13:00:04]Host: 172.17.39.195:8080 [13:00:04]Content-Length: 804 [13:00:04]Content-Type: application/json [13:00:04] [13:00:04]POST finish read [13:00:04]Found Content-Length = 804 [13:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:04]execute_script... [13:00:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:04]POST & json_proto [13:00:04]process_json_proto [13:00:04]json parsed OK: [13:00:04]protocol is kg_v1.0 [13:00:04]action value=close_receipt [13:00:04]process_action close_receipt [13:00:04]cmd_close_receipt [13:00:04]MH_GetDate [13:00:04]Write to MH i2c: F0 00 00 ED 06 E2 [13:00:04]Write i2c OK [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: F0 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: F0 09 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: F0 09 00 ED 06 00 D5 CA 76 66 99 81 91 64 75 [13:00:04]GetLastDocTimeStamp 1719060983 [13:00:04]current date 1719061205 [13:00:04]FM_GetShiftState [13:00:04]SAM_PROTO_GetShiftState [13:00:04]wFMCommunicate request_size=4 [13:00:04]MH_SAM_APDU [13:00:04]CAPDU: 80 13 01 00 [13:00:04]Write to MH i2c: E2 08 00 EE 06 80 13 01 00 00 00 00 00 71 [13:00:04]Write i2c OK [13:00:04]MH_I2C_Read... [13:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:04]Read from MH i2c: E2 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 0E 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 0E 00 EE 06 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 67 [13:00:04]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [13:00:04]wFMCommunicate OK [13:00:04]SAM_PROTO_GetShiftState done [13:00:04]FM_GetShiftState done [13:00:04]opened in 1719016435 [13:00:04]opened+sec_in_day 1719102835 [13:00:04]quantity*price = 100064 [13:00:04]sum+1 = 100066 [13:00:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 55 22.06.2024 13:00 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76859 ФПД: 259171796673198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130005&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76859&fm=259171796673198&tin=02508201610067®Number=0000000000095696&sum=100065 [13:00:05]StoreToDocumentArchive [13:00:05]shift 395 fd 76859 [13:00:05]save to /storage/0395/doc_00076859 [13:00:05]save last doc name /storage/0395/doc_00076859 to /storage/kkm_last_doc_name [13:00:05]save OK [13:00:05]Clear old archive folders... [13:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:05]tlvbuf is 0091C130 [13:00:05]SAM_PROTO_ClearQueue [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 09 00 00 [13:00:05]Write to MH i2c: E2 08 00 FB 06 80 09 00 00 00 00 00 00 73 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:05]Read from MH i2c: E2 03 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [13:00:05]RAPDU: 90 00 [13:00:05]wFMCommunicate OK [13:00:05]SAM_PROTO_ClearQueue done [13:00:05]KKMCreateOFDPacket [13:00:05]OFDProtocolAddRootSTLVToBuf [13:00:05]FM_MakeSignedData [13:00:05]FM_MakeSignedData [13:00:05]SAM_PROTO_SignData [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 0D 01 02 [13:00:05]Write to MH i2c: E2 08 00 FC 06 80 0D 01 02 00 00 00 00 7B [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]OFD Sender: No OFD packet to send [13:00:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [13:00:05]RAPDU: 90 00 [13:00:05]wFMCommunicate OK [13:00:05]wFMCommunicate request_size=255 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D5 CA 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3B 2C 01 00 35 04 06 00 EB [13:00:05]Write to MH i2c: E2 02 01 FD 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D5 CA 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3B 2C 01 00 35 04 06 00 EB 00 00 99 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 FD 06 00 90 00 77 [13:00:05]RAPDU: 90 00 [13:00:05]wFMCommunicate OK [13:00:05]wFMCommunicate request_size=10 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 0D 02 02 05 B7 22 E0 62 AE [13:00:05]Write to MH i2c: E2 0D 00 FE 06 80 0D 02 02 05 00 B7 22 E0 62 AE 00 00 51 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 FE 06 00 90 00 78 [13:00:05]RAPDU: 90 00 [13:00:05]wFMCommunicate OK [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 0D 03 02 [13:00:05]Write to MH i2c: E2 08 00 FF 06 80 0D 03 02 00 00 00 00 80 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0B 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0B 00 FF 06 00 2F 3B 67 1A 07 2F FD E0 90 00 7F [13:00:05]RAPDU: 2F 3B 67 1A 07 2F FD E0 90 00 [13:00:05]wFMCommunicate OK [13:00:05]SAM_PROTO_SignData done [13:00:05]FM_MakeSignedData done [13:00:05]CreateOFDProtocolMessage [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 11 00 00 [13:00:05]Write to MH i2c: E2 08 00 00 07 80 11 00 00 00 00 00 00 81 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:06]Read from MH i2c: E2 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 17 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 17 00 00 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D1 [13:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:00:06]wFMCommunicate OK [13:00:06]CreateOFDProtocolMessage done [13:00:06]OFDSenderStorePacket 76859 [13:00:06]StoreOFDPacket docnum=76859 [13:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 AD D3 07 01 7B 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D5 CA 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3B 2C 01 00 35 04 06 00 EB B7 22 E0 62 AE 2F 3B 67 1A 07 2F FD E0 [13:00:06]CheckFolder [13:00:06]dirname=/storage/ofd_packets [13:00:06]CheckFolder done [13:00:06]ProducePacketName [13:00:06]name=ofd_packets/00076859 [13:00:06]NVStorageSaveData ofd_packets/00076859 [13:00:06]File name is /storage/ofd_packets/00076859 [13:00:06]Write 301 bytes [13:00:06]NVStorageSaveData done [13:00:06]OFDSenderStorePacket done [13:00:06]KKMCreateOFDPacket done [13:00:06]NVStorageSaveData kkm_last_timestamp [13:00:06]File name is /storage/kkm_last_timestamp [13:00:06]Write 4 bytes [13:00:06]NVStorageSaveData done [13:00:06]ExternCall_PrintAddStr [13:00:06]wPrintStart [13:00:06]Write to MH i2c: 01 00 00 01 07 08 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: 01 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: 01 07 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 FF 0F 1D [13:00:06]RasterBufferAndPrint [13:00:06]line Счет N : (1)1694481 [13:00:06]line ИНН: 02508201610067 [13:00:06]line Контрольно-Кассовый Чек [13:00:06]line ПРОДАЖА [13:00:06]line ТРК (МРК, ГНК) : 33 [13:00:06]line Товар: 2710124130 [13:00:06]line Аи-92-К-5 [13:00:06]line 15.070 * 66.40 [13:00:06]line = 1000.65 [13:00:06]line НДС 12% НСП 1% [13:00:06]line > о реализуемом товаре [13:00:06]line ИТОГО: 1000.65 [13:00:06]line НСП 1% : 8.85 [13:00:06]line НДС 12% : 106.26 [13:00:06]line Наличными: 0.00 [13:00:06]line Безнал.: 1000.65 [13:00:06]line Место: АЗС № 144 "Партнер Нефть" [13:00:06]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [13:00:06]line СНО: Общий режим [13:00:06]line Чек 55 22.06.2024 13:00 [13:00:06]line Смена: 395 ФФД: 1.0 [13:00:06]line ЗНМ: 0300000170 [13:00:06]line РНМ: 0000000000095696 [13:00:06]line Версия ККМ: 001 [13:00:06]line Платежная система: O! деньги [13:00:06]line ФМ: 0000000000875009 [13:00:06]line ФД: 76859 [13:00:06]line ФПД: 259171796673198 [13:00:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T130005&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76859&fm=259171796673198&tin=02508201610067®Number=0000000000095696&sum=100065 [13:00:06]OFD Sender: Processing packet 76859 [packets to send 351, broken 350] [13:00:06]ProducePacketName [13:00:06]name=ofd_packets/00076859 [13:00:06]OFD Sender: To server: pG, [13:00:06]CommunicateWithHost lk.salyk.kg:30040 [13:00:06]ConnectInit lk.salyk.kg [13:00:06]written 0, free lines is 4095 [13:00:06]Connected sock=10 [13:00:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 AD D3 07 01 7B 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D5 CA 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3B 2C 01 00 35 04 06 00 EB B7 22 E0 62 AE 2F 3B 67 1A 07 2F FD E0 [13:00:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C7 F4 47 00 E4 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3B 2C 01 00 F4 03 04 00 6F 71 76 66 B6 04 01 00 00 F7 6D 1D 23 BA 28 21 C5 [13:00:06]CommunicateWithHost err = 0 [13:00:06]CheckOFDResponse [13:00:06]1017 (14) - 77093643461234 [13:00:06]1041 (16) - 0000000000875009 [13:00:06]1040 (4) - 76859 [13:00:06]1012 (4) - 22.06.2024 06:38 [13:00:06]1206 (1) - 0 [13:00:06]OFD Sender: Remove packet 76859 [13:00:06]ProducePacketName [13:00:06]name=ofd_packets/00076859 [13:00:06]NVStorageDeleteData [13:00:06]Write to MH i2c: 01 00 00 2B 07 32 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: 01 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: 01 07 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: 01 07 00 2B 07 00 00 00 00 00 01 0D 47 [13:00:06]RasterBufferAndPrint [13:00:06]line [13:00:06]line [13:00:06]line [13:00:06]line [13:00:06]line [13:00:06]written 0, free lines is 3335 [13:00:06]MH_Cut [13:00:06]Write to MH i2c: D1 01 00 32 07 01 0B [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: D1 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: D1 01 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: D1 01 00 32 07 00 0A [13:00:06]Write to MH i2c: 01 00 00 33 07 3A [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:07]OFD Sender: No OFD packet to send [13:00:07]*** Cut start [13:00:07]*** Partial cut [13:00:07]*** CUTSNS_PIN = 1 [13:00:07]*** CUTSNS_PIN = 0 [13:00:07]*** Brake cut motor [13:00:08]Read from MH i2c: 01 [13:00:08]MH_I2C_Read... [13:00:08]*** Stop cut motor [13:00:08]*** Cut end [13:00:08]Read from MH i2c: 01 07 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 07 00 33 07 00 00 00 00 00 FF 0F 4F [13:00:08]process_action close_receipt done [13:00:08]requested_data is exist [13:00:08]produce_requested_data [13:00:08]requested_item fm.sn is exist - process it [13:00:08]wFMCommunicate request_size=4 [13:00:08]MH_SAM_APDU [13:00:08]CAPDU: 80 11 00 00 [13:00:08]Write to MH i2c: E2 08 00 34 07 80 11 00 00 00 00 00 00 B5 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:08]Read from MH i2c: E2 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 17 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 17 00 34 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 05 [13:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [13:00:08]wFMCommunicate OK [13:00:08]requested_item fd.num is exist - process it [13:00:08]SAM_PROTO_GetFieldsCounters [13:00:08]wFMCommunicate request_size=4 [13:00:08]MH_SAM_APDU [13:00:08]CAPDU: 80 13 00 00 [13:00:08]Write to MH i2c: E2 08 00 35 07 80 13 00 00 00 00 00 00 B8 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:08]Read from MH i2c: E2 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 62 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 62 00 35 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [13:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:08]wFMCommunicate OK [13:00:08]SAM_PROTO_GetFieldsCounters done [13:00:08]requested_item shift.num is exist - process it [13:00:08]requested_item shift.opened is exist - process it [13:00:08]req_shift_opened [13:00:08]FM_GetShiftState [13:00:08]SAM_PROTO_GetShiftState [13:00:08]wFMCommunicate request_size=4 [13:00:08]MH_SAM_APDU [13:00:08]CAPDU: 80 13 01 00 [13:00:08]Write to MH i2c: E2 08 00 36 07 80 13 01 00 00 00 00 00 BA [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:08]Read from MH i2c: E2 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 0E 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 0E 00 36 07 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B0 [13:00:08]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [13:00:08]wFMCommunicate OK [13:00:08]SAM_PROTO_GetShiftState done [13:00:08]FM_GetShiftState done [13:00:08]req_shift_opened done [13:00:08]requested_item shift.open_date is exist - process it [13:00:08]req_shift_open_date [13:00:08]req_shift_open_date done [13:00:08]produce_requested_data done [13:00:08]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76859,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [13:00:08]process_action_free close_receipt [13:00:08]json_value_free [13:00:08]json_value_free done [13:00:08]process_json_proto returns [13:00:08]Send response to host [13:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76859,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [13:00:08]free response buf [13:00:08]execute_script done [13:00:08]execute_script returns [13:00:08]free content buf [13:00:08]Sock 8.Close socket [13:00:08]Sock 8.Thread stoped [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:12]accept exits with 9 [14:06:12]New connection [14:06:12]New thread 3067362660 created [14:06:12]Thread 3067219300 joined [14:06:12]Waiting for new connection... [14:06:12] Sock 9.Parse request [14:06:12]Sock 9.Check first char [14:06:12]Sock 9.First char is OK [14:06:12]request: POST /json_proto HTTP/1.0 [14:06:12]Method: POST [14:06:12]URL: /json_proto [14:06:12]Method is POST - this is cgi request [14:06:12]url: /json_proto [14:06:12]query_string will be loaded in cgi processing [14:06:12]execute_cgi json_proto POST (null) [14:06:12]execute_cgi path=json_proto method=POST [14:06:12]POST find Content-Length [14:06:12]Host: 172.17.39.195:8080 [14:06:12]Content-Length: 669 [14:06:12]Content-Type: application/json [14:06:12] [14:06:12]POST finish read [14:06:12]Found Content-Length = 669 [14:06:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220926", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:12]execute_script... [14:06:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220926", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:12]POST & json_proto [14:06:12]process_json_proto [14:06:12]json parsed OK: [14:06:12]protocol is kg_v1.0 [14:06:12]action value=close_receipt [14:06:12]process_action close_receipt [14:06:12]cmd_close_receipt [14:06:12]MH_GetDate [14:06:12]Write to MH i2c: F0 00 00 37 07 2D [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: F0 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: F0 09 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: F0 09 00 37 07 00 55 DA 76 66 99 81 91 64 50 [14:06:12]GetLastDocTimeStamp 1719061205 [14:06:12]current date 1719065173 [14:06:12]FM_GetShiftState [14:06:12]SAM_PROTO_GetShiftState [14:06:12]wFMCommunicate request_size=4 [14:06:12]MH_SAM_APDU [14:06:12]CAPDU: 80 13 01 00 [14:06:12]Write to MH i2c: E2 08 00 38 07 80 13 01 00 00 00 00 00 BC [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:12]Read from MH i2c: E2 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 0E 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 0E 00 38 07 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 B2 [14:06:12]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:06:12]wFMCommunicate OK [14:06:12]SAM_PROTO_GetShiftState done [14:06:12]FM_GetShiftState done [14:06:12]opened in 1719016435 [14:06:12]opened+sec_in_day 1719102835 [14:06:12]quantity*price = 11000 [14:06:12]sum+1 = 11001 [14:06:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 56 22.06.2024 14:06 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76860 ФПД: 233142439188513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140613&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76860&fm=233142439188513&tin=02508201610067®Number=0000000000095696&sum=11000 0 [14:06:13]StoreToDocumentArchive [14:06:13]shift 395 fd 76860 [14:06:13]save to /storage/0395/doc_00076860 [14:06:13]save last doc name /storage/0395/doc_00076860 to /storage/kkm_last_doc_name [14:06:13]save OK [14:06:13]Clear old archive folders... [14:06:13]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:06:13]tlvbuf is B6F3E4E0 [14:06:13]SAM_PROTO_ClearQueue [14:06:13]wFMCommunicate request_size=4 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 09 00 00 [14:06:13]Write to MH i2c: E2 08 00 45 07 80 09 00 00 00 00 00 00 BE [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 45 07 00 90 00 C0 [14:06:13]RAPDU: 90 00 [14:06:13]wFMCommunicate OK [14:06:13]SAM_PROTO_ClearQueue done [14:06:13]KKMCreateOFDPacket [14:06:13]OFDProtocolAddRootSTLVToBuf [14:06:13]FM_MakeSignedData [14:06:13]FM_MakeSignedData [14:06:13]SAM_PROTO_SignData [14:06:13]wFMCommunicate request_size=4 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 0D 01 02 [14:06:13]Write to MH i2c: E2 08 00 46 07 80 0D 01 02 00 00 00 00 C6 [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 46 07 00 90 00 C1 [14:06:13]RAPDU: 90 00 [14:06:13]wFMCommunicate OK [14:06:13]wFMCommunicate request_size=255 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 55 DA 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:06:13]Write to MH i2c: E2 02 01 47 07 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 55 DA 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 AF [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 47 07 00 90 00 C2 [14:06:13]RAPDU: 90 00 [14:06:13]wFMCommunicate OK [14:06:13]wFMCommunicate request_size=52 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2C 01 00 35 04 06 00 D4 0A B4 45 18 21 [14:06:13]Write to MH i2c: E2 37 00 48 07 80 0D 02 02 2F 00 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2C 01 00 35 04 06 00 D4 0A B4 45 18 21 00 00 0C [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:13]Read from MH i2c: E2 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: E2 03 00 48 07 00 90 00 C3 [14:06:13]RAPDU: 90 00 [14:06:13]wFMCommunicate OK [14:06:13]wFMCommunicate request_size=4 [14:06:13]MH_SAM_APDU [14:06:13]CAPDU: 80 0D 03 02 [14:06:13]Write to MH i2c: E2 08 00 49 07 80 0D 03 02 00 00 00 00 CB [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:14]Read from MH i2c: E2 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: E2 0B 00 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: E2 0B 00 49 07 00 09 F2 41 C0 28 F4 96 E1 90 00 5B [14:06:14]RAPDU: 09 F2 41 C0 28 F4 96 E1 90 00 [14:06:14]wFMCommunicate OK [14:06:14]SAM_PROTO_SignData done [14:06:14]FM_MakeSignedData done [14:06:14]CreateOFDProtocolMessage [14:06:14]wFMCommunicate request_size=4 [14:06:14]MH_SAM_APDU [14:06:14]CAPDU: 80 11 00 00 [14:06:14]Write to MH i2c: E2 08 00 4A 07 80 11 00 00 00 00 00 00 CB [14:06:14]Write i2c OK [14:06:14]MH_I2C_Read... [14:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:14]Read from MH i2c: E2 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: E2 17 00 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: E2 17 00 4A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1B [14:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:06:14]wFMCommunicate OK [14:06:14]CreateOFDProtocolMessage done [14:06:14]OFDSenderStorePacket 76860 [14:06:14]StoreOFDPacket docnum=76860 [14:06:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 39 01 00 00 35 78 31 01 0F 5A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 55 DA 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2C 01 00 35 04 06 00 D4 0A B4 45 18 21 09 F2 41 C0 28 F4 96 E1 [14:06:14]CheckFolder [14:06:14]dirname=/storage/ofd_packets [14:06:14]CheckFolder done [14:06:14]ProducePacketName [14:06:14]name=ofd_packets/00076860 [14:06:14]NVStorageSaveData ofd_packets/00076860 [14:06:14]File name is /storage/ofd_packets/00076860 [14:06:14]Write 343 bytes [14:06:14]NVStorageSaveData done [14:06:14]OFDSenderStorePacket done [14:06:14]KKMCreateOFDPacket done [14:06:14]NVStorageSaveData kkm_last_timestamp [14:06:14]File name is /storage/kkm_last_timestamp [14:06:14]Write 4 bytes [14:06:14]NVStorageSaveData done [14:06:14]ExternCall_PrintAddStr [14:06:14]wPrintStart [14:06:14]Write to MH i2c: 01 00 00 4B 07 52 [14:06:14]Write i2c OK [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: 01 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: 01 07 00 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 FF 0F 67 [14:06:14]RasterBufferAndPrint [14:06:14]line Счет N : (3)220926 [14:06:14]line ИНН: 02508201610067 [14:06:14]line Контрольно-Кассовый Чек [14:06:14]line ПРОДАЖА [14:06:14]line Товар: 4870022003305 [14:06:14]line Напиток Gorilla эн нат ж/б 0,5/0,45л [14:06:14]line 1.000 * 110.00 [14:06:14]line = 110.00 [14:06:14]line НДС 12% НСП 1% [14:06:14]line > о реализуемом товаре [14:06:14]line ИТОГО: 110.00 [14:06:14]line НСП 1% : 0.97 [14:06:14]line НДС 12% : 11.68 [14:06:14]line Наличными: 110.00 [14:06:14]line Безнал.: 0.00 [14:06:14]line Место: АЗС № 144 "Партнер Нефть" [14:06:14]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:06:14]line СНО: Общий режим [14:06:14]line Чек 56 22.06.2024 14:06 [14:06:14]line Смена: 395 ФФД: 1.0 [14:06:14]line ЗНМ: 0300000170 [14:06:14]line РНМ: 0000000000095696 [14:06:14]line Версия ККМ: 001 [14:06:14]line ФМ: 0000000000875009 [14:06:14]line ФД: 76860 [14:06:14]line ФПД: 233142439188513 [14:06:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T140613&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76860&fm=233142439188513&tin=02508201610067®Number=0000000000095696&sum=11000 [14:06:14]line 0 [14:06:14]OFD Sender: Processing packet 76860 [packets to send 351, broken 350] [14:06:14]ProducePacketName [14:06:14]name=ofd_packets/00076860 [14:06:14]OFD Sender: To server: pG, [14:06:14]CommunicateWithHost lk.salyk.kg:30040 [14:06:14]ConnectInit lk.salyk.kg [14:06:14]written 0, free lines is 4095 [14:06:14]Connected sock=10 [14:06:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 39 01 00 00 35 78 31 01 0F 5A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 55 DA 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2C 01 00 35 04 06 00 D4 0A B4 45 18 21 09 F2 41 C0 28 F4 96 E1 [14:06:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F0 81 47 00 37 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3C 2C 01 00 F4 03 04 00 EF 80 76 66 B6 04 01 00 00 EA F7 E5 A6 90 47 D8 1E [14:06:14]CommunicateWithHost err = 0 [14:06:14]CheckOFDResponse [14:06:14]1017 (14) - 77093643461234 [14:06:14]1041 (16) - 0000000000875009 [14:06:14]1040 (4) - 76860 [14:06:14]1012 (4) - 22.06.2024 07:44 [14:06:14]1206 (1) - 0 [14:06:14]OFD Sender: Remove packet 76860 [14:06:14]ProducePacketName [14:06:14]name=ofd_packets/00076860 [14:06:14]NVStorageDeleteData [14:06:14]Write to MH i2c: 01 00 00 74 07 7B [14:06:14]Write i2c OK [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: 01 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: 01 07 00 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: 01 07 00 74 07 00 00 00 00 00 ED 0C 7B [14:06:14]RasterBufferAndPrint [14:06:14]line [14:06:14]line [14:06:14]line [14:06:14]line [14:06:14]line [14:06:14]written 0, free lines is 3315 [14:06:14]MH_Cut [14:06:14]Write to MH i2c: D1 01 00 7B 07 01 54 [14:06:14]Write i2c OK [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: D1 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: D1 01 00 [14:06:14]MH_I2C_Read... [14:06:14]Read from MH i2c: D1 01 00 7B 07 00 53 [14:06:14]Write to MH i2c: 01 00 00 7C 07 83 [14:06:14]Write i2c OK [14:06:14]MH_I2C_Read... [14:06:15]OFD Sender: No OFD packet to send [14:06:15]*** Cut start [14:06:15]*** Partial cut [14:06:15]*** CUTSNS_PIN = 1 [14:06:15]*** CUTSNS_PIN = 0 [14:06:15]*** Brake cut motor [14:06:16]Read from MH i2c: 01 [14:06:16]MH_I2C_Read... [14:06:16]*** Stop cut motor [14:06:16]*** Cut end [14:06:16]Read from MH i2c: 01 07 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: 01 07 00 7C 07 00 00 00 00 00 FF 0F 98 [14:06:16]process_action close_receipt done [14:06:16]requested_data is exist [14:06:16]produce_requested_data [14:06:16]requested_item fm.sn is exist - process it [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 11 00 00 [14:06:16]Write to MH i2c: E2 08 00 7D 07 80 11 00 00 00 00 00 00 FE [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 17 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 17 00 7D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 4E [14:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:06:16]wFMCommunicate OK [14:06:16]requested_item fd.num is exist - process it [14:06:16]SAM_PROTO_GetFieldsCounters [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 13 00 00 [14:06:16]Write to MH i2c: E2 08 00 7E 07 80 13 00 00 00 00 00 00 01 [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 62 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 62 00 7E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [14:06: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:16]wFMCommunicate OK [14:06:16]SAM_PROTO_GetFieldsCounters done [14:06:16]requested_item shift.num is exist - process it [14:06:16]requested_item shift.opened is exist - process it [14:06:16]req_shift_opened [14:06:16]FM_GetShiftState [14:06:16]SAM_PROTO_GetShiftState [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 13 01 00 [14:06:16]Write to MH i2c: E2 08 00 7F 07 80 13 01 00 00 00 00 00 03 [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 0E 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 0E 00 7F 07 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F9 [14:06:16]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:06:16]wFMCommunicate OK [14:06:16]SAM_PROTO_GetShiftState done [14:06:16]FM_GetShiftState done [14:06:16]req_shift_opened done [14:06:16]requested_item shift.open_date is exist - process it [14:06:16]req_shift_open_date [14:06:16]req_shift_open_date done [14:06:16]produce_requested_data done [14:06:16]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76860,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:06:16]process_action_free close_receipt [14:06:16]json_value_free [14:06:16]json_value_free done [14:06:16]process_json_proto returns [14:06:16]Send response to host [14:06:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76860,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:06:16]free response buf [14:06:16]execute_script done [14:06:16]execute_script returns [14:06:16]free content buf [14:06:16]Sock 9.Close socket [14:06:16]Sock 9.Thread stoped [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]accept exits with 8 [14:12:15]New connection [14:12:15]New thread 3067219300 created [14:12:15]Thread 3067362660 joined [14:12:15]Waiting for new connection... [14:12:15] Sock 8.Parse request [14:12:15]Sock 8.Check first char [14:12:15]Sock 8.First char is OK [14:12:15]request: POST /json_proto HTTP/1.0 [14:12:15]Method: POST [14:12:15]URL: /json_proto [14:12:15]Method is POST - this is cgi request [14:12:15]url: /json_proto [14:12:15]query_string will be loaded in cgi processing [14:12:15]execute_cgi json_proto POST (null) [14:12:15]execute_cgi path=json_proto method=POST [14:12:15]POST find Content-Length [14:12:15]Host: 172.17.39.195:8080 [14:12:15]Content-Length: 1171 [14:12:15]Content-Type: application/json [14:12:15] [14:12:15]POST finish read [14:12:15]Found Content-Length = 1171 [14:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694536\u000A22.06.2024 13:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30046041\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:15]execute_script... [14:12:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694536\u000A22.06.2024 13:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30046041\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:15]POST & json_proto [14:12:15]process_json_proto [14:12:15]json parsed OK: [14:12:15]protocol is kg_v1.0 [14:12:15]action value=print_text [14:12:15]process_action print_text [14:12:15]cmd_print_text [14:12:15]ExternCall_PrintAddStr [14:12:15]wPrintStart [14:12:15]Write to MH i2c: 01 00 00 80 07 87 [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: 01 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: 01 07 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: 01 07 00 80 07 00 00 00 00 00 FF 0F 9C [14:12:15]RasterBufferAndPrint [14:12:15]line *****ТОВАРНЫЙ ЧЕК***** [14:12:15]line АЗС 144 [14:12:15]line Партнер нефть [14:12:15]line 02508201610067 [14:12:15]line Кассир : Шайлообек у. Т. [14:12:15]line Счет N : (1)1694536 [14:12:15]line 22.06.2024 13:43 [14:12:15]line ПРОДАЖА [14:12:15]line ТРК (МРК, ГНК): 63 [14:12:15]line Вид ГСМ : 2710124130 [14:12:15]line Аи-92-К-5 [14:12:15]line 10.000 x 66.40 [14:12:15]line ИТОГ: 664.00 [14:12:15]line Тип оплаты: Талоны: ТК ГПНА Online [14:12:15]line 30046041 [14:12:15]line ______________________ [14:12:15]line (подпись) [14:12:15]written 0, free lines is 4095 [14:12:15]Write to MH i2c: 01 00 00 95 07 9C [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: 01 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: 01 07 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: 01 07 00 95 07 00 00 00 00 00 F5 0D A5 [14:12:15]RasterBufferAndPrint [14:12:15]line [14:12:15]line [14:12:15]line [14:12:15]line [14:12:15]line [14:12:15]written 0, free lines is 3575 [14:12:15]MH_Cut [14:12:15]Write to MH i2c: D1 01 00 9C 07 01 75 [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: D1 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: D1 01 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: D1 01 00 9C 07 00 74 [14:12:15]Write to MH i2c: 01 00 00 9D 07 A4 [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:15]OFD Sender: No OFD packet to send [14:12:16]*** Cut start [14:12:16]*** Partial cut [14:12:16]*** CUTSNS_PIN = 1 [14:12:16]*** CUTSNS_PIN = 0 [14:12:16]*** Brake cut motor [14:12:17]Read from MH i2c: 01 [14:12:17]MH_I2C_Read... [14:12:17]*** Stop cut motor [14:12:17]*** Cut end [14:12:17]Read from MH i2c: 01 07 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 FF 0F B9 [14:12:17]process_action print_text done [14:12:17]requested_data is exist [14:12:17]produce_requested_data [14:12:17]requested_item fm.sn is exist - process it [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 11 00 00 [14:12:17]Write to MH i2c: E2 08 00 9E 07 80 11 00 00 00 00 00 00 1F [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 17 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 17 00 9E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6F [14:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:12:17]wFMCommunicate OK [14:12:17]requested_item fd.num is exist - process it [14:12:17]SAM_PROTO_GetFieldsCounters [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 13 00 00 [14:12:17]Write to MH i2c: E2 08 00 9F 07 80 13 00 00 00 00 00 00 22 [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 62 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 62 00 9F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [14:12: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:17]wFMCommunicate OK [14:12:17]SAM_PROTO_GetFieldsCounters done [14:12:17]requested_item shift.num is exist - process it [14:12:17]requested_item shift.opened is exist - process it [14:12:17]req_shift_opened [14:12:17]FM_GetShiftState [14:12:17]SAM_PROTO_GetShiftState [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 13 01 00 [14:12:17]Write to MH i2c: E2 08 00 A0 07 80 13 01 00 00 00 00 00 24 [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:17]Read from MH i2c: E2 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 0E 00 [14:12:17]MH_I2C_Read... [14:12:17]Read from MH i2c: E2 0E 00 A0 07 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 1A [14:12:17]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:12:17]wFMCommunicate OK [14:12:17]SAM_PROTO_GetShiftState done [14:12:17]FM_GetShiftState done [14:12:17]req_shift_opened done [14:12:17]requested_item shift.open_date is exist - process it [14:12:17]req_shift_open_date [14:12:17]req_shift_open_date done [14:12:17]produce_requested_data done [14:12:17]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76860,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:12:17]process_action_free print_text [14:12:17]json_value_free [14:12:17]json_value_free done [14:12:17]process_json_proto returns [14:12:17]Send response to host [14:12:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76860,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:12:17]free response buf [14:12:17]execute_script done [14:12:17]execute_script returns [14:12:17]free content buf [14:12:17]Sock 8.Close socket [14:12:17]Sock 8.Thread stoped [14:12:20]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:00]accept exits with 9 [14:33:00]New connection [14:33:00]New thread 3067362660 created [14:33:00]Thread 3067219300 joined [14:33:00]Waiting for new connection... [14:33:00] Sock 9.Parse request [14:33:00]Sock 9.Check first char [14:33:00]Sock 9.First char is OK [14:33:00]request: POST /json_proto HTTP/1.0 [14:33:00]Method: POST [14:33:00]URL: /json_proto [14:33:00]Method is POST - this is cgi request [14:33:00]url: /json_proto [14:33:00]query_string will be loaded in cgi processing [14:33:00]execute_cgi json_proto POST (null) [14:33:00]execute_cgi path=json_proto method=POST [14:33:00]POST find Content-Length [14:33:00]Host: 172.17.39.195:8080 [14:33:00]Content-Length: 620 [14:33:00]Content-Type: application/json [14:33:00] [14:33:00]POST finish read [14:33:00]Found Content-Length = 620 [14:33:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220927", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:00]execute_script... [14:33:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220927", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:00]POST & json_proto [14:33:00]process_json_proto [14:33:00]json parsed OK: [14:33:00]protocol is kg_v1.0 [14:33:00]action value=close_receipt [14:33:00]process_action close_receipt [14:33:00]cmd_close_receipt [14:33:00]MH_GetDate [14:33:00]Write to MH i2c: F0 00 00 A1 07 97 [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: F0 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: F0 09 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: F0 09 00 A1 07 00 9D E0 76 66 99 81 91 64 08 [14:33:00]GetLastDocTimeStamp 1719065173 [14:33:00]current date 1719066781 [14:33:00]FM_GetShiftState [14:33:00]SAM_PROTO_GetShiftState [14:33:00]wFMCommunicate request_size=4 [14:33:00]MH_SAM_APDU [14:33:00]CAPDU: 80 13 01 00 [14:33:00]Write to MH i2c: E2 08 00 A2 07 80 13 01 00 00 00 00 00 26 [14:33:00]Write i2c OK [14:33:00]MH_I2C_Read... [14:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:00]Read from MH i2c: E2 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 0E 00 [14:33:00]MH_I2C_Read... [14:33:00]Read from MH i2c: E2 0E 00 A2 07 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 1C [14:33:00]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:33:00]wFMCommunicate OK [14:33:00]SAM_PROTO_GetShiftState done [14:33:00]FM_GetShiftState done [14:33:00]opened in 1719016435 [14:33:00]opened+sec_in_day 1719102835 [14:33:00]quantity*price = 4900 [14:33:00]sum+1 = 4901 [14:33:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 57 22.06.2024 14:33 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76861 ФПД: 109943019778256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143301&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76861&fm=109943019778256&tin=02508201610067®Number=0000000000095696&sum=4900 0 [14:33:01]StoreToDocumentArchive [14:33:01]shift 395 fd 76861 [14:33:01]save to /storage/0395/doc_00076861 [14:33:01]save last doc name /storage/0395/doc_00076861 to /storage/kkm_last_doc_name [14:33:01]save OK [14:33:01]Clear old archive folders... [14:33:01]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:33:01]tlvbuf is B6FB97B0 [14:33:01]SAM_PROTO_ClearQueue [14:33:01]wFMCommunicate request_size=4 [14:33:01]MH_SAM_APDU [14:33:01]CAPDU: 80 09 00 00 [14:33:01]Write to MH i2c: E2 08 00 AF 07 80 09 00 00 00 00 00 00 28 [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:01]Read from MH i2c: E2 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 03 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [14:33:01]RAPDU: 90 00 [14:33:01]wFMCommunicate OK [14:33:01]SAM_PROTO_ClearQueue done [14:33:01]KKMCreateOFDPacket [14:33:01]OFDProtocolAddRootSTLVToBuf [14:33:01]FM_MakeSignedData [14:33:01]FM_MakeSignedData [14:33:01]SAM_PROTO_SignData [14:33:01]wFMCommunicate request_size=4 [14:33:01]MH_SAM_APDU [14:33:01]CAPDU: 80 0D 01 02 [14:33:01]Write to MH i2c: E2 08 00 B0 07 80 0D 01 02 00 00 00 00 30 [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:01]Read from MH i2c: E2 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 03 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [14:33:01]RAPDU: 90 00 [14:33:01]wFMCommunicate OK [14:33:01]wFMCommunicate request_size=255 [14:33:01]MH_SAM_APDU [14:33:01]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D E0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 [14:33:01]Write to MH i2c: E2 02 01 B1 07 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D E0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 00 00 A0 [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:01]Read from MH i2c: E2 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 03 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [14:33:01]RAPDU: 90 00 [14:33:01]wFMCommunicate OK [14:33:01]wFMCommunicate request_size=38 [14:33:01]MH_SAM_APDU [14:33:01]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2C 01 00 35 04 06 00 63 FE 1A A3 B0 D0 [14:33:01]Write to MH i2c: E2 29 00 B2 07 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2C 01 00 35 04 06 00 63 FE 1A A3 B0 D0 00 00 C1 [14:33:01]Write i2c OK [14:33:01]MH_I2C_Read... [14:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:01]Read from MH i2c: E2 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 03 00 [14:33:01]MH_I2C_Read... [14:33:01]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [14:33:01]RAPDU: 90 00 [14:33:01]wFMCommunicate OK [14:33:01]wFMCommunicate request_size=4 [14:33:01]MH_SAM_APDU [14:33:01]CAPDU: 80 0D 03 02 [14:33:01]Write to MH i2c: E2 08 00 B3 07 80 0D 03 02 00 00 00 00 35 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 0B 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 0B 00 B3 07 00 03 C1 D1 DE 0E BF 4C A3 90 00 65 [14:33:02]RAPDU: 03 C1 D1 DE 0E BF 4C A3 90 00 [14:33:02]wFMCommunicate OK [14:33:02]SAM_PROTO_SignData done [14:33:02]FM_MakeSignedData done [14:33:02]CreateOFDProtocolMessage [14:33:02]wFMCommunicate request_size=4 [14:33:02]MH_SAM_APDU [14:33:02]CAPDU: 80 11 00 00 [14:33:02]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:02]Read from MH i2c: E2 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 17 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 85 [14:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:33:02]wFMCommunicate OK [14:33:02]CreateOFDProtocolMessage done [14:33:02]OFDSenderStorePacket 76861 [14:33:02]StoreOFDPacket docnum=76861 [14:33:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2B 01 00 00 E0 8F 23 01 90 73 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D E0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2C 01 00 35 04 06 00 63 FE 1A A3 B0 D0 03 C1 D1 DE 0E BF 4C A3 [14:33:02]CheckFolder [14:33:02]dirname=/storage/ofd_packets [14:33:02]CheckFolder done [14:33:02]ProducePacketName [14:33:02]name=ofd_packets/00076861 [14:33:02]NVStorageSaveData ofd_packets/00076861 [14:33:02]File name is /storage/ofd_packets/00076861 [14:33:02]Write 329 bytes [14:33:02]NVStorageSaveData done [14:33:02]OFDSenderStorePacket done [14:33:02]KKMCreateOFDPacket done [14:33:02]NVStorageSaveData kkm_last_timestamp [14:33:02]File name is /storage/kkm_last_timestamp [14:33:02]Write 4 bytes [14:33:02]NVStorageSaveData done [14:33:02]ExternCall_PrintAddStr [14:33:02]wPrintStart [14:33:02]Write to MH i2c: 01 00 00 B5 07 BC [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 07 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 FF 0F D1 [14:33:02]RasterBufferAndPrint [14:33:02]line Счет N : (3)220927 [14:33:02]line ИНН: 02508201610067 [14:33:02]line Контрольно-Кассовый Чек [14:33:02]line ПРОДАЖА [14:33:02]line Товар: 46214645 [14:33:02]line Р/ж mentos pure white клуб 16/15,5г [14:33:02]line 1.000 * 49.00 [14:33:02]line = 49.00 [14:33:02]line НДС 12% НСП 1% [14:33:02]line > о реализуемом товаре [14:33:02]line ИТОГО: 49.00 [14:33:02]line НСП 1% : 0.43 [14:33:02]line НДС 12% : 5.20 [14:33:02]line Наличными: 49.00 [14:33:02]line Безнал.: 0.00 [14:33:02]line Место: АЗС № 144 "Партнер Нефть" [14:33:02]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:33:02]line СНО: Общий режим [14:33:02]line Чек 57 22.06.2024 14:33 [14:33:02]line Смена: 395 ФФД: 1.0 [14:33:02]line ЗНМ: 0300000170 [14:33:02]line РНМ: 0000000000095696 [14:33:02]line Версия ККМ: 001 [14:33:02]line ФМ: 0000000000875009 [14:33:02]line ФД: 76861 [14:33:02]line ФПД: 109943019778256 [14:33:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143301&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76861&fm=109943019778256&tin=02508201610067®Number=0000000000095696&sum=4900 [14:33:02]line 0 [14:33:02]written 0, free lines is 4095 [14:33:02]OFD Sender: Processing packet 76861 [packets to send 351, broken 350] [14:33:02]ProducePacketName [14:33:02]name=ofd_packets/00076861 [14:33:02]OFD Sender: To server: pG, [14:33:02]CommunicateWithHost lk.salyk.kg:30040 [14:33:02]ConnectInit lk.salyk.kg [14:33:02]Connected sock=10 [14:33:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2B 01 00 00 E0 8F 23 01 90 73 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9D E0 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2C 01 00 35 04 06 00 63 FE 1A A3 B0 D0 03 C1 D1 DE 0E BF 4C A3 [14:33:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B5 40 47 00 49 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3D 2C 01 00 F4 03 04 00 37 87 76 66 B6 04 01 00 00 BC 30 32 2C 60 76 20 31 [14:33:02]CommunicateWithHost err = 0 [14:33:02]CheckOFDResponse [14:33:02]1017 (14) - 77093643461234 [14:33:02]1041 (16) - 0000000000875009 [14:33:02]1040 (4) - 76861 [14:33:02]1012 (4) - 22.06.2024 08:11 [14:33:02]1206 (1) - 0 [14:33:02]OFD Sender: Remove packet 76861 [14:33:02]ProducePacketName [14:33:02]name=ofd_packets/00076861 [14:33:02]NVStorageDeleteData [14:33:02]Write to MH i2c: 01 00 00 DE 07 E5 [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 07 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: 01 07 00 DE 07 00 00 00 00 00 DD 0C D5 [14:33:02]RasterBufferAndPrint [14:33:02]line [14:33:02]line [14:33:02]line [14:33:02]line [14:33:02]line [14:33:02]written 0, free lines is 3299 [14:33:02]MH_Cut [14:33:02]Write to MH i2c: D1 01 00 E5 07 01 BE [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: D1 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: D1 01 00 [14:33:02]MH_I2C_Read... [14:33:02]Read from MH i2c: D1 01 00 E5 07 00 BD [14:33:02]Write to MH i2c: 01 00 00 E6 07 ED [14:33:02]Write i2c OK [14:33:02]MH_I2C_Read... [14:33:03]OFD Sender: No OFD packet to send [14:33:03]*** Cut start [14:33:03]*** Partial cut [14:33:03]*** CUTSNS_PIN = 1 [14:33:03]*** CUTSNS_PIN = 0 [14:33:03]*** Brake cut motor [14:33:03]Read from MH i2c: 01 [14:33:03]MH_I2C_Read... [14:33:03]*** Stop cut motor [14:33:03]*** Cut end [14:33:03]Read from MH i2c: 01 07 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 FF 0F 02 [14:33:03]process_action close_receipt done [14:33:03]requested_data is exist [14:33:03]produce_requested_data [14:33:03]requested_item fm.sn is exist - process it [14:33:03]wFMCommunicate request_size=4 [14:33:03]MH_SAM_APDU [14:33:03]CAPDU: 80 11 00 00 [14:33:03]Write to MH i2c: E2 08 00 E7 07 80 11 00 00 00 00 00 00 68 [14:33:03]Write i2c OK [14:33:03]MH_I2C_Read... [14:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:03]Read from MH i2c: E2 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 17 00 [14:33:03]MH_I2C_Read... [14:33:03]Read from MH i2c: E2 17 00 E7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B8 [14:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:33:03]wFMCommunicate OK [14:33:03]requested_item fd.num is exist - process it [14:33:03]SAM_PROTO_GetFieldsCounters [14:33:03]wFMCommunicate request_size=4 [14:33:03]MH_SAM_APDU [14:33:03]CAPDU: 80 13 00 00 [14:33:03]Write to MH i2c: E2 08 00 E8 07 80 13 00 00 00 00 00 00 6B [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 62 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 62 00 E8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [14:33:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:04]wFMCommunicate OK [14:33:04]SAM_PROTO_GetFieldsCounters done [14:33:04]requested_item shift.num is exist - process it [14:33:04]requested_item shift.opened is exist - process it [14:33:04]req_shift_opened [14:33:04]FM_GetShiftState [14:33:04]SAM_PROTO_GetShiftState [14:33:04]wFMCommunicate request_size=4 [14:33:04]MH_SAM_APDU [14:33:04]CAPDU: 80 13 01 00 [14:33:04]Write to MH i2c: E2 08 00 E9 07 80 13 01 00 00 00 00 00 6D [14:33:04]Write i2c OK [14:33:04]MH_I2C_Read... [14:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:04]Read from MH i2c: E2 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 0E 00 [14:33:04]MH_I2C_Read... [14:33:04]Read from MH i2c: E2 0E 00 E9 07 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 63 [14:33:04]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:33:04]wFMCommunicate OK [14:33:04]SAM_PROTO_GetShiftState done [14:33:04]FM_GetShiftState done [14:33:04]req_shift_opened done [14:33:04]requested_item shift.open_date is exist - process it [14:33:04]req_shift_open_date [14:33:04]req_shift_open_date done [14:33:04]produce_requested_data done [14:33:04]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76861,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:33:04]process_action_free close_receipt [14:33:04]json_value_free [14:33:04]json_value_free done [14:33:04]process_json_proto returns [14:33:04]Send response to host [14:33:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76861,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:33:04]free response buf [14:33:04]execute_script done [14:33:04]execute_script returns [14:33:04]free content buf [14:33:04]Sock 9.Close socket [14:33:04]Sock 9.Thread stoped [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:15]accept exits with 8 [14:39:15]New connection [14:39:15]New thread 3067219300 created [14:39:15]Thread 3067362660 joined [14:39:15]Waiting for new connection... [14:39:15] Sock 8.Parse request [14:39:15]Sock 8.Check first char [14:39:15]Sock 8.First char is OK [14:39:15]request: POST /json_proto HTTP/1.0 [14:39:15]Method: POST [14:39:15]URL: /json_proto [14:39:15]Method is POST - this is cgi request [14:39:15]url: /json_proto [14:39:15]query_string will be loaded in cgi processing [14:39:15]execute_cgi json_proto POST (null) [14:39:15]execute_cgi path=json_proto method=POST [14:39:15]POST find Content-Length [14:39:15]Host: 172.17.39.195:8080 [14:39:15]Content-Length: 621 [14:39:15]Content-Type: application/json [14:39:15] [14:39:15]POST finish read [14:39:15]Found Content-Length = 621 [14:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220928", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:15]execute_script... [14:39:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220928", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:15]POST & json_proto [14:39:15]process_json_proto [14:39:15]json parsed OK: [14:39:15]protocol is kg_v1.0 [14:39:15]action value=close_receipt [14:39:15]process_action close_receipt [14:39:15]cmd_close_receipt [14:39:15]MH_GetDate [14:39:15]Write to MH i2c: F0 00 00 EA 07 E0 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: F0 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: F0 09 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: F0 09 00 EA 07 00 14 E2 76 66 99 81 91 64 CA [14:39:15]GetLastDocTimeStamp 1719066781 [14:39:15]current date 1719067156 [14:39:15]FM_GetShiftState [14:39:15]SAM_PROTO_GetShiftState [14:39:15]wFMCommunicate request_size=4 [14:39:15]MH_SAM_APDU [14:39:15]CAPDU: 80 13 01 00 [14:39:15]Write to MH i2c: E2 08 00 EB 07 80 13 01 00 00 00 00 00 6F [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:15]Read from MH i2c: E2 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 0E 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 0E 00 EB 07 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 65 [14:39:15]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:39:15]wFMCommunicate OK [14:39:15]SAM_PROTO_GetShiftState done [14:39:15]FM_GetShiftState done [14:39:15]opened in 1719016435 [14:39:15]opened+sec_in_day 1719102835 [14:39:15]quantity*price = 14000 [14:39:15]sum+1 = 14001 [14:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 58 22.06.2024 14:39 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76862 ФПД: 100695669785812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143916&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76862&fm=100695669785812&tin=02508201610067®Number=0000000000095696&sum=14000 0 [14:39:16]StoreToDocumentArchive [14:39:16]shift 395 fd 76862 [14:39:16]save to /storage/0395/doc_00076862 [14:39:16]save last doc name /storage/0395/doc_00076862 to /storage/kkm_last_doc_name [14:39:16]save OK [14:39:16]Clear old archive folders... [14:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:39:16]tlvbuf is 008ECF80 [14:39:16]SAM_PROTO_ClearQueue [14:39:16]wFMCommunicate request_size=4 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 09 00 00 [14:39:16]Write to MH i2c: E2 08 00 F8 07 80 09 00 00 00 00 00 00 71 [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:16]Read from MH i2c: E2 03 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [14:39:16]RAPDU: 90 00 [14:39:16]wFMCommunicate OK [14:39:16]SAM_PROTO_ClearQueue done [14:39:16]KKMCreateOFDPacket [14:39:16]OFDProtocolAddRootSTLVToBuf [14:39:16]FM_MakeSignedData [14:39:16]FM_MakeSignedData [14:39:16]SAM_PROTO_SignData [14:39:16]wFMCommunicate request_size=4 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 0D 01 02 [14:39:16]Write to MH i2c: E2 08 00 F9 07 80 0D 01 02 00 00 00 00 79 [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [14:39:16]RAPDU: 90 00 [14:39:16]wFMCommunicate OK [14:39:16]wFMCommunicate request_size=255 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 14 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [14:39:16]Write to MH i2c: E2 02 01 FA 07 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 14 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 10 [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [14:39:16]RAPDU: 90 00 [14:39:16]wFMCommunicate OK [14:39:16]wFMCommunicate request_size=32 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 3E 2C 01 00 35 04 06 00 5B 95 09 A0 C4 D4 [14:39:16]Write to MH i2c: E2 23 00 FB 07 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 3E 2C 01 00 35 04 06 00 5B 95 09 A0 C4 D4 00 00 72 [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [14:39:16]RAPDU: 90 00 [14:39:16]wFMCommunicate OK [14:39:16]wFMCommunicate request_size=4 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 0D 03 02 [14:39:16]Write to MH i2c: E2 08 00 FC 07 80 0D 03 02 00 00 00 00 7E [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 0B 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 0B 00 FC 07 00 DA C5 6A D6 0D 8B E1 30 90 00 07 [14:39:16]RAPDU: DA C5 6A D6 0D 8B E1 30 90 00 [14:39:16]wFMCommunicate OK [14:39:16]SAM_PROTO_SignData done [14:39:16]FM_MakeSignedData done [14:39:16]CreateOFDProtocolMessage [14:39:16]wFMCommunicate request_size=4 [14:39:16]MH_SAM_APDU [14:39:16]CAPDU: 80 11 00 00 [14:39:16]Write to MH i2c: E2 08 00 FD 07 80 11 00 00 00 00 00 00 7E [14:39:16]Write i2c OK [14:39:16]MH_I2C_Read... [14:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:16]Read from MH i2c: E2 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 17 00 [14:39:16]MH_I2C_Read... [14:39:16]Read from MH i2c: E2 17 00 FD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CE [14:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:39:16]wFMCommunicate OK [14:39:16]CreateOFDProtocolMessage done [14:39:16]OFDSenderStorePacket 76862 [14:39:16]StoreOFDPacket docnum=76862 [14:39:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 09 F2 1D 01 48 83 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 14 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3E 2C 01 00 35 04 06 00 5B 95 09 A0 C4 D4 DA C5 6A D6 0D 8B E1 30 [14:39:16]CheckFolder [14:39:16]dirname=/storage/ofd_packets [14:39:16]CheckFolder done [14:39:16]ProducePacketName [14:39:16]name=ofd_packets/00076862 [14:39:16]NVStorageSaveData ofd_packets/00076862 [14:39:16]File name is /storage/ofd_packets/00076862 [14:39:16]Write 323 bytes [14:39:16]NVStorageSaveData done [14:39:16]OFDSenderStorePacket done [14:39:16]KKMCreateOFDPacket done [14:39:16]NVStorageSaveData kkm_last_timestamp [14:39:16]File name is /storage/kkm_last_timestamp [14:39:16]Write 4 bytes [14:39:16]NVStorageSaveData done [14:39:17]ExternCall_PrintAddStr [14:39:17]wPrintStart [14:39:17]Write to MH i2c: 01 00 00 FE 07 05 [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 07 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 07 00 FE 07 00 00 00 00 00 FF 0F 1A [14:39:17]RasterBufferAndPrint [14:39:17]line Счет N : (3)220928 [14:39:17]line ИНН: 02508201610067 [14:39:17]line Контрольно-Кассовый Чек [14:39:17]line ПРОДАЖА [14:39:17]line Товар: 48743570 [14:39:17]line Сигареты Winston XStyle Blue [14:39:17]line 1.000 * 140.00 [14:39:17]line = 140.00 [14:39:17]line НДС 12% НСП 1% [14:39:17]line > о реализуемом товаре [14:39:17]line ИТОГО: 140.00 [14:39:17]line НСП 1% : 1.24 [14:39:17]line НДС 12% : 14.87 [14:39:17]line Наличными: 140.00 [14:39:17]line Безнал.: 0.00 [14:39:17]line Место: АЗС № 144 "Партнер Нефть" [14:39:17]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:39:17]line СНО: Общий режим [14:39:17]line Чек 58 22.06.2024 14:39 [14:39:17]line Смена: 395 ФФД: 1.0 [14:39:17]line ЗНМ: 0300000170 [14:39:17]line РНМ: 0000000000095696 [14:39:17]line Версия ККМ: 001 [14:39:17]line ФМ: 0000000000875009 [14:39:17]line ФД: 76862 [14:39:17]line ФПД: 100695669785812 [14:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T143916&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76862&fm=100695669785812&tin=02508201610067®Number=0000000000095696&sum=14000 [14:39:17]line 0 [14:39:17]OFD Sender: Processing packet 76862 [packets to send 351, broken 350] [14:39:17]ProducePacketName [14:39:17]name=ofd_packets/00076862 [14:39:17]OFD Sender: To server: pG, [14:39:17]CommunicateWithHost lk.salyk.kg:30040 [14:39:17]ConnectInit lk.salyk.kg [14:39:17]written 0, free lines is 4095 [14:39:17]Connected sock=11 [14:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 09 F2 1D 01 48 83 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 14 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3E 2C 01 00 35 04 06 00 5B 95 09 A0 C4 D4 DA C5 6A D6 0D 8B E1 30 [14:39:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 86 7A 47 00 2C 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3E 2C 01 00 F4 03 04 00 AE 88 76 66 B6 04 01 00 00 C5 9C 7B 9D 74 CA C8 AF [14:39:17]CommunicateWithHost err = 0 [14:39:17]CheckOFDResponse [14:39:17]1017 (14) - 77093643461234 [14:39:17]1041 (16) - 0000000000875009 [14:39:17]1040 (4) - 76862 [14:39:17]1012 (4) - 22.06.2024 08:17 [14:39:17]1206 (1) - 0 [14:39:17]OFD Sender: Remove packet 76862 [14:39:17]ProducePacketName [14:39:17]name=ofd_packets/00076862 [14:39:17]NVStorageDeleteData [14:39:17]Write to MH i2c: 01 00 00 26 08 2E [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 07 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 07 00 26 08 00 00 00 00 00 FB 0C 3C [14:39:17]RasterBufferAndPrint [14:39:17]line [14:39:17]line [14:39:17]line [14:39:17]line [14:39:17]line [14:39:17]written 0, free lines is 3330 [14:39:17]MH_Cut [14:39:17]Write to MH i2c: D1 01 00 2D 08 01 07 [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: D1 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: D1 01 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: D1 01 00 2D 08 00 06 [14:39:17]Write to MH i2c: 01 00 00 2E 08 36 [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:18]OFD Sender: No OFD packet to send [14:39:18]*** Cut start [14:39:18]*** Partial cut [14:39:18]*** CUTSNS_PIN = 1 [14:39:18]*** CUTSNS_PIN = 0 [14:39:18]*** Brake cut motor [14:39:19]Read from MH i2c: 01 [14:39:19]MH_I2C_Read... [14:39:19]*** Stop cut motor [14:39:19]*** Cut end [14:39:19]Read from MH i2c: 01 07 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: 01 07 00 2E 08 00 00 00 00 00 FF 0F 4B [14:39:19]process_action close_receipt done [14:39:19]requested_data is exist [14:39:19]produce_requested_data [14:39:19]requested_item fm.sn is exist - process it [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 11 00 00 [14:39:19]Write to MH i2c: E2 08 00 2F 08 80 11 00 00 00 00 00 00 B1 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 17 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 17 00 2F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 01 [14:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:39:19]wFMCommunicate OK [14:39:19]requested_item fd.num is exist - process it [14:39:19]SAM_PROTO_GetFieldsCounters [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 13 00 00 [14:39:19]Write to MH i2c: E2 08 00 30 08 80 13 00 00 00 00 00 00 B4 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 62 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 62 00 30 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [14:39: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:19]wFMCommunicate OK [14:39:19]SAM_PROTO_GetFieldsCounters done [14:39:19]requested_item shift.num is exist - process it [14:39:19]requested_item shift.opened is exist - process it [14:39:19]req_shift_opened [14:39:19]FM_GetShiftState [14:39:19]SAM_PROTO_GetShiftState [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 13 01 00 [14:39:19]Write to MH i2c: E2 08 00 31 08 80 13 01 00 00 00 00 00 B6 [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 31 08 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 AC [14:39:19]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:39:19]wFMCommunicate OK [14:39:19]SAM_PROTO_GetShiftState done [14:39:19]FM_GetShiftState done [14:39:19]req_shift_opened done [14:39:19]requested_item shift.open_date is exist - process it [14:39:19]req_shift_open_date [14:39:19]req_shift_open_date done [14:39:19]produce_requested_data done [14:39:19]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76862,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:39:19]process_action_free close_receipt [14:39:19]json_value_free [14:39:19]json_value_free done [14:39:19]process_json_proto returns [14:39:19]Send response to host [14:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76862,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:39:19]free response buf [14:39:19]execute_script done [14:39:19]execute_script returns [14:39:19]free content buf [14:39:19]Sock 8.Close socket [14:39:19]Sock 8.Thread stoped [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]accept exits with 9 [14:41:23]New connection [14:41:23]New thread 3067362660 created [14:41:23]Thread 3067219300 joined [14:41:23]Waiting for new connection... [14:41:23] Sock 9.Parse request [14:41:23]Sock 9.Check first char [14:41:23]Sock 9.First char is OK [14:41:23]request: POST /json_proto HTTP/1.0 [14:41:23]Method: POST [14:41:23]URL: /json_proto [14:41:23]Method is POST - this is cgi request [14:41:23]url: /json_proto [14:41:23]query_string will be loaded in cgi processing [14:41:23]execute_cgi json_proto POST (null) [14:41:23]execute_cgi path=json_proto method=POST [14:41:23]POST find Content-Length [14:41:23]Host: 172.17.39.195:8080 [14:41:23]Content-Length: 804 [14:41:23]Content-Type: application/json [14:41:23] [14:41:23]POST finish read [14:41:23]Found Content-Length = 804 [14:41:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:23]execute_script... [14:41: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)1694560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:23]POST & json_proto [14:41:23]process_json_proto [14:41:23]json parsed OK: [14:41:23]protocol is kg_v1.0 [14:41:23]action value=close_receipt [14:41:23]process_action close_receipt [14:41:23]cmd_close_receipt [14:41:23]MH_GetDate [14:41:23]Write to MH i2c: F0 00 00 32 08 29 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: F0 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: F0 09 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: F0 09 00 32 08 00 94 E2 76 66 99 81 91 64 93 [14:41:23]GetLastDocTimeStamp 1719067156 [14:41:23]current date 1719067284 [14:41:23]FM_GetShiftState [14:41:23]SAM_PROTO_GetShiftState [14:41:23]wFMCommunicate request_size=4 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 13 01 00 [14:41:23]Write to MH i2c: E2 08 00 33 08 80 13 01 00 00 00 00 00 B8 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 0E 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 0E 00 33 08 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 AE [14:41:23]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:41:23]wFMCommunicate OK [14:41:23]SAM_PROTO_GetShiftState done [14:41:23]FM_GetShiftState done [14:41:23]opened in 1719016435 [14:41:23]opened+sec_in_day 1719102835 [14:41:23]quantity*price = 150017 [14:41:23]sum+1 = 150018 [14:41:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.17 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 0.00 Безнал.: 1500.17 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 59 22.06.2024 14:41 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76863 ФПД: 95481161750865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144124&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76863&fm=95481161750865&tin=02508201610067®Number=0000000000095696&sum=150017 [14:41:24]StoreToDocumentArchive [14:41:24]shift 395 fd 76863 [14:41:24]save to /storage/0395/doc_00076863 [14:41:24]save last doc name /storage/0395/doc_00076863 to /storage/kkm_last_doc_name [14:41:24]save OK [14:41:24]Clear old archive folders... [14:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:24]tlvbuf is B6FBC280 [14:41:24]SAM_PROTO_ClearQueue [14:41:24]wFMCommunicate request_size=4 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 09 00 00 [14:41:24]Write to MH i2c: E2 08 00 40 08 80 09 00 00 00 00 00 00 BA [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 03 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [14:41:24]RAPDU: 90 00 [14:41:24]wFMCommunicate OK [14:41:24]SAM_PROTO_ClearQueue done [14:41:24]KKMCreateOFDPacket [14:41:24]OFDProtocolAddRootSTLVToBuf [14:41:24]FM_MakeSignedData [14:41:24]FM_MakeSignedData [14:41:24]SAM_PROTO_SignData [14:41:24]wFMCommunicate request_size=4 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 0D 01 02 [14:41:24]Write to MH i2c: E2 08 00 41 08 80 0D 01 02 00 00 00 00 C2 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 03 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [14:41:24]RAPDU: 90 00 [14:41:24]wFMCommunicate OK [14:41:24]wFMCommunicate request_size=255 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 94 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3F 2C 01 00 35 04 06 00 56 [14:41:24]Write to MH i2c: E2 02 01 42 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 94 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3F 2C 01 00 35 04 06 00 56 00 00 DA [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 03 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [14:41:24]RAPDU: 90 00 [14:41:24]wFMCommunicate OK [14:41:24]wFMCommunicate request_size=10 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 0D 02 02 05 D6 F0 BA 99 51 [14:41:24]Write to MH i2c: E2 0D 00 43 08 80 0D 02 02 05 00 D6 F0 BA 99 51 00 00 39 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:24]Read from MH i2c: E2 03 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 03 00 43 08 00 90 00 BF [14:41:24]RAPDU: 90 00 [14:41:24]wFMCommunicate OK [14:41:24]wFMCommunicate request_size=4 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 0D 03 02 [14:41:24]Write to MH i2c: E2 08 00 44 08 80 0D 03 02 00 00 00 00 C7 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:25]Read from MH i2c: E2 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 0B 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 0B 00 44 08 00 DB 23 F1 C6 CB A7 32 79 90 00 9A [14:41:25]RAPDU: DB 23 F1 C6 CB A7 32 79 90 00 [14:41:25]wFMCommunicate OK [14:41:25]SAM_PROTO_SignData done [14:41:25]FM_MakeSignedData done [14:41:25]CreateOFDProtocolMessage [14:41:25]wFMCommunicate request_size=4 [14:41:25]MH_SAM_APDU [14:41:25]CAPDU: 80 11 00 00 [14:41:25]Write to MH i2c: E2 08 00 45 08 80 11 00 00 00 00 00 00 C7 [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:25]Read from MH i2c: E2 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 17 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 17 00 45 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 17 [14:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:41:25]wFMCommunicate OK [14:41:25]CreateOFDProtocolMessage done [14:41:25]OFDSenderStorePacket 76863 [14:41:25]StoreOFDPacket docnum=76863 [14:41:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 84 42 07 01 7D 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 94 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3F 2C 01 00 35 04 06 00 56 D6 F0 BA 99 51 DB 23 F1 C6 CB A7 32 79 [14:41:25]CheckFolder [14:41:25]dirname=/storage/ofd_packets [14:41:25]CheckFolder done [14:41:25]ProducePacketName [14:41:25]name=ofd_packets/00076863 [14:41:25]NVStorageSaveData ofd_packets/00076863 [14:41:25]File name is /storage/ofd_packets/00076863 [14:41:25]Write 301 bytes [14:41:25]NVStorageSaveData done [14:41:25]OFDSenderStorePacket done [14:41:25]KKMCreateOFDPacket done [14:41:25]NVStorageSaveData kkm_last_timestamp [14:41:25]File name is /storage/kkm_last_timestamp [14:41:25]Write 4 bytes [14:41:25]NVStorageSaveData done [14:41:25]ExternCall_PrintAddStr [14:41:25]wPrintStart [14:41:25]Write to MH i2c: 01 00 00 46 08 4E [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: 01 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: 01 07 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 FF 0F 63 [14:41:25]RasterBufferAndPrint [14:41:25]line Счет N : (1)1694560 [14:41:25]line ИНН: 02508201610067 [14:41:25]line Контрольно-Кассовый Чек [14:41:25]line ПРОДАЖА [14:41:25]line ТРК (МРК, ГНК) : 51 [14:41:25]line Товар: 2710124500 [14:41:25]line Аи-95-К-3 [14:41:25]line 20.300 * 73.90 [14:41:25]line = 1500.17 [14:41:25]line НДС 12% НСП 1% [14:41:25]line > о реализуемом товаре [14:41:25]line ИТОГО: 1500.17 [14:41:25]line НСП 1% : 13.28 [14:41:25]line НДС 12% : 159.31 [14:41:25]line Наличными: 0.00 [14:41:25]line Безнал.: 1500.17 [14:41:25]line Место: АЗС № 144 "Партнер Нефть" [14:41:25]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:41:25]line СНО: Общий режим [14:41:25]line Чек 59 22.06.2024 14:41 [14:41:25]line Смена: 395 ФФД: 1.0 [14:41:25]line ЗНМ: 0300000170 [14:41:25]line РНМ: 0000000000095696 [14:41:25]line Версия ККМ: 001 [14:41:25]line Платежная система: O! деньги [14:41:25]line ФМ: 0000000000875009 [14:41:25]line ФД: 76863 [14:41:25]line ФПД: 95481161750865 [14:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144124&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76863&fm=95481161750865&tin=02508201610067®Number=0000000000095696&sum=150017 [14:41:25]OFD Sender: Processing packet 76863 [packets to send 351, broken 350] [14:41:25]ProducePacketName [14:41:25]name=ofd_packets/00076863 [14:41:25]OFD Sender: To server: pG, [14:41:25]CommunicateWithHost lk.salyk.kg:30040 [14:41:25]ConnectInit lk.salyk.kg [14:41:25]written 0, free lines is 4095 [14:41:25]Connected sock=10 [14:41:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 84 42 07 01 7D 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 94 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3F 2C 01 00 35 04 06 00 56 D6 F0 BA 99 51 DB 23 F1 C6 CB A7 32 79 [14:41:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 96 0C 47 00 89 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 3F 2C 01 00 F4 03 04 00 2E 89 76 66 B6 04 01 00 00 61 42 11 57 CA 17 A4 B4 [14:41:25]CommunicateWithHost err = 0 [14:41:25]CheckOFDResponse [14:41:25]1017 (14) - 77093643461234 [14:41:25]1041 (16) - 0000000000875009 [14:41:25]1040 (4) - 76863 [14:41:25]1012 (4) - 22.06.2024 08:19 [14:41:25]1206 (1) - 0 [14:41:25]OFD Sender: Remove packet 76863 [14:41:25]ProducePacketName [14:41:25]name=ofd_packets/00076863 [14:41:25]NVStorageDeleteData [14:41:25]Write to MH i2c: 01 00 00 70 08 78 [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: 01 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: 01 07 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: 01 07 00 70 08 00 00 00 00 00 ED 0C 78 [14:41:25]RasterBufferAndPrint [14:41:25]line [14:41:25]line [14:41:25]line [14:41:25]line [14:41:25]line [14:41:25]written 0, free lines is 3315 [14:41:25]MH_Cut [14:41:25]Write to MH i2c: D1 01 00 77 08 01 51 [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: D1 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: D1 01 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: D1 01 00 77 08 00 50 [14:41:25]Write to MH i2c: 01 00 00 78 08 80 [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:26]OFD Sender: No OFD packet to send [14:41:26]*** Cut start [14:41:26]*** Partial cut [14:41:26]*** CUTSNS_PIN = 1 [14:41:26]*** CUTSNS_PIN = 0 [14:41:26]*** Brake cut motor [14:41:27]Read from MH i2c: 01 [14:41:27]MH_I2C_Read... [14:41:27]*** Stop cut motor [14:41:27]*** Cut end [14:41:27]Read from MH i2c: 01 07 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 07 00 78 08 00 00 00 00 00 FF 0F 95 [14:41:27]process_action close_receipt done [14:41:27]requested_data is exist [14:41:27]produce_requested_data [14:41:27]requested_item fm.sn is exist - process it [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 11 00 00 [14:41:27]Write to MH i2c: E2 08 00 79 08 80 11 00 00 00 00 00 00 FB [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 17 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 17 00 79 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 4B [14:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:41:27]wFMCommunicate OK [14:41:27]requested_item fd.num is exist - process it [14:41:27]SAM_PROTO_GetFieldsCounters [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 13 00 00 [14:41:27]Write to MH i2c: E2 08 00 7A 08 80 13 00 00 00 00 00 00 FE [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 62 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 62 00 7A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [14:41: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 3F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:27]wFMCommunicate OK [14:41:27]SAM_PROTO_GetFieldsCounters done [14:41:27]requested_item shift.num is exist - process it [14:41:27]requested_item shift.opened is exist - process it [14:41:27]req_shift_opened [14:41:27]FM_GetShiftState [14:41:27]SAM_PROTO_GetShiftState [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 13 01 00 [14:41:27]Write to MH i2c: E2 08 00 7B 08 80 13 01 00 00 00 00 00 00 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0E 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0E 00 7B 08 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F6 [14:41:27]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:41:27]wFMCommunicate OK [14:41:27]SAM_PROTO_GetShiftState done [14:41:27]FM_GetShiftState done [14:41:27]req_shift_opened done [14:41:27]requested_item shift.open_date is exist - process it [14:41:27]req_shift_open_date [14:41:27]req_shift_open_date done [14:41:27]produce_requested_data done [14:41:27]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76863,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:41:27]process_action_free close_receipt [14:41:27]json_value_free [14:41:27]json_value_free done [14:41:27]process_json_proto returns [14:41:27]Send response to host [14:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76863,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:41:27]free response buf [14:41:27]execute_script done [14:41:27]execute_script returns [14:41:27]free content buf [14:41:27]Sock 9.Close socket [14:41:27]Sock 9.Thread stoped [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:42]accept exits with 8 [14:41:42]New connection [14:41:42]New thread 3067219300 created [14:41:42]Thread 3067362660 joined [14:41:42]Waiting for new connection... [14:41:42] Sock 8.Parse request [14:41:42]Sock 8.Check first char [14:41:42]Sock 8.First char is OK [14:41:42]request: POST /json_proto HTTP/1.0 [14:41:42]Method: POST [14:41:42]URL: /json_proto [14:41:42]Method is POST - this is cgi request [14:41:42]url: /json_proto [14:41:42]query_string will be loaded in cgi processing [14:41:42]execute_cgi json_proto POST (null) [14:41:42]execute_cgi path=json_proto method=POST [14:41:42]POST find Content-Length [14:41:42]Host: 172.17.39.195:8080 [14:41:42]Content-Length: 802 [14:41:42]Content-Type: application/json [14:41:42] [14:41:42]POST finish read [14:41:42]Found Content-Length = 802 [14:41:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.960, "sum" : 860.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 860.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:42]execute_script... [14:41:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.960, "sum" : 860.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 860.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:42]POST & json_proto [14:41:42]process_json_proto [14:41:42]json parsed OK: [14:41:42]protocol is kg_v1.0 [14:41:42]action value=close_receipt [14:41:42]process_action close_receipt [14:41:42]cmd_close_receipt [14:41:42]MH_GetDate [14:41:42]Write to MH i2c: F0 00 00 7C 08 73 [14:41:42]Write i2c OK [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: F0 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: F0 09 00 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: F0 09 00 7C 08 00 A7 E2 76 66 99 81 91 64 F0 [14:41:42]GetLastDocTimeStamp 1719067284 [14:41:42]current date 1719067303 [14:41:42]FM_GetShiftState [14:41:42]SAM_PROTO_GetShiftState [14:41:42]wFMCommunicate request_size=4 [14:41:42]MH_SAM_APDU [14:41:42]CAPDU: 80 13 01 00 [14:41:42]Write to MH i2c: E2 08 00 7D 08 80 13 01 00 00 00 00 00 02 [14:41:42]Write i2c OK [14:41:42]MH_I2C_Read... [14:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:42]Read from MH i2c: E2 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: E2 0E 00 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: E2 0E 00 7D 08 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F8 [14:41:42]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:41:42]wFMCommunicate OK [14:41:42]SAM_PROTO_GetShiftState done [14:41:42]FM_GetShiftState done [14:41:42]opened in 1719016435 [14:41:42]opened+sec_in_day 1719102835 [14:41:42]quantity*price = 86054 [14:41:42]sum+1 = 86055 [14:41:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 860.54 НСП 1% : 7.61 НДС 12% : 91.38 Наличными: 0.00 Безнал.: 860.54 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 60 22.06.2024 14:41 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76864 ФПД: 162856866467098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144143&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76864&fm=162856866467098&tin=02508201610067®Number=0000000000095696&sum=86054 [14:41:43]StoreToDocumentArchive [14:41:43]shift 395 fd 76864 [14:41:43]save to /storage/0395/doc_00076864 [14:41:43]save last doc name /storage/0395/doc_00076864 to /storage/kkm_last_doc_name [14:41:43]save OK [14:41:43]Clear old archive folders... [14:41:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:43]tlvbuf is B6E0CB40 [14:41:43]SAM_PROTO_ClearQueue [14:41:43]wFMCommunicate request_size=4 [14:41:43]MH_SAM_APDU [14:41:43]CAPDU: 80 09 00 00 [14:41:43]Write to MH i2c: E2 08 00 8A 08 80 09 00 00 00 00 00 00 04 [14:41:43]Write i2c OK [14:41:43]MH_I2C_Read... [14:41:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:43]Read from MH i2c: E2 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 03 00 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [14:41:43]RAPDU: 90 00 [14:41:43]wFMCommunicate OK [14:41:43]SAM_PROTO_ClearQueue done [14:41:43]KKMCreateOFDPacket [14:41:43]OFDProtocolAddRootSTLVToBuf [14:41:43]FM_MakeSignedData [14:41:43]FM_MakeSignedData [14:41:43]SAM_PROTO_SignData [14:41:43]wFMCommunicate request_size=4 [14:41:43]MH_SAM_APDU [14:41:43]CAPDU: 80 0D 01 02 [14:41:43]Write to MH i2c: E2 08 00 8B 08 80 0D 01 02 00 00 00 00 0C [14:41:43]Write i2c OK [14:41:43]MH_I2C_Read... [14:41:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:43]Read from MH i2c: E2 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 03 00 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [14:41:43]RAPDU: 90 00 [14:41:43]wFMCommunicate OK [14:41:43]wFMCommunicate request_size=255 [14:41:43]MH_SAM_APDU [14:41:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 50 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A7 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2C 01 00 35 04 06 00 94 [14:41:43]Write to MH i2c: E2 02 01 8C 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 50 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A7 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2C 01 00 35 04 06 00 94 00 00 5B [14:41:43]Write i2c OK [14:41:43]MH_I2C_Read... [14:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:43]Read from MH i2c: E2 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 03 00 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 03 00 8C 08 00 90 00 08 [14:41:43]RAPDU: 90 00 [14:41:43]wFMCommunicate OK [14:41:43]wFMCommunicate request_size=10 [14:41:43]MH_SAM_APDU [14:41:43]CAPDU: 80 0D 02 02 05 1E 11 AC CD 1A [14:41:43]Write to MH i2c: E2 0D 00 8D 08 80 0D 02 02 05 00 1E 11 AC CD 1A 00 00 DB [14:41:43]Write i2c OK [14:41:43]MH_I2C_Read... [14:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:43]Read from MH i2c: E2 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 03 00 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 03 00 8D 08 00 90 00 09 [14:41:43]RAPDU: 90 00 [14:41:43]wFMCommunicate OK [14:41:43]wFMCommunicate request_size=4 [14:41:43]MH_SAM_APDU [14:41:43]CAPDU: 80 0D 03 02 [14:41:43]Write to MH i2c: E2 08 00 8E 08 80 0D 03 02 00 00 00 00 11 [14:41:43]Write i2c OK [14:41:43]MH_I2C_Read... [14:41:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:43]Read from MH i2c: E2 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 0B 00 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 0B 00 8E 08 00 29 3E 9B C6 58 FA BF 0F 90 00 FA [14:41:43]RAPDU: 29 3E 9B C6 58 FA BF 0F 90 00 [14:41:43]wFMCommunicate OK [14:41:43]SAM_PROTO_SignData done [14:41:43]FM_MakeSignedData done [14:41:43]CreateOFDProtocolMessage [14:41:43]wFMCommunicate request_size=4 [14:41:43]MH_SAM_APDU [14:41:43]CAPDU: 80 11 00 00 [14:41:43]Write to MH i2c: E2 08 00 8F 08 80 11 00 00 00 00 00 00 11 [14:41:43]Write i2c OK [14:41:43]MH_I2C_Read... [14:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:43]Read from MH i2c: E2 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 17 00 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 17 00 8F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 61 [14:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:41:43]wFMCommunicate OK [14:41:43]CreateOFDProtocolMessage done [14:41:43]OFDSenderStorePacket 76864 [14:41:43]StoreOFDPacket docnum=76864 [14:41:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 E8 B8 07 01 02 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 50 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A7 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2C 01 00 35 04 06 00 94 1E 11 AC CD 1A 29 3E 9B C6 58 FA BF 0F [14:41:43]CheckFolder [14:41:43]dirname=/storage/ofd_packets [14:41:43]CheckFolder done [14:41:43]ProducePacketName [14:41:43]name=ofd_packets/00076864 [14:41:43]NVStorageSaveData ofd_packets/00076864 [14:41:43]File name is /storage/ofd_packets/00076864 [14:41:43]Write 301 bytes [14:41:43]NVStorageSaveData done [14:41:43]OFDSenderStorePacket done [14:41:43]KKMCreateOFDPacket done [14:41:43]NVStorageSaveData kkm_last_timestamp [14:41:43]File name is /storage/kkm_last_timestamp [14:41:43]Write 4 bytes [14:41:43]NVStorageSaveData done [14:41:43]ExternCall_PrintAddStr [14:41:43]wPrintStart [14:41:43]Write to MH i2c: 01 00 00 90 08 98 [14:41:43]Write i2c OK [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: 01 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: 01 07 00 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: 01 07 00 90 08 00 00 00 00 00 FF 0F AD [14:41:43]RasterBufferAndPrint [14:41:43]line Счет N : (1)1694559 [14:41:43]line ИНН: 02508201610067 [14:41:43]line Контрольно-Кассовый Чек [14:41:43]line ПРОДАЖА [14:41:43]line ТРК (МРК, ГНК) : 63 [14:41:43]line Товар: 2710124130 [14:41:43]line Аи-92-К-5 [14:41:43]line 12.960 * 66.40 [14:41:43]line = 860.54 [14:41:43]line НДС 12% НСП 1% [14:41:43]line > о реализуемом товаре [14:41:43]line ИТОГО: 860.54 [14:41:43]line НСП 1% : 7.61 [14:41:43]line НДС 12% : 91.38 [14:41:43]line Наличными: 0.00 [14:41:43]line Безнал.: 860.54 [14:41:43]line Место: АЗС № 144 "Партнер Нефть" [14:41:43]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:41:43]line СНО: Общий режим [14:41:43]line Чек 60 22.06.2024 14:41 [14:41:43]line Смена: 395 ФФД: 1.0 [14:41:43]line ЗНМ: 0300000170 [14:41:43]line РНМ: 0000000000095696 [14:41:43]line Версия ККМ: 001 [14:41:43]line Платежная система: O! деньги [14:41:43]line ФМ: 0000000000875009 [14:41:43]line ФД: 76864 [14:41:43]line ФПД: 162856866467098 [14:41:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144143&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76864&fm=162856866467098&tin=02508201610067®Number=0000000000095696&sum=86054 [14:41:44]OFD Sender: Processing packet 76864 [packets to send 351, broken 350] [14:41:44]ProducePacketName [14:41:44]name=ofd_packets/00076864 [14:41:44]OFD Sender: To server: pG, [14:41:44]CommunicateWithHost lk.salyk.kg:30040 [14:41:44]ConnectInit lk.salyk.kg [14:41:44]written 0, free lines is 4095 [14:41:44]Connected sock=10 [14:41:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 E8 B8 07 01 02 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 26 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 50 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A7 E2 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2C 01 00 35 04 06 00 94 1E 11 AC CD 1A 29 3E 9B C6 58 FA BF 0F [14:41:44]Write to MH i2c: 01 00 00 BA 08 C2 [14:41:44]Write i2c OK [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: 01 [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: 01 07 00 [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: 01 07 00 BA 08 00 00 00 00 00 F9 0C CE [14:41:44]RasterBufferAndPrint [14:41:44]line [14:41:44]line [14:41:44]line [14:41:44]line [14:41:44]line [14:41:44]written 0, free lines is 3329 [14:41:44]MH_Cut [14:41:44]Write to MH i2c: D1 01 00 C1 08 01 9B [14:41:44]Write i2c OK [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: D1 [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: D1 01 00 [14:41:44]MH_I2C_Read... [14:41:44]Read from MH i2c: D1 01 00 C1 08 00 9A [14:41:44]Write to MH i2c: 01 00 00 C2 08 CA [14:41:44]Write i2c OK [14:41:44]MH_I2C_Read... [14:41:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 16 46 47 00 C3 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 40 2C 01 00 F4 03 04 00 41 89 76 66 B6 04 01 00 00 3A 70 84 6D A0 F1 3D 41 [14:41:44]CommunicateWithHost err = 0 [14:41:44]CheckOFDResponse [14:41:44]1017 (14) - 77093643461234 [14:41:44]1041 (16) - 0000000000875009 [14:41:44]1040 (4) - 76864 [14:41:44]1012 (4) - 22.06.2024 08:20 [14:41:44]1206 (1) - 0 [14:41:44]OFD Sender: Remove packet 76864 [14:41:44]ProducePacketName [14:41:44]name=ofd_packets/00076864 [14:41:44]NVStorageDeleteData [14:41:45]OFD Sender: No OFD packet to send [14:41:45]*** Cut start [14:41:45]*** Partial cut [14:41:45]*** CUTSNS_PIN = 1 [14:41:45]*** CUTSNS_PIN = 0 [14:41:45]*** Brake cut motor [14:41:45]Read from MH i2c: 01 [14:41:45]MH_I2C_Read... [14:41:45]*** Stop cut motor [14:41:45]*** Cut end [14:41:45]Read from MH i2c: 01 07 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: 01 07 00 C2 08 00 00 00 00 00 FF 0F DF [14:41:45]process_action close_receipt done [14:41:45]requested_data is exist [14:41:45]produce_requested_data [14:41:45]requested_item fm.sn is exist - process it [14:41:45]wFMCommunicate request_size=4 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 11 00 00 [14:41:45]Write to MH i2c: E2 08 00 C3 08 80 11 00 00 00 00 00 00 45 [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:46]Read from MH i2c: E2 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 17 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 17 00 C3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 95 [14:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:41:46]wFMCommunicate OK [14:41:46]requested_item fd.num is exist - process it [14:41:46]SAM_PROTO_GetFieldsCounters [14:41:46]wFMCommunicate request_size=4 [14:41:46]MH_SAM_APDU [14:41:46]CAPDU: 80 13 00 00 [14:41:46]Write to MH i2c: E2 08 00 C4 08 80 13 00 00 00 00 00 00 48 [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:46]Read from MH i2c: E2 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 62 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 62 00 C4 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 40 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [14:41: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 40 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:46]wFMCommunicate OK [14:41:46]SAM_PROTO_GetFieldsCounters done [14:41:46]requested_item shift.num is exist - process it [14:41:46]requested_item shift.opened is exist - process it [14:41:46]req_shift_opened [14:41:46]FM_GetShiftState [14:41:46]SAM_PROTO_GetShiftState [14:41:46]wFMCommunicate request_size=4 [14:41:46]MH_SAM_APDU [14:41:46]CAPDU: 80 13 01 00 [14:41:46]Write to MH i2c: E2 08 00 C5 08 80 13 01 00 00 00 00 00 4A [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:46]Read from MH i2c: E2 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 0E 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: E2 0E 00 C5 08 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 40 [14:41:46]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:41:46]wFMCommunicate OK [14:41:46]SAM_PROTO_GetShiftState done [14:41:46]FM_GetShiftState done [14:41:46]req_shift_opened done [14:41:46]requested_item shift.open_date is exist - process it [14:41:46]req_shift_open_date [14:41:46]req_shift_open_date done [14:41:46]produce_requested_data done [14:41:46]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76864,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:41:46]process_action_free close_receipt [14:41:46]json_value_free [14:41:46]json_value_free done [14:41:46]process_json_proto returns [14:41:46]Send response to host [14:41:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76864,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:41:46]free response buf [14:41:46]execute_script done [14:41:46]execute_script returns [14:41:46]free content buf [14:41:46]Sock 8.Close socket [14:41:46]Sock 8.Thread stoped [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:02]accept exits with 9 [14:43:02]New connection [14:43:02]New thread 3067362660 created [14:43:02]Thread 3067219300 joined [14:43:02]Waiting for new connection... [14:43:02] Sock 9.Parse request [14:43:02]Sock 9.Check first char [14:43:02]Sock 9.First char is OK [14:43:02]request: POST /json_proto HTTP/1.0 [14:43:02]Method: POST [14:43:02]URL: /json_proto [14:43:02]Method is POST - this is cgi request [14:43:02]url: /json_proto [14:43:02]query_string will be loaded in cgi processing [14:43:02]execute_cgi json_proto POST (null) [14:43:02]execute_cgi path=json_proto method=POST [14:43:02]POST find Content-Length [14:43:02]Host: 172.17.39.195:8080 [14:43:02]Content-Length: 1198 [14:43:02]Content-Type: application/json [14:43:02] [14:43:02]POST finish read [14:43:02]Found Content-Length = 1198 [14:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694563\u000A22.06.2024 14:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 9.380 x 66.40\u000A\u0418\u0422\u041E\u0413: 622.83\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888742\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:02]execute_script... [14:43:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694563\u000A22.06.2024 14:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 9.380 x 66.40\u000A\u0418\u0422\u041E\u0413: 622.83\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888742\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:02]POST & json_proto [14:43:02]process_json_proto [14:43:02]json parsed OK: [14:43:02]protocol is kg_v1.0 [14:43:02]action value=print_text [14:43:02]process_action print_text [14:43:02]cmd_print_text [14:43:02]ExternCall_PrintAddStr [14:43:02]wPrintStart [14:43:02]Write to MH i2c: 01 00 00 C6 08 CE [14:43:02]Write i2c OK [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: 01 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: 01 07 00 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [14:43:02]RasterBufferAndPrint [14:43:02]line *****ТОВАРНЫЙ ЧЕК***** [14:43:02]line АЗС 144 [14:43:02]line Партнер нефть [14:43:02]line 02508201610067 [14:43:02]line Кассир : Шайлообек у. Т. [14:43:02]line Счет N : (1)1694563 [14:43:02]line 22.06.2024 14:13 [14:43:02]line ПРОДАЖА [14:43:02]line ТРК (МРК, ГНК): 33 [14:43:02]line Вид ГСМ : 2710124130 [14:43:02]line Аи-92-К-5 [14:43:02]line 9.380 x 66.40 [14:43:02]line ИТОГ: 622.83 [14:43:02]line Тип оплаты: Талоны: Партнер нефть [14:43:02]line 3888742 [14:43:02]line ______________________ [14:43:02]line (подпись) [14:43:02]written 0, free lines is 4095 [14:43:02]Write to MH i2c: 01 00 00 DB 08 E3 [14:43:02]Write i2c OK [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: 01 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: 01 07 00 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 F7 0D EE [14:43:02]RasterBufferAndPrint [14:43:02]line [14:43:02]line [14:43:02]line [14:43:02]line [14:43:02]line [14:43:02]written 0, free lines is 3577 [14:43:03]MH_Cut [14:43:03]Write to MH i2c: D1 01 00 E2 08 01 BC [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: D1 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: D1 01 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: D1 01 00 E2 08 00 BB [14:43:03]Write to MH i2c: 01 00 00 E3 08 EB [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** Cut start [14:43:03]*** Partial cut [14:43:03]*** CUTSNS_PIN = 1 [14:43:03]*** CUTSNS_PIN = 0 [14:43:03]*** Brake cut motor [14:43:04]Read from MH i2c: 01 [14:43:04]MH_I2C_Read... [14:43:04]*** Stop cut motor [14:43:04]*** Cut end [14:43:04]Read from MH i2c: 01 07 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 07 00 E3 08 00 00 00 00 00 FF 0F 00 [14:43:04]process_action print_text done [14:43:04]requested_data is exist [14:43:04]produce_requested_data [14:43:04]requested_item fm.sn is exist - process it [14:43:04]wFMCommunicate request_size=4 [14:43:04]MH_SAM_APDU [14:43:04]CAPDU: 80 11 00 00 [14:43:04]Write to MH i2c: E2 08 00 E4 08 80 11 00 00 00 00 00 00 66 [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:04]Read from MH i2c: E2 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: E2 17 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: E2 17 00 E4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B6 [14:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:43:04]wFMCommunicate OK [14:43:04]requested_item fd.num is exist - process it [14:43:04]SAM_PROTO_GetFieldsCounters [14:43:04]wFMCommunicate request_size=4 [14:43:04]MH_SAM_APDU [14:43:04]CAPDU: 80 13 00 00 [14:43:04]Write to MH i2c: E2 08 00 E5 08 80 13 00 00 00 00 00 00 69 [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:04]Read from MH i2c: E2 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: E2 62 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: E2 62 00 E5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 40 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [14:43:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 40 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:04]wFMCommunicate OK [14:43:04]SAM_PROTO_GetFieldsCounters done [14:43:04]requested_item shift.num is exist - process it [14:43:04]requested_item shift.opened is exist - process it [14:43:04]req_shift_opened [14:43:04]FM_GetShiftState [14:43:04]SAM_PROTO_GetShiftState [14:43:04]wFMCommunicate request_size=4 [14:43:04]MH_SAM_APDU [14:43:04]CAPDU: 80 13 01 00 [14:43:04]Write to MH i2c: E2 08 00 E6 08 80 13 01 00 00 00 00 00 6B [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:04]Read from MH i2c: E2 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: E2 0E 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: E2 0E 00 E6 08 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 61 [14:43:04]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:43:04]wFMCommunicate OK [14:43:04]SAM_PROTO_GetShiftState done [14:43:04]FM_GetShiftState done [14:43:04]req_shift_opened done [14:43:04]requested_item shift.open_date is exist - process it [14:43:04]req_shift_open_date [14:43:04]req_shift_open_date done [14:43:04]produce_requested_data done [14:43:04]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76864,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:43:04]process_action_free print_text [14:43:04]json_value_free [14:43:04]json_value_free done [14:43:04]process_json_proto returns [14:43:04]Send response to host [14:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76864,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:43:04]free response buf [14:43:04]execute_script done [14:43:04]execute_script returns [14:43:04]free content buf [14:43:04]Sock 9.Close socket [14:43:04]Sock 9.Thread stoped [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:43]accept exits with 10 [14:46:43]New connection [14:46:43]New thread 3067219300 created [14:46:43]Thread 3067362660 joined [14:46:43]Waiting for new connection... [14:46:43] Sock 10.Parse request [14:46:43]Sock 10.Check first char [14:46:43]Sock 10.First char is OK [14:46:43]request: POST /json_proto HTTP/1.0 [14:46:43]Method: POST [14:46:43]URL: /json_proto [14:46:43]Method is POST - this is cgi request [14:46:43]url: /json_proto [14:46:43]query_string will be loaded in cgi processing [14:46:43]execute_cgi json_proto POST (null) [14:46:43]execute_cgi path=json_proto method=POST [14:46:43]POST find Content-Length [14:46:43]Host: 172.17.39.195:8080 [14:46:43]Content-Length: 624 [14:46:43]Content-Type: application/json [14:46:43] [14:46:43]POST finish read [14:46:43]Found Content-Length = 624 [14:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220929", "tax_sys" : 0, "items" : [ { "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:43]execute_script... [14:46:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220929", "tax_sys" : 0, "items" : [ { "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:43]POST & json_proto [14:46:43]process_json_proto [14:46:43]json parsed OK: [14:46:43]protocol is kg_v1.0 [14:46:43]action value=close_receipt [14:46:43]process_action close_receipt [14:46:43]cmd_close_receipt [14:46:43]MH_GetDate [14:46:43]Write to MH i2c: F0 00 00 E7 08 DE [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: F0 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: F0 09 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: F0 09 00 E7 08 00 D4 E3 76 66 99 81 91 64 89 [14:46:43]GetLastDocTimeStamp 1719067303 [14:46:43]current date 1719067604 [14:46:43]FM_GetShiftState [14:46:43]SAM_PROTO_GetShiftState [14:46:43]wFMCommunicate request_size=4 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 13 01 00 [14:46:43]Write to MH i2c: E2 08 00 E8 08 80 13 01 00 00 00 00 00 6D [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 0E 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 0E 00 E8 08 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 63 [14:46:43]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:46:43]wFMCommunicate OK [14:46:43]SAM_PROTO_GetShiftState done [14:46:43]FM_GetShiftState done [14:46:43]opened in 1719016435 [14:46:43]opened+sec_in_day 1719102835 [14:46:43]quantity*price = 4000 [14:46:43]sum+1 = 4001 [14:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 61 22.06.2024 14:46 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76865 ФПД: 100354375360650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144644&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76865&fm=100354375360650&tin=02508201610067®Number=0000000000095696&sum=4000 0 [14:46:44]StoreToDocumentArchive [14:46:44]shift 395 fd 76865 [14:46:44]save to /storage/0395/doc_00076865 [14:46:44]save last doc name /storage/0395/doc_00076865 to /storage/kkm_last_doc_name [14:46:44]save OK [14:46:44]Clear old archive folders... [14:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:46:44]tlvbuf is 00913C50 [14:46:44]SAM_PROTO_ClearQueue [14:46:44]wFMCommunicate request_size=4 [14:46:44]MH_SAM_APDU [14:46:44]CAPDU: 80 09 00 00 [14:46:44]Write to MH i2c: E2 08 00 F5 08 80 09 00 00 00 00 00 00 6F [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:44]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 03 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [14:46:44]RAPDU: 90 00 [14:46:44]wFMCommunicate OK [14:46:44]SAM_PROTO_ClearQueue done [14:46:44]KKMCreateOFDPacket [14:46:44]OFDProtocolAddRootSTLVToBuf [14:46:44]FM_MakeSignedData [14:46:44]FM_MakeSignedData [14:46:44]SAM_PROTO_SignData [14:46:44]wFMCommunicate request_size=4 [14:46:44]MH_SAM_APDU [14:46:44]CAPDU: 80 0D 01 02 [14:46:44]Write to MH i2c: E2 08 00 F6 08 80 0D 01 02 00 00 00 00 77 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:44]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 03 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [14:46:44]RAPDU: 90 00 [14:46:44]wFMCommunicate OK [14:46:44]wFMCommunicate request_size=255 [14:46:44]MH_SAM_APDU [14:46:44]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D4 E3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:46:44]Write to MH i2c: E2 02 01 F7 08 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D4 E3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 B4 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:44]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 03 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [14:46:44]RAPDU: 90 00 [14:46:44]wFMCommunicate OK [14:46:44]wFMCommunicate request_size=30 [14:46:44]MH_SAM_APDU [14:46:44]CAPDU: 80 0D 02 02 19 30 38 37 35 30 30 39 10 04 04 00 41 2C 01 00 35 04 06 00 5B 45 92 E5 20 8A [14:46:44]Write to MH i2c: E2 21 00 F8 08 80 0D 02 02 19 00 30 38 37 35 30 30 39 10 04 04 00 41 2C 01 00 35 04 06 00 5B 45 92 E5 20 8A 00 00 9F [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:44]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 03 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [14:46:44]RAPDU: 90 00 [14:46:44]wFMCommunicate OK [14:46:44]wFMCommunicate request_size=4 [14:46:44]MH_SAM_APDU [14:46:44]CAPDU: 80 0D 03 02 [14:46:44]Write to MH i2c: E2 08 00 F9 08 80 0D 03 02 00 00 00 00 7C [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:44]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 0B 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 0B 00 F9 08 00 FC 92 E3 E6 A4 E5 68 0E 90 00 D3 [14:46:44]RAPDU: FC 92 E3 E6 A4 E5 68 0E 90 00 [14:46:44]wFMCommunicate OK [14:46:44]SAM_PROTO_SignData done [14:46:44]FM_MakeSignedData done [14:46:44]CreateOFDProtocolMessage [14:46:44]wFMCommunicate request_size=4 [14:46:44]MH_SAM_APDU [14:46:44]CAPDU: 80 11 00 00 [14:46:44]Write to MH i2c: E2 08 00 FA 08 80 11 00 00 00 00 00 00 7C [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:44]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 17 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 17 00 FA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CC [14:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:46:44]wFMCommunicate OK [14:46:44]CreateOFDProtocolMessage done [14:46:44]OFDSenderStorePacket 76865 [14:46:44]StoreOFDPacket docnum=76865 [14:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 67 74 1B 01 57 79 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D4 E3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 41 2C 01 00 35 04 06 00 5B 45 92 E5 20 8A FC 92 E3 E6 A4 E5 68 0E [14:46:44]CheckFolder [14:46:44]dirname=/storage/ofd_packets [14:46:44]CheckFolder done [14:46:44]ProducePacketName [14:46:44]name=ofd_packets/00076865 [14:46:44]NVStorageSaveData ofd_packets/00076865 [14:46:44]File name is /storage/ofd_packets/00076865 [14:46:44]Write 321 bytes [14:46:44]NVStorageSaveData done [14:46:44]OFDSenderStorePacket done [14:46:44]KKMCreateOFDPacket done [14:46:44]NVStorageSaveData kkm_last_timestamp [14:46:44]File name is /storage/kkm_last_timestamp [14:46:44]Write 4 bytes [14:46:44]NVStorageSaveData done [14:46:44]ExternCall_PrintAddStr [14:46:44]wPrintStart [14:46:44]Write to MH i2c: 01 00 00 FB 08 03 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 07 00 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: 01 07 00 FB 08 00 00 00 00 00 FF 0F 18 [14:46:45]RasterBufferAndPrint [14:46:45]line Счет N : (3)220929 [14:46:45]line ИНН: 02508201610067 [14:46:45]line Контрольно-Кассовый Чек [14:46:45]line ПРОДАЖА [14:46:45]line Товар: 46177872 [14:46:45]line Жев Orbit подушки Citrus [14:46:45]line 1.000 * 40.00 [14:46:45]line = 40.00 [14:46:45]line НДС 12% НСП 1% [14:46:45]line > о реализуемом товаре [14:46:45]line ИТОГО: 40.00 [14:46:45]line НСП 1% : 0.35 [14:46:45]line НДС 12% : 4.25 [14:46:45]line Наличными: 40.00 [14:46:45]line Безнал.: 0.00 [14:46:45]line Место: АЗС № 144 "Партнер Нефть" [14:46:45]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:46:45]line СНО: Общий режим [14:46:45]line Чек 61 22.06.2024 14:46 [14:46:45]line Смена: 395 ФФД: 1.0 [14:46:45]line ЗНМ: 0300000170 [14:46:45]line РНМ: 0000000000095696 [14:46:45]line Версия ККМ: 001 [14:46:45]line ФМ: 0000000000875009 [14:46:45]line ФД: 76865 [14:46:45]line ФПД: 100354375360650 [14:46:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144644&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76865&fm=100354375360650&tin=02508201610067®Number=0000000000095696&sum=4000 [14:46:45]line 0 [14:46:45]OFD Sender: Processing packet 76865 [packets to send 351, broken 350] [14:46:45]ProducePacketName [14:46:45]name=ofd_packets/00076865 [14:46:45]OFD Sender: To server: pG, [14:46:45]CommunicateWithHost lk.salyk.kg:30040 [14:46:45]ConnectInit lk.salyk.kg [14:46:45]written 0, free lines is 4095 [14:46:45]Write to MH i2c: 01 00 00 23 09 2C [14:46:45]Write i2c OK [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: 01 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: 01 07 00 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 F3 0C 32 [14:46:45]RasterBufferAndPrint [14:46:45]line [14:46:45]line [14:46:45]line [14:46:45]line [14:46:45]line [14:46:45]written 0, free lines is 3323 [14:46:45]MH_Cut [14:46:45]Write to MH i2c: D1 01 00 2A 09 01 05 [14:46:45]Write i2c OK [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: D1 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: D1 01 00 [14:46:45]MH_I2C_Read... [14:46:45]Read from MH i2c: D1 01 00 2A 09 00 04 [14:46:45]Write to MH i2c: 01 00 00 2B 09 34 [14:46:45]Write i2c OK [14:46:45]MH_I2C_Read... [14:46:46]Connected sock=11 [14:46:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 67 74 1B 01 57 79 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D4 E3 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 41 2C 01 00 35 04 06 00 5B 45 92 E5 20 8A FC 92 E3 E6 A4 E5 68 0E [14:46:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D8 59 47 00 40 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 41 2C 01 00 F4 03 04 00 6F 8A 76 66 B6 04 01 00 00 00 9A 72 4D 70 ED D2 A2 [14:46:46]CommunicateWithHost err = 0 [14:46:46]CheckOFDResponse [14:46:46]1017 (14) - 77093643461234 [14:46:46]1041 (16) - 0000000000875009 [14:46:46]1040 (4) - 76865 [14:46:46]1012 (4) - 22.06.2024 08:25 [14:46:46]1206 (1) - 0 [14:46:46]OFD Sender: Remove packet 76865 [14:46:46]ProducePacketName [14:46:46]name=ofd_packets/00076865 [14:46:46]NVStorageDeleteData [14:46:46]*** Cut start [14:46:46]*** Partial cut [14:46:46]*** CUTSNS_PIN = 1 [14:46:46]*** CUTSNS_PIN = 0 [14:46:46]OFD Sender: No OFD packet to send [14:46:46]*** Brake cut motor [14:46:47]Read from MH i2c: 01 [14:46:47]MH_I2C_Read... [14:46:47]*** Stop cut motor [14:46:47]*** Cut end [14:46:47]Read from MH i2c: 01 07 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 07 00 2B 09 00 00 00 00 00 FF 0F 49 [14:46:47]process_action close_receipt done [14:46:47]requested_data is exist [14:46:47]produce_requested_data [14:46:47]requested_item fm.sn is exist - process it [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 11 00 00 [14:46:47]Write to MH i2c: E2 08 00 2C 09 80 11 00 00 00 00 00 00 AF [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 17 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 17 00 2C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FF [14:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:46:47]wFMCommunicate OK [14:46:47]requested_item fd.num is exist - process it [14:46:47]SAM_PROTO_GetFieldsCounters [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 13 00 00 [14:46:47]Write to MH i2c: E2 08 00 2D 09 80 13 00 00 00 00 00 00 B2 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 62 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 62 00 2D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 41 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [14:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 41 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:47]wFMCommunicate OK [14:46:47]SAM_PROTO_GetFieldsCounters done [14:46:47]requested_item shift.num is exist - process it [14:46:47]requested_item shift.opened is exist - process it [14:46:47]req_shift_opened [14:46:47]FM_GetShiftState [14:46:47]SAM_PROTO_GetShiftState [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 13 01 00 [14:46:47]Write to MH i2c: E2 08 00 2E 09 80 13 01 00 00 00 00 00 B4 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 0E 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 0E 00 2E 09 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 AA [14:46:47]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:46:47]wFMCommunicate OK [14:46:47]SAM_PROTO_GetShiftState done [14:46:47]FM_GetShiftState done [14:46:47]req_shift_opened done [14:46:47]requested_item shift.open_date is exist - process it [14:46:47]req_shift_open_date [14:46:47]req_shift_open_date done [14:46:47]produce_requested_data done [14:46:47]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76865,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:46:47]process_action_free close_receipt [14:46:47]json_value_free [14:46:47]json_value_free done [14:46:47]process_json_proto returns [14:46:47]Send response to host [14:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76865,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:46:47]free response buf [14:46:47]execute_script done [14:46:47]execute_script returns [14:46:47]free content buf [14:46:47]Sock 10.Close socket [14:46:47]Sock 10.Thread stoped [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:11]accept exits with 8 [14:49:11]New connection [14:49:11]New thread 3067362660 created [14:49:11]Thread 3067219300 joined [14:49:11]Waiting for new connection... [14:49:11] Sock 8.Parse request [14:49:11]Sock 8.Check first char [14:49:11]Sock 8.First char is OK [14:49:11]request: POST /json_proto HTTP/1.0 [14:49:11]Method: POST [14:49:11]URL: /json_proto [14:49:11]Method is POST - this is cgi request [14:49:11]url: /json_proto [14:49:11]query_string will be loaded in cgi processing [14:49:11]execute_cgi json_proto POST (null) [14:49:11]execute_cgi path=json_proto method=POST [14:49:11]POST find Content-Length [14:49:11]Host: 172.17.39.195:8080 [14:49:11]Content-Length: 1583 [14:49:11]Content-Type: application/json [14:49:11] [14:49:11]POST finish read [14:49:11]Found Content-Length = 1583 [14:49:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220930", "tax_sys" : 0, "items" : [ { "code": "5010677935005", "name": "\u041C\u0430\u0440\u0442\u0438\u043D\u0438 MARTINI EXTRA DRY 1\u043B", "price" : 1630.00, "quantity" : 1.000, "sum" : 1630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622201450427", "name": "\u0428\u043E\u043A AG \u043C\u043E\u043B \u0444\u0443\u043D\u0434\u0443\u043A \u0444\u043B\u043E\u0443-\u043F\u0430\u043A 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 6.000, "sum" : 870.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 10.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3365.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:11]execute_script... [14:49:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220930", "tax_sys" : 0, "items" : [ { "code": "5010677935005", "name": "\u041C\u0430\u0440\u0442\u0438\u043D\u0438 MARTINI EXTRA DRY 1\u043B", "price" : 1630.00, "quantity" : 1.000, "sum" : 1630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622201450427", "name": "\u0428\u043E\u043A AG \u043C\u043E\u043B \u0444\u0443\u043D\u0434\u0443\u043A \u0444\u043B\u043E\u0443-\u043F\u0430\u043A 90\u0433 (\u043D\u043E\u0432\u044B\u0439)", "price" : 145.00, "quantity" : 6.000, "sum" : 870.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 10.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3365.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:11]POST & json_proto [14:49:11]process_json_proto [14:49:11]json parsed OK: [14:49:11]protocol is kg_v1.0 [14:49:11]action value=close_receipt [14:49:11]process_action close_receipt [14:49:11]cmd_close_receipt [14:49:11]MH_GetDate [14:49:11]Write to MH i2c: F0 00 00 2F 09 27 [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: F0 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: F0 09 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: F0 09 00 2F 09 00 69 E4 76 66 99 81 91 64 68 [14:49:11]GetLastDocTimeStamp 1719067604 [14:49:11]current date 1719067753 [14:49:11]FM_GetShiftState [14:49:11]SAM_PROTO_GetShiftState [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 13 01 00 [14:49:11]Write to MH i2c: E2 08 00 30 09 80 13 01 00 00 00 00 00 B6 [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:11]Read from MH i2c: E2 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 0E 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 0E 00 30 09 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 AC [14:49:11]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:49:11]wFMCommunicate OK [14:49:11]SAM_PROTO_GetShiftState done [14:49:11]FM_GetShiftState done [14:49:11]opened in 1719016435 [14:49:11]opened+sec_in_day 1719102835 [14:49:11]quantity*price = 163000 [14:49:11]sum+1 = 163001 [14:49:11]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003150806 Водка Настроение V премиум 40% 0,7л 1.000 * 795.00 = 795.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 7622201450427 Шок AG мол фундук флоу-пак 90г (новый) 6.000 * 145.00 = 870.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 10.000 * 7.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 3365.00 НСП 1% : 29.77 НДС 12% : 357.34 Наличными: 3365.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 62 22.06.2024 14:49 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76866 ФПД: 781014812195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144913&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76866&fm=781014812195&tin=02508201610067®Number=0000000000095696&sum=336500 0 [14:49:12]StoreToDocumentArchive [14:49:12]shift 395 fd 76866 [14:49:12]save to /storage/0395/doc_00076866 [14:49:12]save last doc name /storage/0395/doc_00076866 to /storage/kkm_last_doc_name [14:49:12]save OK [14:49:12]Clear old archive folders... [14:49:12]ProcessDocumentItem done err = 0, tmpTLVsize=660 [14:49:12]tlvbuf is B6F0C400 [14:49:12]SAM_PROTO_ClearQueue [14:49:12]wFMCommunicate request_size=4 [14:49:12]MH_SAM_APDU [14:49:12]CAPDU: 80 09 00 00 [14:49:12]Write to MH i2c: E2 08 00 3D 09 80 09 00 00 00 00 00 00 B8 [14:49:12]Write i2c OK [14:49:12]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 3D 09 00 90 00 BA [14:49:13]RAPDU: 90 00 [14:49:13]wFMCommunicate OK [14:49:13]SAM_PROTO_ClearQueue done [14:49:13]KKMCreateOFDPacket [14:49:13]OFDProtocolAddRootSTLVToBuf [14:49:13]FM_MakeSignedData [14:49:13]FM_MakeSignedData [14:49:13]SAM_PROTO_SignData [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 0D 01 02 [14:49:13]Write to MH i2c: E2 08 00 3E 09 80 0D 01 02 00 00 00 00 C0 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 3E 09 00 90 00 BB [14:49:13]RAPDU: 90 00 [14:49:13]wFMCommunicate OK [14:49:13]wFMCommunicate request_size=255 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 0D 02 02 FA 03 00 94 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 30 31 30 36 37 37 39 33 35 30 30 35 06 04 24 00 D0 9C D0 B0 D1 80 D1 82 D0 B8 D0 BD D0 B8 20 4D 41 52 54 49 4E 49 20 45 58 54 52 41 20 44 52 59 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 7C 02 00 00 00 13 04 06 00 B8 7C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 [14:49:13]Write to MH i2c: E2 02 01 3F 09 80 0D 02 02 FA 00 03 00 94 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 30 31 30 36 37 37 39 33 35 30 30 35 06 04 24 00 D0 9C D0 B0 D1 80 D1 82 D0 B8 D0 BD D0 B8 20 4D 41 52 54 49 4E 49 20 45 58 54 52 41 20 44 52 59 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 7C 02 00 00 00 13 04 06 00 B8 7C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 00 26 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 3F 09 00 90 00 BC [14:49:13]RAPDU: 90 00 [14:49:13]wFMCommunicate OK [14:49:13]wFMCommunicate request_size=255 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 0D 02 02 FA 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 34 32 37 06 04 3F 00 D0 A8 D0 BE D0 BA 20 41 47 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 20 D1 84 D0 BB D0 BE D1 83 2D D0 BF D0 B0 D0 BA 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 D8 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [14:49:13]Write to MH i2c: E2 02 01 40 09 80 0D 02 02 FA 00 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 34 32 37 06 04 3F 00 D0 A8 D0 BE D0 BA 20 41 47 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 20 D1 84 D0 BB D0 BE D1 83 2D D0 BF D0 B0 D0 BA 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 D8 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 67 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 40 09 00 90 00 BD [14:49:13]RAPDU: 90 00 [14:49:13]wFMCommunicate OK [14:49:13]wFMCommunicate request_size=169 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 0D 02 02 A4 03 06 00 74 22 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 8B 00 00 00 00 07 04 06 00 74 22 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 69 E4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 42 2C 01 00 35 04 06 00 00 B5 D8 1C 46 23 [14:49:13]Write to MH i2c: E2 AC 00 41 09 80 0D 02 02 A4 00 03 06 00 74 22 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 8B 00 00 00 00 07 04 06 00 74 22 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 69 E4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 42 2C 01 00 35 04 06 00 00 B5 D8 1C 46 23 00 00 D0 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [14:49:13]RAPDU: 90 00 [14:49:13]wFMCommunicate OK [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 0D 03 02 [14:49:13]Write to MH i2c: E2 08 00 42 09 80 0D 03 02 00 00 00 00 C6 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 0B 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 0B 00 42 09 00 D6 D2 E2 5A 7D 6B DA 8D 90 00 FA [14:49:13]RAPDU: D6 D2 E2 5A 7D 6B DA 8D 90 00 [14:49:13]wFMCommunicate OK [14:49:13]SAM_PROTO_SignData done [14:49:13]FM_MakeSignedData done [14:49:13]CreateOFDProtocolMessage [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 11 00 00 [14:49:13]Write to MH i2c: E2 08 00 43 09 80 11 00 00 00 00 00 00 C6 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 17 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 17 00 43 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 16 [14:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:49:13]wFMCommunicate OK [14:49:13]CreateOFDProtocolMessage done [14:49:13]OFDSenderStorePacket 76866 [14:49:13]StoreOFDPacket docnum=76866 [14:49:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 A8 02 00 00 1D A7 A0 02 BA DB 5A 03 01 00 03 00 94 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 30 31 30 36 37 37 39 33 35 30 30 35 06 04 24 00 D0 9C D0 B0 D1 80 D1 82 D0 B8 D0 BD D0 B8 20 4D 41 52 54 49 4E 49 20 45 58 54 52 41 20 44 52 59 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 7C 02 00 00 00 13 04 06 00 B8 7C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 34 32 37 06 04 3F 00 D0 A8 D0 BE D0 BA 20 41 47 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 20 D1 84 D0 BB D0 BE D1 83 2D D0 BF D0 B0 D0 BA 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 D8 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 22 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 8B 00 00 00 00 07 04 06 00 74 22 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 69 E4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 42 2C 01 00 35 04 06 00 00 B5 D8 1C 46 23 D6 D2 E2 5A 7D 6B DA 8D [14:49:13]CheckFolder [14:49:13]dirname=/storage/ofd_packets [14:49:13]CheckFolder done [14:49:13]ProducePacketName [14:49:13]name=ofd_packets/00076866 [14:49:13]NVStorageSaveData ofd_packets/00076866 [14:49:13]File name is /storage/ofd_packets/00076866 [14:49:13]Write 710 bytes [14:49:13]NVStorageSaveData done [14:49:14]OFDSenderStorePacket done [14:49:14]KKMCreateOFDPacket done [14:49:14]NVStorageSaveData kkm_last_timestamp [14:49:14]File name is /storage/kkm_last_timestamp [14:49:14]Write 4 bytes [14:49:14]NVStorageSaveData done [14:49:14]ExternCall_PrintAddStr [14:49:14]wPrintStart [14:49:14]Write to MH i2c: 01 00 00 44 09 4D [14:49:14]OFD Sender: Processing packet 76866 [packets to send 351, broken 350] [14:49:14]ProducePacketName [14:49:14]name=ofd_packets/00076866 [14:49:14]OFD Sender: To server: pG, [14:49:14]CommunicateWithHost lk.salyk.kg:30040 [14:49:14]ConnectInit lk.salyk.kg [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 07 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 07 00 44 09 00 00 00 00 00 FF 0F 62 [14:49:14]RasterBufferAndPrint [14:49:14]line Счет N : (3)220930 [14:49:14]line ИНН: 02508201610067 [14:49:14]line Контрольно-Кассовый Чек [14:49:14]line ПРОДАЖА [14:49:14]line Товар: 5010677935005 [14:49:14]line Мартини MARTINI EXTRA DRY 1л [14:49:14]line 1.000 * 1630.00 [14:49:14]line = 1630.00 [14:49:14]line НДС 12% НСП 1% [14:49:14]line > о реализуемом товаре [14:49:14]line Товар: 4700003150806 [14:49:14]line Водка Настроение V премиум 40% 0,7л [14:49:14]line 1.000 * 795.00 [14:49:14]line = 795.00 [14:49:14]line НДС 12% НСП 1% [14:49:14]line > о реализуемом товаре [14:49:14]line Товар: 7622201450427 [14:49:14]line Шок AG мол фундук флоу-пак 90г (новый) [14:49:14]line 6.000 * 145.00 [14:49:14]line = 870.00 [14:49:14]line НДС 12% НСП 1% [14:49:14]line > о реализуемом товаре [14:49:14]line Товар: 2000053020015 [14:49:14]line Бумажные стаканы 250мл 1шт [14:49:14]line 10.000 * 7.00 [14:49:14]line = 70.00 [14:49:14]line НДС 12% НСП 1% [14:49:14]line > о реализуемом товаре [14:49:14]line ИТОГО: 3365.00 [14:49:14]line НСП 1% : 29.77 [14:49:14]line НДС 12% : 357.34 [14:49:14]line Наличными: 3365.00 [14:49:14]line Безнал.: 0.00 [14:49:14]line Место: АЗС № 144 "Партнер Нефть" [14:49:14]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:49:14]line СНО: Общий режим [14:49:14]line Чек 62 22.06.2024 14:49 [14:49:14]line Смена: 395 ФФД: 1.0 [14:49:14]line ЗНМ: 0300000170 [14:49:14]line РНМ: 0000000000095696 [14:49:14]line Версия ККМ: 001 [14:49:14]line ФМ: 0000000000875009 [14:49:14]line ФД: 76866 [14:49:14]line ФПД: 781014812195 [14:49:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T144913&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76866&fm=781014812195&tin=02508201610067®Number=0000000000095696&sum=336500 [14:49:14]line 0 [14:49:14]written 0, free lines is 4095 [14:49:14]Write to MH i2c: 01 00 00 82 09 8B [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 07 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 07 00 82 09 00 00 00 00 00 B5 0B 52 [14:49:14]RasterBufferAndPrint [14:49:14]line [14:49:14]line [14:49:14]line [14:49:14]line [14:49:14]line [14:49:14]written 0, free lines is 3006 [14:49:14]MH_Cut [14:49:14]Write to MH i2c: D1 01 00 89 09 01 64 [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: D1 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: D1 01 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: D1 01 00 89 09 00 63 [14:49:14]Write to MH i2c: 01 00 00 8A 09 93 [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:15]Connected sock=11 [14:49:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 A8 02 00 00 1D A7 A0 02 BA DB 5A 03 01 00 03 00 94 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 30 31 30 36 37 37 39 33 35 30 30 35 06 04 24 00 D0 9C D0 B0 D1 80 D1 82 D0 B8 D0 BD D0 B8 20 4D 41 52 54 49 4E 49 20 45 58 54 52 41 20 44 52 59 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 7C 02 00 00 00 13 04 06 00 B8 7C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 37 36 32 32 32 30 31 34 35 30 34 32 37 06 04 3F 00 D0 A8 D0 BE D0 BA 20 41 47 20 D0 BC D0 BE D0 BB 20 D1 84 D1 83 D0 BD D0 B4 D1 83 D0 BA 20 D1 84 D0 BB D0 BE D1 83 2D D0 BF D0 B0 D0 BA 20 39 30 D0 B3 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 D8 53 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 22 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 8B 00 00 00 00 07 04 06 00 74 22 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 69 E4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 42 2C 01 00 35 04 06 00 00 B5 D8 1C 46 23 D6 D2 E2 5A 7D 6B DA 8D [14:49:15]*** Cut start [14:49:15]*** Partial cut [14:49:15]*** CUTSNS_PIN = 1 [14:49:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 4A 54 47 00 11 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 35 30 30 39 10 04 04 00 42 2C 01 00 F4 03 04 00 04 8B 76 66 B6 04 01 00 00 E4 97 25 CD 5A 58 38 D4 [14:49:15]CommunicateWithHost err = 0 [14:49:15]CheckOFDResponse [14:49:15]1017 (14) - 77093643461234 [14:49:15]1041 (16) - 0000000000875009 [14:49:15]1040 (4) - 76866 [14:49:15]1012 (4) - 22.06.2024 08:27 [14:49:15]1206 (1) - 0 [14:49:15]OFD Sender: Remove packet 76866 [14:49:15]ProducePacketName [14:49:15]name=ofd_packets/00076866 [14:49:15]NVStorageDeleteData [14:49:15]*** CUTSNS_PIN = 0 [14:49:16]*** Brake cut motor [14:49:16]OFD Sender: No OFD packet to send [14:49:16]Read from MH i2c: 01 [14:49:16]MH_I2C_Read... [14:49:16]*** Stop cut motor [14:49:16]*** Cut end [14:49:16]Read from MH i2c: 01 07 00 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: 01 07 00 8A 09 00 00 00 00 00 FF 0F A8 [14:49:16]process_action close_receipt done [14:49:16]requested_data is exist [14:49:16]produce_requested_data [14:49:16]requested_item fm.sn is exist - process it [14:49:16]wFMCommunicate request_size=4 [14:49:16]MH_SAM_APDU [14:49:16]CAPDU: 80 11 00 00 [14:49:16]Write to MH i2c: E2 08 00 8B 09 80 11 00 00 00 00 00 00 0E [14:49:16]Write i2c OK [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: E2 [14:49:16]MH_I2C_Read... [14:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:16]Read from MH i2c: E2 17 00 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: E2 17 00 8B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5E [14:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:49:16]wFMCommunicate OK [14:49:16]requested_item fd.num is exist - process it [14:49:16]SAM_PROTO_GetFieldsCounters [14:49:16]wFMCommunicate request_size=4 [14:49:16]MH_SAM_APDU [14:49:16]CAPDU: 80 13 00 00 [14:49:16]Write to MH i2c: E2 08 00 8C 09 80 13 00 00 00 00 00 00 11 [14:49:16]Write i2c OK [14:49:16]MH_I2C_Read... [14:49:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:16]Read from MH i2c: E2 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: E2 62 00 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: E2 62 00 8C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 42 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [14:49: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 42 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:16]wFMCommunicate OK [14:49:16]SAM_PROTO_GetFieldsCounters done [14:49:16]requested_item shift.num is exist - process it [14:49:16]requested_item shift.opened is exist - process it [14:49:16]req_shift_opened [14:49:16]FM_GetShiftState [14:49:16]SAM_PROTO_GetShiftState [14:49:16]wFMCommunicate request_size=4 [14:49:16]MH_SAM_APDU [14:49:16]CAPDU: 80 13 01 00 [14:49:16]Write to MH i2c: E2 08 00 8D 09 80 13 01 00 00 00 00 00 13 [14:49:16]Write i2c OK [14:49:16]MH_I2C_Read... [14:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:16]Read from MH i2c: E2 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: E2 0E 00 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: E2 0E 00 8D 09 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 09 [14:49:16]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:49:16]wFMCommunicate OK [14:49:16]SAM_PROTO_GetShiftState done [14:49:16]FM_GetShiftState done [14:49:16]req_shift_opened done [14:49:16]requested_item shift.open_date is exist - process it [14:49:16]req_shift_open_date [14:49:16]req_shift_open_date done [14:49:16]produce_requested_data done [14:49:16]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76866,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:49:16]process_action_free close_receipt [14:49:16]json_value_free [14:49:16]json_value_free done [14:49:16]process_json_proto returns [14:49:16]Send response to host [14:49:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76866,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:49:16]free response buf [14:49:16]execute_script done [14:49:16]execute_script returns [14:49:16]free content buf [14:49:16]Sock 8.Close socket [14:49:16]Sock 8.Thread stoped [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:25]accept exits with 9 [14:52:25]New connection [14:52:25]New thread 3067219300 created [14:52:25]Thread 3067362660 joined [14:52:25]Waiting for new connection... [14:52:25] Sock 9.Parse request [14:52:25]Sock 9.Check first char [14:52:25]Sock 9.First char is OK [14:52:25]request: POST /json_proto HTTP/1.0 [14:52:25]Method: POST [14:52:25]URL: /json_proto [14:52:25]Method is POST - this is cgi request [14:52:25]url: /json_proto [14:52:25]query_string will be loaded in cgi processing [14:52:25]execute_cgi json_proto POST (null) [14:52:25]execute_cgi path=json_proto method=POST [14:52:25]POST find Content-Length [14:52:25]Host: 172.17.39.195:8080 [14:52:25]Content-Length: 804 [14:52:25]Content-Type: application/json [14:52:25] [14:52:25]POST finish read [14:52:25]Found Content-Length = 804 [14:52:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:25]execute_script... [14:52: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)1694572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:25]POST & json_proto [14:52:25]process_json_proto [14:52:25]json parsed OK: [14:52:25]protocol is kg_v1.0 [14:52:25]action value=close_receipt [14:52:25]process_action close_receipt [14:52:25]cmd_close_receipt [14:52:25]MH_GetDate [14:52:25]Write to MH i2c: F0 00 00 8E 09 86 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: F0 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: F0 09 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: F0 09 00 8E 09 00 2B E5 76 66 99 81 91 64 8A [14:52:25]GetLastDocTimeStamp 1719067753 [14:52:25]current date 1719067947 [14:52:25]FM_GetShiftState [14:52:25]SAM_PROTO_GetShiftState [14:52:25]wFMCommunicate request_size=4 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 13 01 00 [14:52:25]Write to MH i2c: E2 08 00 8F 09 80 13 01 00 00 00 00 00 15 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 0E 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 0E 00 8F 09 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 0B [14:52:25]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:52:25]wFMCommunicate OK [14:52:25]SAM_PROTO_GetShiftState done [14:52:25]FM_GetShiftState done [14:52:25]opened in 1719016435 [14:52:25]opened+sec_in_day 1719102835 [14:52:25]quantity*price = 100064 [14:52:25]sum+1 = 100066 [14:52:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 63 22.06.2024 14:52 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76867 ФПД: 276283017699770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145227&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76867&fm=276283017699770&tin=02508201610067®Number=0000000000095696&sum=100065 [14:52:26]StoreToDocumentArchive [14:52:26]shift 395 fd 76867 [14:52:26]save to /storage/0395/doc_00076867 [14:52:26]save last doc name /storage/0395/doc_00076867 to /storage/kkm_last_doc_name [14:52:26]save OK [14:52:26]Clear old archive folders... [14:52:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:26]tlvbuf is 00902410 [14:52:26]SAM_PROTO_ClearQueue [14:52:26]wFMCommunicate request_size=4 [14:52:26]MH_SAM_APDU [14:52:26]CAPDU: 80 09 00 00 [14:52:26]Write to MH i2c: E2 08 00 9C 09 80 09 00 00 00 00 00 00 17 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:27]Read from MH i2c: E2 03 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 9C 09 00 90 00 19 [14:52:27]RAPDU: 90 00 [14:52:27]wFMCommunicate OK [14:52:27]SAM_PROTO_ClearQueue done [14:52:27]KKMCreateOFDPacket [14:52:27]OFDProtocolAddRootSTLVToBuf [14:52:27]FM_MakeSignedData [14:52:27]FM_MakeSignedData [14:52:27]SAM_PROTO_SignData [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 0D 01 02 [14:52:27]Write to MH i2c: E2 08 00 9D 09 80 0D 01 02 00 00 00 00 1F [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 9D 09 00 90 00 1A [14:52:27]RAPDU: 90 00 [14:52:27]wFMCommunicate OK [14:52:27]wFMCommunicate request_size=255 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2B E5 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 43 2C 01 00 35 04 06 00 FB [14:52:27]Write to MH i2c: E2 02 01 9E 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2B E5 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 43 2C 01 00 35 04 06 00 FB 00 00 CE [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 9E 09 00 90 00 1B [14:52:27]RAPDU: 90 00 [14:52:27]wFMCommunicate OK [14:52:27]wFMCommunicate request_size=10 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 0D 02 02 05 47 27 20 A1 BA [14:52:27]Write to MH i2c: E2 0D 00 9F 09 80 0D 02 02 05 00 47 27 20 A1 BA 00 00 15 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 9F 09 00 90 00 1C [14:52:27]RAPDU: 90 00 [14:52:27]wFMCommunicate OK [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 0D 03 02 [14:52:27]Write to MH i2c: E2 08 00 A0 09 80 0D 03 02 00 00 00 00 24 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 0B 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 0B 00 A0 09 00 88 C5 4E 09 68 A3 0A EF 90 00 CD [14:52:27]RAPDU: 88 C5 4E 09 68 A3 0A EF 90 00 [14:52:27]wFMCommunicate OK [14:52:27]SAM_PROTO_SignData done [14:52:27]FM_MakeSignedData done [14:52:27]CreateOFDProtocolMessage [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 11 00 00 [14:52:27]Write to MH i2c: E2 08 00 A1 09 80 11 00 00 00 00 00 00 24 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 17 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 17 00 A1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 74 [14:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:52:27]wFMCommunicate OK [14:52:27]CreateOFDProtocolMessage done [14:52:27]OFDSenderStorePacket 76867 [14:52:27]StoreOFDPacket docnum=76867 [14:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 EF 6B 07 01 B2 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2B E5 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 43 2C 01 00 35 04 06 00 FB 47 27 20 A1 BA 88 C5 4E 09 68 A3 0A EF [14:52:27]CheckFolder [14:52:27]dirname=/storage/ofd_packets [14:52:27]CheckFolder done [14:52:27]ProducePacketName [14:52:27]name=ofd_packets/00076867 [14:52:27]NVStorageSaveData ofd_packets/00076867 [14:52:27]File name is /storage/ofd_packets/00076867 [14:52:27]Write 301 bytes [14:52:27]NVStorageSaveData done [14:52:27]OFDSenderStorePacket done [14:52:27]KKMCreateOFDPacket done [14:52:27]NVStorageSaveData kkm_last_timestamp [14:52:27]File name is /storage/kkm_last_timestamp [14:52:27]Write 4 bytes [14:52:27]NVStorageSaveData done [14:52:27]ExternCall_PrintAddStr [14:52:27]wPrintStart [14:52:27]Write to MH i2c: 01 00 00 A2 09 AB [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: 01 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: 01 07 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 FF 0F C0 [14:52:27]RasterBufferAndPrint [14:52:27]line Счет N : (1)1694572 [14:52:27]line ИНН: 02508201610067 [14:52:27]line Контрольно-Кассовый Чек [14:52:27]line ПРОДАЖА [14:52:27]line ТРК (МРК, ГНК) : 43 [14:52:27]line Товар: 2710124130 [14:52:27]line Аи-92-К-5 [14:52:27]line 15.070 * 66.40 [14:52:27]line = 1000.65 [14:52:27]line НДС 12% НСП 1% [14:52:27]line > о реализуемом товаре [14:52:27]line ИТОГО: 1000.65 [14:52:27]line НСП 1% : 8.85 [14:52:27]line НДС 12% : 106.26 [14:52:27]line Наличными: 0.00 [14:52:27]line Безнал.: 1000.65 [14:52:27]line Место: АЗС № 144 "Партнер Нефть" [14:52:27]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [14:52:27]line СНО: Общий режим [14:52:27]line Чек 63 22.06.2024 14:52 [14:52:27]line Смена: 395 ФФД: 1.0 [14:52:27]line ЗНМ: 0300000170 [14:52:27]line РНМ: 0000000000095696 [14:52:27]line Версия ККМ: 001 [14:52:27]line Платежная система: O! деньги [14:52:27]line ФМ: 0000000000875009 [14:52:27]line ФД: 76867 [14:52:27]line ФПД: 276283017699770 [14:52:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T145227&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76867&fm=276283017699770&tin=02508201610067®Number=0000000000095696&sum=100065 [14:52:27]OFD Sender: Processing packet 76867 [packets to send 351, broken 350] [14:52:27]ProducePacketName [14:52:27]name=ofd_packets/00076867 [14:52:27]OFD Sender: To server: pG, [14:52:27]CommunicateWithHost lk.salyk.kg:30040 [14:52:27]ConnectInit lk.salyk.kg [14:52:27]written 0, free lines is 4095 [14:52:28]Connected sock=10 [14:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 EF 6B 07 01 B2 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2B E5 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 43 2C 01 00 35 04 06 00 FB 47 27 20 A1 BA 88 C5 4E 09 68 A3 0A EF [14:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 89 67 47 00 33 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 43 2C 01 00 F4 03 04 00 C5 8B 76 66 B6 04 01 00 00 5D 43 DC 52 FA 82 AB A1 [14:52:28]CommunicateWithHost err = 0 [14:52:28]CheckOFDResponse [14:52:28]1017 (14) - 77093643461234 [14:52:28]1041 (16) - 0000000000875009 [14:52:28]1040 (4) - 76867 [14:52:28]1012 (4) - 22.06.2024 08:31 [14:52:28]1206 (1) - 0 [14:52:28]OFD Sender: Remove packet 76867 [14:52:28]ProducePacketName [14:52:28]name=ofd_packets/00076867 [14:52:28]NVStorageDeleteData [14:52:28]Write to MH i2c: 01 00 00 CC 09 D5 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 CC 09 00 00 00 00 00 F6 0C DE [14:52:28]RasterBufferAndPrint [14:52:28]line [14:52:28]line [14:52:28]line [14:52:28]line [14:52:28]line [14:52:28]written 0, free lines is 3326 [14:52:28]MH_Cut [14:52:28]Write to MH i2c: D1 01 00 D3 09 01 AE [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: D1 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: D1 01 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: D1 01 00 D3 09 00 AD [14:52:28]Write to MH i2c: 01 00 00 D4 09 DD [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]OFD Sender: No OFD packet to send [14:52:29]*** Cut start [14:52:29]*** Partial cut [14:52:29]*** CUTSNS_PIN = 1 [14:52:29]*** CUTSNS_PIN = 0 [14:52:29]*** Brake cut motor [14:52:29]Read from MH i2c: 01 [14:52:29]MH_I2C_Read... [14:52:29]*** Stop cut motor [14:52:29]*** Cut end [14:52:29]Read from MH i2c: 01 07 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: 01 07 00 D4 09 00 00 00 00 00 FF 0F F2 [14:52:29]process_action close_receipt done [14:52:29]requested_data is exist [14:52:29]produce_requested_data [14:52:29]requested_item fm.sn is exist - process it [14:52:29]wFMCommunicate request_size=4 [14:52:29]MH_SAM_APDU [14:52:29]CAPDU: 80 11 00 00 [14:52:29]Write to MH i2c: E2 08 00 D5 09 80 11 00 00 00 00 00 00 58 [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:29]Read from MH i2c: E2 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: E2 17 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: E2 17 00 D5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A8 [14:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [14:52:29]wFMCommunicate OK [14:52:29]requested_item fd.num is exist - process it [14:52:29]SAM_PROTO_GetFieldsCounters [14:52:29]wFMCommunicate request_size=4 [14:52:29]MH_SAM_APDU [14:52:29]CAPDU: 80 13 00 00 [14:52:29]Write to MH i2c: E2 08 00 D6 09 80 13 00 00 00 00 00 00 5B [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:29]Read from MH i2c: E2 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: E2 62 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: E2 62 00 D6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 43 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [14:52: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 43 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:29]wFMCommunicate OK [14:52:29]SAM_PROTO_GetFieldsCounters done [14:52:29]requested_item shift.num is exist - process it [14:52:29]requested_item shift.opened is exist - process it [14:52:29]req_shift_opened [14:52:29]FM_GetShiftState [14:52:29]SAM_PROTO_GetShiftState [14:52:29]wFMCommunicate request_size=4 [14:52:29]MH_SAM_APDU [14:52:29]CAPDU: 80 13 01 00 [14:52:29]Write to MH i2c: E2 08 00 D7 09 80 13 01 00 00 00 00 00 5D [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:29]Read from MH i2c: E2 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: E2 0E 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: E2 0E 00 D7 09 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 53 [14:52:29]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [14:52:29]wFMCommunicate OK [14:52:29]SAM_PROTO_GetShiftState done [14:52:29]FM_GetShiftState done [14:52:29]req_shift_opened done [14:52:29]requested_item shift.open_date is exist - process it [14:52:29]req_shift_open_date [14:52:29]req_shift_open_date done [14:52:29]produce_requested_data done [14:52:29]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76867,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [14:52:29]process_action_free close_receipt [14:52:29]json_value_free [14:52:29]json_value_free done [14:52:29]process_json_proto returns [14:52:29]Send response to host [14:52:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76867,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [14:52:29]free response buf [14:52:29]execute_script done [14:52:29]execute_script returns [14:52:29]free content buf [14:52:29]Sock 9.Close socket [14:52:29]Sock 9.Thread stoped [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:02]accept exits with 8 [15:11:02]New connection [15:11:02]New thread 3067362660 created [15:11:02]Thread 3067219300 joined [15:11:02]Waiting for new connection... [15:11:02] Sock 8.Parse request [15:11:02]Sock 8.Check first char [15:11:02]Sock 8.First char is OK [15:11:02]request: POST /json_proto HTTP/1.0 [15:11:02]Method: POST [15:11:02]URL: /json_proto [15:11:02]Method is POST - this is cgi request [15:11:02]url: /json_proto [15:11:02]query_string will be loaded in cgi processing [15:11:02]execute_cgi json_proto POST (null) [15:11:02]execute_cgi path=json_proto method=POST [15:11:02]POST find Content-Length [15:11:02]Host: 172.17.39.195:8080 [15:11:02]Content-Length: 614 [15:11:02]Content-Type: application/json [15:11:02] [15:11:02]POST finish read [15:11:02]Found Content-Length = 614 [15:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220931", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:02]execute_script... [15:11:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220931", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:02]POST & json_proto [15:11:02]process_json_proto [15:11:02]json parsed OK: [15:11:02]protocol is kg_v1.0 [15:11:02]action value=close_receipt [15:11:02]process_action close_receipt [15:11:02]cmd_close_receipt [15:11:02]MH_GetDate [15:11:02]Write to MH i2c: F0 00 00 D8 09 D0 [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: F0 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: F0 09 00 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: F0 09 00 D8 09 00 87 E9 76 66 99 81 91 64 34 [15:11:02]GetLastDocTimeStamp 1719067947 [15:11:02]current date 1719069063 [15:11:02]FM_GetShiftState [15:11:02]SAM_PROTO_GetShiftState [15:11:02]wFMCommunicate request_size=4 [15:11:02]MH_SAM_APDU [15:11:02]CAPDU: 80 13 01 00 [15:11:02]Write to MH i2c: E2 08 00 D9 09 80 13 01 00 00 00 00 00 5F [15:11:02]Write i2c OK [15:11:02]MH_I2C_Read... [15:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:02]Read from MH i2c: E2 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 0E 00 [15:11:02]MH_I2C_Read... [15:11:02]Read from MH i2c: E2 0E 00 D9 09 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 55 [15:11:02]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:11:02]wFMCommunicate OK [15:11:02]SAM_PROTO_GetShiftState done [15:11:02]FM_GetShiftState done [15:11:02]opened in 1719016435 [15:11:02]opened+sec_in_day 1719102835 [15:11:02]quantity*price = 11000 [15:11:02]sum+1 = 11001 [15:11:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 64 22.06.2024 15:11 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76868 ФПД: 278279166072259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151103&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76868&fm=278279166072259&tin=02508201610067®Number=0000000000095696&sum=11000 0 [15:11:03]StoreToDocumentArchive [15:11:03]shift 395 fd 76868 [15:11:03]save to /storage/0395/doc_00076868 [15:11:03]save last doc name /storage/0395/doc_00076868 to /storage/kkm_last_doc_name [15:11:03]save OK [15:11:03]Clear old archive folders... [15:11:03]ProcessDocumentItem done err = 0, tmpTLVsize=266 [15:11:03]tlvbuf is 008E5B80 [15:11:03]SAM_PROTO_ClearQueue [15:11:03]wFMCommunicate request_size=4 [15:11:03]MH_SAM_APDU [15:11:03]CAPDU: 80 09 00 00 [15:11:03]Write to MH i2c: E2 08 00 E6 09 80 09 00 00 00 00 00 00 61 [15:11:03]Write i2c OK [15:11:03]MH_I2C_Read... [15:11:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:03]Read from MH i2c: E2 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 03 00 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 03 00 E6 09 00 90 00 63 [15:11:03]RAPDU: 90 00 [15:11:03]wFMCommunicate OK [15:11:03]SAM_PROTO_ClearQueue done [15:11:03]KKMCreateOFDPacket [15:11:03]OFDProtocolAddRootSTLVToBuf [15:11:03]FM_MakeSignedData [15:11:03]FM_MakeSignedData [15:11:03]SAM_PROTO_SignData [15:11:03]wFMCommunicate request_size=4 [15:11:03]MH_SAM_APDU [15:11:03]CAPDU: 80 0D 01 02 [15:11:03]Write to MH i2c: E2 08 00 E7 09 80 0D 01 02 00 00 00 00 69 [15:11:03]Write i2c OK [15:11:03]MH_I2C_Read... [15:11:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:03]Read from MH i2c: E2 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 03 00 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 03 00 E7 09 00 90 00 64 [15:11:03]RAPDU: 90 00 [15:11:03]wFMCommunicate OK [15:11:03]wFMCommunicate request_size=255 [15:11:03]MH_SAM_APDU [15:11:03]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 87 E9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [15:11:03]Write to MH i2c: E2 02 01 E8 09 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 87 E9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 FE [15:11:03]Write i2c OK [15:11:03]MH_I2C_Read... [15:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:03]Read from MH i2c: E2 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 03 00 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 03 00 E8 09 00 90 00 65 [15:11:03]RAPDU: 90 00 [15:11:03]wFMCommunicate OK [15:11:03]wFMCommunicate request_size=25 [15:11:03]MH_SAM_APDU [15:11:03]CAPDU: 80 0D 02 02 14 30 39 10 04 04 00 44 2C 01 00 35 04 06 00 FD 17 EA D7 95 C3 [15:11:03]Write to MH i2c: E2 1C 00 E9 09 80 0D 02 02 14 00 30 39 10 04 04 00 44 2C 01 00 35 04 06 00 FD 17 EA D7 95 C3 00 00 F2 [15:11:03]Write i2c OK [15:11:03]MH_I2C_Read... [15:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:03]Read from MH i2c: E2 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 03 00 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 03 00 E9 09 00 90 00 66 [15:11:03]RAPDU: 90 00 [15:11:03]wFMCommunicate OK [15:11:03]wFMCommunicate request_size=4 [15:11:03]MH_SAM_APDU [15:11:03]CAPDU: 80 0D 03 02 [15:11:03]Write to MH i2c: E2 08 00 EA 09 80 0D 03 02 00 00 00 00 6E [15:11:03]Write i2c OK [15:11:03]MH_I2C_Read... [15:11:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:03]Read from MH i2c: E2 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 0B 00 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 0B 00 EA 09 00 A2 2D 2E E4 D9 02 49 39 90 00 AD [15:11:03]RAPDU: A2 2D 2E E4 D9 02 49 39 90 00 [15:11:03]wFMCommunicate OK [15:11:03]SAM_PROTO_SignData done [15:11:03]FM_MakeSignedData done [15:11:03]CreateOFDProtocolMessage [15:11:03]wFMCommunicate request_size=4 [15:11:03]MH_SAM_APDU [15:11:03]CAPDU: 80 11 00 00 [15:11:03]Write to MH i2c: E2 08 00 EB 09 80 11 00 00 00 00 00 00 6E [15:11:03]Write i2c OK [15:11:03]MH_I2C_Read... [15:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:03]Read from MH i2c: E2 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 17 00 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: E2 17 00 EB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BE [15:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:11:03]wFMCommunicate OK [15:11:03]CreateOFDProtocolMessage done [15:11:03]OFDSenderStorePacket 76868 [15:11:03]StoreOFDPacket docnum=76868 [15:11:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 BF 7F 16 01 E9 0C 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 87 E9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 44 2C 01 00 35 04 06 00 FD 17 EA D7 95 C3 A2 2D 2E E4 D9 02 49 39 [15:11:03]CheckFolder [15:11:03]dirname=/storage/ofd_packets [15:11:03]CheckFolder done [15:11:03]ProducePacketName [15:11:03]name=ofd_packets/00076868 [15:11:03]NVStorageSaveData ofd_packets/00076868 [15:11:03]File name is /storage/ofd_packets/00076868 [15:11:03]Write 316 bytes [15:11:03]NVStorageSaveData done [15:11:03]OFDSenderStorePacket done [15:11:03]KKMCreateOFDPacket done [15:11:03]NVStorageSaveData kkm_last_timestamp [15:11:03]File name is /storage/kkm_last_timestamp [15:11:03]Write 4 bytes [15:11:03]NVStorageSaveData done [15:11:03]ExternCall_PrintAddStr [15:11:03]wPrintStart [15:11:03]Write to MH i2c: 01 00 00 EC 09 F5 [15:11:03]Write i2c OK [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: 01 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: 01 07 00 [15:11:03]MH_I2C_Read... [15:11:03]Read from MH i2c: 01 07 00 EC 09 00 00 00 00 00 FF 0F 0A [15:11:03]RasterBufferAndPrint [15:11:03]line Счет N : (3)220931 [15:11:03]line ИНН: 02508201610067 [15:11:03]line Контрольно-Кассовый Чек [15:11:03]line ПРОДАЖА [15:11:03]line Товар: 4870001570071 [15:11:03]line Напиток Pepsi 1л [15:11:03]line 1.000 * 110.00 [15:11:03]line = 110.00 [15:11:03]line НДС 12% НСП 1% [15:11:03]line > о реализуемом товаре [15:11:03]line ИТОГО: 110.00 [15:11:03]line НСП 1% : 0.97 [15:11:03]line НДС 12% : 11.68 [15:11:03]line Наличными: 110.00 [15:11:03]line Безнал.: 0.00 [15:11:03]line Место: АЗС № 144 "Партнер Нефть" [15:11:03]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:11:03]line СНО: Общий режим [15:11:03]line Чек 64 22.06.2024 15:11 [15:11:03]line Смена: 395 ФФД: 1.0 [15:11:03]line ЗНМ: 0300000170 [15:11:03]line РНМ: 0000000000095696 [15:11:03]line Версия ККМ: 001 [15:11:03]line ФМ: 0000000000875009 [15:11:03]line ФД: 76868 [15:11:03]line ФПД: 278279166072259 [15:11:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T151103&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76868&fm=278279166072259&tin=02508201610067®Number=0000000000095696&sum=11000 [15:11:03]line 0 [15:11:03]written 0, free lines is 4095 [15:11:03]OFD Sender: Processing packet 76868 [packets to send 351, broken 350] [15:11:03]ProducePacketName [15:11:03]name=ofd_packets/00076868 [15:11:03]OFD Sender: To server: pG, [15:11:03]CommunicateWithHost lk.salyk.kg:30040 [15:11:03]ConnectInit lk.salyk.kg [15:11:04]Connected sock=11 [15:11:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 BF 7F 16 01 E9 0C 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 87 E9 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 44 2C 01 00 35 04 06 00 FD 17 EA D7 95 C3 A2 2D 2E E4 D9 02 49 39 [15:11:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 07 75 47 00 AA EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 44 2C 01 00 F4 03 04 00 21 90 76 66 B6 04 01 00 00 74 DE D4 B4 BE 85 5B 8D [15:11:04]CommunicateWithHost err = 0 [15:11:04]CheckOFDResponse [15:11:04]1017 (14) - 77093643461234 [15:11:04]1041 (16) - 0000000000875009 [15:11:04]1040 (4) - 76868 [15:11:04]1012 (4) - 22.06.2024 08:49 [15:11:04]1206 (1) - 0 [15:11:04]OFD Sender: Remove packet 76868 [15:11:04]ProducePacketName [15:11:04]name=ofd_packets/00076868 [15:11:04]NVStorageDeleteData [15:11:04]Write to MH i2c: 01 00 00 14 0A 1E [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: 01 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: 01 07 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: 01 07 00 14 0A 00 00 00 00 00 F8 0C 29 [15:11:04]RasterBufferAndPrint [15:11:04]line [15:11:04]line [15:11:04]line [15:11:04]line [15:11:04]line [15:11:04]written 0, free lines is 3326 [15:11:04]MH_Cut [15:11:04]Write to MH i2c: D1 01 00 1B 0A 01 F7 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: D1 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: D1 01 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: D1 01 00 1B 0A 00 F6 [15:11:04]Write to MH i2c: 01 00 00 1C 0A 26 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]OFD Sender: No OFD packet to send [15:11:04]*** Cut start [15:11:04]*** Partial cut [15:11:04]*** CUTSNS_PIN = 1 [15:11:05]*** CUTSNS_PIN = 0 [15:11:05]*** Brake cut motor [15:11:05]Read from MH i2c: 01 [15:11:05]MH_I2C_Read... [15:11:05]*** Stop cut motor [15:11:05]*** Cut end [15:11:05]Read from MH i2c: 01 07 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: 01 07 00 1C 0A 00 00 00 00 00 FF 0F 3B [15:11:05]process_action close_receipt done [15:11:05]requested_data is exist [15:11:05]produce_requested_data [15:11:05]requested_item fm.sn is exist - process it [15:11:05]wFMCommunicate request_size=4 [15:11:05]MH_SAM_APDU [15:11:05]CAPDU: 80 11 00 00 [15:11:05]Write to MH i2c: E2 08 00 1D 0A 80 11 00 00 00 00 00 00 A1 [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:05]Read from MH i2c: E2 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 17 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 17 00 1D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F1 [15:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:11:05]wFMCommunicate OK [15:11:05]requested_item fd.num is exist - process it [15:11:05]SAM_PROTO_GetFieldsCounters [15:11:05]wFMCommunicate request_size=4 [15:11:05]MH_SAM_APDU [15:11:05]CAPDU: 80 13 00 00 [15:11:05]Write to MH i2c: E2 08 00 1E 0A 80 13 00 00 00 00 00 00 A4 [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:05]Read from MH i2c: E2 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 62 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 62 00 1E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 44 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [15:11: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 44 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:05]wFMCommunicate OK [15:11:05]SAM_PROTO_GetFieldsCounters done [15:11:05]requested_item shift.num is exist - process it [15:11:05]requested_item shift.opened is exist - process it [15:11:05]req_shift_opened [15:11:05]FM_GetShiftState [15:11:05]SAM_PROTO_GetShiftState [15:11:05]wFMCommunicate request_size=4 [15:11:05]MH_SAM_APDU [15:11:05]CAPDU: 80 13 01 00 [15:11:05]Write to MH i2c: E2 08 00 1F 0A 80 13 01 00 00 00 00 00 A6 [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:05]Read from MH i2c: E2 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 0E 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 0E 00 1F 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 9C [15:11:05]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:11:05]wFMCommunicate OK [15:11:05]SAM_PROTO_GetShiftState done [15:11:05]FM_GetShiftState done [15:11:05]req_shift_opened done [15:11:05]requested_item shift.open_date is exist - process it [15:11:05]req_shift_open_date [15:11:05]req_shift_open_date done [15:11:05]produce_requested_data done [15:11:05]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76868,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [15:11:05]process_action_free close_receipt [15:11:05]json_value_free [15:11:05]json_value_free done [15:11:05]process_json_proto returns [15:11:05]Send response to host [15:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76868,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [15:11:05]free response buf [15:11:05]execute_script done [15:11:05]execute_script returns [15:11:05]free content buf [15:11:05]Sock 8.Close socket [15:11:05]Sock 8.Thread stoped [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:12]accept exits with 9 [15:21:12]New connection [15:21:12]New thread 3067219300 created [15:21:12]Thread 3067362660 joined [15:21:12]Waiting for new connection... [15:21:12] Sock 9.Parse request [15:21:12]Sock 9.Check first char [15:21:12]Sock 9.First char is OK [15:21:12]request: POST /json_proto HTTP/1.0 [15:21:12]Method: POST [15:21:12]URL: /json_proto [15:21:12]Method is POST - this is cgi request [15:21:12]url: /json_proto [15:21:12]query_string will be loaded in cgi processing [15:21:12]execute_cgi json_proto POST (null) [15:21:12]execute_cgi path=json_proto method=POST [15:21:12]POST find Content-Length [15:21:12]Host: 172.17.39.195:8080 [15:21:12]Content-Length: 664 [15:21:12]Content-Type: application/json [15:21:12] [15:21:12]POST finish read [15:21:12]Found Content-Length = 664 [15:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 30.000, "sum" : 2217.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 2217.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:12]execute_script... [15:21: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)1694590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.90, "quantity" : 30.000, "sum" : 2217.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 2217.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:12]POST & json_proto [15:21:12]process_json_proto [15:21:12]json parsed OK: [15:21:12]protocol is kg_v1.0 [15:21:12]action value=close_receipt [15:21:12]process_action close_receipt [15:21:12]cmd_close_receipt [15:21:12]MH_GetDate [15:21:12]Write to MH i2c: F0 00 00 20 0A 19 [15:21:12]Write i2c OK [15:21:12]MH_I2C_Read... [15:21:12]Read from MH i2c: F0 [15:21:12]MH_I2C_Read... [15:21:12]Read from MH i2c: F0 09 00 [15:21:12]MH_I2C_Read... [15:21:12]Read from MH i2c: F0 09 00 20 0A 00 EA EB 76 66 99 81 91 64 E2 [15:21:12]GetLastDocTimeStamp 1719069063 [15:21:12]current date 1719069674 [15:21:12]FM_GetShiftState [15:21:12]SAM_PROTO_GetShiftState [15:21:12]wFMCommunicate request_size=4 [15:21:12]MH_SAM_APDU [15:21:12]CAPDU: 80 13 01 00 [15:21:12]Write to MH i2c: E2 08 00 21 0A 80 13 01 00 00 00 00 00 A8 [15:21:12]Write i2c OK [15:21:12]MH_I2C_Read... [15:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:12]Read from MH i2c: E2 [15:21:12]MH_I2C_Read... [15:21:12]Read from MH i2c: E2 0E 00 [15:21:12]MH_I2C_Read... [15:21:12]Read from MH i2c: E2 0E 00 21 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 9E [15:21:12]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:21:12]wFMCommunicate OK [15:21:12]SAM_PROTO_GetShiftState done [15:21:12]FM_GetShiftState done [15:21:12]opened in 1719016435 [15:21:12]opened+sec_in_day 1719102835 [15:21:12]quantity*price = 221700 [15:21:12]sum+1 = 221701 [15:21:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2217.00 Внесено: 5000.00 СДАЧА: 2783.00 НСП 1% : 19.62 НДС 12% : 235.43 Наличными: 2217.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 65 22.06.2024 15:21 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76869 ФПД: 189324455635118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152114&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76869&fm=189324455635118&tin=02508201610067®Number=0000000000095696&sum=221700 [15:21:13]StoreToDocumentArchive [15:21:13]shift 395 fd 76869 [15:21:13]save to /storage/0395/doc_00076869 [15:21:13]save last doc name /storage/0395/doc_00076869 to /storage/kkm_last_doc_name [15:21:13]save OK [15:21:13]Clear old archive folders... [15:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:13]tlvbuf is 008E3950 [15:21:13]SAM_PROTO_ClearQueue [15:21:13]wFMCommunicate request_size=4 [15:21:13]MH_SAM_APDU [15:21:13]CAPDU: 80 09 00 00 [15:21:13]Write to MH i2c: E2 08 00 2E 0A 80 09 00 00 00 00 00 00 AA [15:21:13]Write i2c OK [15:21:13]MH_I2C_Read... [15:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:13]Read from MH i2c: E2 [15:21:13]MH_I2C_Read... [15:21:13]Read from MH i2c: E2 03 00 [15:21:13]MH_I2C_Read... [15:21:13]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [15:21:13]RAPDU: 90 00 [15:21:13]wFMCommunicate OK [15:21:13]SAM_PROTO_ClearQueue done [15:21:13]KKMCreateOFDPacket [15:21:13]OFDProtocolAddRootSTLVToBuf [15:21:13]FM_MakeSignedData [15:21:13]FM_MakeSignedData [15:21:13]SAM_PROTO_SignData [15:21:13]wFMCommunicate request_size=4 [15:21:13]MH_SAM_APDU [15:21:13]CAPDU: 80 0D 01 02 [15:21:13]Write to MH i2c: E2 08 00 2F 0A 80 0D 01 02 00 00 00 00 B2 [15:21:13]Write i2c OK [15:21:13]MH_I2C_Read... [15:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:13]Read from MH i2c: E2 [15:21:13]MH_I2C_Read... [15:21:13]Read from MH i2c: E2 03 00 [15:21:13]MH_I2C_Read... [15:21:13]Read from MH i2c: E2 03 00 2F 0A 00 90 00 AD [15:21:13]RAPDU: 90 00 [15:21:13]wFMCommunicate OK [15:21:13]wFMCommunicate request_size=255 [15:21:13]MH_SAM_APDU [15:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA EB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2C 01 00 35 04 06 00 AC [15:21:13]Write to MH i2c: E2 02 01 30 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA EB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2C 01 00 35 04 06 00 AC 00 00 3E [15:21:13]Write i2c OK [15:21:13]MH_I2C_Read... [15:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:14]Read from MH i2c: E2 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 03 00 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [15:21:14]RAPDU: 90 00 [15:21:14]wFMCommunicate OK [15:21:14]wFMCommunicate request_size=10 [15:21:14]MH_SAM_APDU [15:21:14]CAPDU: 80 0D 02 02 05 30 88 EC E8 AE [15:21:14]Write to MH i2c: E2 0D 00 31 0A 80 0D 02 02 05 00 30 88 EC E8 AE 00 00 F9 [15:21:14]Write i2c OK [15:21:14]MH_I2C_Read... [15:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:14]Read from MH i2c: E2 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 03 00 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 03 00 31 0A 00 90 00 AF [15:21:14]RAPDU: 90 00 [15:21:14]wFMCommunicate OK [15:21:14]wFMCommunicate request_size=4 [15:21:14]MH_SAM_APDU [15:21:14]CAPDU: 80 0D 03 02 [15:21:14]Write to MH i2c: E2 08 00 32 0A 80 0D 03 02 00 00 00 00 B7 [15:21:14]Write i2c OK [15:21:14]MH_I2C_Read... [15:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:14]Read from MH i2c: E2 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 0B 00 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 0B 00 32 0A 00 DC 7B B0 AB 0D 02 50 99 90 00 62 [15:21:14]RAPDU: DC 7B B0 AB 0D 02 50 99 90 00 [15:21:14]wFMCommunicate OK [15:21:14]SAM_PROTO_SignData done [15:21:14]FM_MakeSignedData done [15:21:14]CreateOFDProtocolMessage [15:21:14]wFMCommunicate request_size=4 [15:21:14]MH_SAM_APDU [15:21:14]CAPDU: 80 11 00 00 [15:21:14]Write to MH i2c: E2 08 00 33 0A 80 11 00 00 00 00 00 00 B7 [15:21:14]Write i2c OK [15:21:14]MH_I2C_Read... [15:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:14]Read from MH i2c: E2 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 17 00 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: E2 17 00 33 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 07 [15:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:21:14]wFMCommunicate OK [15:21:14]CreateOFDProtocolMessage done [15:21:14]OFDSenderStorePacket 76869 [15:21:14]StoreOFDPacket docnum=76869 [15:21:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 0F 99 07 01 4A A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA EB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2C 01 00 35 04 06 00 AC 30 88 EC E8 AE DC 7B B0 AB 0D 02 50 99 [15:21:14]CheckFolder [15:21:14]dirname=/storage/ofd_packets [15:21:14]CheckFolder done [15:21:14]ProducePacketName [15:21:14]name=ofd_packets/00076869 [15:21:14]NVStorageSaveData ofd_packets/00076869 [15:21:14]File name is /storage/ofd_packets/00076869 [15:21:14]Write 301 bytes [15:21:14]NVStorageSaveData done [15:21:14]OFDSenderStorePacket done [15:21:14]KKMCreateOFDPacket done [15:21:14]NVStorageSaveData kkm_last_timestamp [15:21:14]File name is /storage/kkm_last_timestamp [15:21:14]Write 4 bytes [15:21:14]NVStorageSaveData done [15:21:14]ExternCall_PrintAddStr [15:21:14]wPrintStart [15:21:14]Write to MH i2c: 01 00 00 34 0A 3E [15:21:14]Write i2c OK [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: 01 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: 01 07 00 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: 01 07 00 34 0A 00 00 00 00 00 FF 0F 53 [15:21:14]RasterBufferAndPrint [15:21:14]line Счет N : (1)1694590 [15:21:14]line ИНН: 02508201610067 [15:21:14]line Контрольно-Кассовый Чек [15:21:14]line ПРОДАЖА [15:21:14]line ТРК (МРК, ГНК) : 41 [15:21:14]line Товар: 2710124500 [15:21:14]line Аи-95-К-3 [15:21:14]line 30.000 * 73.90 [15:21:14]line = 2217.00 [15:21:14]line НДС 12% НСП 1% [15:21:14]line > о реализуемом товаре [15:21:14]line ИТОГО: 2217.00 [15:21:14]line Внесено: 5000.00 [15:21:14]line СДАЧА: 2783.00 [15:21:14]line НСП 1% : 19.62 [15:21:14]line НДС 12% : 235.43 [15:21:14]line Наличными: 2217.00 [15:21:14]line Безнал.: 0.00 [15:21:14]line Место: АЗС № 144 "Партнер Нефть" [15:21:14]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:21:14]line СНО: Общий режим [15:21:14]line Чек 65 22.06.2024 15:21 [15:21:14]line Смена: 395 ФФД: 1.0 [15:21:14]line ЗНМ: 0300000170 [15:21:14]line РНМ: 0000000000095696 [15:21:14]line Версия ККМ: 001 [15:21:14]line ФМ: 0000000000875009 [15:21:14]line ФД: 76869 [15:21:14]line ФПД: 189324455635118 [15:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152114&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76869&fm=189324455635118&tin=02508201610067®Number=0000000000095696&sum=221700 [15:21:14]OFD Sender: Processing packet 76869 [packets to send 351, broken 350] [15:21:14]ProducePacketName [15:21:14]name=ofd_packets/00076869 [15:21:14]OFD Sender: To server: pG, [15:21:14]CommunicateWithHost lk.salyk.kg:30040 [15:21:14]ConnectInit lk.salyk.kg [15:21:14]written 0, free lines is 4095 [15:21:14]Connected sock=10 [15:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 0F 99 07 01 4A A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EA EB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2C 01 00 35 04 06 00 AC 30 88 EC E8 AE DC 7B B0 AB 0D 02 50 99 [15:21:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 EB 27 47 00 9F 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 45 2C 01 00 F4 03 04 00 83 92 76 66 B6 04 01 00 00 9E 24 27 06 18 DB 10 8F [15:21:14]CommunicateWithHost err = 0 [15:21:14]CheckOFDResponse [15:21:14]1017 (14) - 77093643461234 [15:21:14]1041 (16) - 0000000000875009 [15:21:14]1040 (4) - 76869 [15:21:14]1012 (4) - 22.06.2024 08:59 [15:21:14]1206 (1) - 0 [15:21:14]OFD Sender: Remove packet 76869 [15:21:14]ProducePacketName [15:21:14]name=ofd_packets/00076869 [15:21:14]NVStorageDeleteData [15:21:14]Write to MH i2c: 01 00 00 5E 0A 68 [15:21:14]Write i2c OK [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: 01 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: 01 07 00 [15:21:14]MH_I2C_Read... [15:21:14]Read from MH i2c: 01 07 00 5E 0A 00 00 00 00 00 FA 0C 75 [15:21:14]RasterBufferAndPrint [15:21:14]line [15:21:14]line [15:21:14]line [15:21:14]line [15:21:14]line [15:21:15]written 0, free lines is 3328 [15:21:15]MH_Cut [15:21:15]Write to MH i2c: D1 01 00 65 0A 01 41 [15:21:15]Write i2c OK [15:21:15]MH_I2C_Read... [15:21:15]Read from MH i2c: D1 [15:21:15]MH_I2C_Read... [15:21:15]Read from MH i2c: D1 01 00 [15:21:15]MH_I2C_Read... [15:21:15]Read from MH i2c: D1 01 00 65 0A 00 40 [15:21:15]Write to MH i2c: 01 00 00 66 0A 70 [15:21:15]Write i2c OK [15:21:15]MH_I2C_Read... [15:21:15]OFD Sender: No OFD packet to send [15:21:15]*** Cut start [15:21:15]*** Partial cut [15:21:15]*** CUTSNS_PIN = 1 [15:21:15]*** CUTSNS_PIN = 0 [15:21:16]*** Brake cut motor [15:21:16]Read from MH i2c: 01 [15:21:16]MH_I2C_Read... [15:21:16]*** Stop cut motor [15:21:16]*** Cut end [15:21:16]Read from MH i2c: 01 07 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: 01 07 00 66 0A 00 00 00 00 00 FF 0F 85 [15:21:16]process_action close_receipt done [15:21:16]requested_data is exist [15:21:16]produce_requested_data [15:21:16]requested_item fm.sn is exist - process it [15:21:16]wFMCommunicate request_size=4 [15:21:16]MH_SAM_APDU [15:21:16]CAPDU: 80 11 00 00 [15:21:16]Write to MH i2c: E2 08 00 67 0A 80 11 00 00 00 00 00 00 EB [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:16]Read from MH i2c: E2 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 17 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 17 00 67 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3B [15:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:21:16]wFMCommunicate OK [15:21:16]requested_item fd.num is exist - process it [15:21:16]SAM_PROTO_GetFieldsCounters [15:21:16]wFMCommunicate request_size=4 [15:21:16]MH_SAM_APDU [15:21:16]CAPDU: 80 13 00 00 [15:21:16]Write to MH i2c: E2 08 00 68 0A 80 13 00 00 00 00 00 00 EE [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:16]Read from MH i2c: E2 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 62 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 62 00 68 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 45 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [15:21: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 45 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:16]wFMCommunicate OK [15:21:16]SAM_PROTO_GetFieldsCounters done [15:21:16]requested_item shift.num is exist - process it [15:21:16]requested_item shift.opened is exist - process it [15:21:16]req_shift_opened [15:21:16]FM_GetShiftState [15:21:16]SAM_PROTO_GetShiftState [15:21:16]wFMCommunicate request_size=4 [15:21:16]MH_SAM_APDU [15:21:16]CAPDU: 80 13 01 00 [15:21:16]Write to MH i2c: E2 08 00 69 0A 80 13 01 00 00 00 00 00 F0 [15:21:16]Write i2c OK [15:21:16]MH_I2C_Read... [15:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:16]Read from MH i2c: E2 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 0E 00 [15:21:16]MH_I2C_Read... [15:21:16]Read from MH i2c: E2 0E 00 69 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 E6 [15:21:16]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:21:16]wFMCommunicate OK [15:21:16]SAM_PROTO_GetShiftState done [15:21:16]FM_GetShiftState done [15:21:16]req_shift_opened done [15:21:16]requested_item shift.open_date is exist - process it [15:21:16]req_shift_open_date [15:21:16]req_shift_open_date done [15:21:16]produce_requested_data done [15:21:16]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76869,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [15:21:16]process_action_free close_receipt [15:21:16]json_value_free [15:21:16]json_value_free done [15:21:16]process_json_proto returns [15:21:16]Send response to host [15:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76869,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [15:21:16]free response buf [15:21:16]execute_script done [15:21:16]execute_script returns [15:21:16]free content buf [15:21:16]Sock 9.Close socket [15:21:16]Sock 9.Thread stoped [15:21:20]OFD Sender: No OFD packet to send [15:21:23]accept exits with 8 [15:21:23]New connection [15:21:23]New thread 3067362660 created [15:21:23]Thread 3067219300 joined [15:21:23]Waiting for new connection... [15:21:23] Sock 8.Parse request [15:21:23]Sock 8.Check first char [15:21:23]Sock 8.First char is OK [15:21:23]request: POST /json_proto HTTP/1.0 [15:21:23]Method: POST [15:21:23]URL: /json_proto [15:21:23]Method is POST - this is cgi request [15:21:23]url: /json_proto [15:21:23]query_string will be loaded in cgi processing [15:21:23]execute_cgi json_proto POST (null) [15:21:23]execute_cgi path=json_proto method=POST [15:21:23]POST find Content-Length [15:21:23]Host: 172.17.39.195:8080 [15:21:23]Content-Length: 801 [15:21:23]Content-Type: application/json [15:21:23] [15:21:23]POST finish read [15:21:23]Found Content-Length = 801 [15:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:23]execute_script... [15:21:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:23]POST & json_proto [15:21:23]process_json_proto [15:21:23]json parsed OK: [15:21:23]protocol is kg_v1.0 [15:21:23]action value=close_receipt [15:21:23]process_action close_receipt [15:21:23]cmd_close_receipt [15:21:23]MH_GetDate [15:21:23]Write to MH i2c: F0 00 00 6A 0A 63 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: F0 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: F0 09 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: F0 09 00 6A 0A 00 F5 EB 76 66 99 81 91 64 37 [15:21:23]GetLastDocTimeStamp 1719069674 [15:21:23]current date 1719069685 [15:21:23]FM_GetShiftState [15:21:23]SAM_PROTO_GetShiftState [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 13 01 00 [15:21:23]Write to MH i2c: E2 08 00 6B 0A 80 13 01 00 00 00 00 00 F2 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:23]Read from MH i2c: E2 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 0E 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 0E 00 6B 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 E8 [15:21:23]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:21:23]wFMCommunicate OK [15:21:23]SAM_PROTO_GetShiftState done [15:21:23]FM_GetShiftState done [15:21:23]opened in 1719016435 [15:21:23]opened+sec_in_day 1719102835 [15:21:23]quantity*price = 50065 [15:21:23]sum+1 = 50067 [15:21:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 66 22.06.2024 15:21 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76870 ФПД: 241328080305415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152125&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76870&fm=241328080305415&tin=02508201610067®Number=0000000000095696&sum=50066 [15:21:25]StoreToDocumentArchive [15:21:25]shift 395 fd 76870 [15:21:25]save to /storage/0395/doc_00076870 [15:21:25]save last doc name /storage/0395/doc_00076870 to /storage/kkm_last_doc_name [15:21:25]save OK [15:21:25]Clear old archive folders... [15:21:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:25]tlvbuf is 008F44E0 [15:21:25]SAM_PROTO_ClearQueue [15:21:25]wFMCommunicate request_size=4 [15:21:25]MH_SAM_APDU [15:21:25]CAPDU: 80 09 00 00 [15:21:25]Write to MH i2c: E2 08 00 78 0A 80 09 00 00 00 00 00 00 F4 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:25]Read from MH i2c: E2 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 03 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 03 00 78 0A 00 90 00 F6 [15:21:25]RAPDU: 90 00 [15:21:25]wFMCommunicate OK [15:21:25]SAM_PROTO_ClearQueue done [15:21:25]KKMCreateOFDPacket [15:21:25]OFDProtocolAddRootSTLVToBuf [15:21:25]FM_MakeSignedData [15:21:25]FM_MakeSignedData [15:21:25]SAM_PROTO_SignData [15:21:25]wFMCommunicate request_size=4 [15:21:25]MH_SAM_APDU [15:21:25]CAPDU: 80 0D 01 02 [15:21:25]Write to MH i2c: E2 08 00 79 0A 80 0D 01 02 00 00 00 00 FC [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:25]Read from MH i2c: E2 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 03 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 03 00 79 0A 00 90 00 F7 [15:21:25]RAPDU: 90 00 [15:21:25]wFMCommunicate OK [15:21:25]wFMCommunicate request_size=255 [15:21:25]MH_SAM_APDU [15:21:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F5 EB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2C 01 00 35 04 06 00 DB [15:21:25]Write to MH i2c: E2 02 01 7A 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F5 EB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2C 01 00 35 04 06 00 DB 00 00 13 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:25]Read from MH i2c: E2 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 03 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 03 00 7A 0A 00 90 00 F8 [15:21:25]RAPDU: 90 00 [15:21:25]wFMCommunicate OK [15:21:25]wFMCommunicate request_size=10 [15:21:25]MH_SAM_APDU [15:21:25]CAPDU: 80 0D 02 02 05 7C 92 80 3D 07 [15:21:25]Write to MH i2c: E2 0D 00 7B 0A 80 0D 02 02 05 00 7C 92 80 3D 07 00 00 DB [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:25]Read from MH i2c: E2 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 03 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 03 00 7B 0A 00 90 00 F9 [15:21:25]RAPDU: 90 00 [15:21:25]wFMCommunicate OK [15:21:25]wFMCommunicate request_size=4 [15:21:25]MH_SAM_APDU [15:21:25]CAPDU: 80 0D 03 02 [15:21:25]Write to MH i2c: E2 08 00 7C 0A 80 0D 03 02 00 00 00 00 01 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]OFD Sender: No OFD packet to send [15:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:25]Read from MH i2c: E2 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 0B 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 0B 00 7C 0A 00 3D 88 8D BD 5E 5D CD 36 90 00 CF [15:21:25]RAPDU: 3D 88 8D BD 5E 5D CD 36 90 00 [15:21:25]wFMCommunicate OK [15:21:25]SAM_PROTO_SignData done [15:21:25]FM_MakeSignedData done [15:21:25]CreateOFDProtocolMessage [15:21:25]wFMCommunicate request_size=4 [15:21:25]MH_SAM_APDU [15:21:25]CAPDU: 80 11 00 00 [15:21:25]Write to MH i2c: E2 08 00 7D 0A 80 11 00 00 00 00 00 00 01 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:25]Read from MH i2c: E2 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 17 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 17 00 7D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 51 [15:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:21:25]wFMCommunicate OK [15:21:25]CreateOFDProtocolMessage done [15:21:25]OFDSenderStorePacket 76870 [15:21:25]StoreOFDPacket docnum=76870 [15:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 D5 62 07 01 04 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F5 EB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2C 01 00 35 04 06 00 DB 7C 92 80 3D 07 3D 88 8D BD 5E 5D CD 36 [15:21:25]CheckFolder [15:21:25]dirname=/storage/ofd_packets [15:21:25]CheckFolder done [15:21:25]ProducePacketName [15:21:25]name=ofd_packets/00076870 [15:21:25]NVStorageSaveData ofd_packets/00076870 [15:21:25]File name is /storage/ofd_packets/00076870 [15:21:25]Write 301 bytes [15:21:25]NVStorageSaveData done [15:21:25]OFDSenderStorePacket done [15:21:25]KKMCreateOFDPacket done [15:21:25]NVStorageSaveData kkm_last_timestamp [15:21:25]File name is /storage/kkm_last_timestamp [15:21:25]Write 4 bytes [15:21:25]NVStorageSaveData done [15:21:25]ExternCall_PrintAddStr [15:21:25]wPrintStart [15:21:25]Write to MH i2c: 01 00 00 7E 0A 88 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 07 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 07 00 7E 0A 00 00 00 00 00 FF 0F 9D [15:21:25]RasterBufferAndPrint [15:21:25]line Счет N : (1)1694589 [15:21:25]line ИНН: 02508201610067 [15:21:25]line Контрольно-Кассовый Чек [15:21:25]line ПРОДАЖА [15:21:25]line ТРК (МРК, ГНК) : 33 [15:21:25]line Товар: 2710124130 [15:21:25]line Аи-92-К-5 [15:21:25]line 7.540 * 66.40 [15:21:25]line = 500.66 [15:21:25]line НДС 12% НСП 1% [15:21:25]line > о реализуемом товаре [15:21:25]line ИТОГО: 500.66 [15:21:25]line НСП 1% : 4.43 [15:21:25]line НДС 12% : 53.17 [15:21:25]line Наличными: 0.00 [15:21:25]line Безнал.: 500.66 [15:21:25]line Место: АЗС № 144 "Партнер Нефть" [15:21:25]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:21:25]line СНО: Общий режим [15:21:25]line Чек 66 22.06.2024 15:21 [15:21:25]line Смена: 395 ФФД: 1.0 [15:21:25]line ЗНМ: 0300000170 [15:21:25]line РНМ: 0000000000095696 [15:21:25]line Версия ККМ: 001 [15:21:25]line Платежная система: O! деньги [15:21:25]line ФМ: 0000000000875009 [15:21:25]line ФД: 76870 [15:21:25]line ФПД: 241328080305415 [15:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152125&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76870&fm=241328080305415&tin=02508201610067®Number=0000000000095696&sum=50066 [15:21:25]written 0, free lines is 4095 [15:21:25]OFD Sender: Processing packet 76870 [packets to send 351, broken 350] [15:21:25]ProducePacketName [15:21:25]name=ofd_packets/00076870 [15:21:25]OFD Sender: To server: pG, [15:21:25]CommunicateWithHost lk.salyk.kg:30040 [15:21:25]ConnectInit lk.salyk.kg [15:21:25]Connected sock=10 [15:21:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 D5 62 07 01 04 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F5 EB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2C 01 00 35 04 06 00 DB 7C 92 80 3D 07 3D 88 8D BD 5E 5D CD 36 [15:21:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F4 D9 47 00 7B 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 46 2C 01 00 F4 03 04 00 8E 92 76 66 B6 04 01 00 00 CF 44 13 7E 60 04 4E 0D [15:21:25]CommunicateWithHost err = 0 [15:21:25]CheckOFDResponse [15:21:25]1017 (14) - 77093643461234 [15:21:25]1041 (16) - 0000000000875009 [15:21:25]1040 (4) - 76870 [15:21:25]1012 (4) - 22.06.2024 08:59 [15:21:25]1206 (1) - 0 [15:21:25]OFD Sender: Remove packet 76870 [15:21:25]ProducePacketName [15:21:25]name=ofd_packets/00076870 [15:21:25]NVStorageDeleteData [15:21:26]Write to MH i2c: 01 00 00 A8 0A B2 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: 01 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: 01 07 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 EA 0C AF [15:21:26]RasterBufferAndPrint [15:21:26]line [15:21:26]line [15:21:26]line [15:21:26]line [15:21:26]line [15:21:26]written 0, free lines is 3315 [15:21:26]MH_Cut [15:21:26]Write to MH i2c: D1 01 00 AF 0A 01 8B [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: D1 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: D1 01 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: D1 01 00 AF 0A 00 8A [15:21:26]Write to MH i2c: 01 00 00 B0 0A BA [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]OFD Sender: No OFD packet to send [15:21:26]*** Cut start [15:21:26]*** Partial cut [15:21:26]*** CUTSNS_PIN = 1 [15:21:26]*** CUTSNS_PIN = 0 [15:21:27]*** Brake cut motor [15:21:27]Read from MH i2c: 01 [15:21:27]MH_I2C_Read... [15:21:27]*** Stop cut motor [15:21:27]*** Cut end [15:21:27]Read from MH i2c: 01 07 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: 01 07 00 B0 0A 00 00 00 00 00 FF 0F CF [15:21:27]process_action close_receipt done [15:21:27]requested_data is exist [15:21:27]produce_requested_data [15:21:27]requested_item fm.sn is exist - process it [15:21:27]wFMCommunicate request_size=4 [15:21:27]MH_SAM_APDU [15:21:27]CAPDU: 80 11 00 00 [15:21:27]Write to MH i2c: E2 08 00 B1 0A 80 11 00 00 00 00 00 00 35 [15:21:27]Write i2c OK [15:21:27]MH_I2C_Read... [15:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:27]Read from MH i2c: E2 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 17 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 17 00 B1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 85 [15:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:21:27]wFMCommunicate OK [15:21:27]requested_item fd.num is exist - process it [15:21:27]SAM_PROTO_GetFieldsCounters [15:21:27]wFMCommunicate request_size=4 [15:21:27]MH_SAM_APDU [15:21:27]CAPDU: 80 13 00 00 [15:21:27]Write to MH i2c: E2 08 00 B2 0A 80 13 00 00 00 00 00 00 38 [15:21:27]Write i2c OK [15:21:27]MH_I2C_Read... [15:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:27]Read from MH i2c: E2 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 62 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 62 00 B2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 46 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [15:21: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 46 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:27]wFMCommunicate OK [15:21:27]SAM_PROTO_GetFieldsCounters done [15:21:27]requested_item shift.num is exist - process it [15:21:27]requested_item shift.opened is exist - process it [15:21:27]req_shift_opened [15:21:27]FM_GetShiftState [15:21:27]SAM_PROTO_GetShiftState [15:21:27]wFMCommunicate request_size=4 [15:21:27]MH_SAM_APDU [15:21:27]CAPDU: 80 13 01 00 [15:21:27]Write to MH i2c: E2 08 00 B3 0A 80 13 01 00 00 00 00 00 3A [15:21:27]Write i2c OK [15:21:27]MH_I2C_Read... [15:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:27]Read from MH i2c: E2 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 0E 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 0E 00 B3 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 30 [15:21:27]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:21:27]wFMCommunicate OK [15:21:27]SAM_PROTO_GetShiftState done [15:21:27]FM_GetShiftState done [15:21:27]req_shift_opened done [15:21:27]requested_item shift.open_date is exist - process it [15:21:27]req_shift_open_date [15:21:27]req_shift_open_date done [15:21:27]produce_requested_data done [15:21:27]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76870,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [15:21:27]process_action_free close_receipt [15:21:27]json_value_free [15:21:27]json_value_free done [15:21:27]process_json_proto returns [15:21:27]Send response to host [15:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76870,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [15:21:27]free response buf [15:21:27]execute_script done [15:21:27]execute_script returns [15:21:27]free content buf [15:21:27]Sock 8.Close socket [15:21:27]Sock 8.Thread stoped [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:45]accept exits with 9 [15:25:45]New connection [15:25:45]New thread 3067219300 created [15:25:45]Thread 3067362660 joined [15:25:45]Waiting for new connection... [15:25:45] Sock 9.Parse request [15:25:45]Sock 9.Check first char [15:25:45]Sock 9.First char is OK [15:25:45]request: POST /json_proto HTTP/1.0 [15:25:45]Method: POST [15:25:45]URL: /json_proto [15:25:45]Method is POST - this is cgi request [15:25:45]url: /json_proto [15:25:45]query_string will be loaded in cgi processing [15:25:45]execute_cgi json_proto POST (null) [15:25:45]execute_cgi path=json_proto method=POST [15:25:45]POST find Content-Length [15:25:45]Host: 172.17.39.195:8080 [15:25:45]Content-Length: 801 [15:25:45]Content-Type: application/json [15:25:45] [15:25:45]POST finish read [15:25:45]Found Content-Length = 801 [15:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:45]execute_script... [15:25: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)1694594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:45]POST & json_proto [15:25:45]process_json_proto [15:25:45]json parsed OK: [15:25:45]protocol is kg_v1.0 [15:25:45]action value=close_receipt [15:25:45]process_action close_receipt [15:25:45]cmd_close_receipt [15:25:45]MH_GetDate [15:25:45]Write to MH i2c: F0 00 00 B4 0A AD [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: F0 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: F0 09 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: F0 09 00 B4 0A 00 FB EC 76 66 99 81 91 64 88 [15:25:45]GetLastDocTimeStamp 1719069685 [15:25:45]current date 1719069947 [15:25:45]FM_GetShiftState [15:25:45]SAM_PROTO_GetShiftState [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 13 01 00 [15:25:45]Write to MH i2c: E2 08 00 B5 0A 80 13 01 00 00 00 00 00 3C [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0E 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0E 00 B5 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 32 [15:25:45]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:25:45]wFMCommunicate OK [15:25:45]SAM_PROTO_GetShiftState done [15:25:45]FM_GetShiftState done [15:25:45]opened in 1719016435 [15:25:45]opened+sec_in_day 1719102835 [15:25:45]quantity*price = 35059 [15:25:45]sum+1 = 35060 [15:25:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.59 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.59 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 67 22.06.2024 15:25 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76871 ФПД: 275110132373026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152547&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76871&fm=275110132373026&tin=02508201610067®Number=0000000000095696&sum=35059 [15:25:47]StoreToDocumentArchive [15:25:47]shift 395 fd 76871 [15:25:47]save to /storage/0395/doc_00076871 [15:25:47]save last doc name /storage/0395/doc_00076871 to /storage/kkm_last_doc_name [15:25:47]save OK [15:25:47]Clear old archive folders... [15:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:47]tlvbuf is 00913010 [15:25:47]SAM_PROTO_ClearQueue [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 09 00 00 [15:25:47]Write to MH i2c: E2 08 00 C2 0A 80 09 00 00 00 00 00 00 3E [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:47]Read from MH i2c: E2 03 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [15:25:47]RAPDU: 90 00 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_ClearQueue done [15:25:47]KKMCreateOFDPacket [15:25:47]OFDProtocolAddRootSTLVToBuf [15:25:47]FM_MakeSignedData [15:25:47]FM_MakeSignedData [15:25:47]SAM_PROTO_SignData [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 0D 01 02 [15:25:47]Write to MH i2c: E2 08 00 C3 0A 80 0D 01 02 00 00 00 00 46 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [15:25:47]RAPDU: 90 00 [15:25:47]wFMCommunicate OK [15:25:47]wFMCommunicate request_size=255 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FB EC 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2C 01 00 35 04 06 00 FA [15:25:47]Write to MH i2c: E2 02 01 C4 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FB EC 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2C 01 00 35 04 06 00 FA 00 00 55 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [15:25:47]RAPDU: 90 00 [15:25:47]wFMCommunicate OK [15:25:47]wFMCommunicate request_size=10 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 0D 02 02 05 36 11 B6 D6 22 [15:25:47]Write to MH i2c: E2 0D 00 C5 0A 80 0D 02 02 05 00 36 11 B6 D6 22 00 00 48 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 03 00 C5 0A 00 90 00 43 [15:25:47]RAPDU: 90 00 [15:25:47]wFMCommunicate OK [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 0D 03 02 [15:25:47]Write to MH i2c: E2 08 00 C6 0A 80 0D 03 02 00 00 00 00 4B [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0B 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0B 00 C6 0A 00 81 1A C9 A0 C3 7A 6A 2C 90 00 23 [15:25:47]RAPDU: 81 1A C9 A0 C3 7A 6A 2C 90 00 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_SignData done [15:25:47]FM_MakeSignedData done [15:25:47]CreateOFDProtocolMessage [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 11 00 00 [15:25:47]Write to MH i2c: E2 08 00 C7 0A 80 11 00 00 00 00 00 00 4B [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 17 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 17 00 C7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9B [15:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:25:47]wFMCommunicate OK [15:25:47]CreateOFDProtocolMessage done [15:25:47]OFDSenderStorePacket 76871 [15:25:47]StoreOFDPacket docnum=76871 [15:25:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 36 CA 07 01 52 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FB EC 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2C 01 00 35 04 06 00 FA 36 11 B6 D6 22 81 1A C9 A0 C3 7A 6A 2C [15:25:47]CheckFolder [15:25:47]dirname=/storage/ofd_packets [15:25:47]CheckFolder done [15:25:47]ProducePacketName [15:25:47]name=ofd_packets/00076871 [15:25:47]NVStorageSaveData ofd_packets/00076871 [15:25:47]File name is /storage/ofd_packets/00076871 [15:25:47]Write 301 bytes [15:25:47]NVStorageSaveData done [15:25:47]OFDSenderStorePacket done [15:25:47]KKMCreateOFDPacket done [15:25:47]NVStorageSaveData kkm_last_timestamp [15:25:47]File name is /storage/kkm_last_timestamp [15:25:47]Write 4 bytes [15:25:47]NVStorageSaveData done [15:25:47]ExternCall_PrintAddStr [15:25:47]wPrintStart [15:25:47]Write to MH i2c: 01 00 00 C8 0A D2 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: 01 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: 01 07 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: 01 07 00 C8 0A 00 00 00 00 00 FF 0F E7 [15:25:47]RasterBufferAndPrint [15:25:47]line Счет N : (1)1694594 [15:25:47]line ИНН: 02508201610067 [15:25:47]line Контрольно-Кассовый Чек [15:25:47]line ПРОДАЖА [15:25:47]line ТРК (МРК, ГНК) : 53 [15:25:47]line Товар: 2710124130 [15:25:47]line Аи-92-К-5 [15:25:47]line 5.280 * 66.40 [15:25:47]line = 350.59 [15:25:47]line НДС 12% НСП 1% [15:25:47]line > о реализуемом товаре [15:25:47]line ИТОГО: 350.59 [15:25:47]line НСП 1% : 3.10 [15:25:47]line НДС 12% : 37.23 [15:25:47]line Наличными: 0.00 [15:25:47]line Безнал.: 350.59 [15:25:47]line Место: АЗС № 144 "Партнер Нефть" [15:25:47]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:25:47]line СНО: Общий режим [15:25:47]line Чек 67 22.06.2024 15:25 [15:25:47]line Смена: 395 ФФД: 1.0 [15:25:47]line ЗНМ: 0300000170 [15:25:47]line РНМ: 0000000000095696 [15:25:47]line Версия ККМ: 001 [15:25:47]line Платежная система: O! деньги [15:25:47]line ФМ: 0000000000875009 [15:25:47]line ФД: 76871 [15:25:47]line ФПД: 275110132373026 [15:25:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152547&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76871&fm=275110132373026&tin=02508201610067®Number=0000000000095696&sum=35059 [15:25:47]written 0, free lines is 4095 [15:25:47]OFD Sender: Processing packet 76871 [packets to send 351, broken 350] [15:25:47]ProducePacketName [15:25:47]name=ofd_packets/00076871 [15:25:47]OFD Sender: To server: pG, [15:25:47]CommunicateWithHost lk.salyk.kg:30040 [15:25:47]ConnectInit lk.salyk.kg [15:25:47]Connected sock=8 [15:25:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 36 CA 07 01 52 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 FB EC 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2C 01 00 35 04 06 00 FA 36 11 B6 D6 22 81 1A C9 A0 C3 7A 6A 2C [15:25:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 5F FA 47 00 BB C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 47 2C 01 00 F4 03 04 00 94 93 76 66 B6 04 01 00 00 86 8D 12 95 CD 3D E0 0E [15:25:48]CommunicateWithHost err = 0 [15:25:48]CheckOFDResponse [15:25:48]1017 (14) - 77093643461234 [15:25:48]1041 (16) - 0000000000875009 [15:25:48]1040 (4) - 76871 [15:25:48]1012 (4) - 22.06.2024 09:04 [15:25:48]1206 (1) - 0 [15:25:48]OFD Sender: Remove packet 76871 [15:25:48]ProducePacketName [15:25:48]name=ofd_packets/00076871 [15:25:48]NVStorageDeleteData [15:25:48]Write to MH i2c: 01 00 00 F2 0A FC [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: 01 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: 01 07 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 EC 0C FB [15:25:48]RasterBufferAndPrint [15:25:48]line [15:25:48]line [15:25:48]line [15:25:48]line [15:25:48]line [15:25:48]written 0, free lines is 3314 [15:25:48]MH_Cut [15:25:48]Write to MH i2c: D1 01 00 F9 0A 01 D5 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: D1 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: D1 01 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: D1 01 00 F9 0A 00 D4 [15:25:48]Write to MH i2c: 01 00 00 FA 0A 04 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]OFD Sender: No OFD packet to send [15:25:48]*** Cut start [15:25:48]*** Partial cut [15:25:48]*** CUTSNS_PIN = 1 [15:25:48]*** CUTSNS_PIN = 0 [15:25:49]*** Brake cut motor [15:25:49]Read from MH i2c: 01 [15:25:49]MH_I2C_Read... [15:25:49]*** Stop cut motor [15:25:49]Read from MH i2c: 01 07 00 [15:25:49]MH_I2C_Read... [15:25:49]*** Cut end [15:25:49]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 FF 0F 19 [15:25:49]process_action close_receipt done [15:25:49]requested_data is exist [15:25:49]produce_requested_data [15:25:49]requested_item fm.sn is exist - process it [15:25:49]wFMCommunicate request_size=4 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 11 00 00 [15:25:49]Write to MH i2c: E2 08 00 FB 0A 80 11 00 00 00 00 00 00 7F [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 17 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 17 00 FB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CF [15:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:25:49]wFMCommunicate OK [15:25:49]requested_item fd.num is exist - process it [15:25:49]SAM_PROTO_GetFieldsCounters [15:25:49]wFMCommunicate request_size=4 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 13 00 00 [15:25:49]Write to MH i2c: E2 08 00 FC 0A 80 13 00 00 00 00 00 00 82 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 62 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 62 00 FC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 47 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [15:25: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 47 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:49]wFMCommunicate OK [15:25:49]SAM_PROTO_GetFieldsCounters done [15:25:49]requested_item shift.num is exist - process it [15:25:49]requested_item shift.opened is exist - process it [15:25:49]req_shift_opened [15:25:49]FM_GetShiftState [15:25:49]SAM_PROTO_GetShiftState [15:25:49]wFMCommunicate request_size=4 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 13 01 00 [15:25:49]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0E 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 7A [15:25:49]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:25:49]wFMCommunicate OK [15:25:49]SAM_PROTO_GetShiftState done [15:25:49]FM_GetShiftState done [15:25:49]req_shift_opened done [15:25:49]requested_item shift.open_date is exist - process it [15:25:49]req_shift_open_date [15:25:49]req_shift_open_date done [15:25:49]produce_requested_data done [15:25:49]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76871,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [15:25:49]process_action_free close_receipt [15:25:49]json_value_free [15:25:49]json_value_free done [15:25:49]process_json_proto returns [15:25:49]Send response to host [15:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76871,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [15:25:49]free response buf [15:25:49]execute_script done [15:25:49]execute_script returns [15:25:49]free content buf [15:25:49]Sock 9.Close socket [15:25:49]Sock 9.Thread stoped [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:05]accept exits with 10 [15:27:05]New connection [15:27:05]New thread 3067362660 created [15:27:05]Thread 3067219300 joined [15:27:05]Waiting for new connection... [15:27:05] Sock 10.Parse request [15:27:05]Sock 10.Check first char [15:27:05]Sock 10.First char is OK [15:27:05]request: POST /json_proto HTTP/1.0 [15:27:05]Method: POST [15:27:05]URL: /json_proto [15:27:05]Method is POST - this is cgi request [15:27:05]url: /json_proto [15:27:05]query_string will be loaded in cgi processing [15:27:05]execute_cgi json_proto POST (null) [15:27:05]execute_cgi path=json_proto method=POST [15:27:05]POST find Content-Length [15:27:05]Host: 172.17.39.195:8080 [15:27:05]Content-Length: 616 [15:27:05]Content-Type: application/json [15:27:05] [15:27:05]POST finish read [15:27:05]Found Content-Length = 616 [15:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220932", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:05]execute_script... [15:27:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220932", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:05]POST & json_proto [15:27:05]process_json_proto [15:27:05]json parsed OK: [15:27:05]protocol is kg_v1.0 [15:27:05]action value=close_receipt [15:27:05]process_action close_receipt [15:27:05]cmd_close_receipt [15:27:05]MH_GetDate [15:27:05]Write to MH i2c: F0 00 00 FE 0A F7 [15:27:05]Write i2c OK [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: F0 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: F0 09 00 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: F0 09 00 FE 0A 00 4A ED 76 66 99 81 91 64 22 [15:27:05]GetLastDocTimeStamp 1719069947 [15:27:05]current date 1719070026 [15:27:05]FM_GetShiftState [15:27:05]SAM_PROTO_GetShiftState [15:27:05]wFMCommunicate request_size=4 [15:27:05]MH_SAM_APDU [15:27:05]CAPDU: 80 13 01 00 [15:27:05]Write to MH i2c: E2 08 00 FF 0A 80 13 01 00 00 00 00 00 86 [15:27:05]Write i2c OK [15:27:05]MH_I2C_Read... [15:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:05]Read from MH i2c: E2 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: E2 0E 00 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: E2 0E 00 FF 0A 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 7C [15:27:05]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:27:05]wFMCommunicate OK [15:27:05]SAM_PROTO_GetShiftState done [15:27:05]FM_GetShiftState done [15:27:05]opened in 1719016435 [15:27:05]opened+sec_in_day 1719102835 [15:27:05]quantity*price = 17500 [15:27:05]sum+1 = 17501 [15:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 68 22.06.2024 15:27 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76872 ФПД: 141918925029618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152706&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76872&fm=141918925029618&tin=02508201610067®Number=0000000000095696&sum=17500 0 [15:27:06]StoreToDocumentArchive [15:27:06]shift 395 fd 76872 [15:27:06]save to /storage/0395/doc_00076872 [15:27:06]save last doc name /storage/0395/doc_00076872 to /storage/kkm_last_doc_name [15:27:06]save OK [15:27:06]Clear old archive folders... [15:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=268 [15:27:06]tlvbuf is B6FBC9B0 [15:27:06]SAM_PROTO_ClearQueue [15:27:06]wFMCommunicate request_size=4 [15:27:06]MH_SAM_APDU [15:27:06]CAPDU: 80 09 00 00 [15:27:06]Write to MH i2c: E2 08 00 0C 0B 80 09 00 00 00 00 00 00 89 [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:06]Read from MH i2c: E2 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 03 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [15:27:06]RAPDU: 90 00 [15:27:06]wFMCommunicate OK [15:27:06]SAM_PROTO_ClearQueue done [15:27:06]KKMCreateOFDPacket [15:27:06]OFDProtocolAddRootSTLVToBuf [15:27:06]FM_MakeSignedData [15:27:06]FM_MakeSignedData [15:27:06]SAM_PROTO_SignData [15:27:06]wFMCommunicate request_size=4 [15:27:06]MH_SAM_APDU [15:27:06]CAPDU: 80 0D 01 02 [15:27:06]Write to MH i2c: E2 08 00 0D 0B 80 0D 01 02 00 00 00 00 91 [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:06]Read from MH i2c: E2 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 03 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [15:27:06]RAPDU: 90 00 [15:27:06]wFMCommunicate OK [15:27:06]wFMCommunicate request_size=255 [15:27:06]MH_SAM_APDU [15:27:06]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A ED 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [15:27:06]Write to MH i2c: E2 02 01 0E 0B 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A ED 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 E8 [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:06]Read from MH i2c: E2 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 03 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [15:27:06]RAPDU: 90 00 [15:27:06]wFMCommunicate OK [15:27:06]wFMCommunicate request_size=27 [15:27:06]MH_SAM_APDU [15:27:06]CAPDU: 80 0D 02 02 16 35 30 30 39 10 04 04 00 48 2C 01 00 35 04 06 00 81 13 13 1D 00 F2 [15:27:06]Write to MH i2c: E2 1E 00 0F 0B 80 0D 02 02 16 00 35 30 30 39 10 04 04 00 48 2C 01 00 35 04 06 00 81 13 13 1D 00 F2 00 00 10 [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:06]Read from MH i2c: E2 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 03 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 03 00 0F 0B 00 90 00 8E [15:27:06]RAPDU: 90 00 [15:27:06]wFMCommunicate OK [15:27:06]wFMCommunicate request_size=4 [15:27:06]MH_SAM_APDU [15:27:06]CAPDU: 80 0D 03 02 [15:27:06]Write to MH i2c: E2 08 00 10 0B 80 0D 03 02 00 00 00 00 96 [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:06]Read from MH i2c: E2 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 0B 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 0B 00 10 0B 00 83 26 A2 75 08 C1 92 8F 90 00 41 [15:27:06]RAPDU: 83 26 A2 75 08 C1 92 8F 90 00 [15:27:06]wFMCommunicate OK [15:27:06]SAM_PROTO_SignData done [15:27:06]FM_MakeSignedData done [15:27:06]CreateOFDProtocolMessage [15:27:06]wFMCommunicate request_size=4 [15:27:06]MH_SAM_APDU [15:27:06]CAPDU: 80 11 00 00 [15:27:06]Write to MH i2c: E2 08 00 11 0B 80 11 00 00 00 00 00 00 96 [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:06]Read from MH i2c: E2 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 17 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: E2 17 00 11 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E6 [15:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:27:06]wFMCommunicate OK [15:27:06]CreateOFDProtocolMessage done [15:27:06]OFDSenderStorePacket 76872 [15:27:06]StoreOFDPacket docnum=76872 [15:27:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 83 D2 18 01 73 46 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A ED 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 48 2C 01 00 35 04 06 00 81 13 13 1D 00 F2 83 26 A2 75 08 C1 92 8F [15:27:06]CheckFolder [15:27:06]dirname=/storage/ofd_packets [15:27:06]CheckFolder done [15:27:06]ProducePacketName [15:27:06]name=ofd_packets/00076872 [15:27:06]NVStorageSaveData ofd_packets/00076872 [15:27:06]File name is /storage/ofd_packets/00076872 [15:27:06]Write 318 bytes [15:27:06]NVStorageSaveData done [15:27:06]OFDSenderStorePacket done [15:27:06]KKMCreateOFDPacket done [15:27:06]NVStorageSaveData kkm_last_timestamp [15:27:06]File name is /storage/kkm_last_timestamp [15:27:06]Write 4 bytes [15:27:06]NVStorageSaveData done [15:27:06]ExternCall_PrintAddStr [15:27:06]wPrintStart [15:27:06]Write to MH i2c: 01 00 00 12 0B 1D [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: 01 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: 01 07 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: 01 07 00 12 0B 00 00 00 00 00 FF 0F 32 [15:27:06]RasterBufferAndPrint [15:27:06]line Счет N : (3)220932 [15:27:06]line ИНН: 02508201610067 [15:27:06]line Контрольно-Кассовый Чек [15:27:06]line ПРОДАЖА [15:27:06]line Товар: 4870002329487 [15:27:06]line Напиток Pepsi 1,5л [15:27:06]line 1.000 * 175.00 [15:27:06]line = 175.00 [15:27:06]line НДС 12% НСП 1% [15:27:06]line > о реализуемом товаре [15:27:06]line ИТОГО: 175.00 [15:27:06]line НСП 1% : 1.55 [15:27:06]line НДС 12% : 18.58 [15:27:06]line Наличными: 175.00 [15:27:06]line Безнал.: 0.00 [15:27:06]line Место: АЗС № 144 "Партнер Нефть" [15:27:06]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:27:06]line СНО: Общий режим [15:27:06]line Чек 68 22.06.2024 15:27 [15:27:06]line Смена: 395 ФФД: 1.0 [15:27:06]line ЗНМ: 0300000170 [15:27:06]line РНМ: 0000000000095696 [15:27:06]line Версия ККМ: 001 [15:27:06]line ФМ: 0000000000875009 [15:27:06]line ФД: 76872 [15:27:06]line ФПД: 141918925029618 [15:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T152706&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76872&fm=141918925029618&tin=02508201610067®Number=0000000000095696&sum=17500 [15:27:07]line 0 [15:27:07]OFD Sender: Processing packet 76872 [packets to send 351, broken 350] [15:27:07]ProducePacketName [15:27:07]name=ofd_packets/00076872 [15:27:07]OFD Sender: To server: pG, [15:27:07]CommunicateWithHost lk.salyk.kg:30040 [15:27:07]ConnectInit lk.salyk.kg [15:27:07]written 0, free lines is 4095 [15:27:07]Connected sock=9 [15:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 20 01 00 00 83 D2 18 01 73 46 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 4A ED 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 48 2C 01 00 35 04 06 00 81 13 13 1D 00 F2 83 26 A2 75 08 C1 92 8F [15:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 37 89 47 00 56 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 35 30 30 39 10 04 04 00 48 2C 01 00 F4 03 04 00 E4 93 76 66 B6 04 01 00 00 FE 80 8D F3 8A D9 49 87 [15:27:07]CommunicateWithHost err = 0 [15:27:07]CheckOFDResponse [15:27:07]1017 (14) - 77093643461234 [15:27:07]1041 (16) - 0000000000875009 [15:27:07]1040 (4) - 76872 [15:27:07]1012 (4) - 22.06.2024 09:05 [15:27:07]1206 (1) - 0 [15:27:07]OFD Sender: Remove packet 76872 [15:27:07]ProducePacketName [15:27:07]name=ofd_packets/00076872 [15:27:07]NVStorageDeleteData [15:27:07]Write to MH i2c: 01 00 00 3A 0B 45 [15:27:07]Write i2c OK [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: 01 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: 01 07 00 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: 01 07 00 3A 0B 00 00 00 00 00 FB 0C 53 [15:27:07]RasterBufferAndPrint [15:27:07]line [15:27:07]line [15:27:07]line [15:27:07]line [15:27:07]line [15:27:07]written 0, free lines is 3330 [15:27:07]MH_Cut [15:27:07]Write to MH i2c: D1 01 00 41 0B 01 1E [15:27:07]Write i2c OK [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: D1 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: D1 01 00 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: D1 01 00 41 0B 00 1D [15:27:07]Write to MH i2c: 01 00 00 42 0B 4D [15:27:07]Write i2c OK [15:27:07]MH_I2C_Read... [15:27:07]OFD Sender: No OFD packet to send [15:27:08]*** Cut start [15:27:08]*** Partial cut [15:27:08]*** CUTSNS_PIN = 1 [15:27:08]*** CUTSNS_PIN = 0 [15:27:08]*** Brake cut motor [15:27:08]Read from MH i2c: 01 [15:27:08]MH_I2C_Read... [15:27:08]*** Stop cut motor [15:27:08]*** Cut end [15:27:08]Read from MH i2c: 01 07 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: 01 07 00 42 0B 00 00 00 00 00 FF 0F 62 [15:27:08]process_action close_receipt done [15:27:08]requested_data is exist [15:27:08]produce_requested_data [15:27:08]requested_item fm.sn is exist - process it [15:27:08]wFMCommunicate request_size=4 [15:27:08]MH_SAM_APDU [15:27:08]CAPDU: 80 11 00 00 [15:27:08]Write to MH i2c: E2 08 00 43 0B 80 11 00 00 00 00 00 00 C8 [15:27:08]Write i2c OK [15:27:08]MH_I2C_Read... [15:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:08]Read from MH i2c: E2 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 17 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 17 00 43 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 18 [15:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:27:08]wFMCommunicate OK [15:27:08]requested_item fd.num is exist - process it [15:27:08]SAM_PROTO_GetFieldsCounters [15:27:08]wFMCommunicate request_size=4 [15:27:08]MH_SAM_APDU [15:27:08]CAPDU: 80 13 00 00 [15:27:08]Write to MH i2c: E2 08 00 44 0B 80 13 00 00 00 00 00 00 CB [15:27:08]Write i2c OK [15:27:08]MH_I2C_Read... [15:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:09]Read from MH i2c: E2 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: E2 62 00 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: E2 62 00 44 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 48 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [15:27: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 48 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:09]wFMCommunicate OK [15:27:09]SAM_PROTO_GetFieldsCounters done [15:27:09]requested_item shift.num is exist - process it [15:27:09]requested_item shift.opened is exist - process it [15:27:09]req_shift_opened [15:27:09]FM_GetShiftState [15:27:09]SAM_PROTO_GetShiftState [15:27:09]wFMCommunicate request_size=4 [15:27:09]MH_SAM_APDU [15:27:09]CAPDU: 80 13 01 00 [15:27:09]Write to MH i2c: E2 08 00 45 0B 80 13 01 00 00 00 00 00 CD [15:27:09]Write i2c OK [15:27:09]MH_I2C_Read... [15:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:09]Read from MH i2c: E2 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: E2 0E 00 [15:27:09]MH_I2C_Read... [15:27:09]Read from MH i2c: E2 0E 00 45 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 C3 [15:27:09]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:27:09]wFMCommunicate OK [15:27:09]SAM_PROTO_GetShiftState done [15:27:09]FM_GetShiftState done [15:27:09]req_shift_opened done [15:27:09]requested_item shift.open_date is exist - process it [15:27:09]req_shift_open_date [15:27:09]req_shift_open_date done [15:27:09]produce_requested_data done [15:27:09]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76872,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [15:27:09]process_action_free close_receipt [15:27:09]json_value_free [15:27:09]json_value_free done [15:27:09]process_json_proto returns [15:27:09]Send response to host [15:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76872,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [15:27:09]free response buf [15:27:09]execute_script done [15:27:09]execute_script returns [15:27:09]free content buf [15:27:09]Sock 10.Close socket [15:27:09]Sock 10.Thread stoped [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:27]accept exits with 8 [15:30:27]New connection [15:30:27]New thread 3067219300 created [15:30:27]Thread 3067362660 joined [15:30:27]Waiting for new connection... [15:30:27] Sock 8.Parse request [15:30:27]Sock 8.Check first char [15:30:27]Sock 8.First char is OK [15:30:27]request: POST /json_proto HTTP/1.0 [15:30:27]Method: POST [15:30:27]URL: /json_proto [15:30:27]Method is POST - this is cgi request [15:30:27]url: /json_proto [15:30:27]query_string will be loaded in cgi processing [15:30:27]execute_cgi json_proto POST (null) [15:30:27]execute_cgi path=json_proto method=POST [15:30:27]POST find Content-Length [15:30:27]Host: 172.17.39.195:8080 [15:30:27]Content-Length: 724 [15:30:27]Content-Type: application/json [15:30:27] [15:30:27]POST finish read [15:30:27]Found Content-Length = 724 [15:30:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220933", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:27]execute_script... [15:30:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220933", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:27]POST & json_proto [15:30:27]process_json_proto [15:30:27]json parsed OK: [15:30:27]protocol is kg_v1.0 [15:30:27]action value=close_receipt [15:30:27]process_action close_receipt [15:30:27]cmd_close_receipt [15:30:27]MH_GetDate [15:30:27]Write to MH i2c: F0 00 00 46 0B 40 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: F0 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: F0 09 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: F0 09 00 46 0B 00 14 EE 76 66 99 81 91 64 36 [15:30:27]GetLastDocTimeStamp 1719070026 [15:30:27]current date 1719070228 [15:30:27]FM_GetShiftState [15:30:27]SAM_PROTO_GetShiftState [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 13 01 00 [15:30:27]Write to MH i2c: E2 08 00 47 0B 80 13 01 00 00 00 00 00 CF [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 0E 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 0E 00 47 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 C5 [15:30:27]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:30:27]wFMCommunicate OK [15:30:27]SAM_PROTO_GetShiftState done [15:30:27]FM_GetShiftState done [15:30:27]opened in 1719016435 [15:30:27]opened+sec_in_day 1719102835 [15:30:27]quantity*price = 28500 [15:30:27]sum+1 = 28501 [15:30:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 69 22.06.2024 15:30 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76873 ФПД: 1460046460148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153028&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76873&fm=1460046460148&tin=02508201610067®Number=0000000000095696&sum=28500 0 [15:30:28]StoreToDocumentArchive [15:30:28]shift 395 fd 76873 [15:30:28]save to /storage/0395/doc_00076873 [15:30:28]save last doc name /storage/0395/doc_00076873 to /storage/kkm_last_doc_name [15:30:28]save OK [15:30:28]Clear old archive folders... [15:30:28]ProcessDocumentItem done err = 0, tmpTLVsize=304 [15:30:28]tlvbuf is 00901C90 [15:30:28]SAM_PROTO_ClearQueue [15:30:28]wFMCommunicate request_size=4 [15:30:28]MH_SAM_APDU [15:30:28]CAPDU: 80 09 00 00 [15:30:28]Write to MH i2c: E2 08 00 54 0B 80 09 00 00 00 00 00 00 D1 [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]OFD Sender: No OFD packet to send [15:30:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:28]Read from MH i2c: E2 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 03 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [15:30:28]RAPDU: 90 00 [15:30:28]wFMCommunicate OK [15:30:28]SAM_PROTO_ClearQueue done [15:30:28]KKMCreateOFDPacket [15:30:28]OFDProtocolAddRootSTLVToBuf [15:30:28]FM_MakeSignedData [15:30:28]FM_MakeSignedData [15:30:28]SAM_PROTO_SignData [15:30:28]wFMCommunicate request_size=4 [15:30:28]MH_SAM_APDU [15:30:28]CAPDU: 80 0D 01 02 [15:30:28]Write to MH i2c: E2 08 00 55 0B 80 0D 01 02 00 00 00 00 D9 [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:28]Read from MH i2c: E2 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 03 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [15:30:28]RAPDU: 90 00 [15:30:28]wFMCommunicate OK [15:30:28]wFMCommunicate request_size=255 [15:30:28]MH_SAM_APDU [15:30:28]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 14 EE 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 [15:30:28]Write to MH i2c: E2 02 01 56 0B 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 14 EE 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 00 00 CB [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:28]Read from MH i2c: E2 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 03 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [15:30:28]RAPDU: 90 00 [15:30:28]wFMCommunicate OK [15:30:28]wFMCommunicate request_size=63 [15:30:28]MH_SAM_APDU [15:30:28]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2C 01 00 35 04 06 00 01 53 F1 8C F4 F4 [15:30:28]Write to MH i2c: E2 42 00 57 0B 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2C 01 00 35 04 06 00 01 53 F1 8C F4 F4 00 00 5C [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:28]Read from MH i2c: E2 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 03 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 03 00 57 0B 00 90 00 D6 [15:30:28]RAPDU: 90 00 [15:30:28]wFMCommunicate OK [15:30:28]wFMCommunicate request_size=4 [15:30:28]MH_SAM_APDU [15:30:28]CAPDU: 80 0D 03 02 [15:30:28]Write to MH i2c: E2 08 00 58 0B 80 0D 03 02 00 00 00 00 DE [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:28]Read from MH i2c: E2 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 0B 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 0B 00 58 0B 00 7F 32 E3 46 F6 D5 A7 19 90 00 44 [15:30:28]RAPDU: 7F 32 E3 46 F6 D5 A7 19 90 00 [15:30:28]wFMCommunicate OK [15:30:28]SAM_PROTO_SignData done [15:30:28]FM_MakeSignedData done [15:30:28]CreateOFDProtocolMessage [15:30:28]wFMCommunicate request_size=4 [15:30:28]MH_SAM_APDU [15:30:28]CAPDU: 80 11 00 00 [15:30:28]Write to MH i2c: E2 08 00 59 0B 80 11 00 00 00 00 00 00 DE [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:28]Read from MH i2c: E2 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 17 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: E2 17 00 59 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2E [15:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:30:28]wFMCommunicate OK [15:30:28]CreateOFDProtocolMessage done [15:30:28]OFDSenderStorePacket 76873 [15:30:28]StoreOFDPacket docnum=76873 [15:30:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 44 01 00 00 B6 4F 3C 01 A3 CE 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 14 EE 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2C 01 00 35 04 06 00 01 53 F1 8C F4 F4 7F 32 E3 46 F6 D5 A7 19 [15:30:28]CheckFolder [15:30:28]dirname=/storage/ofd_packets [15:30:28]CheckFolder done [15:30:28]ProducePacketName [15:30:28]name=ofd_packets/00076873 [15:30:28]NVStorageSaveData ofd_packets/00076873 [15:30:28]File name is /storage/ofd_packets/00076873 [15:30:28]Write 354 bytes [15:30:28]NVStorageSaveData done [15:30:28]OFDSenderStorePacket done [15:30:28]KKMCreateOFDPacket done [15:30:28]NVStorageSaveData kkm_last_timestamp [15:30:28]File name is /storage/kkm_last_timestamp [15:30:28]Write 4 bytes [15:30:28]NVStorageSaveData done [15:30:28]ExternCall_PrintAddStr [15:30:28]wPrintStart [15:30:28]Write to MH i2c: 01 00 00 5A 0B 65 [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 07 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 FF 0F 7A [15:30:28]RasterBufferAndPrint [15:30:28]line Счет N : (3)220933 [15:30:28]line ИНН: 02508201610067 [15:30:28]line Контрольно-Кассовый Чек [15:30:28]line ПРОДАЖА [15:30:28]line Товар: 8901086040022 [15:30:28]line Жидкость стеклоомывающая ПН -20 4,5л [15:30:28]line 1.000 * 285.00 [15:30:28]line = 285.00 [15:30:28]line НДС 12% НСП 1% [15:30:28]line > о реализуемом товаре [15:30:28]line ИТОГО: 285.00 [15:30:28]line НСП 1% : 2.52 [15:30:28]line НДС 12% : 30.26 [15:30:28]line Наличными: 285.00 [15:30:28]line Безнал.: 0.00 [15:30:28]line Место: АЗС № 144 "Партнер Нефть" [15:30:28]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:30:28]line СНО: Общий режим [15:30:28]line Чек 69 22.06.2024 15:30 [15:30:28]line Смена: 395 ФФД: 1.0 [15:30:28]line ЗНМ: 0300000170 [15:30:28]line РНМ: 0000000000095696 [15:30:28]line Версия ККМ: 001 [15:30:28]line ФМ: 0000000000875009 [15:30:28]line ФД: 76873 [15:30:28]line ФПД: 1460046460148 [15:30:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T153028&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76873&fm=1460046460148&tin=02508201610067®Number=0000000000095696&sum=28500 [15:30:29]line 0 [15:30:29]OFD Sender: Processing packet 76873 [packets to send 351, broken 350] [15:30:29]ProducePacketName [15:30:29]name=ofd_packets/00076873 [15:30:29]OFD Sender: To server: pG, [15:30:29]CommunicateWithHost lk.salyk.kg:30040 [15:30:29]ConnectInit lk.salyk.kg [15:30:29]written 0, free lines is 4095 [15:30:29]Connected sock=10 [15:30:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 44 01 00 00 B6 4F 3C 01 A3 CE 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 14 EE 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2C 01 00 35 04 06 00 01 53 F1 8C F4 F4 7F 32 E3 46 F6 D5 A7 19 [15:30:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 99 A3 47 00 5E D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 49 2C 01 00 F4 03 04 00 AE 94 76 66 B6 04 01 00 00 1E F1 57 8E E7 A9 48 CE [15:30:29]CommunicateWithHost err = 0 [15:30:29]CheckOFDResponse [15:30:29]1017 (14) - 77093643461234 [15:30:29]1041 (16) - 0000000000875009 [15:30:29]1040 (4) - 76873 [15:30:29]1012 (4) - 22.06.2024 09:09 [15:30:29]1206 (1) - 0 [15:30:29]OFD Sender: Remove packet 76873 [15:30:29]ProducePacketName [15:30:29]name=ofd_packets/00076873 [15:30:29]NVStorageDeleteData [15:30:29]Write to MH i2c: 01 00 00 83 0B 8E [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: 01 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: 01 07 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: 01 07 00 83 0B 00 00 00 00 00 FC 0C 9D [15:30:29]RasterBufferAndPrint [15:30:29]line [15:30:29]line [15:30:29]line [15:30:29]line [15:30:29]line [15:30:29]written 0, free lines is 3330 [15:30:29]MH_Cut [15:30:29]Write to MH i2c: D1 01 00 8A 0B 01 67 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: D1 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: D1 01 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: D1 01 00 8A 0B 00 66 [15:30:29]Write to MH i2c: 01 00 00 8B 0B 96 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:30]OFD Sender: No OFD packet to send [15:30:30]*** Cut start [15:30:30]*** Partial cut [15:30:30]*** CUTSNS_PIN = 1 [15:30:30]*** CUTSNS_PIN = 0 [15:30:30]*** Brake cut motor [15:30:31]Read from MH i2c: 01 [15:30:31]MH_I2C_Read... [15:30:31]*** Stop cut motor [15:30:31]*** Cut end [15:30:31]Read from MH i2c: 01 07 00 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: 01 07 00 8B 0B 00 00 00 00 00 FF 0F AB [15:30:31]process_action close_receipt done [15:30:31]requested_data is exist [15:30:31]produce_requested_data [15:30:31]requested_item fm.sn is exist - process it [15:30:31]wFMCommunicate request_size=4 [15:30:31]MH_SAM_APDU [15:30:31]CAPDU: 80 11 00 00 [15:30:31]Write to MH i2c: E2 08 00 8C 0B 80 11 00 00 00 00 00 00 11 [15:30:31]Write i2c OK [15:30:31]MH_I2C_Read... [15:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:31]Read from MH i2c: E2 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: E2 17 00 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: E2 17 00 8C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 61 [15:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:30:31]wFMCommunicate OK [15:30:31]requested_item fd.num is exist - process it [15:30:31]SAM_PROTO_GetFieldsCounters [15:30:31]wFMCommunicate request_size=4 [15:30:31]MH_SAM_APDU [15:30:31]CAPDU: 80 13 00 00 [15:30:31]Write to MH i2c: E2 08 00 8D 0B 80 13 00 00 00 00 00 00 14 [15:30:31]Write i2c OK [15:30:31]MH_I2C_Read... [15:30:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:31]Read from MH i2c: E2 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: E2 62 00 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: E2 62 00 8D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 49 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [15:30: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 49 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:31]wFMCommunicate OK [15:30:31]SAM_PROTO_GetFieldsCounters done [15:30:31]requested_item shift.num is exist - process it [15:30:31]requested_item shift.opened is exist - process it [15:30:31]req_shift_opened [15:30:31]FM_GetShiftState [15:30:31]SAM_PROTO_GetShiftState [15:30:31]wFMCommunicate request_size=4 [15:30:31]MH_SAM_APDU [15:30:31]CAPDU: 80 13 01 00 [15:30:31]Write to MH i2c: E2 08 00 8E 0B 80 13 01 00 00 00 00 00 16 [15:30:31]Write i2c OK [15:30:31]MH_I2C_Read... [15:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:31]Read from MH i2c: E2 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: E2 0E 00 [15:30:31]MH_I2C_Read... [15:30:31]Read from MH i2c: E2 0E 00 8E 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 0C [15:30:31]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:30:31]wFMCommunicate OK [15:30:31]SAM_PROTO_GetShiftState done [15:30:31]FM_GetShiftState done [15:30:31]req_shift_opened done [15:30:31]requested_item shift.open_date is exist - process it [15:30:31]req_shift_open_date [15:30:31]req_shift_open_date done [15:30:31]produce_requested_data done [15:30:31]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76873,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [15:30:31]process_action_free close_receipt [15:30:31]json_value_free [15:30:31]json_value_free done [15:30:31]process_json_proto returns [15:30:31]Send response to host [15:30:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76873,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [15:30:31]free response buf [15:30:31]execute_script done [15:30:31]execute_script returns [15:30:31]free content buf [15:30:31]Sock 8.Close socket [15:30:31]Sock 8.Thread stoped [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:50]accept exits with 9 [15:57:50]New connection [15:57:50]New thread 3067362660 created [15:57:50]Thread 3067219300 joined [15:57:50]Waiting for new connection... [15:57:50] Sock 9.Parse request [15:57:50]Sock 9.Check first char [15:57:50]Sock 9.First char is OK [15:57:50]request: POST /json_proto HTTP/1.0 [15:57:50]Method: POST [15:57:50]URL: /json_proto [15:57:50]Method is POST - this is cgi request [15:57:50]url: /json_proto [15:57:50]query_string will be loaded in cgi processing [15:57:50]execute_cgi json_proto POST (null) [15:57:50]execute_cgi path=json_proto method=POST [15:57:50]POST find Content-Length [15:57:50]Host: 172.17.39.195:8080 [15:57:50]Content-Length: 626 [15:57:50]Content-Type: application/json [15:57:50] [15:57:50]POST finish read [15:57:50]Found Content-Length = 626 [15:57:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220934", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:50]execute_script... [15:57:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220934", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:50]POST & json_proto [15:57:50]process_json_proto [15:57:50]json parsed OK: [15:57:50]protocol is kg_v1.0 [15:57:50]action value=close_receipt [15:57:50]process_action close_receipt [15:57:50]cmd_close_receipt [15:57:50]MH_GetDate [15:57:50]Write to MH i2c: F0 00 00 8F 0B 89 [15:57:50]Write i2c OK [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: F0 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: F0 09 00 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: F0 09 00 8F 0B 00 7F F4 76 66 99 81 91 64 F0 [15:57:50]GetLastDocTimeStamp 1719070228 [15:57:50]current date 1719071871 [15:57:50]FM_GetShiftState [15:57:50]SAM_PROTO_GetShiftState [15:57:50]wFMCommunicate request_size=4 [15:57:50]MH_SAM_APDU [15:57:50]CAPDU: 80 13 01 00 [15:57:50]Write to MH i2c: E2 08 00 90 0B 80 13 01 00 00 00 00 00 18 [15:57:50]Write i2c OK [15:57:50]MH_I2C_Read... [15:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:50]Read from MH i2c: E2 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: E2 0E 00 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: E2 0E 00 90 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 0E [15:57:50]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:57:50]wFMCommunicate OK [15:57:50]SAM_PROTO_GetShiftState done [15:57:50]FM_GetShiftState done [15:57:50]opened in 1719016435 [15:57:50]opened+sec_in_day 1719102835 [15:57:50]quantity*price = 1000 [15:57:50]sum+1 = 1001 [15:57:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 70 22.06.2024 15:57 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76874 ФПД: 67157210294412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155751&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76874&fm=67157210294412&tin=02508201610067®Number=0000000000095696&sum=1000 0 [15:57:51]StoreToDocumentArchive [15:57:51]shift 395 fd 76874 [15:57:51]save to /storage/0395/doc_00076874 [15:57:51]save last doc name /storage/0395/doc_00076874 to /storage/kkm_last_doc_name [15:57:51]save OK [15:57:51]Clear old archive folders... [15:57:51]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:57:51]tlvbuf is 00994D50 [15:57:51]SAM_PROTO_ClearQueue [15:57:51]wFMCommunicate request_size=4 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 09 00 00 [15:57:51]Write to MH i2c: E2 08 00 9D 0B 80 09 00 00 00 00 00 00 1A [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [15:57:51]RAPDU: 90 00 [15:57:51]wFMCommunicate OK [15:57:51]SAM_PROTO_ClearQueue done [15:57:51]KKMCreateOFDPacket [15:57:51]OFDProtocolAddRootSTLVToBuf [15:57:51]FM_MakeSignedData [15:57:51]FM_MakeSignedData [15:57:51]SAM_PROTO_SignData [15:57:51]wFMCommunicate request_size=4 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 0D 01 02 [15:57:51]Write to MH i2c: E2 08 00 9E 0B 80 0D 01 02 00 00 00 00 22 [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [15:57:51]RAPDU: 90 00 [15:57:51]wFMCommunicate OK [15:57:51]wFMCommunicate request_size=255 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 7F F4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [15:57:51]Write to MH i2c: E2 02 01 9F 0B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 7F F4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 8C [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [15:57:51]RAPDU: 90 00 [15:57:51]wFMCommunicate OK [15:57:51]wFMCommunicate request_size=32 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 4A 2C 01 00 35 04 06 00 3D 14 41 A9 E8 8C [15:57:51]Write to MH i2c: E2 23 00 A0 0B 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 4A 2C 01 00 35 04 06 00 3D 14 41 A9 E8 8C 00 00 A5 [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [15:57:51]RAPDU: 90 00 [15:57:51]wFMCommunicate OK [15:57:51]wFMCommunicate request_size=4 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 0D 03 02 [15:57:51]Write to MH i2c: E2 08 00 A1 0B 80 0D 03 02 00 00 00 00 27 [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 0B 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 0B 00 A1 0B 00 A9 88 A0 BC 77 9C CA B8 90 00 4A [15:57:51]RAPDU: A9 88 A0 BC 77 9C CA B8 90 00 [15:57:51]wFMCommunicate OK [15:57:51]SAM_PROTO_SignData done [15:57:51]FM_MakeSignedData done [15:57:51]CreateOFDProtocolMessage [15:57:51]wFMCommunicate request_size=4 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 11 00 00 [15:57:51]Write to MH i2c: E2 08 00 A2 0B 80 11 00 00 00 00 00 00 27 [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 17 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 17 00 A2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 77 [15:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:57:51]wFMCommunicate OK [15:57:51]CreateOFDProtocolMessage done [15:57:51]OFDSenderStorePacket 76874 [15:57:51]StoreOFDPacket docnum=76874 [15:57:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 B5 B8 1D 01 AF CD 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 7F F4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4A 2C 01 00 35 04 06 00 3D 14 41 A9 E8 8C A9 88 A0 BC 77 9C CA B8 [15:57:51]CheckFolder [15:57:51]dirname=/storage/ofd_packets [15:57:51]CheckFolder done [15:57:51]ProducePacketName [15:57:51]name=ofd_packets/00076874 [15:57:51]NVStorageSaveData ofd_packets/00076874 [15:57:51]File name is /storage/ofd_packets/00076874 [15:57:51]Write 323 bytes [15:57:51]NVStorageSaveData done [15:57:51]OFDSenderStorePacket done [15:57:51]KKMCreateOFDPacket done [15:57:51]NVStorageSaveData kkm_last_timestamp [15:57:51]File name is /storage/kkm_last_timestamp [15:57:51]Write 4 bytes [15:57:51]NVStorageSaveData done [15:57:51]ExternCall_PrintAddStr [15:57:51]wPrintStart [15:57:51]Write to MH i2c: 01 00 00 A3 0B AE [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: 01 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: 01 07 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 FF 0F C3 [15:57:51]RasterBufferAndPrint [15:57:51]line Счет N : (3)220934 [15:57:51]line ИНН: 02508201610067 [15:57:51]line Контрольно-Кассовый Чек [15:57:51]line ПРОДАЖА [15:57:51]line Товар: 46226624 [15:57:51]line Mentos ПВ Клубника 6*100*2 [15:57:51]line 1.000 * 10.00 [15:57:51]line = 10.00 [15:57:51]line НДС 12% НСП 1% [15:57:51]line > о реализуемом товаре [15:57:51]line ИТОГО: 10.00 [15:57:51]line НСП 1% : 0.09 [15:57:51]line НДС 12% : 1.06 [15:57:51]line Наличными: 10.00 [15:57:51]line Безнал.: 0.00 [15:57:51]line Место: АЗС № 144 "Партнер Нефть" [15:57:51]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:57:51]line СНО: Общий режим [15:57:51]line Чек 70 22.06.2024 15:57 [15:57:51]line Смена: 395 ФФД: 1.0 [15:57:51]line ЗНМ: 0300000170 [15:57:51]line РНМ: 0000000000095696 [15:57:51]line Версия ККМ: 001 [15:57:51]line ФМ: 0000000000875009 [15:57:51]line ФД: 76874 [15:57:51]line ФПД: 67157210294412 [15:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155751&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76874&fm=67157210294412&tin=02508201610067®Number=0000000000095696&sum=1000 [15:57:51]line 0 [15:57:51]written 0, free lines is 4095 [15:57:52]OFD Sender: Processing packet 76874 [packets to send 351, broken 350] [15:57:52]ProducePacketName [15:57:52]name=ofd_packets/00076874 [15:57:52]OFD Sender: To server: pG, [15:57:52]CommunicateWithHost lk.salyk.kg:30040 [15:57:52]ConnectInit lk.salyk.kg [15:57:52]Connected sock=10 [15:57:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 B5 B8 1D 01 AF CD 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 7F F4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4A 2C 01 00 35 04 06 00 3D 14 41 A9 E8 8C A9 88 A0 BC 77 9C CA B8 [15:57:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 9C F6 47 00 39 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 35 30 30 39 10 04 04 00 4A 2C 01 00 F4 03 04 00 19 9B 76 66 B6 04 01 00 00 5D 35 62 1A 79 99 5B 98 [15:57:52]CommunicateWithHost err = 0 [15:57:52]CheckOFDResponse [15:57:52]1017 (14) - 77093643461234 [15:57:52]1041 (16) - 0000000000875009 [15:57:52]1040 (4) - 76874 [15:57:52]1012 (4) - 22.06.2024 09:36 [15:57:52]1206 (1) - 0 [15:57:52]OFD Sender: Remove packet 76874 [15:57:52]ProducePacketName [15:57:52]name=ofd_packets/00076874 [15:57:52]NVStorageDeleteData [15:57:52]Write to MH i2c: 01 00 00 CB 0B D6 [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: 01 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: 01 07 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 01 0D EB [15:57:52]RasterBufferAndPrint [15:57:52]line [15:57:52]line [15:57:52]line [15:57:52]line [15:57:52]line [15:57:52]written 0, free lines is 3335 [15:57:52]MH_Cut [15:57:52]Write to MH i2c: D1 01 00 D2 0B 01 AF [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: D1 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: D1 01 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: D1 01 00 D2 0B 00 AE [15:57:52]Write to MH i2c: 01 00 00 D3 0B DE [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]OFD Sender: No OFD packet to send [15:57:53]*** Cut start [15:57:53]*** Partial cut [15:57:53]*** CUTSNS_PIN = 1 [15:57:53]*** CUTSNS_PIN = 0 [15:57:53]*** Brake cut motor [15:57:53]Read from MH i2c: 01 [15:57:53]MH_I2C_Read... [15:57:53]*** Stop cut motor [15:57:53]*** Cut end [15:57:53]Read from MH i2c: 01 07 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: 01 07 00 D3 0B 00 00 00 00 00 FF 0F F3 [15:57:53]process_action close_receipt done [15:57:53]requested_data is exist [15:57:53]produce_requested_data [15:57:53]requested_item fm.sn is exist - process it [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 11 00 00 [15:57:53]Write to MH i2c: E2 08 00 D4 0B 80 11 00 00 00 00 00 00 59 [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 17 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 17 00 D4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A9 [15:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:57:53]wFMCommunicate OK [15:57:53]requested_item fd.num is exist - process it [15:57:53]SAM_PROTO_GetFieldsCounters [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 13 00 00 [15:57:53]Write to MH i2c: E2 08 00 D5 0B 80 13 00 00 00 00 00 00 5C [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 62 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 62 00 D5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [15:57: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:53]wFMCommunicate OK [15:57:53]SAM_PROTO_GetFieldsCounters done [15:57:53]requested_item shift.num is exist - process it [15:57:53]requested_item shift.opened is exist - process it [15:57:53]req_shift_opened [15:57:53]FM_GetShiftState [15:57:53]SAM_PROTO_GetShiftState [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 13 01 00 [15:57:53]Write to MH i2c: E2 08 00 D6 0B 80 13 01 00 00 00 00 00 5E [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:54]Read from MH i2c: E2 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: E2 0E 00 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: E2 0E 00 D6 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 54 [15:57:54]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:57:54]wFMCommunicate OK [15:57:54]SAM_PROTO_GetShiftState done [15:57:54]FM_GetShiftState done [15:57:54]req_shift_opened done [15:57:54]requested_item shift.open_date is exist - process it [15:57:54]req_shift_open_date [15:57:54]req_shift_open_date done [15:57:54]produce_requested_data done [15:57:54]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76874,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [15:57:54]process_action_free close_receipt [15:57:54]json_value_free [15:57:54]json_value_free done [15:57:54]process_json_proto returns [15:57:54]Send response to host [15:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76874,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [15:57:54]free response buf [15:57:54]execute_script done [15:57:54]execute_script returns [15:57:54]free content buf [15:57:54]Sock 9.Close socket [15:57:54]Sock 9.Thread stoped [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:19]accept exits with 8 [15:59:19]New connection [15:59:19]New thread 3067219300 created [15:59:19]Thread 3067362660 joined [15:59:19]Waiting for new connection... [15:59:19] Sock 8.Parse request [15:59:19]Sock 8.Check first char [15:59:19]Sock 8.First char is OK [15:59:19]request: POST /json_proto HTTP/1.0 [15:59:19]Method: POST [15:59:19]URL: /json_proto [15:59:19]Method is POST - this is cgi request [15:59:19]url: /json_proto [15:59:19]query_string will be loaded in cgi processing [15:59:19]execute_cgi json_proto POST (null) [15:59:19]execute_cgi path=json_proto method=POST [15:59:19]POST find Content-Length [15:59:19]Host: 172.17.39.195:8080 [15:59:19]Content-Length: 804 [15:59:19]Content-Type: application/json [15:59:19] [15:59:19]POST finish read [15:59:19]Found Content-Length = 804 [15:59:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:19]execute_script... [15:59:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:19]POST & json_proto [15:59:19]process_json_proto [15:59:19]json parsed OK: [15:59:19]protocol is kg_v1.0 [15:59:19]action value=close_receipt [15:59:19]process_action close_receipt [15:59:19]cmd_close_receipt [15:59:19]MH_GetDate [15:59:19]Write to MH i2c: F0 00 00 D7 0B D1 [15:59:19]Write i2c OK [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: F0 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: F0 09 00 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: F0 09 00 D7 0B 00 D9 F4 76 66 99 81 91 64 92 [15:59:19]GetLastDocTimeStamp 1719071871 [15:59:19]current date 1719071961 [15:59:19]FM_GetShiftState [15:59:19]SAM_PROTO_GetShiftState [15:59:19]wFMCommunicate request_size=4 [15:59:19]MH_SAM_APDU [15:59:19]CAPDU: 80 13 01 00 [15:59:19]Write to MH i2c: E2 08 00 D8 0B 80 13 01 00 00 00 00 00 60 [15:59:19]Write i2c OK [15:59:19]MH_I2C_Read... [15:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:19]Read from MH i2c: E2 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: E2 0E 00 [15:59:19]MH_I2C_Read... [15:59:19]Read from MH i2c: E2 0E 00 D8 0B 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 56 [15:59:19]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:59:19]wFMCommunicate OK [15:59:19]SAM_PROTO_GetShiftState done [15:59:19]FM_GetShiftState done [15:59:19]opened in 1719016435 [15:59:19]opened+sec_in_day 1719102835 [15:59:19]quantity*price = 100064 [15:59:19]sum+1 = 100066 [15:59:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 71 22.06.2024 15:59 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76875 ФПД: 223841500490149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155921&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76875&fm=223841500490149&tin=02508201610067®Number=0000000000095696&sum=100065 [15:59:20]StoreToDocumentArchive [15:59:20]shift 395 fd 76875 [15:59:20]save to /storage/0395/doc_00076875 [15:59:20]save last doc name /storage/0395/doc_00076875 to /storage/kkm_last_doc_name [15:59:20]save OK [15:59:20]Clear old archive folders... [15:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:20]tlvbuf is 00993670 [15:59:20]SAM_PROTO_ClearQueue [15:59:20]wFMCommunicate request_size=4 [15:59:20]MH_SAM_APDU [15:59:20]CAPDU: 80 09 00 00 [15:59:20]Write to MH i2c: E2 08 00 E5 0B 80 09 00 00 00 00 00 00 62 [15:59:20]Write i2c OK [15:59:20]MH_I2C_Read... [15:59:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:20]Read from MH i2c: E2 [15:59:20]MH_I2C_Read... [15:59:20]Read from MH i2c: E2 03 00 [15:59:20]MH_I2C_Read... [15:59:20]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [15:59:20]RAPDU: 90 00 [15:59:20]wFMCommunicate OK [15:59:20]SAM_PROTO_ClearQueue done [15:59:20]KKMCreateOFDPacket [15:59:20]OFDProtocolAddRootSTLVToBuf [15:59:20]FM_MakeSignedData [15:59:20]FM_MakeSignedData [15:59:20]SAM_PROTO_SignData [15:59:20]wFMCommunicate request_size=4 [15:59:20]MH_SAM_APDU [15:59:20]CAPDU: 80 0D 01 02 [15:59:20]Write to MH i2c: E2 08 00 E6 0B 80 0D 01 02 00 00 00 00 6A [15:59:20]Write i2c OK [15:59:20]MH_I2C_Read... [15:59:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:20]Read from MH i2c: E2 [15:59:20]MH_I2C_Read... [15:59:20]Read from MH i2c: E2 03 00 [15:59:20]MH_I2C_Read... [15:59:20]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [15:59:20]RAPDU: 90 00 [15:59:20]wFMCommunicate OK [15:59:20]wFMCommunicate request_size=255 [15:59:20]MH_SAM_APDU [15:59:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D9 F4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2C 01 00 35 04 06 00 CB [15:59:20]Write to MH i2c: E2 02 01 E7 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D9 F4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2C 01 00 35 04 06 00 CB 00 00 B6 [15:59:20]Write i2c OK [15:59:20]MH_I2C_Read... [15:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [15:59:21]RAPDU: 90 00 [15:59:21]wFMCommunicate OK [15:59:21]wFMCommunicate request_size=10 [15:59:21]MH_SAM_APDU [15:59:21]CAPDU: 80 0D 02 02 05 95 29 1F 69 A5 [15:59:21]Write to MH i2c: E2 0D 00 E8 0B 80 0D 02 02 05 00 95 29 1F 69 A5 00 00 62 [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [15:59:21]RAPDU: 90 00 [15:59:21]wFMCommunicate OK [15:59:21]wFMCommunicate request_size=4 [15:59:21]MH_SAM_APDU [15:59:21]CAPDU: 80 0D 03 02 [15:59:21]Write to MH i2c: E2 08 00 E9 0B 80 0D 03 02 00 00 00 00 6F [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 0B 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 0B 00 E9 0B 00 A0 93 33 53 E3 57 25 BF 90 00 47 [15:59:21]RAPDU: A0 93 33 53 E3 57 25 BF 90 00 [15:59:21]wFMCommunicate OK [15:59:21]SAM_PROTO_SignData done [15:59:21]FM_MakeSignedData done [15:59:21]CreateOFDProtocolMessage [15:59:21]wFMCommunicate request_size=4 [15:59:21]MH_SAM_APDU [15:59:21]CAPDU: 80 11 00 00 [15:59:21]Write to MH i2c: E2 08 00 EA 0B 80 11 00 00 00 00 00 00 6F [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:21]Read from MH i2c: E2 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 17 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: E2 17 00 EA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BF [15:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:59:21]wFMCommunicate OK [15:59:21]CreateOFDProtocolMessage done [15:59:21]OFDSenderStorePacket 76875 [15:59:21]StoreOFDPacket docnum=76875 [15:59:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 91 CD 07 01 50 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D9 F4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2C 01 00 35 04 06 00 CB 95 29 1F 69 A5 A0 93 33 53 E3 57 25 BF [15:59:21]CheckFolder [15:59:21]dirname=/storage/ofd_packets [15:59:21]CheckFolder done [15:59:21]ProducePacketName [15:59:21]name=ofd_packets/00076875 [15:59:21]NVStorageSaveData ofd_packets/00076875 [15:59:21]File name is /storage/ofd_packets/00076875 [15:59:21]Write 301 bytes [15:59:21]NVStorageSaveData done [15:59:21]OFDSenderStorePacket done [15:59:21]KKMCreateOFDPacket done [15:59:21]NVStorageSaveData kkm_last_timestamp [15:59:21]File name is /storage/kkm_last_timestamp [15:59:21]Write 4 bytes [15:59:21]NVStorageSaveData done [15:59:21]ExternCall_PrintAddStr [15:59:21]wPrintStart [15:59:21]Write to MH i2c: 01 00 00 EB 0B F6 [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: 01 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: 01 07 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: 01 07 00 EB 0B 00 00 00 00 00 FF 0F 0B [15:59:21]RasterBufferAndPrint [15:59:21]line Счет N : (1)1694607 [15:59:21]line ИНН: 02508201610067 [15:59:21]line Контрольно-Кассовый Чек [15:59:21]line ПРОДАЖА [15:59:21]line ТРК (МРК, ГНК) : 53 [15:59:21]line Товар: 2710124130 [15:59:21]line Аи-92-К-5 [15:59:21]line 15.070 * 66.40 [15:59:21]line = 1000.65 [15:59:21]line НДС 12% НСП 1% [15:59:21]line > о реализуемом товаре [15:59:21]line ИТОГО: 1000.65 [15:59:21]line НСП 1% : 8.85 [15:59:21]line НДС 12% : 106.26 [15:59:21]line Наличными: 0.00 [15:59:21]line Безнал.: 1000.65 [15:59:21]line Место: АЗС № 144 "Партнер Нефть" [15:59:21]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [15:59:21]line СНО: Общий режим [15:59:21]line Чек 71 22.06.2024 15:59 [15:59:21]line Смена: 395 ФФД: 1.0 [15:59:21]line ЗНМ: 0300000170 [15:59:21]line РНМ: 0000000000095696 [15:59:21]line Версия ККМ: 001 [15:59:21]line Платежная система: O! деньги [15:59:21]line ФМ: 0000000000875009 [15:59:21]line ФД: 76875 [15:59:21]line ФПД: 223841500490149 [15:59:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T155921&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76875&fm=223841500490149&tin=02508201610067®Number=0000000000095696&sum=100065 [15:59:21]written 0, free lines is 4095 [15:59:21]OFD Sender: Processing packet 76875 [packets to send 351, broken 350] [15:59:21]ProducePacketName [15:59:21]name=ofd_packets/00076875 [15:59:21]OFD Sender: To server: pG, [15:59:21]CommunicateWithHost lk.salyk.kg:30040 [15:59:21]ConnectInit lk.salyk.kg [15:59:21]Connected sock=9 [15:59:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 91 CD 07 01 50 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D9 F4 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2C 01 00 35 04 06 00 CB 95 29 1F 69 A5 A0 93 33 53 E3 57 25 BF [15:59:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 50 84 47 00 ED 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4B 2C 01 00 F4 03 04 00 72 9B 76 66 B6 04 01 00 00 24 18 BE 5C 52 74 58 CC [15:59:21]CommunicateWithHost err = 0 [15:59:21]CheckOFDResponse [15:59:21]1017 (14) - 77093643461234 [15:59:21]1041 (16) - 0000000000875009 [15:59:21]1040 (4) - 76875 [15:59:21]1012 (4) - 22.06.2024 09:37 [15:59:21]1206 (1) - 0 [15:59:21]OFD Sender: Remove packet 76875 [15:59:21]ProducePacketName [15:59:21]name=ofd_packets/00076875 [15:59:21]NVStorageDeleteData [15:59:21]Write to MH i2c: 01 00 00 15 0C 21 [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: 01 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: 01 07 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 E6 0C 1A [15:59:21]RasterBufferAndPrint [15:59:21]line [15:59:21]line [15:59:21]line [15:59:21]line [15:59:21]line [15:59:21]written 0, free lines is 3309 [15:59:21]MH_Cut [15:59:21]Write to MH i2c: D1 01 00 1C 0C 01 FA [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: D1 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: D1 01 00 [15:59:21]MH_I2C_Read... [15:59:21]Read from MH i2c: D1 01 00 1C 0C 00 F9 [15:59:21]Write to MH i2c: 01 00 00 1D 0C 29 [15:59:21]Write i2c OK [15:59:21]MH_I2C_Read... [15:59:22]OFD Sender: No OFD packet to send [15:59:22]*** Cut start [15:59:22]*** Partial cut [15:59:22]*** CUTSNS_PIN = 1 [15:59:22]*** CUTSNS_PIN = 0 [15:59:22]*** Brake cut motor [15:59:23]Read from MH i2c: 01 [15:59:23]MH_I2C_Read... [15:59:23]*** Stop cut motor [15:59:23]*** Cut end [15:59:23]Read from MH i2c: 01 07 00 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: 01 07 00 1D 0C 00 00 00 00 00 FF 0F 3E [15:59:23]process_action close_receipt done [15:59:23]requested_data is exist [15:59:23]produce_requested_data [15:59:23]requested_item fm.sn is exist - process it [15:59:23]wFMCommunicate request_size=4 [15:59:23]MH_SAM_APDU [15:59:23]CAPDU: 80 11 00 00 [15:59:23]Write to MH i2c: E2 08 00 1E 0C 80 11 00 00 00 00 00 00 A4 [15:59:23]Write i2c OK [15:59:23]MH_I2C_Read... [15:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:23]Read from MH i2c: E2 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 17 00 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 17 00 1E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F4 [15:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [15:59:23]wFMCommunicate OK [15:59:23]requested_item fd.num is exist - process it [15:59:23]SAM_PROTO_GetFieldsCounters [15:59:23]wFMCommunicate request_size=4 [15:59:23]MH_SAM_APDU [15:59:23]CAPDU: 80 13 00 00 [15:59:23]Write to MH i2c: E2 08 00 1F 0C 80 13 00 00 00 00 00 00 A7 [15:59:23]Write i2c OK [15:59:23]MH_I2C_Read... [15:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:23]Read from MH i2c: E2 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 62 00 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 62 00 1F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [15:59: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:23]wFMCommunicate OK [15:59:23]SAM_PROTO_GetFieldsCounters done [15:59:23]requested_item shift.num is exist - process it [15:59:23]requested_item shift.opened is exist - process it [15:59:23]req_shift_opened [15:59:23]FM_GetShiftState [15:59:23]SAM_PROTO_GetShiftState [15:59:23]wFMCommunicate request_size=4 [15:59:23]MH_SAM_APDU [15:59:23]CAPDU: 80 13 01 00 [15:59:23]Write to MH i2c: E2 08 00 20 0C 80 13 01 00 00 00 00 00 A9 [15:59:23]Write i2c OK [15:59:23]MH_I2C_Read... [15:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:23]Read from MH i2c: E2 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 0E 00 [15:59:23]MH_I2C_Read... [15:59:23]Read from MH i2c: E2 0E 00 20 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 9F [15:59:23]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [15:59:23]wFMCommunicate OK [15:59:23]SAM_PROTO_GetShiftState done [15:59:23]FM_GetShiftState done [15:59:23]req_shift_opened done [15:59:23]requested_item shift.open_date is exist - process it [15:59:23]req_shift_open_date [15:59:23]req_shift_open_date done [15:59:23]produce_requested_data done [15:59:23]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76875,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [15:59:23]process_action_free close_receipt [15:59:23]json_value_free [15:59:23]json_value_free done [15:59:23]process_json_proto returns [15:59:23]Send response to host [15:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76875,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [15:59:23]free response buf [15:59:23]execute_script done [15:59:23]execute_script returns [15:59:23]free content buf [15:59:23]Sock 8.Close socket [15:59:23]Sock 8.Thread stoped [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:29]accept exits with 10 [16:27:29]New connection [16:27:29]New thread 3067362660 created [16:27:29]Thread 3067219300 joined [16:27:29]Waiting for new connection... [16:27:29] Sock 10.Parse request [16:27:29]Sock 10.Check first char [16:27:29]Sock 10.First char is OK [16:27:29]request: POST /json_proto HTTP/1.0 [16:27:29]Method: POST [16:27:29]URL: /json_proto [16:27:29]Method is POST - this is cgi request [16:27:29]url: /json_proto [16:27:29]query_string will be loaded in cgi processing [16:27:29]execute_cgi json_proto POST (null) [16:27:29]execute_cgi path=json_proto method=POST [16:27:29]POST find Content-Length [16:27:29]Host: 172.17.39.195:8080 [16:27:29]Content-Length: 621 [16:27:29]Content-Type: application/json [16:27:29] [16:27:29]POST finish read [16:27:29]Found Content-Length = 621 [16:27:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220935", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:29]execute_script... [16:27:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220935", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:29]POST & json_proto [16:27:29]process_json_proto [16:27:29]json parsed OK: [16:27:29]protocol is kg_v1.0 [16:27:29]action value=close_receipt [16:27:29]process_action close_receipt [16:27:29]cmd_close_receipt [16:27:29]MH_GetDate [16:27:29]Write to MH i2c: F0 00 00 21 0C 1C [16:27:29]Write i2c OK [16:27:29]MH_I2C_Read... [16:27:29]Read from MH i2c: F0 [16:27:29]MH_I2C_Read... [16:27:29]Read from MH i2c: F0 09 00 [16:27:29]MH_I2C_Read... [16:27:29]Read from MH i2c: F0 09 00 21 0C 00 72 FB 76 66 99 81 91 64 7D [16:27:29]GetLastDocTimeStamp 1719071961 [16:27:29]current date 1719073650 [16:27:29]FM_GetShiftState [16:27:29]SAM_PROTO_GetShiftState [16:27:29]wFMCommunicate request_size=4 [16:27:29]MH_SAM_APDU [16:27:29]CAPDU: 80 13 01 00 [16:27:29]Write to MH i2c: E2 08 00 22 0C 80 13 01 00 00 00 00 00 AB [16:27:29]Write i2c OK [16:27:29]MH_I2C_Read... [16:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:29]Read from MH i2c: E2 [16:27:29]MH_I2C_Read... [16:27:29]Read from MH i2c: E2 0E 00 [16:27:29]MH_I2C_Read... [16:27:29]Read from MH i2c: E2 0E 00 22 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 A1 [16:27:29]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [16:27:29]wFMCommunicate OK [16:27:29]SAM_PROTO_GetShiftState done [16:27:29]FM_GetShiftState done [16:27:29]opened in 1719016435 [16:27:29]opened+sec_in_day 1719102835 [16:27:29]quantity*price = 14000 [16:27:29]sum+1 = 14001 [16:27:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 72 22.06.2024 16:27 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76876 ФПД: 125198533004935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162730&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76876&fm=125198533004935&tin=02508201610067®Number=0000000000095696&sum=14000 0 [16:27:30]StoreToDocumentArchive [16:27:30]shift 395 fd 76876 [16:27:30]save to /storage/0395/doc_00076876 [16:27:30]save last doc name /storage/0395/doc_00076876 to /storage/kkm_last_doc_name [16:27:30]save OK [16:27:30]Clear old archive folders... [16:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:27:30]tlvbuf is 009948F0 [16:27:30]SAM_PROTO_ClearQueue [16:27:30]wFMCommunicate request_size=4 [16:27:30]MH_SAM_APDU [16:27:30]CAPDU: 80 09 00 00 [16:27:30]Write to MH i2c: E2 08 00 2F 0C 80 09 00 00 00 00 00 00 AD [16:27:30]Write i2c OK [16:27:30]MH_I2C_Read... [16:27:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:30]Read from MH i2c: E2 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 03 00 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [16:27:30]RAPDU: 90 00 [16:27:30]wFMCommunicate OK [16:27:30]SAM_PROTO_ClearQueue done [16:27:30]KKMCreateOFDPacket [16:27:30]OFDProtocolAddRootSTLVToBuf [16:27:30]FM_MakeSignedData [16:27:30]FM_MakeSignedData [16:27:30]SAM_PROTO_SignData [16:27:30]wFMCommunicate request_size=4 [16:27:30]MH_SAM_APDU [16:27:30]CAPDU: 80 0D 01 02 [16:27:30]Write to MH i2c: E2 08 00 30 0C 80 0D 01 02 00 00 00 00 B5 [16:27:30]Write i2c OK [16:27:30]MH_I2C_Read... [16:27:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:30]Read from MH i2c: E2 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 03 00 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [16:27:30]RAPDU: 90 00 [16:27:30]wFMCommunicate OK [16:27:30]wFMCommunicate request_size=255 [16:27:30]MH_SAM_APDU [16:27:30]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 72 FB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [16:27:30]Write to MH i2c: E2 02 01 31 0C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 72 FB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 BD [16:27:30]Write i2c OK [16:27:30]MH_I2C_Read... [16:27:30]OFD Sender: No OFD packet to send [16:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:30]Read from MH i2c: E2 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 03 00 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [16:27:30]RAPDU: 90 00 [16:27:30]wFMCommunicate OK [16:27:30]wFMCommunicate request_size=32 [16:27:30]MH_SAM_APDU [16:27:30]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2C 01 00 35 04 06 00 71 DE 0E 16 0E 87 [16:27:30]Write to MH i2c: E2 23 00 32 0C 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2C 01 00 35 04 06 00 71 DE 0E 16 0E 87 00 00 93 [16:27:30]Write i2c OK [16:27:30]MH_I2C_Read... [16:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:30]Read from MH i2c: E2 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 03 00 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [16:27:30]RAPDU: 90 00 [16:27:30]wFMCommunicate OK [16:27:30]wFMCommunicate request_size=4 [16:27:30]MH_SAM_APDU [16:27:30]CAPDU: 80 0D 03 02 [16:27:30]Write to MH i2c: E2 08 00 33 0C 80 0D 03 02 00 00 00 00 BA [16:27:30]Write i2c OK [16:27:30]MH_I2C_Read... [16:27:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:30]Read from MH i2c: E2 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 0B 00 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 0B 00 33 0C 00 76 43 7B 8E 88 4D 8A 12 90 00 EE [16:27:30]RAPDU: 76 43 7B 8E 88 4D 8A 12 90 00 [16:27:30]wFMCommunicate OK [16:27:30]SAM_PROTO_SignData done [16:27:30]FM_MakeSignedData done [16:27:30]CreateOFDProtocolMessage [16:27:30]wFMCommunicate request_size=4 [16:27:30]MH_SAM_APDU [16:27:30]CAPDU: 80 11 00 00 [16:27:30]Write to MH i2c: E2 08 00 34 0C 80 11 00 00 00 00 00 00 BA [16:27:30]Write i2c OK [16:27:30]MH_I2C_Read... [16:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:30]Read from MH i2c: E2 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 17 00 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: E2 17 00 34 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 0A [16:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:27:30]wFMCommunicate OK [16:27:30]CreateOFDProtocolMessage done [16:27:30]OFDSenderStorePacket 76876 [16:27:30]StoreOFDPacket docnum=76876 [16:27:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 3B 48 1D 01 4E AB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 72 FB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2C 01 00 35 04 06 00 71 DE 0E 16 0E 87 76 43 7B 8E 88 4D 8A 12 [16:27:30]CheckFolder [16:27:30]dirname=/storage/ofd_packets [16:27:30]CheckFolder done [16:27:30]ProducePacketName [16:27:30]name=ofd_packets/00076876 [16:27:30]NVStorageSaveData ofd_packets/00076876 [16:27:30]File name is /storage/ofd_packets/00076876 [16:27:30]Write 323 bytes [16:27:30]NVStorageSaveData done [16:27:30]OFDSenderStorePacket done [16:27:30]KKMCreateOFDPacket done [16:27:30]NVStorageSaveData kkm_last_timestamp [16:27:30]File name is /storage/kkm_last_timestamp [16:27:30]Write 4 bytes [16:27:30]NVStorageSaveData done [16:27:30]ExternCall_PrintAddStr [16:27:30]wPrintStart [16:27:30]Write to MH i2c: 01 00 00 35 0C 41 [16:27:30]Write i2c OK [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: 01 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: 01 07 00 [16:27:30]MH_I2C_Read... [16:27:30]Read from MH i2c: 01 07 00 35 0C 00 00 00 00 00 FF 0F 56 [16:27:30]RasterBufferAndPrint [16:27:30]line Счет N : (3)220935 [16:27:30]line ИНН: 02508201610067 [16:27:30]line Контрольно-Кассовый Чек [16:27:30]line ПРОДАЖА [16:27:30]line Товар: 48747059 [16:27:30]line Сигареты Winston Legend Blue [16:27:30]line 1.000 * 140.00 [16:27:30]line = 140.00 [16:27:30]line НДС 12% НСП 1% [16:27:30]line > о реализуемом товаре [16:27:30]line ИТОГО: 140.00 [16:27:30]line НСП 1% : 1.24 [16:27:30]line НДС 12% : 14.87 [16:27:30]line Наличными: 140.00 [16:27:30]line Безнал.: 0.00 [16:27:30]line Место: АЗС № 144 "Партнер Нефть" [16:27:30]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [16:27:30]line СНО: Общий режим [16:27:30]line Чек 72 22.06.2024 16:27 [16:27:30]line Смена: 395 ФФД: 1.0 [16:27:30]line ЗНМ: 0300000170 [16:27:30]line РНМ: 0000000000095696 [16:27:30]line Версия ККМ: 001 [16:27:30]line ФМ: 0000000000875009 [16:27:30]line ФД: 76876 [16:27:30]line ФПД: 125198533004935 [16:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T162730&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76876&fm=125198533004935&tin=02508201610067®Number=0000000000095696&sum=14000 [16:27:31]line 0 [16:27:31]OFD Sender: Processing packet 76876 [packets to send 351, broken 350] [16:27:31]ProducePacketName [16:27:31]name=ofd_packets/00076876 [16:27:31]OFD Sender: To server: pG, [16:27:31]CommunicateWithHost lk.salyk.kg:30040 [16:27:31]ConnectInit lk.salyk.kg [16:27:31]written 0, free lines is 4095 [16:27:31]Connected sock=9 [16:27:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 3B 48 1D 01 4E AB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 72 FB 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2C 01 00 35 04 06 00 71 DE 0E 16 0E 87 76 43 7B 8E 88 4D 8A 12 [16:27:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 2C 54 47 00 C7 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4C 2C 01 00 F4 03 04 00 0C A2 76 66 B6 04 01 00 00 2A F4 54 D8 EF 59 CD 80 [16:27:31]CommunicateWithHost err = 0 [16:27:31]CheckOFDResponse [16:27:31]1017 (14) - 77093643461234 [16:27:31]1041 (16) - 0000000000875009 [16:27:31]1040 (4) - 76876 [16:27:31]1012 (4) - 22.06.2024 10:06 [16:27:31]1206 (1) - 0 [16:27:31]OFD Sender: Remove packet 76876 [16:27:31]ProducePacketName [16:27:31]name=ofd_packets/00076876 [16:27:31]NVStorageDeleteData [16:27:31]Write to MH i2c: 01 00 00 5E 0C 6A [16:27:31]Write i2c OK [16:27:31]MH_I2C_Read... [16:27:31]Read from MH i2c: 01 [16:27:31]MH_I2C_Read... [16:27:31]Read from MH i2c: 01 07 00 [16:27:31]MH_I2C_Read... [16:27:31]Read from MH i2c: 01 07 00 5E 0C 00 00 00 00 00 CC 0C 49 [16:27:31]RasterBufferAndPrint [16:27:31]line [16:27:31]line [16:27:31]line [16:27:31]line [16:27:31]line [16:27:31]written 0, free lines is 3281 [16:27:31]MH_Cut [16:27:31]Write to MH i2c: D1 01 00 65 0C 01 43 [16:27:31]Write i2c OK [16:27:31]MH_I2C_Read... [16:27:31]Read from MH i2c: D1 [16:27:31]MH_I2C_Read... [16:27:31]Read from MH i2c: D1 01 00 [16:27:31]MH_I2C_Read... [16:27:31]Read from MH i2c: D1 01 00 65 0C 00 42 [16:27:31]Write to MH i2c: 01 00 00 66 0C 72 [16:27:31]Write i2c OK [16:27:31]MH_I2C_Read... [16:27:31]OFD Sender: No OFD packet to send [16:27:32]*** Cut start [16:27:32]*** Partial cut [16:27:32]*** CUTSNS_PIN = 1 [16:27:32]*** CUTSNS_PIN = 0 [16:27:32]*** Brake cut motor [16:27:32]Read from MH i2c: 01 [16:27:32]MH_I2C_Read... [16:27:32]*** Stop cut motor [16:27:32]*** Cut end [16:27:32]Read from MH i2c: 01 07 00 [16:27:32]MH_I2C_Read... [16:27:32]Read from MH i2c: 01 07 00 66 0C 00 00 00 00 00 FF 0F 87 [16:27:32]process_action close_receipt done [16:27:32]requested_data is exist [16:27:32]produce_requested_data [16:27:32]requested_item fm.sn is exist - process it [16:27:32]wFMCommunicate request_size=4 [16:27:32]MH_SAM_APDU [16:27:32]CAPDU: 80 11 00 00 [16:27:32]Write to MH i2c: E2 08 00 67 0C 80 11 00 00 00 00 00 00 ED [16:27:32]Write i2c OK [16:27:32]MH_I2C_Read... [16:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:32]Read from MH i2c: E2 [16:27:32]MH_I2C_Read... [16:27:32]Read from MH i2c: E2 17 00 [16:27:32]MH_I2C_Read... [16:27:32]Read from MH i2c: E2 17 00 67 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3D [16:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:27:32]wFMCommunicate OK [16:27:32]requested_item fd.num is exist - process it [16:27:32]SAM_PROTO_GetFieldsCounters [16:27:32]wFMCommunicate request_size=4 [16:27:32]MH_SAM_APDU [16:27:32]CAPDU: 80 13 00 00 [16:27:32]Write to MH i2c: E2 08 00 68 0C 80 13 00 00 00 00 00 00 F0 [16:27:32]Write i2c OK [16:27:32]MH_I2C_Read... [16:27:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:33]Read from MH i2c: E2 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 62 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 62 00 68 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16:27: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:33]wFMCommunicate OK [16:27:33]SAM_PROTO_GetFieldsCounters done [16:27:33]requested_item shift.num is exist - process it [16:27:33]requested_item shift.opened is exist - process it [16:27:33]req_shift_opened [16:27:33]FM_GetShiftState [16:27:33]SAM_PROTO_GetShiftState [16:27:33]wFMCommunicate request_size=4 [16:27:33]MH_SAM_APDU [16:27:33]CAPDU: 80 13 01 00 [16:27:33]Write to MH i2c: E2 08 00 69 0C 80 13 01 00 00 00 00 00 F2 [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:33]Read from MH i2c: E2 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 0E 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 0E 00 69 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 E8 [16:27:33]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [16:27:33]wFMCommunicate OK [16:27:33]SAM_PROTO_GetShiftState done [16:27:33]FM_GetShiftState done [16:27:33]req_shift_opened done [16:27:33]requested_item shift.open_date is exist - process it [16:27:33]req_shift_open_date [16:27:33]req_shift_open_date done [16:27:33]produce_requested_data done [16:27:33]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76876,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [16:27:33]process_action_free close_receipt [16:27:33]json_value_free [16:27:33]json_value_free done [16:27:33]process_json_proto returns [16:27:33]Send response to host [16:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76876,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [16:27:33]free response buf [16:27:33]execute_script done [16:27:33]execute_script returns [16:27:33]free content buf [16:27:33]Sock 10.Close socket [16:27:33]Sock 10.Thread stoped [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:14]accept exits with 8 [16:32:14]New connection [16:32:14]New thread 3067219300 created [16:32:14]Thread 3067362660 joined [16:32:14]Waiting for new connection... [16:32:14] Sock 8.Parse request [16:32:14]Sock 8.Check first char [16:32:14]Sock 8.First char is OK [16:32:14]request: POST /json_proto HTTP/1.0 [16:32:14]Method: POST [16:32:14]URL: /json_proto [16:32:14]Method is POST - this is cgi request [16:32:14]url: /json_proto [16:32:14]query_string will be loaded in cgi processing [16:32:14]execute_cgi json_proto POST (null) [16:32:14]execute_cgi path=json_proto method=POST [16:32:14]POST find Content-Length [16:32:14]Host: 172.17.39.195:8080 [16:32:14]Content-Length: 899 [16:32:14]Content-Type: application/json [16:32:14] [16:32:14]POST finish read [16:32:14]Found Content-Length = 899 [16:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220936", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:14]execute_script... [16: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 : (3)220936", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:14]POST & json_proto [16:32:14]process_json_proto [16:32:14]json parsed OK: [16:32:14]protocol is kg_v1.0 [16:32:14]action value=close_receipt [16:32:14]process_action close_receipt [16:32:14]cmd_close_receipt [16:32:14]MH_GetDate [16:32:14]Write to MH i2c: F0 00 00 6A 0C 65 [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: F0 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: F0 09 00 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: F0 09 00 6A 0C 00 90 FC 76 66 99 81 91 64 E5 [16:32:14]GetLastDocTimeStamp 1719073650 [16:32:14]current date 1719073936 [16:32:14]FM_GetShiftState [16:32:14]SAM_PROTO_GetShiftState [16:32:14]wFMCommunicate request_size=4 [16:32:14]MH_SAM_APDU [16:32:14]CAPDU: 80 13 01 00 [16:32:14]Write to MH i2c: E2 08 00 6B 0C 80 13 01 00 00 00 00 00 F4 [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:14]Read from MH i2c: E2 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: E2 0E 00 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: E2 0E 00 6B 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 EA [16:32:14]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [16:32:14]wFMCommunicate OK [16:32:14]SAM_PROTO_GetShiftState done [16:32:14]FM_GetShiftState done [16:32:14]opened in 1719016435 [16:32:14]opened+sec_in_day 1719102835 [16:32:14]quantity*price = 14000 [16:32:14]sum+1 = 14001 [16:32:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 207.00 НСП 1% : 1.83 НДС 12% : 21.98 Наличными: 207.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 73 22.06.2024 16:32 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76877 ФПД: 127900253646575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163216&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76877&fm=127900253646575&tin=02508201610067®Number=0000000000095696&sum=20700 0 [16:32:15]StoreToDocumentArchive [16:32:15]shift 395 fd 76877 [16:32:15]save to /storage/0395/doc_00076877 [16:32:15]save last doc name /storage/0395/doc_00076877 to /storage/kkm_last_doc_name [16:32:15]save OK [16:32:15]Clear old archive folders... [16:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=387 [16:32:15]tlvbuf is 00912620 [16:32:15]SAM_PROTO_ClearQueue [16:32:15]wFMCommunicate request_size=4 [16:32:15]MH_SAM_APDU [16:32:15]CAPDU: 80 09 00 00 [16:32:15]Write to MH i2c: E2 08 00 78 0C 80 09 00 00 00 00 00 00 F6 [16:32:15]Write i2c OK [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 [16:32:15]MH_I2C_Read... [16:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:15]Read from MH i2c: E2 03 00 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 03 00 78 0C 00 90 00 F8 [16:32:15]RAPDU: 90 00 [16:32:15]wFMCommunicate OK [16:32:15]SAM_PROTO_ClearQueue done [16:32:15]KKMCreateOFDPacket [16:32:15]OFDProtocolAddRootSTLVToBuf [16:32:15]FM_MakeSignedData [16:32:15]FM_MakeSignedData [16:32:15]SAM_PROTO_SignData [16:32:15]wFMCommunicate request_size=4 [16:32:15]MH_SAM_APDU [16:32:15]CAPDU: 80 0D 01 02 [16:32:15]Write to MH i2c: E2 08 00 79 0C 80 0D 01 02 00 00 00 00 FE [16:32:15]Write i2c OK [16:32:15]MH_I2C_Read... [16:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:15]Read from MH i2c: E2 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 03 00 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 03 00 79 0C 00 90 00 F9 [16:32:15]RAPDU: 90 00 [16:32:15]wFMCommunicate OK [16:32:15]wFMCommunicate request_size=255 [16:32:15]MH_SAM_APDU [16:32:15]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [16:32:15]Write to MH i2c: E2 02 01 7A 0C 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 16 [16:32:15]Write i2c OK [16:32:15]MH_I2C_Read... [16:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:15]Read from MH i2c: E2 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 03 00 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [16:32:15]RAPDU: 90 00 [16:32:15]wFMCommunicate OK [16:32:15]wFMCommunicate request_size=146 [16:32:15]MH_SAM_APDU [16:32:15]CAPDU: 80 0D 02 02 8D 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 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 90 FC 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2C 01 00 35 04 06 00 74 53 19 2F 6E EF [16:32:15]Write to MH i2c: E2 95 00 7B 0C 80 0D 02 02 8D 00 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 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 90 FC 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2C 01 00 35 04 06 00 74 53 19 2F 6E EF 00 00 FC [16:32:15]Write i2c OK [16:32:15]MH_I2C_Read... [16:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:15]Read from MH i2c: E2 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 03 00 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [16:32:15]RAPDU: 90 00 [16:32:15]wFMCommunicate OK [16:32:15]wFMCommunicate request_size=4 [16:32:15]MH_SAM_APDU [16:32:15]CAPDU: 80 0D 03 02 [16:32:15]Write to MH i2c: E2 08 00 7C 0C 80 0D 03 02 00 00 00 00 03 [16:32:15]Write i2c OK [16:32:15]MH_I2C_Read... [16:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:16]Read from MH i2c: E2 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 0B 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 0B 00 7C 0C 00 D2 E6 56 28 07 05 9B E0 90 00 C1 [16:32:16]RAPDU: D2 E6 56 28 07 05 9B E0 90 00 [16:32:16]wFMCommunicate OK [16:32:16]SAM_PROTO_SignData done [16:32:16]FM_MakeSignedData done [16:32:16]CreateOFDProtocolMessage [16:32:16]wFMCommunicate request_size=4 [16:32:16]MH_SAM_APDU [16:32:16]CAPDU: 80 11 00 00 [16:32:16]Write to MH i2c: E2 08 00 7D 0C 80 11 00 00 00 00 00 00 03 [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:16]Read from MH i2c: E2 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 17 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: E2 17 00 7D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 53 [16:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:32:16]wFMCommunicate OK [16:32:16]CreateOFDProtocolMessage done [16:32:16]OFDSenderStorePacket 76877 [16:32:16]StoreOFDPacket docnum=76877 [16:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 97 01 00 00 C4 65 8F 01 3F B3 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 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 90 FC 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2C 01 00 35 04 06 00 74 53 19 2F 6E EF D2 E6 56 28 07 05 9B E0 [16:32:16]CheckFolder [16:32:16]dirname=/storage/ofd_packets [16:32:16]CheckFolder done [16:32:16]ProducePacketName [16:32:16]name=ofd_packets/00076877 [16:32:16]NVStorageSaveData ofd_packets/00076877 [16:32:16]File name is /storage/ofd_packets/00076877 [16:32:16]Write 437 bytes [16:32:16]NVStorageSaveData done [16:32:16]OFDSenderStorePacket done [16:32:16]KKMCreateOFDPacket done [16:32:16]NVStorageSaveData kkm_last_timestamp [16:32:16]File name is /storage/kkm_last_timestamp [16:32:16]Write 4 bytes [16:32:16]NVStorageSaveData done [16:32:16]ExternCall_PrintAddStr [16:32:16]wPrintStart [16:32:16]Write to MH i2c: 01 00 00 7E 0C 8A [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: 01 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: 01 07 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: 01 07 00 7E 0C 00 00 00 00 00 FF 0F 9F [16:32:16]RasterBufferAndPrint [16:32:16]line Счет N : (3)220936 [16:32:16]line ИНН: 02508201610067 [16:32:16]line Контрольно-Кассовый Чек [16:32:16]line ПРОДАЖА [16:32:16]line Товар: 48743570 [16:32:16]line Сигареты Winston XStyle Blue [16:32:16]line 1.000 * 140.00 [16:32:16]line = 140.00 [16:32:16]line НДС 12% НСП 1% [16:32:16]line > о реализуемом товаре [16:32:16]line Товар: 6931280300549 [16:32:16]line Зажигалка Cricket ПН пьезо [16:32:16]line 1.000 * 67.00 [16:32:16]line = 67.00 [16:32:16]line НДС 12% НСП 1% [16:32:16]line > о реализуемом товаре [16:32:16]line ИТОГО: 207.00 [16:32:16]line НСП 1% : 1.83 [16:32:16]line НДС 12% : 21.98 [16:32:16]line Наличными: 207.00 [16:32:16]line Безнал.: 0.00 [16:32:16]line Место: АЗС № 144 "Партнер Нефть" [16:32:16]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [16:32:16]line СНО: Общий режим [16:32:16]line Чек 73 22.06.2024 16:32 [16:32:16]line Смена: 395 ФФД: 1.0 [16:32:16]line ЗНМ: 0300000170 [16:32:16]line РНМ: 0000000000095696 [16:32:16]line Версия ККМ: 001 [16:32:16]line ФМ: 0000000000875009 [16:32:16]line ФД: 76877 [16:32:16]line ФПД: 127900253646575 [16:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163216&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76877&fm=127900253646575&tin=02508201610067®Number=0000000000095696&sum=20700 [16:32:16]line 0 [16:32:16]OFD Sender: Processing packet 76877 [packets to send 351, broken 350] [16:32:16]ProducePacketName [16:32:16]name=ofd_packets/00076877 [16:32:16]OFD Sender: To server: pG, [16:32:16]CommunicateWithHost lk.salyk.kg:30040 [16:32:16]ConnectInit lk.salyk.kg [16:32:16]written 0, free lines is 4095 [16:32:16]Connected sock=10 [16:32:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 97 01 00 00 C4 65 8F 01 3F B3 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 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 90 FC 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2C 01 00 35 04 06 00 74 53 19 2F 6E EF D2 E6 56 28 07 05 9B E0 [16:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 1D 33 47 00 DF FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4D 2C 01 00 F4 03 04 00 29 A3 76 66 B6 04 01 00 00 14 B4 FE A5 02 46 76 9F [16:32:16]CommunicateWithHost err = 0 [16:32:16]CheckOFDResponse [16:32:16]1017 (14) - 77093643461234 [16:32:16]1041 (16) - 0000000000875009 [16:32:16]1040 (4) - 76877 [16:32:16]1012 (4) - 22.06.2024 10:10 [16:32:16]1206 (1) - 0 [16:32:16]OFD Sender: Remove packet 76877 [16:32:16]ProducePacketName [16:32:16]name=ofd_packets/00076877 [16:32:16]NVStorageDeleteData [16:32:16]Write to MH i2c: 01 00 00 AC 0C B8 [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: 01 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: 01 07 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: 01 07 00 AC 0C 00 00 00 00 00 98 0C 63 [16:32:16]RasterBufferAndPrint [16:32:16]line [16:32:16]line [16:32:16]line [16:32:16]line [16:32:16]line [16:32:16]written 0, free lines is 3230 [16:32:16]MH_Cut [16:32:16]Write to MH i2c: D1 01 00 B3 0C 01 91 [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: D1 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: D1 01 00 [16:32:16]MH_I2C_Read... [16:32:16]Read from MH i2c: D1 01 00 B3 0C 00 90 [16:32:16]Write to MH i2c: 01 00 00 B4 0C C0 [16:32:16]Write i2c OK [16:32:16]MH_I2C_Read... [16:32:17]OFD Sender: No OFD packet to send [16:32:17]*** Cut start [16:32:17]*** Partial cut [16:32:17]*** CUTSNS_PIN = 1 [16:32:17]*** CUTSNS_PIN = 0 [16:32:17]*** Brake cut motor [16:32:18]Read from MH i2c: 01 [16:32:18]MH_I2C_Read... [16:32:18]*** Stop cut motor [16:32:18]*** Cut end [16:32:18]Read from MH i2c: 01 07 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: 01 07 00 B4 0C 00 00 00 00 00 FF 0F D5 [16:32:18]process_action close_receipt done [16:32:18]requested_data is exist [16:32:18]produce_requested_data [16:32:18]requested_item fm.sn is exist - process it [16:32:18]wFMCommunicate request_size=4 [16:32:18]MH_SAM_APDU [16:32:18]CAPDU: 80 11 00 00 [16:32:18]Write to MH i2c: E2 08 00 B5 0C 80 11 00 00 00 00 00 00 3B [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:18]Read from MH i2c: E2 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 17 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 17 00 B5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8B [16:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:32:18]wFMCommunicate OK [16:32:18]requested_item fd.num is exist - process it [16:32:18]SAM_PROTO_GetFieldsCounters [16:32:18]wFMCommunicate request_size=4 [16:32:18]MH_SAM_APDU [16:32:18]CAPDU: 80 13 00 00 [16:32:18]Write to MH i2c: E2 08 00 B6 0C 80 13 00 00 00 00 00 00 3E [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:18]Read from MH i2c: E2 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 62 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 62 00 B6 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [16:32: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:18]wFMCommunicate OK [16:32:18]SAM_PROTO_GetFieldsCounters done [16:32:18]requested_item shift.num is exist - process it [16:32:18]requested_item shift.opened is exist - process it [16:32:18]req_shift_opened [16:32:18]FM_GetShiftState [16:32:18]SAM_PROTO_GetShiftState [16:32:18]wFMCommunicate request_size=4 [16:32:18]MH_SAM_APDU [16:32:18]CAPDU: 80 13 01 00 [16:32:18]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [16:32:18]Write i2c OK [16:32:18]MH_I2C_Read... [16:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:18]Read from MH i2c: E2 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 0E 00 [16:32:18]MH_I2C_Read... [16:32:18]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 36 [16:32:18]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [16:32:18]wFMCommunicate OK [16:32:18]SAM_PROTO_GetShiftState done [16:32:18]FM_GetShiftState done [16:32:18]req_shift_opened done [16:32:18]requested_item shift.open_date is exist - process it [16:32:18]req_shift_open_date [16:32:18]req_shift_open_date done [16:32:18]produce_requested_data done [16:32:18]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76877,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [16:32:18]process_action_free close_receipt [16:32:18]json_value_free [16:32:18]json_value_free done [16:32:18]process_json_proto returns [16:32:18]Send response to host [16:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76877,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [16:32:18]free response buf [16:32:18]execute_script done [16:32:18]execute_script returns [16:32:18]free content buf [16:32:18]Sock 8.Close socket [16:32:18]Sock 8.Thread stoped [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:44]accept exits with 9 [16:37:44]New connection [16:37:44]New thread 3067362660 created [16:37:44]Thread 3067219300 joined [16:37:44]Waiting for new connection... [16:37:44] Sock 9.Parse request [16:37:44]Sock 9.Check first char [16:37:44]Sock 9.First char is OK [16:37:44]request: POST /json_proto HTTP/1.0 [16:37:44]Method: POST [16:37:44]URL: /json_proto [16:37:44]Method is POST - this is cgi request [16:37:44]url: /json_proto [16:37:44]query_string will be loaded in cgi processing [16:37:44]execute_cgi json_proto POST (null) [16:37:44]execute_cgi path=json_proto method=POST [16:37:44]POST find Content-Length [16:37:44]Host: 172.17.39.195:8080 [16:37:44]Content-Length: 629 [16:37:44]Content-Type: application/json [16:37:44] [16:37:44]POST finish read [16:37:44]Found Content-Length = 629 [16:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220937", "tax_sys" : 0, "items" : [ { "code": "48745307", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Soho Compact Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:44]execute_script... [16:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220937", "tax_sys" : 0, "items" : [ { "code": "48745307", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Soho Compact Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:44]POST & json_proto [16:37:44]process_json_proto [16:37:44]json parsed OK: [16:37:44]protocol is kg_v1.0 [16:37:44]action value=close_receipt [16:37:44]process_action close_receipt [16:37:44]cmd_close_receipt [16:37:44]MH_GetDate [16:37:44]Write to MH i2c: F0 00 00 B8 0C B3 [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: F0 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: F0 09 00 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: F0 09 00 B8 0C 00 DA FD 76 66 99 81 91 64 7E [16:37:44]GetLastDocTimeStamp 1719073936 [16:37:44]current date 1719074266 [16:37:44]FM_GetShiftState [16:37:44]SAM_PROTO_GetShiftState [16:37:44]wFMCommunicate request_size=4 [16:37:44]MH_SAM_APDU [16:37:44]CAPDU: 80 13 01 00 [16:37:44]Write to MH i2c: E2 08 00 B9 0C 80 13 01 00 00 00 00 00 42 [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 0E 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 0E 00 B9 0C 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 38 [16:37:45]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [16:37:45]wFMCommunicate OK [16:37:45]SAM_PROTO_GetShiftState done [16:37:45]FM_GetShiftState done [16:37:45]opened in 1719016435 [16:37:45]opened+sec_in_day 1719102835 [16:37:45]quantity*price = 13000 [16:37:45]sum+1 = 13001 [16:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 74 22.06.2024 16:37 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76878 ФПД: 2000397450971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163746&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76878&fm=2000397450971&tin=02508201610067®Number=0000000000095696&sum=13000 0 [16:37:46]StoreToDocumentArchive [16:37:46]shift 395 fd 76878 [16:37:46]save to /storage/0395/doc_00076878 [16:37:46]save last doc name /storage/0395/doc_00076878 to /storage/kkm_last_doc_name [16:37:46]save OK [16:37:46]Clear old archive folders... [16:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=281 [16:37:46]tlvbuf is B6FBC880 [16:37:46]SAM_PROTO_ClearQueue [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 09 00 00 [16:37:46]Write to MH i2c: E2 08 00 C6 0C 80 09 00 00 00 00 00 00 44 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [16:37:46]RAPDU: 90 00 [16:37:46]wFMCommunicate OK [16:37:46]SAM_PROTO_ClearQueue done [16:37:46]KKMCreateOFDPacket [16:37:46]OFDProtocolAddRootSTLVToBuf [16:37:46]FM_MakeSignedData [16:37:46]FM_MakeSignedData [16:37:46]SAM_PROTO_SignData [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 0D 01 02 [16:37:46]Write to MH i2c: E2 08 00 C7 0C 80 0D 01 02 00 00 00 00 4C [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [16:37:46]RAPDU: 90 00 [16:37:46]wFMCommunicate OK [16:37:46]wFMCommunicate request_size=255 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DA FD 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 [16:37:46]Write to MH i2c: E2 02 01 C8 0C 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DA FD 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 00 50 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [16:37:46]RAPDU: 90 00 [16:37:46]wFMCommunicate OK [16:37:46]wFMCommunicate request_size=40 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4E 2C 01 00 35 04 06 00 01 D1 C0 FA BE DB [16:37:46]Write to MH i2c: E2 2B 00 C9 0C 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4E 2C 01 00 35 04 06 00 01 D1 C0 FA BE DB 00 00 A9 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [16:37:46]RAPDU: 90 00 [16:37:46]wFMCommunicate OK [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 0D 03 02 [16:37:46]Write to MH i2c: E2 08 00 CA 0C 80 0D 03 02 00 00 00 00 51 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 0B 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 0B 00 CA 0C 00 74 88 66 FA B1 F8 68 3A 90 00 F9 [16:37:46]RAPDU: 74 88 66 FA B1 F8 68 3A 90 00 [16:37:46]wFMCommunicate OK [16:37:46]SAM_PROTO_SignData done [16:37:46]FM_MakeSignedData done [16:37:46]CreateOFDProtocolMessage [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 11 00 00 [16:37:46]Write to MH i2c: E2 08 00 CB 0C 80 11 00 00 00 00 00 00 51 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 17 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 17 00 CB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A1 [16:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:37:46]wFMCommunicate OK [16:37:46]CreateOFDProtocolMessage done [16:37:46]OFDSenderStorePacket 76878 [16:37:46]StoreOFDPacket docnum=76878 [16:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2D 01 00 00 1C F1 25 01 56 76 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DA FD 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4E 2C 01 00 35 04 06 00 01 D1 C0 FA BE DB 74 88 66 FA B1 F8 68 3A [16:37:46]CheckFolder [16:37:46]dirname=/storage/ofd_packets [16:37:46]CheckFolder done [16:37:46]ProducePacketName [16:37:46]name=ofd_packets/00076878 [16:37:46]NVStorageSaveData ofd_packets/00076878 [16:37:46]File name is /storage/ofd_packets/00076878 [16:37:46]Write 331 bytes [16:37:46]NVStorageSaveData done [16:37:46]OFDSenderStorePacket done [16:37:46]KKMCreateOFDPacket done [16:37:46]NVStorageSaveData kkm_last_timestamp [16:37:46]File name is /storage/kkm_last_timestamp [16:37:46]Write 4 bytes [16:37:46]NVStorageSaveData done [16:37:46]ExternCall_PrintAddStr [16:37:46]wPrintStart [16:37:46]Write to MH i2c: 01 00 00 CC 0C D8 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: 01 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: 01 07 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: 01 07 00 CC 0C 00 00 00 00 00 FF 0F ED [16:37:46]RasterBufferAndPrint [16:37:46]line Счет N : (3)220937 [16:37:46]line ИНН: 02508201610067 [16:37:46]line Контрольно-Кассовый Чек [16:37:46]line ПРОДАЖА [16:37:46]line Товар: 48745307 [16:37:46]line Сигареты Parliament Soho Compact Mix [16:37:46]line 1.000 * 130.00 [16:37:46]line = 130.00 [16:37:46]line НДС 12% НСП 1% [16:37:46]line > о реализуемом товаре [16:37:46]line ИТОГО: 130.00 [16:37:46]line НСП 1% : 1.15 [16:37:46]line НДС 12% : 13.80 [16:37:46]line Наличными: 130.00 [16:37:46]line Безнал.: 0.00 [16:37:46]line Место: АЗС № 144 "Партнер Нефть" [16:37:46]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [16:37:46]line СНО: Общий режим [16:37:46]line Чек 74 22.06.2024 16:37 [16:37:46]line Смена: 395 ФФД: 1.0 [16:37:46]line ЗНМ: 0300000170 [16:37:46]line РНМ: 0000000000095696 [16:37:46]line Версия ККМ: 001 [16:37:46]line ФМ: 0000000000875009 [16:37:46]line ФД: 76878 [16:37:46]line ФПД: 2000397450971 [16:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T163746&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76878&fm=2000397450971&tin=02508201610067®Number=0000000000095696&sum=13000 [16:37:46]line 0 [16:37:46]written 0, free lines is 4095 [16:37:46]OFD Sender: Processing packet 76878 [packets to send 351, broken 350] [16:37:46]ProducePacketName [16:37:46]name=ofd_packets/00076878 [16:37:46]OFD Sender: To server: pG, [16:37:46]CommunicateWithHost lk.salyk.kg:30040 [16:37:46]ConnectInit lk.salyk.kg [16:37:46]Connected sock=10 [16:37:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2D 01 00 00 1C F1 25 01 56 76 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 08 00 34 38 37 34 35 33 30 37 06 04 2C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 6F 68 6F 20 43 6F 6D 70 61 63 74 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 DA FD 76 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4E 2C 01 00 35 04 06 00 01 D1 C0 FA BE DB 74 88 66 FA B1 F8 68 3A [16:37:47]Write to MH i2c: 01 00 00 F5 0C 01 [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: 01 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: 01 07 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 E9 0C FD [16:37:47]RasterBufferAndPrint [16:37:47]line [16:37:47]line [16:37:47]line [16:37:47]line [16:37:47]line [16:37:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 67 20 47 00 DA ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4E 2C 01 00 F4 03 04 00 74 A4 76 66 B6 04 01 00 00 95 A5 7C AE AE BD FF B4 [16:37:47]CommunicateWithHost err = 0 [16:37:47]CheckOFDResponse [16:37:47]1017 (14) - 77093643461234 [16:37:47]1041 (16) - 0000000000875009 [16:37:47]1040 (4) - 76878 [16:37:47]1012 (4) - 22.06.2024 10:16 [16:37:47]1206 (1) - 0 [16:37:47]OFD Sender: Remove packet 76878 [16:37:47]ProducePacketName [16:37:47]name=ofd_packets/00076878 [16:37:47]NVStorageDeleteData [16:37:47]written 0, free lines is 3327 [16:37:47]MH_Cut [16:37:47]Write to MH i2c: D1 01 00 FC 0C 01 DA [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: D1 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: D1 01 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: D1 01 00 FC 0C 00 D9 [16:37:47]Write to MH i2c: 01 00 00 FD 0C 09 [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]OFD Sender: No OFD packet to send [16:37:47]*** Cut start [16:37:47]*** Partial cut [16:37:47]*** CUTSNS_PIN = 1 [16:37:47]*** CUTSNS_PIN = 0 [16:37:48]*** Brake cut motor [16:37:48]Read from MH i2c: 01 [16:37:48]MH_I2C_Read... [16:37:48]*** Stop cut motor [16:37:48]*** Cut end [16:37:48]Read from MH i2c: 01 07 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [16:37:48]process_action close_receipt done [16:37:48]requested_data is exist [16:37:48]produce_requested_data [16:37:48]requested_item fm.sn is exist - process it [16:37:48]wFMCommunicate request_size=4 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 11 00 00 [16:37:48]Write to MH i2c: E2 08 00 FE 0C 80 11 00 00 00 00 00 00 84 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 17 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 17 00 FE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D4 [16:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [16:37:48]wFMCommunicate OK [16:37:48]requested_item fd.num is exist - process it [16:37:48]SAM_PROTO_GetFieldsCounters [16:37:48]wFMCommunicate request_size=4 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 13 00 00 [16:37:48]Write to MH i2c: E2 08 00 FF 0C 80 13 00 00 00 00 00 00 87 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 62 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 62 00 FF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [16:37: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:48]wFMCommunicate OK [16:37:48]SAM_PROTO_GetFieldsCounters done [16:37:48]requested_item shift.num is exist - process it [16:37:48]requested_item shift.opened is exist - process it [16:37:48]req_shift_opened [16:37:48]FM_GetShiftState [16:37:48]SAM_PROTO_GetShiftState [16:37:48]wFMCommunicate request_size=4 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 13 01 00 [16:37:48]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 0E 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 80 [16:37:48]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [16:37:48]wFMCommunicate OK [16:37:48]SAM_PROTO_GetShiftState done [16:37:48]FM_GetShiftState done [16:37:48]req_shift_opened done [16:37:48]requested_item shift.open_date is exist - process it [16:37:48]req_shift_open_date [16:37:48]req_shift_open_date done [16:37:48]produce_requested_data done [16:37:48]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76878,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [16:37:48]process_action_free close_receipt [16:37:48]json_value_free [16:37:48]json_value_free done [16:37:48]process_json_proto returns [16:37:48]Send response to host [16:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76878,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [16:37:48]free response buf [16:37:48]execute_script done [16:37:48]execute_script returns [16:37:48]free content buf [16:37:48]Sock 9.Close socket [16:37:48]Sock 9.Thread stoped [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:53:59]recv_with_timeout no data received [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:40]accept exits with 8 [17:13:40]New connection [17:13:40]New thread 3067219300 created [17:13:40]Thread 3067362660 joined [17:13:40]Waiting for new connection... [17:13:40] Sock 8.Parse request [17:13:40]Sock 8.Check first char [17:13:40]Sock 8.First char is OK [17:13:40]request: POST /json_proto HTTP/1.0 [17:13:40]Method: POST [17:13:40]URL: /json_proto [17:13:40]Method is POST - this is cgi request [17:13:40]url: /json_proto [17:13:40]query_string will be loaded in cgi processing [17:13:40]execute_cgi json_proto POST (null) [17:13:40]execute_cgi path=json_proto method=POST [17:13:40]POST find Content-Length [17:13:40]Host: 172.17.39.195:8080 [17:13:40]Content-Length: 621 [17:13:40]Content-Type: application/json [17:13:40] [17:13:40]POST finish read [17:13:40]Found Content-Length = 621 [17:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220938", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:40]execute_script... [17:13:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220938", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:40]POST & json_proto [17:13:40]process_json_proto [17:13:40]json parsed OK: [17:13:40]protocol is kg_v1.0 [17:13:40]action value=close_receipt [17:13:40]process_action close_receipt [17:13:40]cmd_close_receipt [17:13:40]MH_GetDate [17:13:40]Write to MH i2c: F0 00 00 01 0D FD [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: F0 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: F0 09 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: F0 09 00 01 0D 00 46 06 77 66 99 81 91 64 3E [17:13:40]GetLastDocTimeStamp 1719074266 [17:13:40]current date 1719076422 [17:13:40]FM_GetShiftState [17:13:40]SAM_PROTO_GetShiftState [17:13:40]wFMCommunicate request_size=4 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 13 01 00 [17:13:40]Write to MH i2c: E2 08 00 02 0D 80 13 01 00 00 00 00 00 8C [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 0E 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 0E 00 02 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 82 [17:13:40]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:13:40]wFMCommunicate OK [17:13:40]SAM_PROTO_GetShiftState done [17:13:40]FM_GetShiftState done [17:13:40]opened in 1719016435 [17:13:40]opened+sec_in_day 1719102835 [17:13:40]quantity*price = 14000 [17:13:40]sum+1 = 14001 [17:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 75 22.06.2024 17:13 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76879 ФПД: 87080335394034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T171342&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76879&fm=87080335394034&tin=02508201610067®Number=0000000000095696&sum=14000 0 [17:13:41]StoreToDocumentArchive [17:13:41]shift 395 fd 76879 [17:13:41]save to /storage/0395/doc_00076879 [17:13:41]save last doc name /storage/0395/doc_00076879 to /storage/kkm_last_doc_name [17:13:41]save OK [17:13:41]Clear old archive folders... [17:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:13:41]tlvbuf is 00913170 [17:13:41]SAM_PROTO_ClearQueue [17:13:41]wFMCommunicate request_size=4 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 09 00 00 [17:13:41]Write to MH i2c: E2 08 00 0F 0D 80 09 00 00 00 00 00 00 8E [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:41]Read from MH i2c: E2 03 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [17:13:41]RAPDU: 90 00 [17:13:41]wFMCommunicate OK [17:13:41]SAM_PROTO_ClearQueue done [17:13:41]KKMCreateOFDPacket [17:13:41]OFDProtocolAddRootSTLVToBuf [17:13:41]FM_MakeSignedData [17:13:41]FM_MakeSignedData [17:13:41]SAM_PROTO_SignData [17:13:41]wFMCommunicate request_size=4 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 0D 01 02 [17:13:41]Write to MH i2c: E2 08 00 10 0D 80 0D 01 02 00 00 00 00 96 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [17:13:41]RAPDU: 90 00 [17:13:41]wFMCommunicate OK [17:13:41]wFMCommunicate request_size=255 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 06 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [17:13:41]Write to MH i2c: E2 02 01 11 0D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 06 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 81 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [17:13:41]RAPDU: 90 00 [17:13:41]wFMCommunicate OK [17:13:41]wFMCommunicate request_size=32 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 4F 2C 01 00 35 04 06 00 4F 32 F8 75 44 F2 [17:13:41]Write to MH i2c: E2 23 00 12 0D 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 4F 2C 01 00 35 04 06 00 4F 32 F8 75 44 F2 00 00 93 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [17:13:41]RAPDU: 90 00 [17:13:41]wFMCommunicate OK [17:13:41]wFMCommunicate request_size=4 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 0D 03 02 [17:13:41]Write to MH i2c: E2 08 00 13 0D 80 0D 03 02 00 00 00 00 9B [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 0B 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 0B 00 13 0D 00 AE 9D FB E7 77 C9 93 E2 90 00 7E [17:13:41]RAPDU: AE 9D FB E7 77 C9 93 E2 90 00 [17:13:41]wFMCommunicate OK [17:13:41]SAM_PROTO_SignData done [17:13:41]FM_MakeSignedData done [17:13:41]CreateOFDProtocolMessage [17:13:41]wFMCommunicate request_size=4 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 11 00 00 [17:13:41]Write to MH i2c: E2 08 00 14 0D 80 11 00 00 00 00 00 00 9B [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 17 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 17 00 14 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 EB [17:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:13:41]wFMCommunicate OK [17:13:41]CreateOFDProtocolMessage done [17:13:41]OFDSenderStorePacket 76879 [17:13:41]StoreOFDPacket docnum=76879 [17:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 64 99 1D 01 73 73 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 06 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4F 2C 01 00 35 04 06 00 4F 32 F8 75 44 F2 AE 9D FB E7 77 C9 93 E2 [17:13:41]CheckFolder [17:13:41]dirname=/storage/ofd_packets [17:13:41]CheckFolder done [17:13:41]ProducePacketName [17:13:41]name=ofd_packets/00076879 [17:13:41]NVStorageSaveData ofd_packets/00076879 [17:13:41]File name is /storage/ofd_packets/00076879 [17:13:41]Write 323 bytes [17:13:41]NVStorageSaveData done [17:13:41]OFDSenderStorePacket done [17:13:41]KKMCreateOFDPacket done [17:13:41]NVStorageSaveData kkm_last_timestamp [17:13:41]File name is /storage/kkm_last_timestamp [17:13:41]Write 4 bytes [17:13:41]NVStorageSaveData done [17:13:41]ExternCall_PrintAddStr [17:13:41]wPrintStart [17:13:41]Write to MH i2c: 01 00 00 15 0D 22 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: 01 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: 01 07 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 FF 0F 37 [17:13:41]RasterBufferAndPrint [17:13:41]line Счет N : (3)220938 [17:13:41]line ИНН: 02508201610067 [17:13:41]line Контрольно-Кассовый Чек [17:13:41]line ПРОДАЖА [17:13:41]line Товар: 48747059 [17:13:41]line Сигареты Winston Legend Blue [17:13:41]line 1.000 * 140.00 [17:13:41]line = 140.00 [17:13:41]line НДС 12% НСП 1% [17:13:41]line > о реализуемом товаре [17:13:41]line ИТОГО: 140.00 [17:13:41]line НСП 1% : 1.24 [17:13:41]line НДС 12% : 14.87 [17:13:41]line Наличными: 140.00 [17:13:41]line Безнал.: 0.00 [17:13:41]line Место: АЗС № 144 "Партнер Нефть" [17:13:41]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:13:41]line СНО: Общий режим [17:13:41]line Чек 75 22.06.2024 17:13 [17:13:41]line Смена: 395 ФФД: 1.0 [17:13:41]line ЗНМ: 0300000170 [17:13:41]line РНМ: 0000000000095696 [17:13:41]line Версия ККМ: 001 [17:13:41]line ФМ: 0000000000875009 [17:13:41]line ФД: 76879 [17:13:41]line ФПД: 87080335394034 [17:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T171342&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76879&fm=87080335394034&tin=02508201610067®Number=0000000000095696&sum=14000 [17:13:42]line 0 [17:13:42]OFD Sender: Processing packet 76879 [packets to send 351, broken 350] [17:13:42]ProducePacketName [17:13:42]name=ofd_packets/00076879 [17:13:42]OFD Sender: To server: pG, [17:13:42]CommunicateWithHost lk.salyk.kg:30040 [17:13:42]ConnectInit lk.salyk.kg [17:13:42]written 0, free lines is 4095 [17:13:42]Connected sock=10 [17:13:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 64 99 1D 01 73 73 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 06 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 4F 2C 01 00 35 04 06 00 4F 32 F8 75 44 F2 AE 9D FB E7 77 C9 93 E2 [17:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 17 DD 47 00 42 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 35 30 30 39 10 04 04 00 4F 2C 01 00 F4 03 04 00 DF AC 76 66 B6 04 01 00 00 7E 60 97 6B 8B 49 D7 E3 [17:13:42]CommunicateWithHost err = 0 [17:13:42]CheckOFDResponse [17:13:42]1017 (14) - 77093643461234 [17:13:42]1041 (16) - 0000000000875009 [17:13:42]1040 (4) - 76879 [17:13:42]1012 (4) - 22.06.2024 10:52 [17:13:42]1206 (1) - 0 [17:13:42]OFD Sender: Remove packet 76879 [17:13:42]ProducePacketName [17:13:42]name=ofd_packets/00076879 [17:13:42]NVStorageDeleteData [17:13:42]Write to MH i2c: 01 00 00 3E 0D 4B [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 07 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 07 00 3E 0D 00 00 00 00 00 DD 0C 3B [17:13:42]RasterBufferAndPrint [17:13:42]line [17:13:42]line [17:13:42]line [17:13:42]line [17:13:42]line [17:13:42]written 0, free lines is 3299 [17:13:42]MH_Cut [17:13:42]Write to MH i2c: D1 01 00 45 0D 01 24 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: D1 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: D1 01 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: D1 01 00 45 0D 00 23 [17:13:42]Write to MH i2c: 01 00 00 46 0D 53 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:43]OFD Sender: No OFD packet to send [17:13:43]*** Cut start [17:13:43]*** Partial cut [17:13:43]*** CUTSNS_PIN = 1 [17:13:43]*** CUTSNS_PIN = 0 [17:13:43]*** Brake cut motor [17:13:43]Read from MH i2c: 01 [17:13:43]MH_I2C_Read... [17:13:43]*** Stop cut motor [17:13:43]*** Cut end [17:13:43]Read from MH i2c: 01 07 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [17:13:43]process_action close_receipt done [17:13:43]requested_data is exist [17:13:43]produce_requested_data [17:13:43]requested_item fm.sn is exist - process it [17:13:43]wFMCommunicate request_size=4 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 11 00 00 [17:13:43]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 17 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1E [17:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:13:44]wFMCommunicate OK [17:13:44]requested_item fd.num is exist - process it [17:13:44]SAM_PROTO_GetFieldsCounters [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 13 00 00 [17:13:44]Write to MH i2c: E2 08 00 48 0D 80 13 00 00 00 00 00 00 D1 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 62 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 62 00 48 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:13:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 4F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_GetFieldsCounters done [17:13:44]requested_item shift.num is exist - process it [17:13:44]requested_item shift.opened is exist - process it [17:13:44]req_shift_opened [17:13:44]FM_GetShiftState [17:13:44]SAM_PROTO_GetShiftState [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 13 01 00 [17:13:44]Write to MH i2c: E2 08 00 49 0D 80 13 01 00 00 00 00 00 D3 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 49 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 C9 [17:13:44]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_GetShiftState done [17:13:44]FM_GetShiftState done [17:13:44]req_shift_opened done [17:13:44]requested_item shift.open_date is exist - process it [17:13:44]req_shift_open_date [17:13:44]req_shift_open_date done [17:13:44]produce_requested_data done [17:13:44]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76879,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [17:13:44]process_action_free close_receipt [17:13:44]json_value_free [17:13:44]json_value_free done [17:13:44]process_json_proto returns [17:13:44]Send response to host [17:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76879,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [17:13:44]free response buf [17:13:44]execute_script done [17:13:44]execute_script returns [17:13:44]free content buf [17:13:44]Sock 8.Close socket [17:13:44]Sock 8.Thread stoped [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:48]accept exits with 9 [17:18:48]New connection [17:18:48]New thread 3067362660 created [17:18:48]Thread 3067219300 joined [17:18:48]Waiting for new connection... [17:18:48] Sock 9.Parse request [17:18:48]Sock 9.Check first char [17:18:48]Sock 9.First char is OK [17:18:48]request: POST /json_proto HTTP/1.0 [17:18:48]Method: POST [17:18:48]URL: /json_proto [17:18:48]Method is POST - this is cgi request [17:18:48]url: /json_proto [17:18:48]query_string will be loaded in cgi processing [17:18:48]execute_cgi json_proto POST (null) [17:18:48]execute_cgi path=json_proto method=POST [17:18:48]POST find Content-Length [17:18:48]Host: 172.17.39.195:8080 [17:18:48]Content-Length: 621 [17:18:48]Content-Type: application/json [17:18:48] [17:18:48]POST finish read [17:18:48]Found Content-Length = 621 [17:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220939", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:48]execute_script... [17:18:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220939", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:48]POST & json_proto [17:18:48]process_json_proto [17:18:48]json parsed OK: [17:18:48]protocol is kg_v1.0 [17:18:48]action value=close_receipt [17:18:48]process_action close_receipt [17:18:48]cmd_close_receipt [17:18:48]MH_GetDate [17:18:48]Write to MH i2c: F0 00 00 4A 0D 46 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: F0 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: F0 09 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: F0 09 00 4A 0D 00 7B 07 77 66 99 81 91 64 BD [17:18:48]GetLastDocTimeStamp 1719076422 [17:18:48]current date 1719076731 [17:18:48]FM_GetShiftState [17:18:48]SAM_PROTO_GetShiftState [17:18:48]wFMCommunicate request_size=4 [17:18:48]MH_SAM_APDU [17:18:48]CAPDU: 80 13 01 00 [17:18:48]Write to MH i2c: E2 08 00 4B 0D 80 13 01 00 00 00 00 00 D5 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:49]Read from MH i2c: E2 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 0E 00 [17:18:49]MH_I2C_Read... [17:18:49]Read from MH i2c: E2 0E 00 4B 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 CB [17:18:49]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:18:49]wFMCommunicate OK [17:18:49]SAM_PROTO_GetShiftState done [17:18:49]FM_GetShiftState done [17:18:49]opened in 1719016435 [17:18:49]opened+sec_in_day 1719102835 [17:18:49]quantity*price = 14000 [17:18:49]sum+1 = 14001 [17:18:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 76 22.06.2024 17:18 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76880 ФПД: 159128804801496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T171851&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76880&fm=159128804801496&tin=02508201610067®Number=0000000000095696&sum=14000 0 [17:18:50]StoreToDocumentArchive [17:18:50]shift 395 fd 76880 [17:18:50]save to /storage/0395/doc_00076880 [17:18:50]save last doc name /storage/0395/doc_00076880 to /storage/kkm_last_doc_name [17:18:50]save OK [17:18:50]Clear old archive folders... [17:18:50]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:18:50]tlvbuf is 008EE400 [17:18:50]SAM_PROTO_ClearQueue [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 09 00 00 [17:18:50]Write to MH i2c: E2 08 00 58 0D 80 09 00 00 00 00 00 00 D7 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 03 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [17:18:50]RAPDU: 90 00 [17:18:50]wFMCommunicate OK [17:18:50]SAM_PROTO_ClearQueue done [17:18:50]KKMCreateOFDPacket [17:18:50]OFDProtocolAddRootSTLVToBuf [17:18:50]FM_MakeSignedData [17:18:50]FM_MakeSignedData [17:18:50]SAM_PROTO_SignData [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 0D 01 02 [17:18:50]Write to MH i2c: E2 08 00 59 0D 80 0D 01 02 00 00 00 00 DF [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 03 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [17:18:50]RAPDU: 90 00 [17:18:50]wFMCommunicate OK [17:18:50]wFMCommunicate request_size=255 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 7B 07 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [17:18:50]Write to MH i2c: E2 02 01 5A 0D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 7B 07 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 01 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 03 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [17:18:50]RAPDU: 90 00 [17:18:50]wFMCommunicate OK [17:18:50]wFMCommunicate request_size=32 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2C 01 00 35 04 06 00 90 BA 0F E2 3B D8 [17:18:50]Write to MH i2c: E2 23 00 5B 0D 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2C 01 00 35 04 06 00 90 BA 0F E2 3B D8 00 00 07 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 03 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [17:18:50]RAPDU: 90 00 [17:18:50]wFMCommunicate OK [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 0D 03 02 [17:18:50]Write to MH i2c: E2 08 00 5C 0D 80 0D 03 02 00 00 00 00 E4 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 0B 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 0B 00 5C 0D 00 CB 7C 30 45 DA 15 B6 92 90 00 D8 [17:18:50]RAPDU: CB 7C 30 45 DA 15 B6 92 90 00 [17:18:50]wFMCommunicate OK [17:18:50]SAM_PROTO_SignData done [17:18:50]FM_MakeSignedData done [17:18:50]CreateOFDProtocolMessage [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 11 00 00 [17:18:50]Write to MH i2c: E2 08 00 5D 0D 80 11 00 00 00 00 00 00 E4 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 17 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 17 00 5D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 34 [17:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:18:50]wFMCommunicate OK [17:18:50]CreateOFDProtocolMessage done [17:18:50]OFDSenderStorePacket 76880 [17:18:50]StoreOFDPacket docnum=76880 [17:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 CF 85 1D 01 1E C4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 7B 07 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2C 01 00 35 04 06 00 90 BA 0F E2 3B D8 CB 7C 30 45 DA 15 B6 92 [17:18:50]CheckFolder [17:18:50]dirname=/storage/ofd_packets [17:18:50]CheckFolder done [17:18:50]ProducePacketName [17:18:50]name=ofd_packets/00076880 [17:18:50]NVStorageSaveData ofd_packets/00076880 [17:18:50]File name is /storage/ofd_packets/00076880 [17:18:50]Write 323 bytes [17:18:50]NVStorageSaveData done [17:18:50]OFDSenderStorePacket done [17:18:50]KKMCreateOFDPacket done [17:18:50]NVStorageSaveData kkm_last_timestamp [17:18:50]File name is /storage/kkm_last_timestamp [17:18:50]Write 4 bytes [17:18:50]NVStorageSaveData done [17:18:50]ExternCall_PrintAddStr [17:18:50]wPrintStart [17:18:50]Write to MH i2c: 01 00 00 5E 0D 6B [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 07 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: 01 07 00 5E 0D 00 00 00 00 00 FF 0F 80 [17:18:50]RasterBufferAndPrint [17:18:50]line Счет N : (3)220939 [17:18:50]line ИНН: 02508201610067 [17:18:50]line Контрольно-Кассовый Чек [17:18:50]line ПРОДАЖА [17:18:50]line Товар: 48747059 [17:18:50]line Сигареты Winston Legend Blue [17:18:50]line 1.000 * 140.00 [17:18:50]line = 140.00 [17:18:50]line НДС 12% НСП 1% [17:18:50]line > о реализуемом товаре [17:18:50]line ИТОГО: 140.00 [17:18:50]line НСП 1% : 1.24 [17:18:50]line НДС 12% : 14.87 [17:18:50]line Наличными: 140.00 [17:18:50]line Безнал.: 0.00 [17:18:50]line Место: АЗС № 144 "Партнер Нефть" [17:18:50]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:18:50]line СНО: Общий режим [17:18:50]line Чек 76 22.06.2024 17:18 [17:18:50]line Смена: 395 ФФД: 1.0 [17:18:50]line ЗНМ: 0300000170 [17:18:50]line РНМ: 0000000000095696 [17:18:50]line Версия ККМ: 001 [17:18:50]line ФМ: 0000000000875009 [17:18:50]line ФД: 76880 [17:18:50]line ФПД: 159128804801496 [17:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T171851&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76880&fm=159128804801496&tin=02508201610067®Number=0000000000095696&sum=14000 [17:18:50]line 0 [17:18:50]OFD Sender: Processing packet 76880 [packets to send 351, broken 350] [17:18:50]ProducePacketName [17:18:50]name=ofd_packets/00076880 [17:18:50]OFD Sender: To server: pG, [17:18:50]CommunicateWithHost lk.salyk.kg:30040 [17:18:50]ConnectInit lk.salyk.kg [17:18:50]written 0, free lines is 4095 [17:18:51]Write to MH i2c: 01 00 00 87 0D 94 [17:18:51]Write i2c OK [17:18:51]MH_I2C_Read... [17:18:51]Read from MH i2c: 01 [17:18:51]MH_I2C_Read... [17:18:51]Read from MH i2c: 01 07 00 [17:18:51]MH_I2C_Read... [17:18:51]Read from MH i2c: 01 07 00 87 0D 00 00 00 00 00 C9 0C 70 [17:18:51]RasterBufferAndPrint [17:18:51]line [17:18:51]line [17:18:51]line [17:18:51]line [17:18:51]line [17:18:51]written 0, free lines is 3278 [17:18:51]MH_Cut [17:18:51]Write to MH i2c: D1 01 00 8E 0D 01 6D [17:18:51]Write i2c OK [17:18:51]MH_I2C_Read... [17:18:51]Read from MH i2c: D1 [17:18:51]MH_I2C_Read... [17:18:51]Read from MH i2c: D1 01 00 [17:18:51]MH_I2C_Read... [17:18:51]Read from MH i2c: D1 01 00 8E 0D 00 6C [17:18:51]Write to MH i2c: 01 00 00 8F 0D 9C [17:18:51]Write i2c OK [17:18:51]MH_I2C_Read... [17:18:52]*** Cut start [17:18:52]*** Partial cut [17:18:52]*** CUTSNS_PIN = 1 [17:18:52]*** CUTSNS_PIN = 0 [17:18:52]Connected sock=11 [17:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 CF 85 1D 01 1E C4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 7B 07 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2C 01 00 35 04 06 00 90 BA 0F E2 3B D8 CB 7C 30 45 DA 15 B6 92 [17:18:52]*** Brake cut motor [17:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D2 84 47 00 03 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 50 2C 01 00 F4 03 04 00 15 AE 76 66 B6 04 01 00 00 9B 91 9E F8 88 7C BD 5F [17:18:52]CommunicateWithHost err = 0 [17:18:52]CheckOFDResponse [17:18:52]1017 (14) - 77093643461234 [17:18:52]1041 (16) - 0000000000875009 [17:18:52]1040 (4) - 76880 [17:18:52]1012 (4) - 22.06.2024 10:57 [17:18:52]1206 (1) - 0 [17:18:52]OFD Sender: Remove packet 76880 [17:18:52]ProducePacketName [17:18:52]name=ofd_packets/00076880 [17:18:52]NVStorageDeleteData [17:18:52]Read from MH i2c: 01 [17:18:52]MH_I2C_Read... [17:18:52]*** Stop cut motor [17:18:52]*** Cut end [17:18:52]Read from MH i2c: 01 07 00 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: 01 07 00 8F 0D 00 00 00 00 00 FF 0F B1 [17:18:52]process_action close_receipt done [17:18:52]requested_data is exist [17:18:52]produce_requested_data [17:18:52]requested_item fm.sn is exist - process it [17:18:52]wFMCommunicate request_size=4 [17:18:52]MH_SAM_APDU [17:18:52]CAPDU: 80 11 00 00 [17:18:52]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [17:18:52]Write i2c OK [17:18:52]MH_I2C_Read... [17:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:52]Read from MH i2c: E2 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: E2 17 00 [17:18:52]MH_I2C_Read... [17:18:52]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 67 [17:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:18:52]wFMCommunicate OK [17:18:52]requested_item fd.num is exist - process it [17:18:52]SAM_PROTO_GetFieldsCounters [17:18:52]wFMCommunicate request_size=4 [17:18:52]MH_SAM_APDU [17:18:52]CAPDU: 80 13 00 00 [17:18:52]Write to MH i2c: E2 08 00 91 0D 80 13 00 00 00 00 00 00 1A [17:18:52]Write i2c OK [17:18:52]MH_I2C_Read... [17:18:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:53]Read from MH i2c: E2 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: E2 62 00 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: E2 62 00 91 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 50 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [17:18: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 50 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:53]wFMCommunicate OK [17:18:53]SAM_PROTO_GetFieldsCounters done [17:18:53]requested_item shift.num is exist - process it [17:18:53]requested_item shift.opened is exist - process it [17:18:53]req_shift_opened [17:18:53]FM_GetShiftState [17:18:53]SAM_PROTO_GetShiftState [17:18:53]wFMCommunicate request_size=4 [17:18:53]MH_SAM_APDU [17:18:53]CAPDU: 80 13 01 00 [17:18:53]Write to MH i2c: E2 08 00 92 0D 80 13 01 00 00 00 00 00 1C [17:18:53]Write i2c OK [17:18:53]MH_I2C_Read... [17:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:53]Read from MH i2c: E2 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: E2 0E 00 [17:18:53]MH_I2C_Read... [17:18:53]Read from MH i2c: E2 0E 00 92 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 12 [17:18:53]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:18:53]wFMCommunicate OK [17:18:53]SAM_PROTO_GetShiftState done [17:18:53]FM_GetShiftState done [17:18:53]req_shift_opened done [17:18:53]requested_item shift.open_date is exist - process it [17:18:53]req_shift_open_date [17:18:53]req_shift_open_date done [17:18:53]produce_requested_data done [17:18:53]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76880,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [17:18:53]process_action_free close_receipt [17:18:53]json_value_free [17:18:53]json_value_free done [17:18:53]process_json_proto returns [17:18:53]Send response to host [17:18:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76880,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [17:18:53]free response buf [17:18:53]execute_script done [17:18:53]execute_script returns [17:18:53]free content buf [17:18:53]Sock 9.Close socket [17:18:53]Sock 9.Thread stoped [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:35:56]accept exits with 8 [17:35:56]New connection [17:35:56]New thread 3067219300 created [17:35:56]Thread 3067362660 joined [17:35:56]Waiting for new connection... [17:35:56] Sock 8.Parse request [17:35:56]Sock 8.Check first char [17:35:56]Sock 8.First char is OK [17:35:56]request: POST /json_proto HTTP/1.0 [17:35:56]Method: POST [17:35:56]URL: /json_proto [17:35:56]Method is POST - this is cgi request [17:35:56]url: /json_proto [17:35:56]query_string will be loaded in cgi processing [17:35:56]execute_cgi json_proto POST (null) [17:35:56]execute_cgi path=json_proto method=POST [17:35:56]POST find Content-Length [17:35:56]Host: 172.17.39.195:8080 [17:35:56]Content-Length: 747 [17:35:56]Content-Type: application/json [17:35:56] [17:35:56]POST finish read [17:35:56]Found Content-Length = 747 [17:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220940", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:56]execute_script... [17:35:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220940", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:56]POST & json_proto [17:35:56]process_json_proto [17:35:56]json parsed OK: [17:35:56]protocol is kg_v1.0 [17:35:56]action value=close_receipt [17:35:56]process_action close_receipt [17:35:56]cmd_close_receipt [17:35:56]MH_GetDate [17:35:56]Write to MH i2c: F0 00 00 93 0D 8F [17:35:56]Write i2c OK [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: F0 [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: F0 09 00 [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: F0 09 00 93 0D 00 7E 0B 77 66 99 81 91 64 0D [17:35:56]GetLastDocTimeStamp 1719076731 [17:35:56]current date 1719077758 [17:35:56]FM_GetShiftState [17:35:56]SAM_PROTO_GetShiftState [17:35:56]wFMCommunicate request_size=4 [17:35:56]MH_SAM_APDU [17:35:56]CAPDU: 80 13 01 00 [17:35:56]Write to MH i2c: E2 08 00 94 0D 80 13 01 00 00 00 00 00 1E [17:35:56]Write i2c OK [17:35:56]MH_I2C_Read... [17:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:56]Read from MH i2c: E2 [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: E2 0E 00 [17:35:56]MH_I2C_Read... [17:35:56]Read from MH i2c: E2 0E 00 94 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 14 [17:35:56]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:35:56]wFMCommunicate OK [17:35:56]SAM_PROTO_GetShiftState done [17:35:56]FM_GetShiftState done [17:35:56]opened in 1719016435 [17:35:56]opened+sec_in_day 1719102835 [17:35:56]quantity*price = 50200 [17:35:56]sum+1 = 50201 [17:35:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 502.00 НСП 1% : 4.44 НДС 12% : 53.31 Наличными: 502.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 77 22.06.2024 17:35 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76881 ФПД: 186799375440748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T173559&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76881&fm=186799375440748&tin=02508201610067®Number=0000000000095696&sum=50200 0 [17:35:58]StoreToDocumentArchive [17:35:58]shift 395 fd 76881 [17:35:58]save to /storage/0395/doc_00076881 [17:35:58]save last doc name /storage/0395/doc_00076881 to /storage/kkm_last_doc_name [17:35:58]save OK [17:35:58]Clear old archive folders... [17:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=307 [17:35:58]tlvbuf is 00913D60 [17:35:58]SAM_PROTO_ClearQueue [17:35:58]wFMCommunicate request_size=4 [17:35:58]MH_SAM_APDU [17:35:58]CAPDU: 80 09 00 00 [17:35:58]Write to MH i2c: E2 08 00 A1 0D 80 09 00 00 00 00 00 00 20 [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [17:35:58]RAPDU: 90 00 [17:35:58]wFMCommunicate OK [17:35:58]SAM_PROTO_ClearQueue done [17:35:58]KKMCreateOFDPacket [17:35:58]OFDProtocolAddRootSTLVToBuf [17:35:58]FM_MakeSignedData [17:35:58]FM_MakeSignedData [17:35:58]SAM_PROTO_SignData [17:35:58]wFMCommunicate request_size=4 [17:35:58]MH_SAM_APDU [17:35:58]CAPDU: 80 0D 01 02 [17:35:58]Write to MH i2c: E2 08 00 A2 0D 80 0D 01 02 00 00 00 00 28 [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [17:35:58]RAPDU: 90 00 [17:35:58]wFMCommunicate OK [17:35:58]wFMCommunicate request_size=255 [17:35:58]MH_SAM_APDU [17:35:58]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7F 0B 77 66 0E 04 04 00 8B 01 00 00 B9 04 [17:35:58]Write to MH i2c: E2 02 01 A3 0D 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7F 0B 77 66 0E 04 04 00 8B 01 00 00 B9 04 00 00 EE [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [17:35:58]RAPDU: 90 00 [17:35:58]wFMCommunicate OK [17:35:58]wFMCommunicate request_size=66 [17:35:58]MH_SAM_APDU [17:35:58]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2C 01 00 35 04 06 00 A9 E4 9E 6A DB 6C [17:35:58]Write to MH i2c: E2 45 00 A4 0D 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2C 01 00 35 04 06 00 A9 E4 9E 6A DB 6C 00 00 DE [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [17:35:58]RAPDU: 90 00 [17:35:58]wFMCommunicate OK [17:35:58]wFMCommunicate request_size=4 [17:35:58]MH_SAM_APDU [17:35:58]CAPDU: 80 0D 03 02 [17:35:58]Write to MH i2c: E2 08 00 A5 0D 80 0D 03 02 00 00 00 00 2D [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 0B 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 0B 00 A5 0D 00 85 0C EA CF 7C 18 F4 56 90 00 56 [17:35:58]RAPDU: 85 0C EA CF 7C 18 F4 56 90 00 [17:35:58]wFMCommunicate OK [17:35:58]SAM_PROTO_SignData done [17:35:58]FM_MakeSignedData done [17:35:58]CreateOFDProtocolMessage [17:35:58]wFMCommunicate request_size=4 [17:35:58]MH_SAM_APDU [17:35:58]CAPDU: 80 11 00 00 [17:35:58]Write to MH i2c: E2 08 00 A6 0D 80 11 00 00 00 00 00 00 2D [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:58]Read from MH i2c: E2 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 17 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: E2 17 00 A6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7D [17:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:35:58]wFMCommunicate OK [17:35:58]CreateOFDProtocolMessage done [17:35:58]OFDSenderStorePacket 76881 [17:35:58]StoreOFDPacket docnum=76881 [17:35:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 47 01 00 00 CC 22 3F 01 B2 10 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7F 0B 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2C 01 00 35 04 06 00 A9 E4 9E 6A DB 6C 85 0C EA CF 7C 18 F4 56 [17:35:58]CheckFolder [17:35:58]dirname=/storage/ofd_packets [17:35:58]CheckFolder done [17:35:58]ProducePacketName [17:35:58]name=ofd_packets/00076881 [17:35:58]NVStorageSaveData ofd_packets/00076881 [17:35:58]File name is /storage/ofd_packets/00076881 [17:35:58]Write 357 bytes [17:35:58]NVStorageSaveData done [17:35:58]OFDSenderStorePacket done [17:35:58]KKMCreateOFDPacket done [17:35:58]NVStorageSaveData kkm_last_timestamp [17:35:58]File name is /storage/kkm_last_timestamp [17:35:58]Write 4 bytes [17:35:58]NVStorageSaveData done [17:35:58]ExternCall_PrintAddStr [17:35:58]wPrintStart [17:35:58]Write to MH i2c: 01 00 00 A7 0D B4 [17:35:58]Write i2c OK [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: 01 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: 01 07 00 [17:35:58]MH_I2C_Read... [17:35:58]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 FF 0F C9 [17:35:58]RasterBufferAndPrint [17:35:58]line Счет N : (3)220940 [17:35:58]line ИНН: 02508201610067 [17:35:58]line Контрольно-Кассовый Чек [17:35:58]line ПРОДАЖА [17:35:58]line Товар: 2000029770012 [17:35:58]line Очки солнцезащитные в ассортименте [17:35:58]line 1.000 * 502.00 [17:35:58]line = 502.00 [17:35:58]line НДС 12% НСП 1% [17:35:58]line > о реализуемом товаре [17:35:58]line ИТОГО: 502.00 [17:35:58]line НСП 1% : 4.44 [17:35:58]line НДС 12% : 53.31 [17:35:58]line Наличными: 502.00 [17:35:58]line Безнал.: 0.00 [17:35:58]line Место: АЗС № 144 "Партнер Нефть" [17:35:58]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:35:58]line СНО: Общий режим [17:35:58]line Чек 77 22.06.2024 17:35 [17:35:58]line Смена: 395 ФФД: 1.0 [17:35:58]line ЗНМ: 0300000170 [17:35:58]line РНМ: 0000000000095696 [17:35:58]line Версия ККМ: 001 [17:35:58]line ФМ: 0000000000875009 [17:35:58]line ФД: 76881 [17:35:58]line ФПД: 186799375440748 [17:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T173559&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76881&fm=186799375440748&tin=02508201610067®Number=0000000000095696&sum=50200 [17:35:58]line 0 [17:35:58]OFD Sender: Processing packet 76881 [packets to send 351, broken 350] [17:35:58]ProducePacketName [17:35:58]name=ofd_packets/00076881 [17:35:58]OFD Sender: To server: pG, [17:35:58]CommunicateWithHost lk.salyk.kg:30040 [17:35:58]ConnectInit lk.salyk.kg [17:35:58]written 0, free lines is 4095 [17:35:59]Write to MH i2c: 01 00 00 D0 0D DD [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: 01 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: 01 07 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: 01 07 00 D0 0D 00 00 00 00 00 C9 0C B9 [17:35:59]RasterBufferAndPrint [17:35:59]line [17:35:59]line [17:35:59]line [17:35:59]line [17:35:59]line [17:35:59]written 0, free lines is 3278 [17:35:59]MH_Cut [17:35:59]Write to MH i2c: D1 01 00 D7 0D 01 B6 [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: D1 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: D1 01 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: D1 01 00 D7 0D 00 B5 [17:35:59]Write to MH i2c: 01 00 00 D8 0D E5 [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:36:00]*** Cut start [17:36:00]*** Partial cut [17:36:00]*** CUTSNS_PIN = 1 [17:36:00]*** CUTSNS_PIN = 0 [17:36:00]*** Brake cut motor [17:36:00]Read from MH i2c: 01 [17:36:00]MH_I2C_Read... [17:36:00]*** Stop cut motor [17:36:00]*** Cut end [17:36:00]Read from MH i2c: 01 07 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: 01 07 00 D8 0D 00 00 00 00 00 FF 0F FA [17:36:00]process_action close_receipt done [17:36:00]requested_data is exist [17:36:00]produce_requested_data [17:36:00]requested_item fm.sn is exist - process it [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 11 00 00 [17:36:00]Write to MH i2c: E2 08 00 D9 0D 80 11 00 00 00 00 00 00 60 [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 17 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 17 00 D9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B0 [17:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:36:00]wFMCommunicate OK [17:36:00]requested_item fd.num is exist - process it [17:36:00]SAM_PROTO_GetFieldsCounters [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 13 00 00 [17:36:00]Write to MH i2c: E2 08 00 DA 0D 80 13 00 00 00 00 00 00 63 [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:01]Read from MH i2c: E2 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: E2 62 00 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: E2 62 00 DA 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 51 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [17:36: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 51 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:01]wFMCommunicate OK [17:36:01]SAM_PROTO_GetFieldsCounters done [17:36:01]requested_item shift.num is exist - process it [17:36:01]requested_item shift.opened is exist - process it [17:36:01]req_shift_opened [17:36:01]FM_GetShiftState [17:36:01]SAM_PROTO_GetShiftState [17:36:01]wFMCommunicate request_size=4 [17:36:01]MH_SAM_APDU [17:36:01]CAPDU: 80 13 01 00 [17:36:01]Write to MH i2c: E2 08 00 DB 0D 80 13 01 00 00 00 00 00 65 [17:36:01]Write i2c OK [17:36:01]MH_I2C_Read... [17:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:01]Read from MH i2c: E2 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: E2 0E 00 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: E2 0E 00 DB 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 5B [17:36:01]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:36:01]wFMCommunicate OK [17:36:01]SAM_PROTO_GetShiftState done [17:36:01]FM_GetShiftState done [17:36:01]req_shift_opened done [17:36:01]requested_item shift.open_date is exist - process it [17:36:01]req_shift_open_date [17:36:01]req_shift_open_date done [17:36:01]produce_requested_data done [17:36:01]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76881,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [17:36:01]process_action_free close_receipt [17:36:01]json_value_free [17:36:01]json_value_free done [17:36:01]process_json_proto returns [17:36:01]Send response to host [17:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76881,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [17:36:01]free response buf [17:36:01]execute_script done [17:36:01]execute_script returns [17:36:01]free content buf [17:36:01]Sock 8.Close socket [17:36:01]Sock 8.Thread stoped [17:38:09]ConnectInit Can't connect to host [17:38:09]CommunicateWithHost connect error [17:38:09]CommunicateWithHost err = -1 [17:38:09]OFD Sender: Server communicate error [17:38:14]OFD Sender: Processing packet 76881 [packets to send 351, broken 350] [17:38:14]ProducePacketName [17:38:14]name=ofd_packets/00076881 [17:38:14]OFD Sender: To server: pG, [17:38:14]CommunicateWithHost lk.salyk.kg:30040 [17:38:14]ConnectInit lk.salyk.kg [17:38:15]Connected sock=8 [17:38:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 47 01 00 00 CC 22 3F 01 B2 10 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7F 0B 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2C 01 00 35 04 06 00 A9 E4 9E 6A DB 6C 85 0C EA CF 7C 18 F4 56 [17:38:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 20 26 47 00 4B 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 51 2C 01 00 F4 03 04 00 A0 B2 76 66 B6 04 01 00 00 76 52 AB 4F 5D 10 1D EB [17:38:15]CommunicateWithHost err = 0 [17:38:15]CheckOFDResponse [17:38:15]1017 (14) - 77093643461234 [17:38:15]1041 (16) - 0000000000875009 [17:38:15]1040 (4) - 76881 [17:38:15]1012 (4) - 22.06.2024 11:16 [17:38:15]1206 (1) - 0 [17:38:15]OFD Sender: Remove packet 76881 [17:38:15]ProducePacketName [17:38:15]name=ofd_packets/00076881 [17:38:15]NVStorageDeleteData [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:24]accept exits with 9 [17:40:24]New connection [17:40:24]New thread 3067362660 created [17:40:24]Thread 3067219300 joined [17:40:24]Waiting for new connection... [17:40:24] Sock 9.Parse request [17:40:24]Sock 9.Check first char [17:40:24]Sock 9.First char is OK [17:40:24]request: POST /json_proto HTTP/1.0 [17:40:24]Method: POST [17:40:24]URL: /json_proto [17:40:24]Method is POST - this is cgi request [17:40:24]url: /json_proto [17:40:24]query_string will be loaded in cgi processing [17:40:24]execute_cgi json_proto POST (null) [17:40:24]execute_cgi path=json_proto method=POST [17:40:24]POST find Content-Length [17:40:24]Host: 172.17.39.195:8080 [17:40:24]Content-Length: 1208 [17:40:24]Content-Type: application/json [17:40:24] [17:40:24]POST finish read [17:40:24]Found Content-Length = 1208 [17:40:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694678\u000A22.06.2024 17:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888722:3888719\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:24]execute_script... [17:40:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694678\u000A22.06.2024 17:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3888722:3888719\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:24]POST & json_proto [17:40:24]process_json_proto [17:40:24]json parsed OK: [17:40:24]protocol is kg_v1.0 [17:40:24]action value=print_text [17:40:24]process_action print_text [17:40:24]cmd_print_text [17:40:24]ExternCall_PrintAddStr [17:40:24]wPrintStart [17:40:24]Write to MH i2c: 01 00 00 DC 0D E9 [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [17:40:24]RasterBufferAndPrint [17:40:24]line *****ТОВАРНЫЙ ЧЕК***** [17:40:24]line АЗС 144 [17:40:24]line Партнер нефть [17:40:24]line 02508201610067 [17:40:24]line Кассир : Шайлообек у. Т. [17:40:24]line Счет N : (1)1694678 [17:40:24]line 22.06.2024 17:11 [17:40:24]line ПРОДАЖА [17:40:24]line ТРК (МРК, ГНК): 33 [17:40:24]line Вид ГСМ : 2710124130 [17:40:24]line Аи-92-К-5 [17:40:24]line 20.000 x 66.40 [17:40:24]line ИТОГ: 1328.00 [17:40:24]line Тип оплаты: Талоны: Партнер нефть [17:40:24]line 3888722:3888719 [17:40:24]line ______________________ [17:40:24]line (подпись) [17:40:24]written 0, free lines is 4095 [17:40:24]Write to MH i2c: 01 00 00 F1 0D FE [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FC 0D 0E [17:40:24]RasterBufferAndPrint [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]line [17:40:24]written 0, free lines is 3581 [17:40:24]MH_Cut [17:40:24]Write to MH i2c: D1 01 00 F8 0D 01 D7 [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 01 00 [17:40:24]MH_I2C_Read... [17:40:24]Read from MH i2c: D1 01 00 F8 0D 00 D6 [17:40:24]Write to MH i2c: 01 00 00 F9 0D 06 [17:40:24]Write i2c OK [17:40:24]MH_I2C_Read... [17:40:25]*** Cut start [17:40:25]*** Partial cut [17:40:25]*** CUTSNS_PIN = 1 [17:40:25]*** CUTSNS_PIN = 0 [17:40:25]*** Brake cut motor [17:40:25]Read from MH i2c: 01 [17:40:25]MH_I2C_Read... [17:40:25]*** Stop cut motor [17:40:25]*** Cut end [17:40:25]Read from MH i2c: 01 07 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: 01 07 00 F9 0D 00 00 00 00 00 FF 0F 1B [17:40:25]process_action print_text done [17:40:25]requested_data is exist [17:40:25]produce_requested_data [17:40:25]requested_item fm.sn is exist - process it [17:40:25]wFMCommunicate request_size=4 [17:40:25]MH_SAM_APDU [17:40:25]CAPDU: 80 11 00 00 [17:40:25]Write to MH i2c: E2 08 00 FA 0D 80 11 00 00 00 00 00 00 81 [17:40:25]Write i2c OK [17:40:25]MH_I2C_Read... [17:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:25]Read from MH i2c: E2 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 17 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 17 00 FA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D1 [17:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:40:25]wFMCommunicate OK [17:40:25]requested_item fd.num is exist - process it [17:40:25]SAM_PROTO_GetFieldsCounters [17:40:25]wFMCommunicate request_size=4 [17:40:25]MH_SAM_APDU [17:40:25]CAPDU: 80 13 00 00 [17:40:25]Write to MH i2c: E2 08 00 FB 0D 80 13 00 00 00 00 00 00 84 [17:40:25]Write i2c OK [17:40:25]MH_I2C_Read... [17:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:25]Read from MH i2c: E2 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 62 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 62 00 FB 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 51 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [17:40: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 51 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:25]wFMCommunicate OK [17:40:25]SAM_PROTO_GetFieldsCounters done [17:40:25]requested_item shift.num is exist - process it [17:40:25]requested_item shift.opened is exist - process it [17:40:25]req_shift_opened [17:40:25]FM_GetShiftState [17:40:25]SAM_PROTO_GetShiftState [17:40:25]wFMCommunicate request_size=4 [17:40:25]MH_SAM_APDU [17:40:25]CAPDU: 80 13 01 00 [17:40:25]Write to MH i2c: E2 08 00 FC 0D 80 13 01 00 00 00 00 00 86 [17:40:25]Write i2c OK [17:40:25]MH_I2C_Read... [17:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:25]Read from MH i2c: E2 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 0E 00 [17:40:25]MH_I2C_Read... [17:40:25]Read from MH i2c: E2 0E 00 FC 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 7C [17:40:25]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:40:25]wFMCommunicate OK [17:40:25]SAM_PROTO_GetShiftState done [17:40:26]FM_GetShiftState done [17:40:26]req_shift_opened done [17:40:26]requested_item shift.open_date is exist - process it [17:40:26]req_shift_open_date [17:40:26]req_shift_open_date done [17:40:26]produce_requested_data done [17:40:26]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76881,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [17:40:26]process_action_free print_text [17:40:26]json_value_free [17:40:26]json_value_free done [17:40:26]process_json_proto returns [17:40:26]Send response to host [17:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76881,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [17:40:26]free response buf [17:40:26]execute_script done [17:40:26]execute_script returns [17:40:26]free content buf [17:40:26]Sock 9.Close socket [17:40:26]Sock 9.Thread stoped [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:05]accept exits with 8 [17:41:05]New connection [17:41:05]New thread 3067219300 created [17:41:05]Thread 3067362660 joined [17:41:05]Waiting for new connection... [17:41:05] Sock 8.Parse request [17:41:05]Sock 8.Check first char [17:41:05]Sock 8.First char is OK [17:41:05]request: POST /json_proto HTTP/1.0 [17:41:05]Method: POST [17:41:05]URL: /json_proto [17:41:05]Method is POST - this is cgi request [17:41:05]url: /json_proto [17:41:05]query_string will be loaded in cgi processing [17:41:05]execute_cgi json_proto POST (null) [17:41:05]execute_cgi path=json_proto method=POST [17:41:05]POST find Content-Length [17:41:05]Host: 172.17.39.195:8080 [17:41:05]Content-Length: 802 [17:41:05]Content-Type: application/json [17:41:05] [17:41:05]POST finish read [17:41:05]Found Content-Length = 802 [17:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 120.000, "sum" : 8748.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8748.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:05]execute_script... [17:41: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)1694676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 120.000, "sum" : 8748.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8748.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:05]POST & json_proto [17:41:05]process_json_proto [17:41:05]json parsed OK: [17:41:05]protocol is kg_v1.0 [17:41:05]action value=close_receipt [17:41:05]process_action close_receipt [17:41:05]cmd_close_receipt [17:41:05]MH_GetDate [17:41:05]Write to MH i2c: F0 00 00 FD 0D F9 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: F0 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: F0 09 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: F0 09 00 FD 0D 00 B3 0C 77 66 99 81 91 64 AD [17:41:05]GetLastDocTimeStamp 1719077759 [17:41:05]current date 1719078067 [17:41:05]FM_GetShiftState [17:41:05]SAM_PROTO_GetShiftState [17:41:05]wFMCommunicate request_size=4 [17:41:05]MH_SAM_APDU [17:41:05]CAPDU: 80 13 01 00 [17:41:05]Write to MH i2c: E2 08 00 FE 0D 80 13 01 00 00 00 00 00 88 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:05]Read from MH i2c: E2 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 0E 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 0E 00 FE 0D 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 7E [17:41:05]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:41:05]wFMCommunicate OK [17:41:05]SAM_PROTO_GetShiftState done [17:41:05]FM_GetShiftState done [17:41:05]opened in 1719016435 [17:41:05]opened+sec_in_day 1719102835 [17:41:05]quantity*price = 874800 [17:41:05]sum+1 = 874801 [17:41:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8748.00 НСП 1% : 77.42 НДС 12% : 928.99 Наличными: 0.00 Безнал.: 8748.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 78 22.06.2024 17:41 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76882 ФПД: 150224348111809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T174107&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76882&fm=150224348111809&tin=02508201610067®Number=0000000000095696&sum=874800 [17:41:06]StoreToDocumentArchive [17:41:06]shift 395 fd 76882 [17:41:06]save to /storage/0395/doc_00076882 [17:41:06]save last doc name /storage/0395/doc_00076882 to /storage/kkm_last_doc_name [17:41:06]save OK [17:41:06]Clear old archive folders... [17:41:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:41:06]tlvbuf is B6F25D20 [17:41:06]SAM_PROTO_ClearQueue [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 09 00 00 [17:41:06]Write to MH i2c: E2 08 00 0B 0E 80 09 00 00 00 00 00 00 8B [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]SAM_PROTO_ClearQueue done [17:41:06]KKMCreateOFDPacket [17:41:06]OFDProtocolAddRootSTLVToBuf [17:41:06]FM_MakeSignedData [17:41:06]FM_MakeSignedData [17:41:06]SAM_PROTO_SignData [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 0D 01 02 [17:41:06]Write to MH i2c: E2 08 00 0C 0E 80 0D 01 02 00 00 00 00 93 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 0C 0E 00 90 00 8E [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]wFMCommunicate request_size=255 [17:41:06]MH_SAM_APDU [17:41:06]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 32 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 30 59 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 59 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 6A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 59 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 0C 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2C 01 00 35 04 06 00 88 A0 D4 E7 [17:41:06]Write to MH i2c: E2 02 01 0D 0E 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 32 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 30 59 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 59 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 6A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 59 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 0C 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2C 01 00 35 04 06 00 88 A0 D4 E7 00 00 63 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 0D 0E 00 90 00 8F [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]wFMCommunicate request_size=7 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 0D 02 02 02 E3 C1 [17:41:06]Write to MH i2c: E2 0A 00 0E 0E 80 0D 02 02 02 00 E3 C1 00 00 3E [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 0E 0E 00 90 00 90 [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 0D 03 02 [17:41:06]Write to MH i2c: E2 08 00 0F 0E 80 0D 03 02 00 00 00 00 98 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 0B 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 0B 00 0F 0E 00 83 7E 6B A8 7B 92 6E F1 90 00 19 [17:41:06]RAPDU: 83 7E 6B A8 7B 92 6E F1 90 00 [17:41:06]wFMCommunicate OK [17:41:06]SAM_PROTO_SignData done [17:41:06]FM_MakeSignedData done [17:41:06]CreateOFDProtocolMessage [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 11 00 00 [17:41:06]Write to MH i2c: E2 08 00 10 0E 80 11 00 00 00 00 00 00 98 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 17 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 17 00 10 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E8 [17:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:41:06]wFMCommunicate OK [17:41:06]CreateOFDProtocolMessage done [17:41:06]OFDSenderStorePacket 76882 [17:41:06]StoreOFDPacket docnum=76882 [17:41:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 EE DB 04 01 41 C2 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 32 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 30 59 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 59 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 6A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 59 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 0C 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2C 01 00 35 04 06 00 88 A0 D4 E7 E3 C1 83 7E 6B A8 7B 92 6E F1 [17:41:06]CheckFolder [17:41:06]dirname=/storage/ofd_packets [17:41:06]CheckFolder done [17:41:06]ProducePacketName [17:41:06]name=ofd_packets/00076882 [17:41:06]NVStorageSaveData ofd_packets/00076882 [17:41:06]File name is /storage/ofd_packets/00076882 [17:41:06]Write 298 bytes [17:41:06]NVStorageSaveData done [17:41:06]OFDSenderStorePacket done [17:41:06]KKMCreateOFDPacket done [17:41:06]NVStorageSaveData kkm_last_timestamp [17:41:06]File name is /storage/kkm_last_timestamp [17:41:06]Write 4 bytes [17:41:06]NVStorageSaveData done [17:41:06]ExternCall_PrintAddStr [17:41:06]wPrintStart [17:41:06]Write to MH i2c: 01 00 00 11 0E 1F [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: 01 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: 01 07 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: 01 07 00 11 0E 00 00 00 00 00 FF 0F 34 [17:41:06]RasterBufferAndPrint [17:41:06]line Счет N : (1)1694676 [17:41:06]line ИНН: 02508201610067 [17:41:06]line Контрольно-Кассовый Чек [17:41:06]line ПРОДАЖА [17:41:06]line ТРК (МРК, ГНК) : 11 [17:41:06]line Товар: 2710194210 [17:41:06]line ДТ-К-2 [17:41:06]line 120.000 * 72.90 [17:41:06]line = 8748.00 [17:41:06]line НДС 12% НСП 1% [17:41:06]line > о реализуемом товаре [17:41:06]line ИТОГО: 8748.00 [17:41:06]line НСП 1% : 77.42 [17:41:06]line НДС 12% : 928.99 [17:41:06]line Наличными: 0.00 [17:41:06]line Безнал.: 8748.00 [17:41:06]line Место: АЗС № 144 "Партнер Нефть" [17:41:06]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:41:06]line СНО: Общий режим [17:41:06]line Чек 78 22.06.2024 17:41 [17:41:06]line Смена: 395 ФФД: 1.0 [17:41:06]line ЗНМ: 0300000170 [17:41:06]line РНМ: 0000000000095696 [17:41:06]line Версия ККМ: 001 [17:41:06]line Платежная система: O! деньги [17:41:06]line ФМ: 0000000000875009 [17:41:06]line ФД: 76882 [17:41:06]line ФПД: 150224348111809 [17:41:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T174107&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76882&fm=150224348111809&tin=02508201610067®Number=0000000000095696&sum=874800 [17:41:07]OFD Sender: Processing packet 76882 [packets to send 351, broken 350] [17:41:07]ProducePacketName [17:41:07]name=ofd_packets/00076882 [17:41:07]OFD Sender: To server: pG, [17:41:07]CommunicateWithHost lk.salyk.kg:30040 [17:41:07]ConnectInit lk.salyk.kg [17:41:07]written 0, free lines is 4095 [17:41:07]Connected sock=10 [17:41:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 EE DB 04 01 41 C2 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 32 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 30 59 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 59 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 6A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 59 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 0C 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2C 01 00 35 04 06 00 88 A0 D4 E7 E3 C1 83 7E 6B A8 7B 92 6E F1 [17:41:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 50 69 47 00 1B E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 52 2C 01 00 F4 03 04 00 4C B3 76 66 B6 04 01 00 00 74 72 DC B1 CF BB 5A E7 [17:41:07]CommunicateWithHost err = 0 [17:41:07]CheckOFDResponse [17:41:07]1017 (14) - 77093643461234 [17:41:07]1041 (16) - 0000000000875009 [17:41:07]1040 (4) - 76882 [17:41:07]1012 (4) - 22.06.2024 11:19 [17:41:07]1206 (1) - 0 [17:41:07]OFD Sender: Remove packet 76882 [17:41:07]ProducePacketName [17:41:07]name=ofd_packets/00076882 [17:41:07]NVStorageDeleteData [17:41:07]Write to MH i2c: 01 00 00 3B 0E 49 [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 3B 0E 00 00 00 00 00 F3 0C 4F [17:41:07]RasterBufferAndPrint [17:41:07]line [17:41:07]line [17:41:07]line [17:41:07]line [17:41:07]line [17:41:07]written 0, free lines is 3322 [17:41:07]MH_Cut [17:41:07]Write to MH i2c: D1 01 00 42 0E 01 22 [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: D1 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: D1 01 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: D1 01 00 42 0E 00 21 [17:41:07]Write to MH i2c: 01 00 00 43 0E 51 [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]OFD Sender: No OFD packet to send [17:41:08]*** Cut start [17:41:08]*** Partial cut [17:41:08]*** CUTSNS_PIN = 1 [17:41:08]*** CUTSNS_PIN = 0 [17:41:08]*** Brake cut motor [17:41:08]Read from MH i2c: 01 [17:41:08]MH_I2C_Read... [17:41:08]*** Stop cut motor [17:41:08]*** Cut end [17:41:08]Read from MH i2c: 01 07 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: 01 07 00 43 0E 00 00 00 00 00 FF 0F 66 [17:41:08]process_action close_receipt done [17:41:08]requested_data is exist [17:41:08]produce_requested_data [17:41:08]requested_item fm.sn is exist - process it [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 11 00 00 [17:41:08]Write to MH i2c: E2 08 00 44 0E 80 11 00 00 00 00 00 00 CC [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 44 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1C [17:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:41:09]wFMCommunicate OK [17:41:09]requested_item fd.num is exist - process it [17:41:09]SAM_PROTO_GetFieldsCounters [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 13 00 00 [17:41:09]Write to MH i2c: E2 08 00 45 0E 80 13 00 00 00 00 00 00 CF [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 62 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 62 00 45 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 52 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [17:41: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 52 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_GetFieldsCounters done [17:41:09]requested_item shift.num is exist - process it [17:41:09]requested_item shift.opened is exist - process it [17:41:09]req_shift_opened [17:41:09]FM_GetShiftState [17:41:09]SAM_PROTO_GetShiftState [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 13 01 00 [17:41:09]Write to MH i2c: E2 08 00 46 0E 80 13 01 00 00 00 00 00 D1 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0E 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0E 00 46 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 C7 [17:41:09]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_GetShiftState done [17:41:09]FM_GetShiftState done [17:41:09]req_shift_opened done [17:41:09]requested_item shift.open_date is exist - process it [17:41:09]req_shift_open_date [17:41:09]req_shift_open_date done [17:41:09]produce_requested_data done [17:41:09]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76882,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [17:41:09]process_action_free close_receipt [17:41:09]json_value_free [17:41:09]json_value_free done [17:41:09]process_json_proto returns [17:41:09]Send response to host [17:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76882,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [17:41:09]free response buf [17:41:09]execute_script done [17:41:09]execute_script returns [17:41:09]free content buf [17:41:09]Sock 8.Close socket [17:41:09]Sock 8.Thread stoped [17:41:12]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]accept exits with 9 [17:52:24]New connection [17:52:24]New thread 3067362660 created [17:52:24]Thread 3067219300 joined [17:52:24]Waiting for new connection... [17:52:24] Sock 9.Parse request [17:52:24]Sock 9.Check first char [17:52:24]Sock 9.First char is OK [17:52:24]request: POST /json_proto HTTP/1.0 [17:52:24]Method: POST [17:52:24]URL: /json_proto [17:52:24]Method is POST - this is cgi request [17:52:24]url: /json_proto [17:52:24]query_string will be loaded in cgi processing [17:52:24]execute_cgi json_proto POST (null) [17:52:24]execute_cgi path=json_proto method=POST [17:52:24]POST find Content-Length [17:52:24]Host: 172.17.39.195:8080 [17:52:24]Content-Length: 663 [17:52:24]Content-Type: application/json [17:52:24] [17:52:24]POST finish read [17:52:24]Found Content-Length = 663 [17:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220941", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:24]execute_script... [17:52:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220941", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:24]POST & json_proto [17:52:24]process_json_proto [17:52:24]json parsed OK: [17:52:24]protocol is kg_v1.0 [17:52:24]action value=close_receipt [17:52:24]process_action close_receipt [17:52:24]cmd_close_receipt [17:52:24]MH_GetDate [17:52:24]Write to MH i2c: F0 00 00 47 0E 44 [17:52:24]Write i2c OK [17:52:24]MH_I2C_Read... [17:52:24]Read from MH i2c: F0 [17:52:24]MH_I2C_Read... [17:52:24]Read from MH i2c: F0 09 00 [17:52:24]MH_I2C_Read... [17:52:24]Read from MH i2c: F0 09 00 47 0E 00 5A 0F 77 66 99 81 91 64 A2 [17:52:24]GetLastDocTimeStamp 1719078067 [17:52:24]current date 1719078746 [17:52:24]FM_GetShiftState [17:52:24]SAM_PROTO_GetShiftState [17:52:24]wFMCommunicate request_size=4 [17:52:24]MH_SAM_APDU [17:52:24]CAPDU: 80 13 01 00 [17:52:24]Write to MH i2c: E2 08 00 48 0E 80 13 01 00 00 00 00 00 D3 [17:52:24]Write i2c OK [17:52:24]MH_I2C_Read... [17:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:24]Read from MH i2c: E2 [17:52:24]MH_I2C_Read... [17:52:24]Read from MH i2c: E2 0E 00 [17:52:24]MH_I2C_Read... [17:52:24]Read from MH i2c: E2 0E 00 48 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 C9 [17:52:24]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:52:24]wFMCommunicate OK [17:52:24]SAM_PROTO_GetShiftState done [17:52:24]FM_GetShiftState done [17:52:24]opened in 1719016435 [17:52:24]opened+sec_in_day 1719102835 [17:52:24]quantity*price = 12500 [17:52:24]sum+1 = 12501 [17:52:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 79 22.06.2024 17:52 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76883 ФПД: 31441151908796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T175226&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76883&fm=31441151908796&tin=02508201610067®Number=0000000000095696&sum=12500 0 [17:52:25]StoreToDocumentArchive [17:52:25]shift 395 fd 76883 [17:52:25]save to /storage/0395/doc_00076883 [17:52:25]save last doc name /storage/0395/doc_00076883 to /storage/kkm_last_doc_name [17:52:25]save OK [17:52:25]Clear old archive folders... [17:52:25]ProcessDocumentItem done err = 0, tmpTLVsize=283 [17:52:25]tlvbuf is 008EF520 [17:52:25]SAM_PROTO_ClearQueue [17:52:25]wFMCommunicate request_size=4 [17:52:25]MH_SAM_APDU [17:52:25]CAPDU: 80 09 00 00 [17:52:25]Write to MH i2c: E2 08 00 55 0E 80 09 00 00 00 00 00 00 D5 [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:25]Read from MH i2c: E2 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 03 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 03 00 55 0E 00 90 00 D7 [17:52:25]RAPDU: 90 00 [17:52:25]wFMCommunicate OK [17:52:25]SAM_PROTO_ClearQueue done [17:52:25]KKMCreateOFDPacket [17:52:25]OFDProtocolAddRootSTLVToBuf [17:52:25]FM_MakeSignedData [17:52:25]FM_MakeSignedData [17:52:25]SAM_PROTO_SignData [17:52:25]wFMCommunicate request_size=4 [17:52:25]MH_SAM_APDU [17:52:25]CAPDU: 80 0D 01 02 [17:52:25]Write to MH i2c: E2 08 00 56 0E 80 0D 01 02 00 00 00 00 DD [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:25]Read from MH i2c: E2 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 03 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 03 00 56 0E 00 90 00 D8 [17:52:25]RAPDU: 90 00 [17:52:25]wFMCommunicate OK [17:52:25]wFMCommunicate request_size=255 [17:52:25]MH_SAM_APDU [17:52:25]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5A 0F 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 [17:52:25]Write to MH i2c: E2 02 01 57 0E 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5A 0F 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 00 00 0F [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:25]Read from MH i2c: E2 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 03 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 03 00 57 0E 00 90 00 D9 [17:52:25]RAPDU: 90 00 [17:52:25]wFMCommunicate OK [17:52:25]wFMCommunicate request_size=42 [17:52:25]MH_SAM_APDU [17:52:25]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 53 2C 01 00 35 04 06 00 1C 98 76 B0 DB BC [17:52:25]Write to MH i2c: E2 2D 00 58 0E 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 53 2C 01 00 35 04 06 00 1C 98 76 B0 DB BC 00 00 A3 [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:25]Read from MH i2c: E2 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 03 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 03 00 58 0E 00 90 00 DA [17:52:25]RAPDU: 90 00 [17:52:25]wFMCommunicate OK [17:52:25]wFMCommunicate request_size=4 [17:52:25]MH_SAM_APDU [17:52:25]CAPDU: 80 0D 03 02 [17:52:25]Write to MH i2c: E2 08 00 59 0E 80 0D 03 02 00 00 00 00 E2 [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:25]Read from MH i2c: E2 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 0B 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 0B 00 59 0E 00 B5 02 B5 8D E7 8A 30 08 90 00 85 [17:52:25]RAPDU: B5 02 B5 8D E7 8A 30 08 90 00 [17:52:25]wFMCommunicate OK [17:52:25]SAM_PROTO_SignData done [17:52:25]FM_MakeSignedData done [17:52:25]CreateOFDProtocolMessage [17:52:25]wFMCommunicate request_size=4 [17:52:25]MH_SAM_APDU [17:52:25]CAPDU: 80 11 00 00 [17:52:25]Write to MH i2c: E2 08 00 5A 0E 80 11 00 00 00 00 00 00 E2 [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:25]Read from MH i2c: E2 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 17 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 17 00 5A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 32 [17:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:52:25]wFMCommunicate OK [17:52:25]CreateOFDProtocolMessage done [17:52:25]OFDSenderStorePacket 76883 [17:52:25]StoreOFDPacket docnum=76883 [17:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2F 01 00 00 D2 A7 27 01 4B 10 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5A 0F 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 53 2C 01 00 35 04 06 00 1C 98 76 B0 DB BC B5 02 B5 8D E7 8A 30 08 [17:52:25]CheckFolder [17:52:25]dirname=/storage/ofd_packets [17:52:25]CheckFolder done [17:52:25]ProducePacketName [17:52:25]name=ofd_packets/00076883 [17:52:25]NVStorageSaveData ofd_packets/00076883 [17:52:25]File name is /storage/ofd_packets/00076883 [17:52:25]Write 333 bytes [17:52:25]NVStorageSaveData done [17:52:25]OFDSenderStorePacket done [17:52:25]KKMCreateOFDPacket done [17:52:25]NVStorageSaveData kkm_last_timestamp [17:52:25]File name is /storage/kkm_last_timestamp [17:52:25]Write 4 bytes [17:52:25]NVStorageSaveData done [17:52:25]ExternCall_PrintAddStr [17:52:25]wPrintStart [17:52:25]Write to MH i2c: 01 00 00 5B 0E 69 [17:52:25]OFD Sender: Processing packet 76883 [packets to send 351, broken 350] [17:52:25]ProducePacketName [17:52:25]name=ofd_packets/00076883 [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]OFD Sender: To server: pG, [17:52:25]CommunicateWithHost lk.salyk.kg:30040 [17:52:25]ConnectInit lk.salyk.kg [17:52:25]Read from MH i2c: 01 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: 01 07 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: 01 07 00 5B 0E 00 00 00 00 00 FF 0F 7E [17:52:25]RasterBufferAndPrint [17:52:25]line Счет N : (3)220941 [17:52:25]line ИНН: 02508201610067 [17:52:25]line Контрольно-Кассовый Чек [17:52:25]line ПРОДАЖА [17:52:25]line Товар: 5449000133328 [17:52:25]line Напиток Кока-Кола Zero 1л [17:52:25]line 1.000 * 125.00 [17:52:25]line = 125.00 [17:52:25]line НДС 12% НСП 1% [17:52:25]line > о реализуемом товаре [17:52:25]line ИТОГО: 125.00 [17:52:25]line НСП 1% : 1.11 [17:52:25]line НДС 12% : 13.27 [17:52:25]line Наличными: 125.00 [17:52:25]line Безнал.: 0.00 [17:52:25]line Место: АЗС № 144 "Партнер Нефть" [17:52:25]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:52:25]line СНО: Общий режим [17:52:25]line Чек 79 22.06.2024 17:52 [17:52:25]line Смена: 395 ФФД: 1.0 [17:52:25]line ЗНМ: 0300000170 [17:52:25]line РНМ: 0000000000095696 [17:52:25]line Версия ККМ: 001 [17:52:25]line ФМ: 0000000000875009 [17:52:25]line ФД: 76883 [17:52:25]line ФПД: 31441151908796 [17:52:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T175226&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76883&fm=31441151908796&tin=02508201610067®Number=0000000000095696&sum=12500 [17:52:26]Connected sock=11 [17:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2F 01 00 00 D2 A7 27 01 4B 10 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5A 0F 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 53 2C 01 00 35 04 06 00 1C 98 76 B0 DB BC B5 02 B5 8D E7 8A 30 08 [17:52:26]line 0 [17:52:26]written 0, free lines is 4095 [17:52:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 42 B8 47 00 EC 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 35 30 30 39 10 04 04 00 53 2C 01 00 F4 03 04 00 F3 B5 76 66 B6 04 01 00 00 76 10 4F CA B5 49 4D 2C [17:52:26]CommunicateWithHost err = 0 [17:52:26]CheckOFDResponse [17:52:26]1017 (14) - 77093643461234 [17:52:26]1041 (16) - 0000000000875009 [17:52:26]1040 (4) - 76883 [17:52:26]1012 (4) - 22.06.2024 11:30 [17:52:26]1206 (1) - 0 [17:52:26]OFD Sender: Remove packet 76883 [17:52:26]ProducePacketName [17:52:26]name=ofd_packets/00076883 [17:52:26]NVStorageDeleteData [17:52:26]Write to MH i2c: 01 00 00 83 0E 91 [17:52:26]Write i2c OK [17:52:26]MH_I2C_Read... [17:52:26]Read from MH i2c: 01 [17:52:26]MH_I2C_Read... [17:52:26]Read from MH i2c: 01 07 00 [17:52:26]MH_I2C_Read... [17:52:26]Read from MH i2c: 01 07 00 83 0E 00 00 00 00 00 F8 0C 9C [17:52:26]RasterBufferAndPrint [17:52:26]line [17:52:26]line [17:52:26]line [17:52:26]line [17:52:26]line [17:52:26]written 0, free lines is 3327 [17:52:26]MH_Cut [17:52:26]Write to MH i2c: D1 01 00 8A 0E 01 6A [17:52:26]Write i2c OK [17:52:26]MH_I2C_Read... [17:52:26]Read from MH i2c: D1 [17:52:26]MH_I2C_Read... [17:52:26]Read from MH i2c: D1 01 00 [17:52:26]MH_I2C_Read... [17:52:26]Read from MH i2c: D1 01 00 8A 0E 00 69 [17:52:26]Write to MH i2c: 01 00 00 8B 0E 99 [17:52:26]Write i2c OK [17:52:26]MH_I2C_Read... [17:52:26]OFD Sender: No OFD packet to send [17:52:27]*** Cut start [17:52:27]*** Partial cut [17:52:27]*** CUTSNS_PIN = 1 [17:52:27]*** CUTSNS_PIN = 0 [17:52:27]*** Brake cut motor [17:52:27]Read from MH i2c: 01 [17:52:27]MH_I2C_Read... [17:52:27]*** Stop cut motor [17:52:27]*** Cut end [17:52:27]Read from MH i2c: 01 07 00 [17:52:27]MH_I2C_Read... [17:52:27]Read from MH i2c: 01 07 00 8B 0E 00 00 00 00 00 FF 0F AE [17:52:27]process_action close_receipt done [17:52:27]requested_data is exist [17:52:27]produce_requested_data [17:52:27]requested_item fm.sn is exist - process it [17:52:27]wFMCommunicate request_size=4 [17:52:27]MH_SAM_APDU [17:52:27]CAPDU: 80 11 00 00 [17:52:27]Write to MH i2c: E2 08 00 8C 0E 80 11 00 00 00 00 00 00 14 [17:52:27]Write i2c OK [17:52:27]MH_I2C_Read... [17:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:28]Read from MH i2c: E2 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 17 00 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 17 00 8C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 64 [17:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:52:28]wFMCommunicate OK [17:52:28]requested_item fd.num is exist - process it [17:52:28]SAM_PROTO_GetFieldsCounters [17:52:28]wFMCommunicate request_size=4 [17:52:28]MH_SAM_APDU [17:52:28]CAPDU: 80 13 00 00 [17:52:28]Write to MH i2c: E2 08 00 8D 0E 80 13 00 00 00 00 00 00 17 [17:52:28]Write i2c OK [17:52:28]MH_I2C_Read... [17:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:28]Read from MH i2c: E2 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 62 00 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 62 00 8D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 53 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [17:52: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 53 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:28]wFMCommunicate OK [17:52:28]SAM_PROTO_GetFieldsCounters done [17:52:28]requested_item shift.num is exist - process it [17:52:28]requested_item shift.opened is exist - process it [17:52:28]req_shift_opened [17:52:28]FM_GetShiftState [17:52:28]SAM_PROTO_GetShiftState [17:52:28]wFMCommunicate request_size=4 [17:52:28]MH_SAM_APDU [17:52:28]CAPDU: 80 13 01 00 [17:52:28]Write to MH i2c: E2 08 00 8E 0E 80 13 01 00 00 00 00 00 19 [17:52:28]Write i2c OK [17:52:28]MH_I2C_Read... [17:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:28]Read from MH i2c: E2 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 0E 00 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 0E 00 8E 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 0F [17:52:28]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:52:28]wFMCommunicate OK [17:52:28]SAM_PROTO_GetShiftState done [17:52:28]FM_GetShiftState done [17:52:28]req_shift_opened done [17:52:28]requested_item shift.open_date is exist - process it [17:52:28]req_shift_open_date [17:52:28]req_shift_open_date done [17:52:28]produce_requested_data done [17:52:28]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76883,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [17:52:28]process_action_free close_receipt [17:52:28]json_value_free [17:52:28]json_value_free done [17:52:28]process_json_proto returns [17:52:28]Send response to host [17:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76883,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [17:52:28]free response buf [17:52:28]execute_script done [17:52:28]execute_script returns [17:52:28]free content buf [17:52:28]Sock 9.Close socket [17:52:28]Sock 9.Thread stoped [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:00]accept exits with 8 [17:59:00]New connection [17:59:00]New thread 3067219300 created [17:59:00]Thread 3067362660 joined [17:59:00]Waiting for new connection... [17:59:00] Sock 8.Parse request [17:59:00]Sock 8.Check first char [17:59:00]Sock 8.First char is OK [17:59:00]request: POST /json_proto HTTP/1.0 [17:59:00]Method: POST [17:59:00]URL: /json_proto [17:59:00]Method is POST - this is cgi request [17:59:00]url: /json_proto [17:59:00]query_string will be loaded in cgi processing [17:59:00]execute_cgi json_proto POST (null) [17:59:00]execute_cgi path=json_proto method=POST [17:59:00]POST find Content-Length [17:59:00]Host: 172.17.39.195:8080 [17:59:00]Content-Length: 633 [17:59:00]Content-Type: application/json [17:59:00] [17:59:00]POST finish read [17:59:00]Found Content-Length = 633 [17:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220942", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:00]execute_script... [17:59:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220942", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:00]POST & json_proto [17:59:00]process_json_proto [17:59:00]json parsed OK: [17:59:00]protocol is kg_v1.0 [17:59:00]action value=close_receipt [17:59:00]process_action close_receipt [17:59:00]cmd_close_receipt [17:59:00]MH_GetDate [17:59:00]Write to MH i2c: F0 00 00 8F 0E 8C [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: F0 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: F0 09 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: F0 09 00 8F 0E 00 E7 10 77 66 99 81 91 64 78 [17:59:00]GetLastDocTimeStamp 1719078746 [17:59:00]current date 1719079143 [17:59:00]FM_GetShiftState [17:59:00]SAM_PROTO_GetShiftState [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 13 01 00 [17:59:00]Write to MH i2c: E2 08 00 90 0E 80 13 01 00 00 00 00 00 1B [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 0E 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 0E 00 90 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 11 [17:59:00]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:59:00]wFMCommunicate OK [17:59:00]SAM_PROTO_GetShiftState done [17:59:00]FM_GetShiftState done [17:59:00]opened in 1719016435 [17:59:00]opened+sec_in_day 1719102835 [17:59:00]quantity*price = 13000 [17:59:00]sum+1 = 13001 [17:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 80 22.06.2024 17:59 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76884 ФПД: 1286543187806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T175903&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76884&fm=1286543187806&tin=02508201610067®Number=0000000000095696&sum=13000 0 [17:59:02]StoreToDocumentArchive [17:59:02]shift 395 fd 76884 [17:59:02]save to /storage/0395/doc_00076884 [17:59:02]save last doc name /storage/0395/doc_00076884 to /storage/kkm_last_doc_name [17:59:02]save OK [17:59:02]Clear old archive folders... [17:59:02]ProcessDocumentItem done err = 0, tmpTLVsize=285 [17:59:02]tlvbuf is 008EA8C0 [17:59:02]SAM_PROTO_ClearQueue [17:59:02]wFMCommunicate request_size=4 [17:59:02]MH_SAM_APDU [17:59:02]CAPDU: 80 09 00 00 [17:59:02]Write to MH i2c: E2 08 00 9D 0E 80 09 00 00 00 00 00 00 1D [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 [17:59:02]MH_I2C_Read... [17:59:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:02]Read from MH i2c: E2 03 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 03 00 9D 0E 00 90 00 1F [17:59:02]RAPDU: 90 00 [17:59:02]wFMCommunicate OK [17:59:02]SAM_PROTO_ClearQueue done [17:59:02]KKMCreateOFDPacket [17:59:02]OFDProtocolAddRootSTLVToBuf [17:59:02]FM_MakeSignedData [17:59:02]FM_MakeSignedData [17:59:02]SAM_PROTO_SignData [17:59:02]wFMCommunicate request_size=4 [17:59:02]MH_SAM_APDU [17:59:02]CAPDU: 80 0D 01 02 [17:59:02]Write to MH i2c: E2 08 00 9E 0E 80 0D 01 02 00 00 00 00 25 [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:02]Read from MH i2c: E2 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 03 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 03 00 9E 0E 00 90 00 20 [17:59:02]RAPDU: 90 00 [17:59:02]wFMCommunicate OK [17:59:02]wFMCommunicate request_size=255 [17:59:02]MH_SAM_APDU [17:59:02]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E7 10 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 [17:59:02]Write to MH i2c: E2 02 01 9F 0E 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E7 10 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 00 00 A2 [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:02]Read from MH i2c: E2 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 03 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 03 00 9F 0E 00 90 00 21 [17:59:02]RAPDU: 90 00 [17:59:02]wFMCommunicate OK [17:59:02]wFMCommunicate request_size=44 [17:59:02]MH_SAM_APDU [17:59:02]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2C 01 00 35 04 06 00 01 2B 8B F3 1F 5E [17:59:02]Write to MH i2c: E2 2F 00 A0 0E 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2C 01 00 35 04 06 00 01 2B 8B F3 1F 5E 00 00 ED [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:02]Read from MH i2c: E2 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 03 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 03 00 A0 0E 00 90 00 22 [17:59:02]RAPDU: 90 00 [17:59:02]wFMCommunicate OK [17:59:02]wFMCommunicate request_size=4 [17:59:02]MH_SAM_APDU [17:59:02]CAPDU: 80 0D 03 02 [17:59:02]Write to MH i2c: E2 08 00 A1 0E 80 0D 03 02 00 00 00 00 2A [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:02]Read from MH i2c: E2 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 0B 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 0B 00 A1 0E 00 72 61 F6 9B 99 55 F8 CF 90 00 44 [17:59:02]RAPDU: 72 61 F6 9B 99 55 F8 CF 90 00 [17:59:02]wFMCommunicate OK [17:59:02]SAM_PROTO_SignData done [17:59:02]FM_MakeSignedData done [17:59:02]CreateOFDProtocolMessage [17:59:02]wFMCommunicate request_size=4 [17:59:02]MH_SAM_APDU [17:59:02]CAPDU: 80 11 00 00 [17:59:02]Write to MH i2c: E2 08 00 A2 0E 80 11 00 00 00 00 00 00 2A [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:02]Read from MH i2c: E2 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 17 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: E2 17 00 A2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7A [17:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:59:02]wFMCommunicate OK [17:59:02]CreateOFDProtocolMessage done [17:59:02]OFDSenderStorePacket 76884 [17:59:02]StoreOFDPacket docnum=76884 [17:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 31 01 00 00 66 AE 29 01 52 EA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E7 10 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2C 01 00 35 04 06 00 01 2B 8B F3 1F 5E 72 61 F6 9B 99 55 F8 CF [17:59:02]CheckFolder [17:59:02]dirname=/storage/ofd_packets [17:59:02]CheckFolder done [17:59:02]ProducePacketName [17:59:02]name=ofd_packets/00076884 [17:59:02]NVStorageSaveData ofd_packets/00076884 [17:59:02]File name is /storage/ofd_packets/00076884 [17:59:02]Write 335 bytes [17:59:02]NVStorageSaveData done [17:59:02]OFDSenderStorePacket done [17:59:02]KKMCreateOFDPacket done [17:59:02]NVStorageSaveData kkm_last_timestamp [17:59:02]File name is /storage/kkm_last_timestamp [17:59:02]Write 4 bytes [17:59:02]NVStorageSaveData done [17:59:02]ExternCall_PrintAddStr [17:59:02]wPrintStart [17:59:02]Write to MH i2c: 01 00 00 A3 0E B1 [17:59:02]Write i2c OK [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: 01 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: 01 07 00 [17:59:02]MH_I2C_Read... [17:59:02]Read from MH i2c: 01 07 00 A3 0E 00 00 00 00 00 FF 0F C6 [17:59:02]RasterBufferAndPrint [17:59:02]line Счет N : (3)220942 [17:59:02]line ИНН: 02508201610067 [17:59:02]line Контрольно-Кассовый Чек [17:59:02]line ПРОДАЖА [17:59:02]line Товар: 48745291 [17:59:02]line Сигареты Parliament SOHO NYC COMPACT BLU [17:59:02]line 1.000 * 130.00 [17:59:02]line = 130.00 [17:59:02]line НДС 12% НСП 1% [17:59:02]line > о реализуемом товаре [17:59:02]line ИТОГО: 130.00 [17:59:02]line НСП 1% : 1.15 [17:59:02]line НДС 12% : 13.80 [17:59:02]line Наличными: 130.00 [17:59:02]line Безнал.: 0.00 [17:59:02]line Место: АЗС № 144 "Партнер Нефть" [17:59:02]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [17:59:02]line СНО: Общий режим [17:59:02]line Чек 80 22.06.2024 17:59 [17:59:02]line Смена: 395 ФФД: 1.0 [17:59:02]line ЗНМ: 0300000170 [17:59:02]line РНМ: 0000000000095696 [17:59:02]line Версия ККМ: 001 [17:59:02]line ФМ: 0000000000875009 [17:59:02]line ФД: 76884 [17:59:02]line ФПД: 1286543187806 [17:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T175903&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76884&fm=1286543187806&tin=02508201610067®Number=0000000000095696&sum=13000 [17:59:02]line 0 [17:59:02]OFD Sender: Processing packet 76884 [packets to send 351, broken 350] [17:59:02]ProducePacketName [17:59:02]name=ofd_packets/00076884 [17:59:02]OFD Sender: To server: pG, [17:59:02]CommunicateWithHost lk.salyk.kg:30040 [17:59:02]ConnectInit lk.salyk.kg [17:59:02]written 0, free lines is 4095 [17:59:03]Connected sock=10 [17:59:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 31 01 00 00 66 AE 29 01 52 EA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E7 10 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2C 01 00 35 04 06 00 01 2B 8B F3 1F 5E 72 61 F6 9B 99 55 F8 CF [17:59:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 92 13 47 00 A8 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 54 2C 01 00 F4 03 04 00 80 B7 76 66 B6 04 01 00 00 F0 30 1C FD D1 44 F2 F3 [17:59:03]CommunicateWithHost err = 0 [17:59:03]CheckOFDResponse [17:59:03]1017 (14) - 77093643461234 [17:59:03]1041 (16) - 0000000000875009 [17:59:03]1040 (4) - 76884 [17:59:03]1012 (4) - 22.06.2024 11:37 [17:59:03]1206 (1) - 0 [17:59:03]OFD Sender: Remove packet 76884 [17:59:03]ProducePacketName [17:59:03]name=ofd_packets/00076884 [17:59:03]NVStorageDeleteData [17:59:03]Write to MH i2c: 01 00 00 CC 0E DA [17:59:03]Write i2c OK [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: 01 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: 01 07 00 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: 01 07 00 CC 0E 00 00 00 00 00 DF 0C CC [17:59:03]RasterBufferAndPrint [17:59:03]line [17:59:03]line [17:59:03]line [17:59:03]line [17:59:03]line [17:59:03]written 0, free lines is 3301 [17:59:03]MH_Cut [17:59:03]Write to MH i2c: D1 01 00 D3 0E 01 B3 [17:59:03]Write i2c OK [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: D1 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: D1 01 00 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: D1 01 00 D3 0E 00 B2 [17:59:03]Write to MH i2c: 01 00 00 D4 0E E2 [17:59:03]Write i2c OK [17:59:03]MH_I2C_Read... [17:59:03]OFD Sender: No OFD packet to send [17:59:04]*** Cut start [17:59:04]*** Partial cut [17:59:04]*** CUTSNS_PIN = 1 [17:59:04]*** CUTSNS_PIN = 0 [17:59:04]*** Brake cut motor [17:59:04]Read from MH i2c: 01 [17:59:04]MH_I2C_Read... [17:59:04]*** Stop cut motor [17:59:04]*** Cut end [17:59:04]Read from MH i2c: 01 07 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: 01 07 00 D4 0E 00 00 00 00 00 FF 0F F7 [17:59:04]process_action close_receipt done [17:59:04]requested_data is exist [17:59:04]produce_requested_data [17:59:04]requested_item fm.sn is exist - process it [17:59:04]wFMCommunicate request_size=4 [17:59:04]MH_SAM_APDU [17:59:04]CAPDU: 80 11 00 00 [17:59:04]Write to MH i2c: E2 08 00 D5 0E 80 11 00 00 00 00 00 00 5D [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:04]Read from MH i2c: E2 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 17 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 17 00 D5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 AD [17:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [17:59:04]wFMCommunicate OK [17:59:04]requested_item fd.num is exist - process it [17:59:04]SAM_PROTO_GetFieldsCounters [17:59:04]wFMCommunicate request_size=4 [17:59:04]MH_SAM_APDU [17:59:04]CAPDU: 80 13 00 00 [17:59:04]Write to MH i2c: E2 08 00 D6 0E 80 13 00 00 00 00 00 00 60 [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:04]Read from MH i2c: E2 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 62 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 62 00 D6 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 54 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [17:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 54 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:04]wFMCommunicate OK [17:59:04]SAM_PROTO_GetFieldsCounters done [17:59:04]requested_item shift.num is exist - process it [17:59:04]requested_item shift.opened is exist - process it [17:59:04]req_shift_opened [17:59:04]FM_GetShiftState [17:59:04]SAM_PROTO_GetShiftState [17:59:04]wFMCommunicate request_size=4 [17:59:04]MH_SAM_APDU [17:59:04]CAPDU: 80 13 01 00 [17:59:04]Write to MH i2c: E2 08 00 D7 0E 80 13 01 00 00 00 00 00 62 [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:05]Read from MH i2c: E2 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 0E 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 0E 00 D7 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 58 [17:59:05]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [17:59:05]wFMCommunicate OK [17:59:05]SAM_PROTO_GetShiftState done [17:59:05]FM_GetShiftState done [17:59:05]req_shift_opened done [17:59:05]requested_item shift.open_date is exist - process it [17:59:05]req_shift_open_date [17:59:05]req_shift_open_date done [17:59:05]produce_requested_data done [17:59:05]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76884,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [17:59:05]process_action_free close_receipt [17:59:05]json_value_free [17:59:05]json_value_free done [17:59:05]process_json_proto returns [17:59:05]Send response to host [17:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76884,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [17:59:05]free response buf [17:59:05]execute_script done [17:59:05]execute_script returns [17:59:05]free content buf [17:59:05]Sock 8.Close socket [17:59:05]Sock 8.Thread stoped [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:48]accept exits with 9 [18:16:48]New connection [18:16:48]New thread 3067362660 created [18:16:48]Thread 3067219300 joined [18:16:48]Waiting for new connection... [18:16:48] Sock 9.Parse request [18:16:48]Sock 9.Check first char [18:16:48]Sock 9.First char is OK [18:16:48]request: POST /json_proto HTTP/1.0 [18:16:48]Method: POST [18:16:48]URL: /json_proto [18:16:48]Method is POST - this is cgi request [18:16:48]url: /json_proto [18:16:48]query_string will be loaded in cgi processing [18:16:48]execute_cgi json_proto POST (null) [18:16:48]execute_cgi path=json_proto method=POST [18:16:48]POST find Content-Length [18:16:48]Host: 172.17.39.195:8080 [18:16:48]Content-Length: 888 [18:16:48]Content-Type: application/json [18:16:48] [18:16:48]POST finish read [18:16:48]Found Content-Length = 888 [18:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220943", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:48]execute_script... [18:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220943", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:48]POST & json_proto [18:16:48]process_json_proto [18:16:48]json parsed OK: [18:16:48]protocol is kg_v1.0 [18:16:48]action value=close_receipt [18:16:48]process_action close_receipt [18:16:48]cmd_close_receipt [18:16:48]MH_GetDate [18:16:48]Write to MH i2c: F0 00 00 D8 0E D5 [18:16:48]Write i2c OK [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: F0 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: F0 09 00 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: F0 09 00 D8 0E 00 12 15 77 66 99 81 91 64 F1 [18:16:48]GetLastDocTimeStamp 1719079143 [18:16:48]current date 1719080210 [18:16:48]FM_GetShiftState [18:16:48]SAM_PROTO_GetShiftState [18:16:48]wFMCommunicate request_size=4 [18:16:48]MH_SAM_APDU [18:16:48]CAPDU: 80 13 01 00 [18:16:48]Write to MH i2c: E2 08 00 D9 0E 80 13 01 00 00 00 00 00 64 [18:16:48]Write i2c OK [18:16:48]MH_I2C_Read... [18:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:48]Read from MH i2c: E2 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: E2 0E 00 [18:16:48]MH_I2C_Read... [18:16:48]Read from MH i2c: E2 0E 00 D9 0E 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 5A [18:16:48]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [18:16:48]wFMCommunicate OK [18:16:48]SAM_PROTO_GetShiftState done [18:16:48]FM_GetShiftState done [18:16:48]opened in 1719016435 [18:16:48]opened+sec_in_day 1719102835 [18:16:48]quantity*price = 4000 [18:16:48]sum+1 = 4001 [18:16:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.70 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 81 22.06.2024 18:16 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76885 ФПД: 158519020518766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T181650&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76885&fm=158519020518766&tin=02508201610067®Number=0000000000095696&sum=8000 0 [18:16:49]StoreToDocumentArchive [18:16:49]shift 395 fd 76885 [18:16:49]save to /storage/0395/doc_00076885 [18:16:49]save last doc name /storage/0395/doc_00076885 to /storage/kkm_last_doc_name [18:16:49]save OK [18:16:49]Clear old archive folders... [18:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=375 [18:16:49]tlvbuf is 00980370 [18:16:49]SAM_PROTO_ClearQueue [18:16:49]wFMCommunicate request_size=4 [18:16:49]MH_SAM_APDU [18:16:49]CAPDU: 80 09 00 00 [18:16:49]Write to MH i2c: E2 08 00 E6 0E 80 09 00 00 00 00 00 00 66 [18:16:49]Write i2c OK [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 [18:16:49]MH_I2C_Read... [18:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:49]Read from MH i2c: E2 03 00 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 03 00 E6 0E 00 90 00 68 [18:16:49]RAPDU: 90 00 [18:16:49]wFMCommunicate OK [18:16:49]SAM_PROTO_ClearQueue done [18:16:49]KKMCreateOFDPacket [18:16:49]OFDProtocolAddRootSTLVToBuf [18:16:49]FM_MakeSignedData [18:16:49]FM_MakeSignedData [18:16:49]SAM_PROTO_SignData [18:16:49]wFMCommunicate request_size=4 [18:16:49]MH_SAM_APDU [18:16:49]CAPDU: 80 0D 01 02 [18:16:49]Write to MH i2c: E2 08 00 E7 0E 80 0D 01 02 00 00 00 00 6E [18:16:49]Write i2c OK [18:16:49]MH_I2C_Read... [18:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:49]Read from MH i2c: E2 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 03 00 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 03 00 E7 0E 00 90 00 69 [18:16:49]RAPDU: 90 00 [18:16:49]wFMCommunicate OK [18:16:49]wFMCommunicate request_size=255 [18:16:49]MH_SAM_APDU [18:16:49]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F [18:16:49]Write to MH i2c: E2 02 01 E8 0E 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 00 B9 [18:16:49]Write i2c OK [18:16:49]MH_I2C_Read... [18:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:49]Read from MH i2c: E2 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 03 00 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 03 00 E8 0E 00 90 00 6A [18:16:49]RAPDU: 90 00 [18:16:49]wFMCommunicate OK [18:16:49]wFMCommunicate request_size=134 [18:16:49]MH_SAM_APDU [18:16:49]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 12 15 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2C 01 00 35 04 06 00 90 2C 15 E8 7D 6E [18:16:49]Write to MH i2c: E2 89 00 E9 0E 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 12 15 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2C 01 00 35 04 06 00 90 2C 15 E8 7D 6E 00 00 62 [18:16:49]Write i2c OK [18:16:49]MH_I2C_Read... [18:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:49]Read from MH i2c: E2 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 03 00 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 03 00 E9 0E 00 90 00 6B [18:16:49]RAPDU: 90 00 [18:16:49]wFMCommunicate OK [18:16:49]wFMCommunicate request_size=4 [18:16:49]MH_SAM_APDU [18:16:49]CAPDU: 80 0D 03 02 [18:16:49]Write to MH i2c: E2 08 00 EA 0E 80 0D 03 02 00 00 00 00 73 [18:16:49]Write i2c OK [18:16:49]MH_I2C_Read... [18:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:49]Read from MH i2c: E2 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 0B 00 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 0B 00 EA 0E 00 69 2C 9C 27 25 C3 0B 7F 90 00 3E [18:16:49]RAPDU: 69 2C 9C 27 25 C3 0B 7F 90 00 [18:16:49]wFMCommunicate OK [18:16:49]SAM_PROTO_SignData done [18:16:49]FM_MakeSignedData done [18:16:49]CreateOFDProtocolMessage [18:16:49]wFMCommunicate request_size=4 [18:16:49]MH_SAM_APDU [18:16:49]CAPDU: 80 11 00 00 [18:16:49]Write to MH i2c: E2 08 00 EB 0E 80 11 00 00 00 00 00 00 73 [18:16:49]Write i2c OK [18:16:49]MH_I2C_Read... [18:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:49]Read from MH i2c: E2 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 17 00 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: E2 17 00 EB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C3 [18:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:16:49]wFMCommunicate OK [18:16:49]CreateOFDProtocolMessage done [18:16:49]OFDSenderStorePacket 76885 [18:16:49]StoreOFDPacket docnum=76885 [18:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 8B 01 00 00 24 3A 83 01 CA E8 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 12 15 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2C 01 00 35 04 06 00 90 2C 15 E8 7D 6E 69 2C 9C 27 25 C3 0B 7F [18:16:49]CheckFolder [18:16:49]dirname=/storage/ofd_packets [18:16:49]CheckFolder done [18:16:49]ProducePacketName [18:16:49]name=ofd_packets/00076885 [18:16:49]NVStorageSaveData ofd_packets/00076885 [18:16:49]File name is /storage/ofd_packets/00076885 [18:16:49]Write 425 bytes [18:16:49]NVStorageSaveData done [18:16:49]OFDSenderStorePacket done [18:16:49]KKMCreateOFDPacket done [18:16:49]NVStorageSaveData kkm_last_timestamp [18:16:49]File name is /storage/kkm_last_timestamp [18:16:49]Write 4 bytes [18:16:49]NVStorageSaveData done [18:16:49]ExternCall_PrintAddStr [18:16:49]wPrintStart [18:16:49]Write to MH i2c: 01 00 00 EC 0E FA [18:16:49]Write i2c OK [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: 01 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: 01 07 00 [18:16:49]MH_I2C_Read... [18:16:49]Read from MH i2c: 01 07 00 EC 0E 00 00 00 00 00 FF 0F 0F [18:16:49]RasterBufferAndPrint [18:16:49]line Счет N : (3)220943 [18:16:49]line ИНН: 02508201610067 [18:16:49]line Контрольно-Кассовый Чек [18:16:49]line ПРОДАЖА [18:16:49]line Товар: 4700000160044 [18:16:49]line Вода Ыссык Ата 0,5л [18:16:49]line 1.000 * 40.00 [18:16:49]line = 40.00 [18:16:49]line НДС 12% НСП 1% [18:16:49]line > о реализуемом товаре [18:16:49]line Товар: 4700000160211 [18:16:49]line Вода Легенда 0,5л [18:16:49]line 1.000 * 40.00 [18:16:49]line = 40.00 [18:16:49]line НДС 12% НСП 1% [18:16:50]line > о реализуемом товаре [18:16:50]line ИТОГО: 80.00 [18:16:50]line НСП 1% : 0.70 [18:16:50]line НДС 12% : 8.50 [18:16:50]line Наличными: 80.00 [18:16:50]line Безнал.: 0.00 [18:16:50]line Место: АЗС № 144 "Партнер Нефть" [18:16:50]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [18:16:50]line СНО: Общий режим [18:16:50]line Чек 81 22.06.2024 18:16 [18:16:50]line Смена: 395 ФФД: 1.0 [18:16:50]line ЗНМ: 0300000170 [18:16:50]line РНМ: 0000000000095696 [18:16:50]line Версия ККМ: 001 [18:16:50]line ФМ: 0000000000875009 [18:16:50]line ФД: 76885 [18:16:50]line ФПД: 158519020518766 [18:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T181650&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76885&fm=158519020518766&tin=02508201610067®Number=0000000000095696&sum=8000 [18:16:50]line 0 [18:16:50]OFD Sender: Processing packet 76885 [packets to send 351, broken 350] [18:16:50]ProducePacketName [18:16:50]name=ofd_packets/00076885 [18:16:50]OFD Sender: To server: pG, [18:16:50]CommunicateWithHost lk.salyk.kg:30040 [18:16:50]ConnectInit lk.salyk.kg [18:16:50]written 0, free lines is 4095 [18:16:50]Connected sock=10 [18:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 8B 01 00 00 24 3A 83 01 CA E8 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 12 15 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2C 01 00 35 04 06 00 90 2C 15 E8 7D 6E 69 2C 9C 27 25 C3 0B 7F [18:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 F2 61 47 00 4E DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 55 2C 01 00 F4 03 04 00 AB BB 76 66 B6 04 01 00 00 80 3D C0 2C 5A 9A 20 5D [18:16:50]CommunicateWithHost err = 0 [18:16:50]CheckOFDResponse [18:16:50]1017 (14) - 77093643461234 [18:16:50]1041 (16) - 0000000000875009 [18:16:50]1040 (4) - 76885 [18:16:50]1012 (4) - 22.06.2024 11:55 [18:16:50]1206 (1) - 0 [18:16:50]OFD Sender: Remove packet 76885 [18:16:50]ProducePacketName [18:16:50]name=ofd_packets/00076885 [18:16:50]NVStorageDeleteData [18:16:50]Write to MH i2c: 01 00 00 1A 0F 29 [18:16:50]Write i2c OK [18:16:50]MH_I2C_Read... [18:16:50]Read from MH i2c: 01 [18:16:50]MH_I2C_Read... [18:16:50]Read from MH i2c: 01 07 00 [18:16:50]MH_I2C_Read... [18:16:50]Read from MH i2c: 01 07 00 1A 0F 00 00 00 00 00 AC 0C E8 [18:16:50]RasterBufferAndPrint [18:16:50]line [18:16:50]line [18:16:50]line [18:16:50]line [18:16:50]line [18:16:50]written 0, free lines is 3248 [18:16:50]MH_Cut [18:16:50]Write to MH i2c: D1 01 00 21 0F 01 02 [18:16:50]Write i2c OK [18:16:50]MH_I2C_Read... [18:16:50]Read from MH i2c: D1 [18:16:50]MH_I2C_Read... [18:16:50]Read from MH i2c: D1 01 00 [18:16:50]MH_I2C_Read... [18:16:50]Read from MH i2c: D1 01 00 21 0F 00 01 [18:16:50]Write to MH i2c: 01 00 00 22 0F 31 [18:16:50]Write i2c OK [18:16:50]MH_I2C_Read... [18:16:51]OFD Sender: No OFD packet to send [18:16:51]*** Cut start [18:16:51]*** Partial cut [18:16:51]*** CUTSNS_PIN = 1 [18:16:51]*** CUTSNS_PIN = 0 [18:16:51]*** Brake cut motor [18:16:52]Read from MH i2c: 01 [18:16:52]MH_I2C_Read... [18:16:52]*** Stop cut motor [18:16:52]*** Cut end [18:16:52]Read from MH i2c: 01 07 00 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: 01 07 00 22 0F 00 00 00 00 00 FF 0F 46 [18:16:52]process_action close_receipt done [18:16:52]requested_data is exist [18:16:52]produce_requested_data [18:16:52]requested_item fm.sn is exist - process it [18:16:52]wFMCommunicate request_size=4 [18:16:52]MH_SAM_APDU [18:16:52]CAPDU: 80 11 00 00 [18:16:52]Write to MH i2c: E2 08 00 23 0F 80 11 00 00 00 00 00 00 AC [18:16:52]Write i2c OK [18:16:52]MH_I2C_Read... [18:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:52]Read from MH i2c: E2 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 17 00 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 17 00 23 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FC [18:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:16:52]wFMCommunicate OK [18:16:52]requested_item fd.num is exist - process it [18:16:52]SAM_PROTO_GetFieldsCounters [18:16:52]wFMCommunicate request_size=4 [18:16:52]MH_SAM_APDU [18:16:52]CAPDU: 80 13 00 00 [18:16:52]Write to MH i2c: E2 08 00 24 0F 80 13 00 00 00 00 00 00 AF [18:16:52]Write i2c OK [18:16:52]MH_I2C_Read... [18:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:52]Read from MH i2c: E2 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 62 00 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 62 00 24 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 55 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [18:16: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 55 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:52]wFMCommunicate OK [18:16:52]SAM_PROTO_GetFieldsCounters done [18:16:52]requested_item shift.num is exist - process it [18:16:52]requested_item shift.opened is exist - process it [18:16:52]req_shift_opened [18:16:52]FM_GetShiftState [18:16:52]SAM_PROTO_GetShiftState [18:16:52]wFMCommunicate request_size=4 [18:16:52]MH_SAM_APDU [18:16:52]CAPDU: 80 13 01 00 [18:16:52]Write to MH i2c: E2 08 00 25 0F 80 13 01 00 00 00 00 00 B1 [18:16:52]Write i2c OK [18:16:52]MH_I2C_Read... [18:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:52]Read from MH i2c: E2 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 0E 00 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 0E 00 25 0F 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 A7 [18:16:52]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [18:16:52]wFMCommunicate OK [18:16:52]SAM_PROTO_GetShiftState done [18:16:52]FM_GetShiftState done [18:16:52]req_shift_opened done [18:16:52]requested_item shift.open_date is exist - process it [18:16:52]req_shift_open_date [18:16:52]req_shift_open_date done [18:16:52]produce_requested_data done [18:16:52]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76885,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [18:16:52]process_action_free close_receipt [18:16:52]json_value_free [18:16:52]json_value_free done [18:16:52]process_json_proto returns [18:16:52]Send response to host [18:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76885,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [18:16:52]free response buf [18:16:52]execute_script done [18:16:52]execute_script returns [18:16:52]free content buf [18:16:52]Sock 9.Close socket [18:16:52]Sock 9.Thread stoped [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:37]accept exits with 8 [18:38:37]New connection [18:38:37]New thread 3067219300 created [18:38:37]Thread 3067362660 joined [18:38:37]Waiting for new connection... [18:38:37] Sock 8.Parse request [18:38:37]Sock 8.Check first char [18:38:37]Sock 8.First char is OK [18:38:37]request: POST /json_proto HTTP/1.0 [18:38:37]Method: POST [18:38:37]URL: /json_proto [18:38:37]Method is POST - this is cgi request [18:38:37]url: /json_proto [18:38:37]query_string will be loaded in cgi processing [18:38:37]execute_cgi json_proto POST (null) [18:38:37]execute_cgi path=json_proto method=POST [18:38:37]POST find Content-Length [18:38:37]Host: 172.17.39.195:8080 [18:38:37]Content-Length: 1172 [18:38:37]Content-Type: application/json [18:38:37] [18:38:37]POST finish read [18:38:37]Found Content-Length = 1172 [18:38:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694700\u000A22.06.2024 18:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102133\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:37]execute_script... [18:38:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694700\u000A22.06.2024 18:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102133\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:37]POST & json_proto [18:38:37]process_json_proto [18:38:37]json parsed OK: [18:38:37]protocol is kg_v1.0 [18:38:37]action value=print_text [18:38:37]process_action print_text [18:38:37]cmd_print_text [18:38:37]ExternCall_PrintAddStr [18:38:37]wPrintStart [18:38:37]Write to MH i2c: 01 00 00 26 0F 35 [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 26 0F 00 00 00 00 00 FF 0F 4A [18:38:37]RasterBufferAndPrint [18:38:37]line *****ТОВАРНЫЙ ЧЕК***** [18:38:37]line АЗС 144 [18:38:37]line Партнер нефть [18:38:37]line 02508201610067 [18:38:37]line Кассир : Шайлообек у. Т. [18:38:37]line Счет N : (1)1694700 [18:38:37]line 22.06.2024 18:09 [18:38:37]line ПРОДАЖА [18:38:37]line ТРК (МРК, ГНК): 43 [18:38:37]line Вид ГСМ : 2710124130 [18:38:37]line Аи-92-К-5 [18:38:37]line 20.000 x 66.40 [18:38:37]line ИТОГ: 1328.00 [18:38:37]line Тип оплаты: Талоны: ТК ГПНА Online [18:38:37]line 30102133 [18:38:37]line ______________________ [18:38:37]line (подпись) [18:38:37]written 0, free lines is 4095 [18:38:37]Write to MH i2c: 01 00 00 3B 0F 4A [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 F5 0D 53 [18:38:37]RasterBufferAndPrint [18:38:37]line [18:38:37]line [18:38:37]line [18:38:37]line [18:38:37]line [18:38:37]written 0, free lines is 3575 [18:38:37]MH_Cut [18:38:37]Write to MH i2c: D1 01 00 42 0F 01 23 [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: D1 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: D1 01 00 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: D1 01 00 42 0F 00 22 [18:38:37]Write to MH i2c: 01 00 00 43 0F 52 [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:38]*** Cut start [18:38:38]*** Partial cut [18:38:38]*** CUTSNS_PIN = 1 [18:38:38]*** CUTSNS_PIN = 0 [18:38:38]*** Brake cut motor [18:38:38]Read from MH i2c: 01 [18:38:38]MH_I2C_Read... [18:38:38]Read from MH i2c: 01 07 00 [18:38:38]MH_I2C_Read... [18:38:38]*** Stop cut motor [18:38:38]*** Cut end [18:38:38]Read from MH i2c: 01 07 00 43 0F 00 00 00 00 00 FF 0F 67 [18:38:38]process_action print_text done [18:38:38]requested_data is exist [18:38:38]produce_requested_data [18:38:38]requested_item fm.sn is exist - process it [18:38:38]wFMCommunicate request_size=4 [18:38:38]MH_SAM_APDU [18:38:38]CAPDU: 80 11 00 00 [18:38:38]Write to MH i2c: E2 08 00 44 0F 80 11 00 00 00 00 00 00 CD [18:38:38]Write i2c OK [18:38:38]MH_I2C_Read... [18:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:38]OFD Sender: No OFD packet to send [18:38:38]Read from MH i2c: E2 [18:38:38]MH_I2C_Read... [18:38:38]Read from MH i2c: E2 17 00 [18:38:38]MH_I2C_Read... [18:38:38]Read from MH i2c: E2 17 00 44 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1D [18:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:38:38]wFMCommunicate OK [18:38:38]requested_item fd.num is exist - process it [18:38:38]SAM_PROTO_GetFieldsCounters [18:38:38]wFMCommunicate request_size=4 [18:38:38]MH_SAM_APDU [18:38:38]CAPDU: 80 13 00 00 [18:38:38]Write to MH i2c: E2 08 00 45 0F 80 13 00 00 00 00 00 00 D0 [18:38:38]Write i2c OK [18:38:38]MH_I2C_Read... [18:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:38]Read from MH i2c: E2 [18:38:38]MH_I2C_Read... [18:38:38]Read from MH i2c: E2 62 00 [18:38:38]MH_I2C_Read... [18:38:38]Read from MH i2c: E2 62 00 45 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 55 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [18:38: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 55 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:38]wFMCommunicate OK [18:38:38]SAM_PROTO_GetFieldsCounters done [18:38:38]requested_item shift.num is exist - process it [18:38:38]requested_item shift.opened is exist - process it [18:38:38]req_shift_opened [18:38:38]FM_GetShiftState [18:38:38]SAM_PROTO_GetShiftState [18:38:38]wFMCommunicate request_size=4 [18:38:38]MH_SAM_APDU [18:38:38]CAPDU: 80 13 01 00 [18:38:38]Write to MH i2c: E2 08 00 46 0F 80 13 01 00 00 00 00 00 D2 [18:38:38]Write i2c OK [18:38:38]MH_I2C_Read... [18:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:38]Read from MH i2c: E2 [18:38:38]MH_I2C_Read... [18:38:38]Read from MH i2c: E2 0E 00 [18:38:38]MH_I2C_Read... [18:38:38]Read from MH i2c: E2 0E 00 46 0F 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 C8 [18:38:38]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [18:38:38]wFMCommunicate OK [18:38:38]SAM_PROTO_GetShiftState done [18:38:38]FM_GetShiftState done [18:38:38]req_shift_opened done [18:38:38]requested_item shift.open_date is exist - process it [18:38:38]req_shift_open_date [18:38:38]req_shift_open_date done [18:38:38]produce_requested_data done [18:38:38]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76885,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [18:38:38]process_action_free print_text [18:38:38]json_value_free [18:38:38]json_value_free done [18:38:38]process_json_proto returns [18:38:38]Send response to host [18:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76885,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [18:38:38]free response buf [18:38:38]execute_script done [18:38:38]execute_script returns [18:38:38]free content buf [18:38:38]Sock 8.Close socket [18:38:38]Sock 8.Thread stoped [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:24]accept exits with 9 [18:41:24]New connection [18:41:24]New thread 3067362660 created [18:41:24]Thread 3067219300 joined [18:41:24]Waiting for new connection... [18:41:24] Sock 9.Parse request [18:41:24]Sock 9.Check first char [18:41:24]Sock 9.First char is OK [18:41:24]request: POST /json_proto HTTP/1.0 [18:41:24]Method: POST [18:41:24]URL: /json_proto [18:41:24]Method is POST - this is cgi request [18:41:24]url: /json_proto [18:41:24]query_string will be loaded in cgi processing [18:41:24]execute_cgi json_proto POST (null) [18:41:24]execute_cgi path=json_proto method=POST [18:41:24]POST find Content-Length [18:41:24]Host: 172.17.39.195:8080 [18:41:24]Content-Length: 1172 [18:41:24]Content-Type: application/json [18:41:24] [18:41:24]POST finish read [18:41:24]Found Content-Length = 1172 [18:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694701\u000A22.06.2024 18:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102133\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:24]execute_script... [18:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694701\u000A22.06.2024 18:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102133\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:24]POST & json_proto [18:41:24]process_json_proto [18:41:24]json parsed OK: [18:41:24]protocol is kg_v1.0 [18:41:24]action value=print_text [18:41:24]process_action print_text [18:41:24]cmd_print_text [18:41:24]ExternCall_PrintAddStr [18:41:24]wPrintStart [18:41:24]Write to MH i2c: 01 00 00 47 0F 56 [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: 01 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: 01 07 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: 01 07 00 47 0F 00 00 00 00 00 FF 0F 6B [18:41:24]RasterBufferAndPrint [18:41:24]line *****ТОВАРНЫЙ ЧЕК***** [18:41:24]line АЗС 144 [18:41:24]line Партнер нефть [18:41:24]line 02508201610067 [18:41:24]line Кассир : Шайлообек у. Т. [18:41:24]line Счет N : (1)1694701 [18:41:24]line 22.06.2024 18:12 [18:41:24]line ПРОДАЖА [18:41:24]line ТРК (МРК, ГНК): 63 [18:41:24]line Вид ГСМ : 2710124130 [18:41:24]line Аи-92-К-5 [18:41:24]line 40.000 x 66.40 [18:41:24]line ИТОГ: 2656.00 [18:41:24]line Тип оплаты: Талоны: ТК ГПНА Online [18:41:24]line 30102133 [18:41:24]line ______________________ [18:41:24]line (подпись) [18:41:24]written 0, free lines is 4095 [18:41:24]Write to MH i2c: 01 00 00 5C 0F 6B [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: 01 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: 01 07 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: 01 07 00 5C 0F 00 00 00 00 00 F6 0D 75 [18:41:24]RasterBufferAndPrint [18:41:24]line [18:41:24]line [18:41:24]line [18:41:24]line [18:41:24]line [18:41:24]written 0, free lines is 3576 [18:41:24]MH_Cut [18:41:24]Write to MH i2c: D1 01 00 63 0F 01 44 [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: D1 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: D1 01 00 [18:41:24]MH_I2C_Read... [18:41:24]Read from MH i2c: D1 01 00 63 0F 00 43 [18:41:24]Write to MH i2c: 01 00 00 64 0F 73 [18:41:24]Write i2c OK [18:41:24]MH_I2C_Read... [18:41:24]*** Cut start [18:41:24]*** Partial cut [18:41:24]*** CUTSNS_PIN = 1 [18:41:25]*** CUTSNS_PIN = 0 [18:41:25]*** Brake cut motor [18:41:25]Read from MH i2c: 01 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: 01 07 00 [18:41:25]MH_I2C_Read... [18:41:25]*** Stop cut motor [18:41:25]*** Cut end [18:41:25]Read from MH i2c: 01 07 00 64 0F 00 00 00 00 00 FF 0F 88 [18:41:25]process_action print_text done [18:41:25]requested_data is exist [18:41:25]produce_requested_data [18:41:25]requested_item fm.sn is exist - process it [18:41:25]wFMCommunicate request_size=4 [18:41:25]MH_SAM_APDU [18:41:25]CAPDU: 80 11 00 00 [18:41:25]Write to MH i2c: E2 08 00 65 0F 80 11 00 00 00 00 00 00 EE [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:25]Read from MH i2c: E2 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 17 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 17 00 65 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3E [18:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:41:25]wFMCommunicate OK [18:41:25]requested_item fd.num is exist - process it [18:41:25]SAM_PROTO_GetFieldsCounters [18:41:25]wFMCommunicate request_size=4 [18:41:25]MH_SAM_APDU [18:41:25]CAPDU: 80 13 00 00 [18:41:25]Write to MH i2c: E2 08 00 66 0F 80 13 00 00 00 00 00 00 F1 [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:25]Read from MH i2c: E2 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 62 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 62 00 66 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 55 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [18:41: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 55 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:25]wFMCommunicate OK [18:41:25]SAM_PROTO_GetFieldsCounters done [18:41:25]requested_item shift.num is exist - process it [18:41:25]requested_item shift.opened is exist - process it [18:41:25]req_shift_opened [18:41:25]FM_GetShiftState [18:41:25]SAM_PROTO_GetShiftState [18:41:25]wFMCommunicate request_size=4 [18:41:25]MH_SAM_APDU [18:41:25]CAPDU: 80 13 01 00 [18:41:25]Write to MH i2c: E2 08 00 67 0F 80 13 01 00 00 00 00 00 F3 [18:41:25]Write i2c OK [18:41:25]MH_I2C_Read... [18:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:25]Read from MH i2c: E2 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 0E 00 [18:41:25]MH_I2C_Read... [18:41:25]Read from MH i2c: E2 0E 00 67 0F 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 E9 [18:41:25]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [18:41:25]wFMCommunicate OK [18:41:25]SAM_PROTO_GetShiftState done [18:41:25]FM_GetShiftState done [18:41:25]req_shift_opened done [18:41:25]requested_item shift.open_date is exist - process it [18:41:25]req_shift_open_date [18:41:25]req_shift_open_date done [18:41:25]produce_requested_data done [18:41:25]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76885,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [18:41:25]process_action_free print_text [18:41:25]json_value_free [18:41:25]json_value_free done [18:41:25]process_json_proto returns [18:41:25]Send response to host [18:41:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76885,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [18:41:25]free response buf [18:41:25]execute_script done [18:41:25]execute_script returns [18:41:25]free content buf [18:41:25]Sock 9.Close socket [18:41:25]Sock 9.Thread stoped [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:47]accept exits with 8 [18:43:47]New connection [18:43:47]New thread 3067219300 created [18:43:47]Thread 3067362660 joined [18:43:47]Waiting for new connection... [18:43:47] Sock 8.Parse request [18:43:47]Sock 8.Check first char [18:43:47]Sock 8.First char is OK [18:43:47]request: POST /json_proto HTTP/1.0 [18:43:47]Method: POST [18:43:47]URL: /json_proto [18:43:47]Method is POST - this is cgi request [18:43:47]url: /json_proto [18:43:47]query_string will be loaded in cgi processing [18:43:47]execute_cgi json_proto POST (null) [18:43:47]execute_cgi path=json_proto method=POST [18:43:47]POST find Content-Length [18:43:47]Host: 172.17.39.195:8080 [18:43:47]Content-Length: 678 [18:43:47]Content-Type: application/json [18:43:47] [18:43:47]POST finish read [18:43:47]Found Content-Length = 678 [18:43:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220944", "tax_sys" : 0, "items" : [ { "code": "4700002084638", "name": "\u0421\u0430\u043C\u043E\u0433\u043E\u043D \u0414\u0435\u0440\u0435\u0432\u0435\u043D\u0441\u043A\u0438\u0439 0,5 \u043B", "price" : 490.00, "quantity" : 1.000, "sum" : 490.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 490.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:47]execute_script... [18:43:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220944", "tax_sys" : 0, "items" : [ { "code": "4700002084638", "name": "\u0421\u0430\u043C\u043E\u0433\u043E\u043D \u0414\u0435\u0440\u0435\u0432\u0435\u043D\u0441\u043A\u0438\u0439 0,5 \u043B", "price" : 490.00, "quantity" : 1.000, "sum" : 490.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 490.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:47]POST & json_proto [18:43:47]process_json_proto [18:43:47]json parsed OK: [18:43:47]protocol is kg_v1.0 [18:43:47]action value=close_receipt [18:43:47]process_action close_receipt [18:43:47]cmd_close_receipt [18:43:47]MH_GetDate [18:43:47]Write to MH i2c: F0 00 00 68 0F 66 [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: F0 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: F0 09 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: F0 09 00 68 0F 00 65 1B 77 66 99 81 91 64 DB [18:43:47]GetLastDocTimeStamp 1719080210 [18:43:47]current date 1719081829 [18:43:47]FM_GetShiftState [18:43:47]SAM_PROTO_GetShiftState [18:43:47]wFMCommunicate request_size=4 [18:43:47]MH_SAM_APDU [18:43:47]CAPDU: 80 13 01 00 [18:43:47]Write to MH i2c: E2 08 00 69 0F 80 13 01 00 00 00 00 00 F5 [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:47]Read from MH i2c: E2 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: E2 0E 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: E2 0E 00 69 0F 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 EB [18:43:47]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [18:43:47]wFMCommunicate OK [18:43:47]SAM_PROTO_GetShiftState done [18:43:47]FM_GetShiftState done [18:43:47]opened in 1719016435 [18:43:47]opened+sec_in_day 1719102835 [18:43:47]quantity*price = 49000 [18:43:47]sum+1 = 49001 [18:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 490.00 НСП 1% : 4.34 НДС 12% : 52.03 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 82 22.06.2024 18:43 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76886 ФПД: 156018476558583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184349&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76886&fm=156018476558583&tin=02508201610067®Number=0000000000095696&sum=49000 0 [18:43:48]StoreToDocumentArchive [18:43:48]shift 395 fd 76886 [18:43:48]save to /storage/0395/doc_00076886 [18:43:48]save last doc name /storage/0395/doc_00076886 to /storage/kkm_last_doc_name [18:43:48]save OK [18:43:48]Clear old archive folders... [18:43:48]ProcessDocumentItem done err = 0, tmpTLVsize=286 [18:43:48]tlvbuf is 0090D7D0 [18:43:48]SAM_PROTO_ClearQueue [18:43:48]wFMCommunicate request_size=4 [18:43:48]MH_SAM_APDU [18:43:48]CAPDU: 80 09 00 00 [18:43:48]Write to MH i2c: E2 08 00 76 0F 80 09 00 00 00 00 00 00 F7 [18:43:48]Write i2c OK [18:43:48]MH_I2C_Read... [18:43:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:48]Read from MH i2c: E2 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 76 0F 00 90 00 F9 [18:43:48]RAPDU: 90 00 [18:43:48]wFMCommunicate OK [18:43:48]SAM_PROTO_ClearQueue done [18:43:48]KKMCreateOFDPacket [18:43:48]OFDProtocolAddRootSTLVToBuf [18:43:48]FM_MakeSignedData [18:43:48]FM_MakeSignedData [18:43:48]SAM_PROTO_SignData [18:43:48]wFMCommunicate request_size=4 [18:43:48]MH_SAM_APDU [18:43:48]CAPDU: 80 0D 01 02 [18:43:48]Write to MH i2c: E2 08 00 77 0F 80 0D 01 02 00 00 00 00 FF [18:43:48]Write i2c OK [18:43:48]MH_I2C_Read... [18:43:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:48]Read from MH i2c: E2 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 77 0F 00 90 00 FA [18:43:48]RAPDU: 90 00 [18:43:48]wFMCommunicate OK [18:43:48]wFMCommunicate request_size=255 [18:43:48]MH_SAM_APDU [18:43:48]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 34 36 33 38 06 04 2C 00 D0 A1 D0 B0 D0 BC D0 BE D0 B3 D0 BE D0 BD 20 D0 94 D0 B5 D1 80 D0 B5 D0 B2 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 BF 00 00 00 00 13 04 06 00 68 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 65 1B 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 [18:43:48]Write to MH i2c: E2 02 01 78 0F 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 34 36 33 38 06 04 2C 00 D0 A1 D0 B0 D0 BC D0 BE D0 B3 D0 BE D0 BD 20 D0 94 D0 B5 D1 80 D0 B5 D0 B2 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 BF 00 00 00 00 13 04 06 00 68 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 65 1B 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 00 00 DF [18:43:48]Write i2c OK [18:43:48]MH_I2C_Read... [18:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:48]Read from MH i2c: E2 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 78 0F 00 90 00 FB [18:43:48]RAPDU: 90 00 [18:43:48]wFMCommunicate OK [18:43:48]wFMCommunicate request_size=45 [18:43:48]MH_SAM_APDU [18:43:48]CAPDU: 80 0D 02 02 28 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 56 2C 01 00 35 04 06 00 8D E5 E1 DF A8 F7 [18:43:48]Write to MH i2c: E2 30 00 79 0F 80 0D 02 02 28 00 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 56 2C 01 00 35 04 06 00 8D E5 E1 DF A8 F7 00 00 AE [18:43:48]Write i2c OK [18:43:48]MH_I2C_Read... [18:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:48]Read from MH i2c: E2 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 03 00 79 0F 00 90 00 FC [18:43:48]RAPDU: 90 00 [18:43:48]wFMCommunicate OK [18:43:48]wFMCommunicate request_size=4 [18:43:48]MH_SAM_APDU [18:43:48]CAPDU: 80 0D 03 02 [18:43:48]Write to MH i2c: E2 08 00 7A 0F 80 0D 03 02 00 00 00 00 04 [18:43:48]Write i2c OK [18:43:48]MH_I2C_Read... [18:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:48]Read from MH i2c: E2 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 0B 00 [18:43:48]MH_I2C_Read... [18:43:48]Read from MH i2c: E2 0B 00 7A 0F 00 C9 6D 3A 5A D4 6E 73 47 90 00 CB [18:43:48]RAPDU: C9 6D 3A 5A D4 6E 73 47 90 00 [18:43:48]wFMCommunicate OK [18:43:48]SAM_PROTO_SignData done [18:43:48]FM_MakeSignedData done [18:43:48]CreateOFDProtocolMessage [18:43:48]wFMCommunicate request_size=4 [18:43:48]MH_SAM_APDU [18:43:48]CAPDU: 80 11 00 00 [18:43:48]Write to MH i2c: E2 08 00 7B 0F 80 11 00 00 00 00 00 00 04 [18:43:48]Write i2c OK [18:43:48]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 17 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 17 00 7B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 54 [18:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:43:49]wFMCommunicate OK [18:43:49]CreateOFDProtocolMessage done [18:43:49]OFDSenderStorePacket 76886 [18:43:49]StoreOFDPacket docnum=76886 [18:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 32 01 00 00 4A C5 2A 01 03 7E 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 34 36 33 38 06 04 2C 00 D0 A1 D0 B0 D0 BC D0 BE D0 B3 D0 BE D0 BD 20 D0 94 D0 B5 D1 80 D0 B5 D0 B2 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 BF 00 00 00 00 13 04 06 00 68 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 65 1B 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 56 2C 01 00 35 04 06 00 8D E5 E1 DF A8 F7 C9 6D 3A 5A D4 6E 73 47 [18:43:49]CheckFolder [18:43:49]dirname=/storage/ofd_packets [18:43:49]CheckFolder done [18:43:49]ProducePacketName [18:43:49]name=ofd_packets/00076886 [18:43:49]NVStorageSaveData ofd_packets/00076886 [18:43:49]File name is /storage/ofd_packets/00076886 [18:43:49]Write 336 bytes [18:43:49]NVStorageSaveData done [18:43:49]OFDSenderStorePacket done [18:43:49]KKMCreateOFDPacket done [18:43:49]NVStorageSaveData kkm_last_timestamp [18:43:49]File name is /storage/kkm_last_timestamp [18:43:49]Write 4 bytes [18:43:49]NVStorageSaveData done [18:43:49]ExternCall_PrintAddStr [18:43:49]wPrintStart [18:43:49]Write to MH i2c: 01 00 00 7C 0F 8B [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 7C 0F 00 00 00 00 00 FF 0F A0 [18:43:49]RasterBufferAndPrint [18:43:49]line Счет N : (3)220944 [18:43:49]line ИНН: 02508201610067 [18:43:49]line Контрольно-Кассовый Чек [18:43:49]line ПРОДАЖА [18:43:49]line Товар: 4700002084638 [18:43:49]line Самогон Деревенский 0,5 л [18:43:49]line 1.000 * 490.00 [18:43:49]line = 490.00 [18:43:49]line НДС 12% НСП 1% [18:43:49]line > о реализуемом товаре [18:43:49]line ИТОГО: 490.00 [18:43:49]line НСП 1% : 4.34 [18:43:49]line НДС 12% : 52.03 [18:43:49]line Наличными: 490.00 [18:43:49]line Безнал.: 0.00 [18:43:49]line Место: АЗС № 144 "Партнер Нефть" [18:43:49]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [18:43:49]line СНО: Общий режим [18:43:49]line Чек 82 22.06.2024 18:43 [18:43:49]line Смена: 395 ФФД: 1.0 [18:43:49]line ЗНМ: 0300000170 [18:43:49]line РНМ: 0000000000095696 [18:43:49]line Версия ККМ: 001 [18:43:49]line ФМ: 0000000000875009 [18:43:49]line ФД: 76886 [18:43:49]line ФПД: 156018476558583 [18:43:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T184349&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76886&fm=156018476558583&tin=02508201610067®Number=0000000000095696&sum=49000 [18:43:49]line 0 [18:43:49]OFD Sender: Processing packet 76886 [packets to send 351, broken 350] [18:43:49]ProducePacketName [18:43:49]name=ofd_packets/00076886 [18:43:49]OFD Sender: To server: pG, [18:43:49]CommunicateWithHost lk.salyk.kg:30040 [18:43:49]ConnectInit lk.salyk.kg [18:43:49]written 0, free lines is 4095 [18:43:49]Connected sock=10 [18:43:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 32 01 00 00 4A C5 2A 01 03 7E 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 34 36 33 38 06 04 2C 00 D0 A1 D0 B0 D0 BC D0 BE D0 B3 D0 BE D0 BD 20 D0 94 D0 B5 D1 80 D0 B5 D0 B2 D0 B5 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 BF 00 00 00 00 13 04 06 00 68 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 65 1B 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 56 2C 01 00 35 04 06 00 8D E5 E1 DF A8 F7 C9 6D 3A 5A D4 6E 73 47 [18:43:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 AB 7A 47 00 31 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 35 30 30 39 10 04 04 00 56 2C 01 00 F4 03 04 00 FE C1 76 66 B6 04 01 00 00 76 52 15 6E 5A 94 29 B7 [18:43:49]CommunicateWithHost err = 0 [18:43:49]CheckOFDResponse [18:43:49]1017 (14) - 77093643461234 [18:43:49]1041 (16) - 0000000000875009 [18:43:49]1040 (4) - 76886 [18:43:49]1012 (4) - 22.06.2024 12:22 [18:43:49]1206 (1) - 0 [18:43:49]OFD Sender: Remove packet 76886 [18:43:49]ProducePacketName [18:43:49]name=ofd_packets/00076886 [18:43:49]NVStorageDeleteData [18:43:49]Write to MH i2c: 01 00 00 A4 0F B3 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: 01 07 00 A4 0F 00 00 00 00 00 03 0D CA [18:43:49]RasterBufferAndPrint [18:43:49]line [18:43:49]line [18:43:49]line [18:43:49]line [18:43:49]line [18:43:49]written 0, free lines is 3340 [18:43:49]MH_Cut [18:43:49]Write to MH i2c: D1 01 00 AB 0F 01 8C [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: D1 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: D1 01 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: D1 01 00 AB 0F 00 8B [18:43:49]Write to MH i2c: 01 00 00 AC 0F BB [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:50]OFD Sender: No OFD packet to send [18:43:50]*** Cut start [18:43:50]*** Partial cut [18:43:50]*** CUTSNS_PIN = 1 [18:43:50]*** CUTSNS_PIN = 0 [18:43:50]*** Brake cut motor [18:43:51]Read from MH i2c: 01 [18:43:51]MH_I2C_Read... [18:43:51]*** Stop cut motor [18:43:51]*** Cut end [18:43:51]Read from MH i2c: 01 07 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [18:43:51]process_action close_receipt done [18:43:51]requested_data is exist [18:43:51]produce_requested_data [18:43:51]requested_item fm.sn is exist - process it [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 11 00 00 [18:43:51]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 17 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 86 [18:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [18:43:51]wFMCommunicate OK [18:43:51]requested_item fd.num is exist - process it [18:43:51]SAM_PROTO_GetFieldsCounters [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 13 00 00 [18:43:51]Write to MH i2c: E2 08 00 AE 0F 80 13 00 00 00 00 00 00 39 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 62 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 62 00 AE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 56 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [18:43: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 56 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:51]wFMCommunicate OK [18:43:51]SAM_PROTO_GetFieldsCounters done [18:43:51]requested_item shift.num is exist - process it [18:43:51]requested_item shift.opened is exist - process it [18:43:51]req_shift_opened [18:43:51]FM_GetShiftState [18:43:51]SAM_PROTO_GetShiftState [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 13 01 00 [18:43:51]Write to MH i2c: E2 08 00 AF 0F 80 13 01 00 00 00 00 00 3B [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:51]Read from MH i2c: E2 0E 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 0E 00 AF 0F 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 31 [18:43:51]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [18:43:51]wFMCommunicate OK [18:43:51]SAM_PROTO_GetShiftState done [18:43:51]FM_GetShiftState done [18:43:51]req_shift_opened done [18:43:51]requested_item shift.open_date is exist - process it [18:43:51]req_shift_open_date [18:43:51]req_shift_open_date done [18:43:51]produce_requested_data done [18:43:51]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76886,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [18:43:51]process_action_free close_receipt [18:43:51]json_value_free [18:43:51]json_value_free done [18:43:51]process_json_proto returns [18:43:51]Send response to host [18:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76886,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [18:43:51]free response buf [18:43:51]execute_script done [18:43:51]execute_script returns [18:43:51]free content buf [18:43:51]Sock 8.Close socket [18:43:51]Sock 8.Thread stoped [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:45]accept exits with 9 [19:13:45]New connection [19:13:45]New thread 3067362660 created [19:13:45]Thread 3067219300 joined [19:13:45]Waiting for new connection... [19:13:45] Sock 9.Parse request [19:13:45]Sock 9.Check first char [19:13:45]Sock 9.First char is OK [19:13:45]request: POST /json_proto HTTP/1.0 [19:13:45]Method: POST [19:13:45]URL: /json_proto [19:13:45]Method is POST - this is cgi request [19:13:45]url: /json_proto [19:13:45]query_string will be loaded in cgi processing [19:13:45]execute_cgi json_proto POST (null) [19:13:45]execute_cgi path=json_proto method=POST [19:13:45]POST find Content-Length [19:13:45]Host: 172.17.39.195:8080 [19:13:45]Content-Length: 614 [19:13:45]Content-Type: application/json [19:13:45] [19:13:45]POST finish read [19:13:45]Found Content-Length = 614 [19:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220945", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:45]execute_script... [19: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 : (3)220945", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:45]POST & json_proto [19:13:45]process_json_proto [19:13:45]json parsed OK: [19:13:45]protocol is kg_v1.0 [19:13:45]action value=close_receipt [19:13:45]process_action close_receipt [19:13:45]cmd_close_receipt [19:13:45]MH_GetDate [19:13:45]Write to MH i2c: F0 00 00 B0 0F AE [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: F0 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: F0 09 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: F0 09 00 B0 0F 00 6C 22 77 66 99 81 91 64 31 [19:13:45]GetLastDocTimeStamp 1719081829 [19:13:45]current date 1719083628 [19:13:45]FM_GetShiftState [19:13:45]SAM_PROTO_GetShiftState [19:13:45]wFMCommunicate request_size=4 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 13 01 00 [19:13:45]Write to MH i2c: E2 08 00 B1 0F 80 13 01 00 00 00 00 00 3D [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:45]Read from MH i2c: E2 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 0E 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 0E 00 B1 0F 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 33 [19:13:45]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [19:13:45]wFMCommunicate OK [19:13:45]SAM_PROTO_GetShiftState done [19:13:45]FM_GetShiftState done [19:13:45]opened in 1719016435 [19:13:45]opened+sec_in_day 1719102835 [19:13:45]quantity*price = 21000 [19:13:45]sum+1 = 21001 [19:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 83 22.06.2024 19:13 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76887 ФПД: 5068099027320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T191348&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76887&fm=5068099027320&tin=02508201610067®Number=0000000000095696&sum=21000 0 [19:13:46]StoreToDocumentArchive [19:13:46]shift 395 fd 76887 [19:13:46]save to /storage/0395/doc_00076887 [19:13:46]save last doc name /storage/0395/doc_00076887 to /storage/kkm_last_doc_name [19:13:46]save OK [19:13:46]Clear old archive folders... [19:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=266 [19:13:46]tlvbuf is 008CB130 [19:13:46]SAM_PROTO_ClearQueue [19:13:46]wFMCommunicate request_size=4 [19:13:46]MH_SAM_APDU [19:13:46]CAPDU: 80 09 00 00 [19:13:46]Write to MH i2c: E2 08 00 BE 0F 80 09 00 00 00 00 00 00 3F [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:46]Read from MH i2c: E2 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [19:13:46]RAPDU: 90 00 [19:13:46]wFMCommunicate OK [19:13:46]SAM_PROTO_ClearQueue done [19:13:46]KKMCreateOFDPacket [19:13:46]OFDProtocolAddRootSTLVToBuf [19:13:46]FM_MakeSignedData [19:13:46]FM_MakeSignedData [19:13:46]SAM_PROTO_SignData [19:13:46]wFMCommunicate request_size=4 [19:13:46]MH_SAM_APDU [19:13:46]CAPDU: 80 0D 01 02 [19:13:46]Write to MH i2c: E2 08 00 BF 0F 80 0D 01 02 00 00 00 00 47 [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:46]Read from MH i2c: E2 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 BF 0F 00 90 00 42 [19:13:46]RAPDU: 90 00 [19:13:46]wFMCommunicate OK [19:13:46]wFMCommunicate request_size=255 [19:13:46]MH_SAM_APDU [19:13:46]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6C 22 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [19:13:46]Write to MH i2c: E2 02 01 C0 0F 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6C 22 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 78 [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:47]Read from MH i2c: E2 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: E2 03 00 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [19:13:47]RAPDU: 90 00 [19:13:47]wFMCommunicate OK [19:13:47]wFMCommunicate request_size=25 [19:13:47]MH_SAM_APDU [19:13:47]CAPDU: 80 0D 02 02 14 30 39 10 04 04 00 57 2C 01 00 35 04 06 00 04 9C 02 3E 01 78 [19:13:47]Write to MH i2c: E2 1C 00 C1 0F 80 0D 02 02 14 00 30 39 10 04 04 00 57 2C 01 00 35 04 06 00 04 9C 02 3E 01 78 00 00 0F [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:47]Read from MH i2c: E2 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: E2 03 00 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [19:13:47]RAPDU: 90 00 [19:13:47]wFMCommunicate OK [19:13:47]wFMCommunicate request_size=4 [19:13:47]MH_SAM_APDU [19:13:47]CAPDU: 80 0D 03 02 [19:13:47]Write to MH i2c: E2 08 00 C2 0F 80 0D 03 02 00 00 00 00 4C [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:47]Read from MH i2c: E2 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: E2 0B 00 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: E2 0B 00 C2 0F 00 3D BC FA 5B FD 8B 6F 0C 90 00 9E [19:13:47]RAPDU: 3D BC FA 5B FD 8B 6F 0C 90 00 [19:13:47]wFMCommunicate OK [19:13:47]SAM_PROTO_SignData done [19:13:47]FM_MakeSignedData done [19:13:47]CreateOFDProtocolMessage [19:13:47]wFMCommunicate request_size=4 [19:13:47]MH_SAM_APDU [19:13:47]CAPDU: 80 11 00 00 [19:13:47]Write to MH i2c: E2 08 00 C3 0F 80 11 00 00 00 00 00 00 4C [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:47]Read from MH i2c: E2 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: E2 17 00 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: E2 17 00 C3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9C [19:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:13:47]wFMCommunicate OK [19:13:47]CreateOFDProtocolMessage done [19:13:47]OFDSenderStorePacket 76887 [19:13:47]StoreOFDPacket docnum=76887 [19:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 72 93 16 01 B6 6D 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6C 22 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 57 2C 01 00 35 04 06 00 04 9C 02 3E 01 78 3D BC FA 5B FD 8B 6F 0C [19:13:47]CheckFolder [19:13:47]dirname=/storage/ofd_packets [19:13:47]CheckFolder done [19:13:47]ProducePacketName [19:13:47]name=ofd_packets/00076887 [19:13:47]NVStorageSaveData ofd_packets/00076887 [19:13:47]File name is /storage/ofd_packets/00076887 [19:13:47]Write 316 bytes [19:13:47]NVStorageSaveData done [19:13:47]OFDSenderStorePacket done [19:13:47]KKMCreateOFDPacket done [19:13:47]NVStorageSaveData kkm_last_timestamp [19:13:47]File name is /storage/kkm_last_timestamp [19:13:47]Write 4 bytes [19:13:47]NVStorageSaveData done [19:13:47]ExternCall_PrintAddStr [19:13:47]wPrintStart [19:13:47]Write to MH i2c: 01 00 00 C4 0F D3 [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: 01 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: 01 07 00 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 FF 0F E8 [19:13:47]RasterBufferAndPrint [19:13:47]line Счет N : (3)220945 [19:13:47]line ИНН: 02508201610067 [19:13:47]line Контрольно-Кассовый Чек [19:13:47]line ПРОДАЖА [19:13:47]line Товар: 4870001570095 [19:13:47]line Напиток Pepsi 2л [19:13:47]line 1.000 * 210.00 [19:13:47]line = 210.00 [19:13:47]line НДС 12% НСП 1% [19:13:47]line > о реализуемом товаре [19:13:47]line ИТОГО: 210.00 [19:13:47]line НСП 1% : 1.86 [19:13:47]line НДС 12% : 22.30 [19:13:47]line Наличными: 210.00 [19:13:47]line Безнал.: 0.00 [19:13:47]line Место: АЗС № 144 "Партнер Нефть" [19:13:47]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:13:47]line СНО: Общий режим [19:13:47]line Чек 83 22.06.2024 19:13 [19:13:47]line Смена: 395 ФФД: 1.0 [19:13:47]line ЗНМ: 0300000170 [19:13:47]line РНМ: 0000000000095696 [19:13:47]line Версия ККМ: 001 [19:13:47]line ФМ: 0000000000875009 [19:13:47]line ФД: 76887 [19:13:47]line ФПД: 5068099027320 [19:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T191348&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76887&fm=5068099027320&tin=02508201610067®Number=0000000000095696&sum=21000 [19:13:47]line 0 [19:13:47]written 0, free lines is 4095 [19:13:47]OFD Sender: Processing packet 76887 [packets to send 351, broken 350] [19:13:47]ProducePacketName [19:13:47]name=ofd_packets/00076887 [19:13:47]OFD Sender: To server: pG, [19:13:47]CommunicateWithHost lk.salyk.kg:30040 [19:13:47]ConnectInit lk.salyk.kg [19:13:47]Connected sock=10 [19:13:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 1E 01 00 00 72 93 16 01 B6 6D 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6C 22 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 57 2C 01 00 35 04 06 00 04 9C 02 3E 01 78 3D BC FA 5B FD 8B 6F 0C [19:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 FE A1 47 00 29 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 35 30 30 39 10 04 04 00 57 2C 01 00 F4 03 04 00 05 C9 76 66 B6 04 01 00 00 1D 49 B3 7E 17 50 4C C2 [19:13:47]CommunicateWithHost err = 0 [19:13:47]CheckOFDResponse [19:13:47]1017 (14) - 77093643461234 [19:13:47]1041 (16) - 0000000000875009 [19:13:47]1040 (4) - 76887 [19:13:47]1012 (4) - 22.06.2024 12:52 [19:13:47]1206 (1) - 0 [19:13:47]OFD Sender: Remove packet 76887 [19:13:47]ProducePacketName [19:13:47]name=ofd_packets/00076887 [19:13:47]NVStorageDeleteData [19:13:47]Write to MH i2c: 01 00 00 EC 0F FB [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: 01 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: 01 07 00 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: 01 07 00 EC 0F 00 00 00 00 00 10 0D 1F [19:13:47]RasterBufferAndPrint [19:13:47]line [19:13:47]line [19:13:47]line [19:13:47]line [19:13:47]line [19:13:47]written 0, free lines is 3351 [19:13:47]MH_Cut [19:13:47]Write to MH i2c: D1 01 00 F3 0F 01 D4 [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: D1 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: D1 01 00 [19:13:47]MH_I2C_Read... [19:13:47]Read from MH i2c: D1 01 00 F3 0F 00 D3 [19:13:47]Write to MH i2c: 01 00 00 F4 0F 03 [19:13:47]Write i2c OK [19:13:47]MH_I2C_Read... [19:13:48]OFD Sender: No OFD packet to send [19:13:48]*** Cut start [19:13:48]*** Partial cut [19:13:48]*** CUTSNS_PIN = 1 [19:13:48]*** CUTSNS_PIN = 0 [19:13:48]*** Brake cut motor [19:13:49]Read from MH i2c: 01 [19:13:49]MH_I2C_Read... [19:13:49]*** Stop cut motor [19:13:49]*** Cut end [19:13:49]Read from MH i2c: 01 07 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: 01 07 00 F4 0F 00 00 00 00 00 FF 0F 18 [19:13:49]process_action close_receipt done [19:13:49]requested_data is exist [19:13:49]produce_requested_data [19:13:49]requested_item fm.sn is exist - process it [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 11 00 00 [19:13:49]Write to MH i2c: E2 08 00 F5 0F 80 11 00 00 00 00 00 00 7E [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 17 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 17 00 F5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CE [19:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:13:49]wFMCommunicate OK [19:13:49]requested_item fd.num is exist - process it [19:13:49]SAM_PROTO_GetFieldsCounters [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 13 00 00 [19:13:49]Write to MH i2c: E2 08 00 F6 0F 80 13 00 00 00 00 00 00 81 [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 62 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 62 00 F6 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 57 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [19: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 57 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:49]wFMCommunicate OK [19:13:49]SAM_PROTO_GetFieldsCounters done [19:13:49]requested_item shift.num is exist - process it [19:13:49]requested_item shift.opened is exist - process it [19:13:49]req_shift_opened [19:13:49]FM_GetShiftState [19:13:49]SAM_PROTO_GetShiftState [19:13:49]wFMCommunicate request_size=4 [19:13:49]MH_SAM_APDU [19:13:49]CAPDU: 80 13 01 00 [19:13:49]Write to MH i2c: E2 08 00 F7 0F 80 13 01 00 00 00 00 00 83 [19:13:49]Write i2c OK [19:13:49]MH_I2C_Read... [19:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:49]Read from MH i2c: E2 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 0E 00 [19:13:49]MH_I2C_Read... [19:13:49]Read from MH i2c: E2 0E 00 F7 0F 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 79 [19:13:49]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [19:13:49]wFMCommunicate OK [19:13:49]SAM_PROTO_GetShiftState done [19:13:49]FM_GetShiftState done [19:13:49]req_shift_opened done [19:13:49]requested_item shift.open_date is exist - process it [19:13:49]req_shift_open_date [19:13:49]req_shift_open_date done [19:13:49]produce_requested_data done [19:13:49]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76887,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [19:13:49]process_action_free close_receipt [19:13:49]json_value_free [19:13:49]json_value_free done [19:13:49]process_json_proto returns [19:13:49]Send response to host [19:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76887,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [19:13:49]free response buf [19:13:49]execute_script done [19:13:49]execute_script returns [19:13:49]free content buf [19:13:49]Sock 9.Close socket [19:13:49]Sock 9.Thread stoped [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:08]accept exits with 8 [19:20:08]New connection [19:20:08]New thread 3067219300 created [19:20:08]Thread 3067362660 joined [19:20:08]Waiting for new connection... [19:20:08] Sock 8.Parse request [19:20:08]Sock 8.Check first char [19:20:08]Sock 8.First char is OK [19:20:08]request: POST /json_proto HTTP/1.0 [19:20:08]Method: POST [19:20:08]URL: /json_proto [19:20:08]Method is POST - this is cgi request [19:20:08]url: /json_proto [19:20:08]query_string will be loaded in cgi processing [19:20:08]execute_cgi json_proto POST (null) [19:20:08]execute_cgi path=json_proto method=POST [19:20:08]POST find Content-Length [19:20:08]Host: 172.17.39.195:8080 [19:20:08]Content-Length: 622 [19:20:08]Content-Type: application/json [19:20:08] [19:20:08]POST finish read [19:20:08]Found Content-Length = 622 [19:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220946", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:08]execute_script... [19:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220946", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:08]POST & json_proto [19:20:08]process_json_proto [19:20:08]json parsed OK: [19:20:08]protocol is kg_v1.0 [19:20:08]action value=close_receipt [19:20:08]process_action close_receipt [19:20:08]cmd_close_receipt [19:20:08]MH_GetDate [19:20:08]Write to MH i2c: F0 00 00 F8 0F F6 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: F0 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: F0 09 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: F0 09 00 F8 0F 00 EB 23 77 66 99 81 91 64 F9 [19:20:08]GetLastDocTimeStamp 1719083628 [19:20:08]current date 1719084011 [19:20:08]FM_GetShiftState [19:20:08]SAM_PROTO_GetShiftState [19:20:08]wFMCommunicate request_size=4 [19:20:08]MH_SAM_APDU [19:20:08]CAPDU: 80 13 01 00 [19:20:08]Write to MH i2c: E2 08 00 F9 0F 80 13 01 00 00 00 00 00 85 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:08]Read from MH i2c: E2 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 0E 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 0E 00 F9 0F 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 7B [19:20:08]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [19:20:08]wFMCommunicate OK [19:20:08]SAM_PROTO_GetShiftState done [19:20:08]FM_GetShiftState done [19:20:08]opened in 1719016435 [19:20:08]opened+sec_in_day 1719102835 [19:20:08]quantity*price = 15000 [19:20:08]sum+1 = 15001 [19:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 84 22.06.2024 19:20 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76888 ФПД: 63335605946019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192011&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76888&fm=63335605946019&tin=02508201610067®Number=0000000000095696&sum=15000 0 [19:20:09]StoreToDocumentArchive [19:20:09]shift 395 fd 76888 [19:20:09]save to /storage/0395/doc_00076888 [19:20:09]save last doc name /storage/0395/doc_00076888 to /storage/kkm_last_doc_name [19:20:09]save OK [19:20:09]Clear old archive folders... [19:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:20:09]tlvbuf is 008EE8E0 [19:20:09]SAM_PROTO_ClearQueue [19:20:09]wFMCommunicate request_size=4 [19:20:09]MH_SAM_APDU [19:20:09]CAPDU: 80 09 00 00 [19:20:09]Write to MH i2c: E2 08 00 06 10 80 09 00 00 00 00 00 00 88 [19:20:09]Write i2c OK [19:20:09]MH_I2C_Read... [19:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:09]Read from MH i2c: E2 [19:20:09]MH_I2C_Read... [19:20:09]Read from MH i2c: E2 03 00 [19:20:09]MH_I2C_Read... [19:20:09]Read from MH i2c: E2 03 00 06 10 00 90 00 8A [19:20:09]RAPDU: 90 00 [19:20:09]wFMCommunicate OK [19:20:09]SAM_PROTO_ClearQueue done [19:20:09]KKMCreateOFDPacket [19:20:09]OFDProtocolAddRootSTLVToBuf [19:20:09]FM_MakeSignedData [19:20:09]FM_MakeSignedData [19:20:09]SAM_PROTO_SignData [19:20:09]wFMCommunicate request_size=4 [19:20:09]MH_SAM_APDU [19:20:09]CAPDU: 80 0D 01 02 [19:20:09]Write to MH i2c: E2 08 00 07 10 80 0D 01 02 00 00 00 00 90 [19:20:09]Write i2c OK [19:20:09]MH_I2C_Read... [19:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:10]Read from MH i2c: E2 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 03 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 03 00 07 10 00 90 00 8B [19:20:10]RAPDU: 90 00 [19:20:10]wFMCommunicate OK [19:20:10]wFMCommunicate request_size=255 [19:20:10]MH_SAM_APDU [19:20:10]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 EB 23 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 [19:20:10]Write to MH i2c: E2 02 01 08 10 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 EB 23 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 00 00 7D [19:20:10]Write i2c OK [19:20:10]MH_I2C_Read... [19:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:10]Read from MH i2c: E2 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 03 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 03 00 08 10 00 90 00 8C [19:20:10]RAPDU: 90 00 [19:20:10]wFMCommunicate OK [19:20:10]wFMCommunicate request_size=33 [19:20:10]MH_SAM_APDU [19:20:10]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 30 39 10 04 04 00 58 2C 01 00 35 04 06 00 39 9A 78 4B 46 A3 [19:20:10]Write to MH i2c: E2 24 00 09 10 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 30 39 10 04 04 00 58 2C 01 00 35 04 06 00 39 9A 78 4B 46 A3 00 00 23 [19:20:10]Write i2c OK [19:20:10]MH_I2C_Read... [19:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:10]Read from MH i2c: E2 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 03 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [19:20:10]RAPDU: 90 00 [19:20:10]wFMCommunicate OK [19:20:10]wFMCommunicate request_size=4 [19:20:10]MH_SAM_APDU [19:20:10]CAPDU: 80 0D 03 02 [19:20:10]Write to MH i2c: E2 08 00 0A 10 80 0D 03 02 00 00 00 00 95 [19:20:10]Write i2c OK [19:20:10]MH_I2C_Read... [19:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:10]Read from MH i2c: E2 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 0B 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 0B 00 0A 10 00 85 38 04 61 A0 CF 20 7F 90 00 C6 [19:20:10]RAPDU: 85 38 04 61 A0 CF 20 7F 90 00 [19:20:10]wFMCommunicate OK [19:20:10]SAM_PROTO_SignData done [19:20:10]FM_MakeSignedData done [19:20:10]CreateOFDProtocolMessage [19:20:10]wFMCommunicate request_size=4 [19:20:10]MH_SAM_APDU [19:20:10]CAPDU: 80 11 00 00 [19:20:10]Write to MH i2c: E2 08 00 0B 10 80 11 00 00 00 00 00 00 95 [19:20:10]Write i2c OK [19:20:10]MH_I2C_Read... [19:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:10]Read from MH i2c: E2 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 17 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 17 00 0B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E5 [19:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:20:10]wFMCommunicate OK [19:20:10]CreateOFDProtocolMessage done [19:20:10]OFDSenderStorePacket 76888 [19:20:10]StoreOFDPacket docnum=76888 [19:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 26 01 00 00 C9 DA 1E 01 E4 FA 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 EB 23 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 58 2C 01 00 35 04 06 00 39 9A 78 4B 46 A3 85 38 04 61 A0 CF 20 7F [19:20:10]CheckFolder [19:20:10]dirname=/storage/ofd_packets [19:20:10]CheckFolder done [19:20:10]ProducePacketName [19:20:10]name=ofd_packets/00076888 [19:20:10]NVStorageSaveData ofd_packets/00076888 [19:20:10]File name is /storage/ofd_packets/00076888 [19:20:10]Write 324 bytes [19:20:10]NVStorageSaveData done [19:20:10]OFDSenderStorePacket done [19:20:10]KKMCreateOFDPacket done [19:20:10]NVStorageSaveData kkm_last_timestamp [19:20:10]File name is /storage/kkm_last_timestamp [19:20:10]Write 4 bytes [19:20:10]NVStorageSaveData done [19:20:10]ExternCall_PrintAddStr [19:20:10]wPrintStart [19:20:10]Write to MH i2c: 01 00 00 0C 10 1C [19:20:10]Write i2c OK [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: 01 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: 01 07 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: 01 07 00 0C 10 00 00 00 00 00 FF 0F 31 [19:20:10]RasterBufferAndPrint [19:20:10]line Счет N : (3)220946 [19:20:10]line ИНН: 02508201610067 [19:20:10]line Контрольно-Кассовый Чек [19:20:10]line ПРОДАЖА [19:20:10]line Товар: 46230614 [19:20:10]line Сигареты Richmond Red Edition [19:20:10]line 1.000 * 150.00 [19:20:10]line = 150.00 [19:20:10]line НДС 12% НСП 1% [19:20:10]line > о реализуемом товаре [19:20:10]line ИТОГО: 150.00 [19:20:10]line НСП 1% : 1.33 [19:20:10]line НДС 12% : 15.93 [19:20:10]line Наличными: 150.00 [19:20:10]line Безнал.: 0.00 [19:20:10]line Место: АЗС № 144 "Партнер Нефть" [19:20:10]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [19:20:10]line СНО: Общий режим [19:20:10]line Чек 84 22.06.2024 19:20 [19:20:10]line Смена: 395 ФФД: 1.0 [19:20:10]line ЗНМ: 0300000170 [19:20:10]line РНМ: 0000000000095696 [19:20:10]line Версия ККМ: 001 [19:20:10]line ФМ: 0000000000875009 [19:20:10]line ФД: 76888 [19:20:10]line ФПД: 63335605946019 [19:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T192011&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76888&fm=63335605946019&tin=02508201610067®Number=0000000000095696&sum=15000 [19:20:10]line 0 [19:20:10]OFD Sender: Processing packet 76888 [packets to send 351, broken 350] [19:20:10]ProducePacketName [19:20:10]name=ofd_packets/00076888 [19:20:10]OFD Sender: To server: pG, [19:20:10]CommunicateWithHost lk.salyk.kg:30040 [19:20:10]ConnectInit lk.salyk.kg [19:20:10]written 0, free lines is 4095 [19:20:10]Connected sock=10 [19:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 26 01 00 00 C9 DA 1E 01 E4 FA 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 EB 23 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 58 2C 01 00 35 04 06 00 39 9A 78 4B 46 A3 85 38 04 61 A0 CF 20 7F [19:20:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 34 7F 47 00 C6 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 58 2C 01 00 F4 03 04 00 84 CA 76 66 B6 04 01 00 00 F1 0A 7C 10 53 1F 95 66 [19:20:11]CommunicateWithHost err = 0 [19:20:11]CheckOFDResponse [19:20:11]1017 (14) - 77093643461234 [19:20:11]1041 (16) - 0000000000875009 [19:20:11]1040 (4) - 76888 [19:20:11]1012 (4) - 22.06.2024 12:58 [19:20:11]1206 (1) - 0 [19:20:11]OFD Sender: Remove packet 76888 [19:20:11]ProducePacketName [19:20:11]name=ofd_packets/00076888 [19:20:11]NVStorageDeleteData [19:20:11]Write to MH i2c: 01 00 00 35 10 45 [19:20:11]Write i2c OK [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: 01 [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: 01 07 00 [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: 01 07 00 35 10 00 00 00 00 00 CC 0C 24 [19:20:11]RasterBufferAndPrint [19:20:11]line [19:20:11]line [19:20:11]line [19:20:11]line [19:20:11]line [19:20:11]written 0, free lines is 3285 [19:20:11]MH_Cut [19:20:11]Write to MH i2c: D1 01 00 3C 10 01 1E [19:20:11]Write i2c OK [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: D1 [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: D1 01 00 [19:20:11]MH_I2C_Read... [19:20:11]Read from MH i2c: D1 01 00 3C 10 00 1D [19:20:11]Write to MH i2c: 01 00 00 3D 10 4D [19:20:11]Write i2c OK [19:20:11]MH_I2C_Read... [19:20:11]OFD Sender: No OFD packet to send [19:20:12]*** Cut start [19:20:12]*** Partial cut [19:20:12]*** CUTSNS_PIN = 1 [19:20:12]*** CUTSNS_PIN = 0 [19:20:12]*** Brake cut motor [19:20:12]Read from MH i2c: 01 [19:20:12]MH_I2C_Read... [19:20:12]*** Stop cut motor [19:20:12]*** Cut end [19:20:12]Read from MH i2c: 01 07 00 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: 01 07 00 3D 10 00 00 00 00 00 FF 0F 62 [19:20:12]process_action close_receipt done [19:20:12]requested_data is exist [19:20:12]produce_requested_data [19:20:12]requested_item fm.sn is exist - process it [19:20:12]wFMCommunicate request_size=4 [19:20:12]MH_SAM_APDU [19:20:12]CAPDU: 80 11 00 00 [19:20:12]Write to MH i2c: E2 08 00 3E 10 80 11 00 00 00 00 00 00 C8 [19:20:12]Write i2c OK [19:20:12]MH_I2C_Read... [19:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:12]Read from MH i2c: E2 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: E2 17 00 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: E2 17 00 3E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 18 [19:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:20:12]wFMCommunicate OK [19:20:12]requested_item fd.num is exist - process it [19:20:12]SAM_PROTO_GetFieldsCounters [19:20:12]wFMCommunicate request_size=4 [19:20:12]MH_SAM_APDU [19:20:12]CAPDU: 80 13 00 00 [19:20:12]Write to MH i2c: E2 08 00 3F 10 80 13 00 00 00 00 00 00 CB [19:20:12]Write i2c OK [19:20:12]MH_I2C_Read... [19:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:12]Read from MH i2c: E2 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: E2 62 00 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: E2 62 00 3F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [19:20: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:12]wFMCommunicate OK [19:20:12]SAM_PROTO_GetFieldsCounters done [19:20:12]requested_item shift.num is exist - process it [19:20:12]requested_item shift.opened is exist - process it [19:20:12]req_shift_opened [19:20:12]FM_GetShiftState [19:20:12]SAM_PROTO_GetShiftState [19:20:12]wFMCommunicate request_size=4 [19:20:12]MH_SAM_APDU [19:20:12]CAPDU: 80 13 01 00 [19:20:12]Write to MH i2c: E2 08 00 40 10 80 13 01 00 00 00 00 00 CD [19:20:12]Write i2c OK [19:20:12]MH_I2C_Read... [19:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:12]Read from MH i2c: E2 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: E2 0E 00 [19:20:12]MH_I2C_Read... [19:20:12]Read from MH i2c: E2 0E 00 40 10 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 C3 [19:20:12]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [19:20:12]wFMCommunicate OK [19:20:12]SAM_PROTO_GetShiftState done [19:20:12]FM_GetShiftState done [19:20:12]req_shift_opened done [19:20:12]requested_item shift.open_date is exist - process it [19:20:12]req_shift_open_date [19:20:12]req_shift_open_date done [19:20:12]produce_requested_data done [19:20:12]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [19:20:12]process_action_free close_receipt [19:20:12]json_value_free [19:20:12]json_value_free done [19:20:12]process_json_proto returns [19:20:12]Send response to host [19:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [19:20:12]free response buf [19:20:12]execute_script done [19:20:12]execute_script returns [19:20:12]free content buf [19:20:12]Sock 8.Close socket [19:20:12]Sock 8.Thread stoped [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:24]ConnectInit Can't connect to host [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:29]accept exits with 9 [19:50:29]New connection [19:50:29]New thread 3067362660 created [19:50:29]Thread 3067219300 joined [19:50:29]Waiting for new connection... [19:50:29] Sock 9.Parse request [19:50:29]Sock 9.Check first char [19:50:29]Sock 9.First char is OK [19:50:29]request: POST /json_proto HTTP/1.0 [19:50:29]Method: POST [19:50:29]URL: /json_proto [19:50:29]Method is POST - this is cgi request [19:50:29]url: /json_proto [19:50:29]query_string will be loaded in cgi processing [19:50:29]execute_cgi json_proto POST (null) [19:50:29]execute_cgi path=json_proto method=POST [19:50:29]POST find Content-Length [19:50:29]Host: 172.17.39.195:8080 [19:50:29]Content-Length: 215 [19:50:29]Content-Type: application/json [19:50:29] [19:50:29]POST finish read [19:50:29]Found Content-Length = 215 [19:50: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" ] } } [19:50:29]execute_script... [19:50: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" ] } } [19:50:29]POST & json_proto [19:50:29]process_json_proto [19:50:29]json parsed OK: [19:50:29]protocol is kg_v1.0 [19:50:29]action value=get_value [19:50:29]process_action get_value [19:50:29]cmd_get_value [19:50:29]process_action get_value done [19:50:29]requested_data is exist [19:50:29]produce_requested_data [19:50:29]requested_item kkm.sn is exist - process it [19:50:29]requested_item kkm.ver is exist - process it [19:50:29]requested_item fm.sn is exist - process it [19:50:29]wFMCommunicate request_size=4 [19:50:29]MH_SAM_APDU [19:50:29]CAPDU: 80 11 00 00 [19:50:29]Write to MH i2c: E2 08 00 41 10 80 11 00 00 00 00 00 00 CB [19:50:29]Write i2c OK [19:50:29]MH_I2C_Read... [19:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:29]Read from MH i2c: E2 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 17 00 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 17 00 41 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1B [19:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [19:50:29]wFMCommunicate OK [19:50:29]requested_item fd.num is exist - process it [19:50:29]SAM_PROTO_GetFieldsCounters [19:50:29]wFMCommunicate request_size=4 [19:50:29]MH_SAM_APDU [19:50:29]CAPDU: 80 13 00 00 [19:50:29]Write to MH i2c: E2 08 00 42 10 80 13 00 00 00 00 00 00 CE [19:50:29]Write i2c OK [19:50:29]MH_I2C_Read... [19:50:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:29]Read from MH i2c: E2 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 62 00 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 62 00 42 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [19:50: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:29]wFMCommunicate OK [19:50:29]SAM_PROTO_GetFieldsCounters done [19:50:29]requested_item shift.num is exist - process it [19:50:29]requested_item shift.opened is exist - process it [19:50:29]req_shift_opened [19:50:29]FM_GetShiftState [19:50:29]SAM_PROTO_GetShiftState [19:50:29]wFMCommunicate request_size=4 [19:50:29]MH_SAM_APDU [19:50:29]CAPDU: 80 13 01 00 [19:50:29]Write to MH i2c: E2 08 00 43 10 80 13 01 00 00 00 00 00 D0 [19:50:29]Write i2c OK [19:50:29]MH_I2C_Read... [19:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:29]Read from MH i2c: E2 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 0E 00 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 0E 00 43 10 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 C6 [19:50:29]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [19:50:29]wFMCommunicate OK [19:50:29]SAM_PROTO_GetShiftState done [19:50:29]FM_GetShiftState done [19:50:29]req_shift_opened done [19:50:29]requested_item shift.open_date is exist - process it [19:50:29]req_shift_open_date [19:50:29]req_shift_open_date done [19:50:29]produce_requested_data done [19:50:29]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [19:50:29]process_action_free get_value [19:50:29]json_value_free [19:50:29]json_value_free done [19:50:29]process_json_proto returns [19:50:29]Send response to host [19:50:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [19:50:29]free response buf [19:50:29]execute_script done [19:50:29]execute_script returns [19:50:29]free content buf [19:50:29]Sock 9.Close socket [19:50:29]Sock 9.Thread stoped [19:50:30]OFD Sender: No OFD packet to send [19:50:32]accept exits with 10 [19:50:32]New connection [19:50:32]New thread 3067219300 created [19:50:32]Thread 3067362660 joined [19:50:32]Waiting for new connection... [19:50:32] Sock 10.Parse request [19:50:32]Sock 10.Check first char [19:50:32]Sock 10.First char is OK [19:50:32]request: POST /json_proto HTTP/1.0 [19:50:32]Method: POST [19:50:32]URL: /json_proto [19:50:32]Method is POST - this is cgi request [19:50:32]url: /json_proto [19:50:32]query_string will be loaded in cgi processing [19:50:32]execute_cgi json_proto POST (null) [19:50:32]execute_cgi path=json_proto method=POST [19:50:32]POST find Content-Length [19:50:32]Host: 172.17.39.195:8080 [19:50:32]Content-Length: 331 [19:50:32]Content-Type: application/json [19:50:32] [19:50:32]POST finish read [19:50:32]Found Content-Length = 331 [19:50:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:50:32]execute_script... [19:50:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:50:32]POST & json_proto [19:50:32]process_json_proto [19:50:32]json parsed OK: [19:50:32]protocol is kg_v1.0 [19:50:32]action value=get_value [19:50:32]process_action get_value [19:50:32]cmd_get_value [19:50:32]process_action get_value done [19:50:32]requested_data is exist [19:50:32]produce_requested_data [19:50:32]requested_item fm.sale.total is exist - process it [19:50:32]SAM_PROTO_GetFMData [19:50:32]wFMCommunicate request_size=4 [19:50:32]MH_SAM_APDU [19:50:32]CAPDU: 80 13 03 00 [19:50:32]Write to MH i2c: E2 08 00 44 10 80 13 03 00 00 00 00 00 D3 [19:50:32]Write i2c OK [19:50:32]MH_I2C_Read... [19:50:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:50:33]Read from MH i2c: E2 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 FD 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 FD 00 44 10 00 C6 04 85 04 C2 04 6E 04 04 00 42 29 01 00 69 04 A3 00 6F 04 04 00 03 26 01 00 B1 04 05 00 46 A3 00 B1 01 70 04 05 00 E0 F6 87 6D 01 72 04 04 00 66 AC 78 43 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 C2 69 FD 2D 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 32 05 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 C6 [19:50:33]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 42 29 01 00 69 04 A3 00 6F 04 04 00 03 26 01 00 B1 04 05 00 46 A3 00 B1 01 70 04 05 00 E0 F6 87 6D 01 72 04 04 00 66 AC 78 43 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 C2 69 FD 2D 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 32 05 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [19:50:33]wFMCommunicate OK [19:50:33]wFMCommunicate request_size=4 [19:50:33]MH_SAM_APDU [19:50:33]CAPDU: 80 17 00 00 [19:50:33]Write to MH i2c: E2 08 00 45 10 80 17 00 00 00 00 00 00 D5 [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:33]Read from MH i2c: E2 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 FD 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 FD 00 45 10 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 62 [19:50:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [19:50:33]wFMCommunicate OK [19:50:33]wFMCommunicate request_size=4 [19:50:33]MH_SAM_APDU [19:50:33]CAPDU: 80 17 00 00 [19:50:33]Write to MH i2c: E2 08 00 46 10 80 17 00 00 00 00 00 00 D6 [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:33]Read from MH i2c: E2 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 FD 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 FD 00 46 10 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [19:50:33]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:50:33]wFMCommunicate OK [19:50:33]wFMCommunicate request_size=4 [19:50:33]MH_SAM_APDU [19:50:33]CAPDU: 80 17 00 00 [19:50:33]Write to MH i2c: E2 08 00 47 10 80 17 00 00 00 00 00 00 D7 [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:34]Read from MH i2c: E2 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 FD 00 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 FD 00 47 10 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [19:50:34]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:50:34]wFMCommunicate OK [19:50:34]wFMCommunicate request_size=4 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 17 00 00 [19:50:34]Write to MH i2c: E2 08 00 48 10 80 17 00 00 00 00 00 00 D8 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:50:34]Read from MH i2c: E2 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 E3 00 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 E3 00 48 10 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B7 [19:50:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:50:34]wFMCommunicate OK [19:50:34]SAM_PROTO_GetFMData done [19:50:34]requested_item fm.sale_refund.total is exist - process it [19:50:34]requested_item fm.buy.total is exist - process it [19:50:34]requested_item shift.sale.total is exist - process it [19:50:34]SAM_PROTO_GetShiftData [19:50:34]wFMCommunicate request_size=4 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 13 02 00 [19:50:34]Write to MH i2c: E2 08 00 49 10 80 13 02 00 00 00 00 00 D7 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:50:34]Read from MH i2c: E2 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 FD 00 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 FD 00 49 10 00 AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 5C DC 4E 70 04 03 00 F4 D3 28 72 04 03 00 68 08 26 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 03 60 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 9E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 [19:50:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 5C DC 4E 70 04 03 00 F4 D3 28 72 04 03 00 68 08 26 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 03 60 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 9E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:50:34]wFMCommunicate OK [19:50:34]wFMCommunicate request_size=4 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 17 00 00 [19:50:34]Write to MH i2c: E2 08 00 4A 10 80 17 00 00 00 00 00 00 DA [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 FD 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 FD 00 4A 10 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 FC [19:50:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:50:35]wFMCommunicate OK [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 17 00 00 [19:50:35]Write to MH i2c: E2 08 00 4B 10 80 17 00 00 00 00 00 00 DB [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]OFD Sender: No OFD packet to send [19:50:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 FD 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 FD 00 4B 10 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 92 [19:50: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 [19:50:35]wFMCommunicate OK [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 17 00 00 [19:50:35]Write to MH i2c: E2 08 00 4C 10 80 17 00 00 00 00 00 00 DC [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 FD 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 FD 00 4C 10 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 4E [19:50: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 [19:50:35]wFMCommunicate OK [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 17 00 00 [19:50:35]Write to MH i2c: E2 08 00 4D 10 80 17 00 00 00 00 00 00 DD [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 CB 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 CB 00 4D 10 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 C6 [19:50: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 [19:50:35]wFMCommunicate OK [19:50:35]SAM_PROTO_GetShiftData done [19:50:35]requested_item shift.sale.total_cash is exist - process it [19:50:35]requested_item shift.sale_refund.total is exist - process it [19:50:35]requested_item shift.sale_refund.total_cash is exist - process it [19:50:35]requested_item shift.buy.total is exist - process it [19:50:35]requested_item shift.buy.total_cash is exist - process it [19:50:35]produce_requested_data done [19:50:35]produce_requested_data return {"fm.sale.total":72645763.26,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":51682.20,"shift.sale.total_cash":26757.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} [19:50:35]process_action_free get_value [19:50:35]json_value_free [19:50:35]json_value_free done [19:50:35]process_json_proto returns [19:50:35]Send response to host [19:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72645763.26,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":51682.20,"shift.sale.total_cash":26757.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}}} [19:50:35]free response buf [19:50:35]execute_script done [19:50:35]execute_script returns [19:50:35]free content buf [19:50:35]Sock 10.Close socket [19:50:35]Sock 10.Thread stoped [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:31]accept exits with 8 [20:11:31]New connection [20:11:31]New thread 3067362660 created [20:11:31]Thread 3067219300 joined [20:11:31]Waiting for new connection... [20:11:31] Sock 8.Parse request [20:11:31]Sock 8.Check first char [20:11:31]Sock 8.First char is OK [20:11:31]request: POST /json_proto HTTP/1.0 [20:11:31]Method: POST [20:11:31]URL: /json_proto [20:11:31]Method is POST - this is cgi request [20:11:31]url: /json_proto [20:11:31]query_string will be loaded in cgi processing [20:11:31]execute_cgi json_proto POST (null) [20:11:31]execute_cgi path=json_proto method=POST [20:11:31]POST find Content-Length [20:11:31]Host: 172.17.39.195:8080 [20:11:31]Content-Length: 1208 [20:11:31]Content-Type: application/json [20:11:31] [20:11:31]POST finish read [20:11:31]Found Content-Length = 1208 [20:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694739\u000A22.06.2024 19:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.540 x 66.40\u000A\u0418\u0422\u041E\u0413: 500.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03093\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:31]execute_script... [20:11:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694739\u000A22.06.2024 19:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.540 x 66.40\u000A\u0418\u0422\u041E\u0413: 500.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03093\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:31]POST & json_proto [20:11:31]process_json_proto [20:11:31]json parsed OK: [20:11:31]protocol is kg_v1.0 [20:11:31]action value=print_text [20:11:31]process_action print_text [20:11:31]cmd_print_text [20:11:31]ExternCall_PrintAddStr [20:11:31]wPrintStart [20:11:31]Write to MH i2c: 01 00 00 4E 10 5E [20:11:31]Write i2c OK [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: 01 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: 01 07 00 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: 01 07 00 4E 10 00 00 00 00 00 FF 0F 73 [20:11:31]RasterBufferAndPrint [20:11:31]line *****ТОВАРНЫЙ ЧЕК***** [20:11:31]line АЗС 144 [20:11:31]line Партнер нефть [20:11:31]line 02508201610067 [20:11:31]line Кассир : Шайлообек у. Т. [20:11:31]line Счет N : (1)1694739 [20:11:31]line 22.06.2024 19:42 [20:11:31]line ПРОДАЖА [20:11:31]line ТРК (МРК, ГНК): 53 [20:11:31]line Вид ГСМ : 2710124130 [20:11:31]line Аи-92-К-5 [20:11:31]line 7.540 x 66.40 [20:11:31]line ИТОГ: 500.66 [20:11:31]line Тип оплаты: Талоны: Топливная Карта [20:11:31]line 03093 [20:11:31]line ______________________ [20:11:31]line (подпись) [20:11:31]written 0, free lines is 4095 [20:11:31]Write to MH i2c: 01 00 00 63 10 73 [20:11:31]Write i2c OK [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: 01 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: 01 07 00 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 F5 0D 7C [20:11:31]RasterBufferAndPrint [20:11:31]line [20:11:31]line [20:11:31]line [20:11:31]line [20:11:31]line [20:11:31]written 0, free lines is 3575 [20:11:31]MH_Cut [20:11:31]Write to MH i2c: D1 01 00 6A 10 01 4C [20:11:31]Write i2c OK [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: D1 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: D1 01 00 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: D1 01 00 6A 10 00 4B [20:11:31]Write to MH i2c: 01 00 00 6B 10 7B [20:11:31]Write i2c OK [20:11:31]MH_I2C_Read... [20:11:31]*** Cut start [20:11:31]*** Partial cut [20:11:31]*** CUTSNS_PIN = 1 [20:11:31]*** CUTSNS_PIN = 0 [20:11:32]*** Brake cut motor [20:11:32]Read from MH i2c: 01 [20:11:32]MH_I2C_Read... [20:11:32]*** Stop cut motor [20:11:32]*** Cut end [20:11:32]Read from MH i2c: 01 07 00 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 FF 0F 90 [20:11:32]process_action print_text done [20:11:32]requested_data is exist [20:11:32]produce_requested_data [20:11:32]requested_item fm.sn is exist - process it [20:11:32]wFMCommunicate request_size=4 [20:11:32]MH_SAM_APDU [20:11:32]CAPDU: 80 11 00 00 [20:11:32]Write to MH i2c: E2 08 00 6C 10 80 11 00 00 00 00 00 00 F6 [20:11:32]Write i2c OK [20:11:32]MH_I2C_Read... [20:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:32]Read from MH i2c: E2 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 17 00 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 17 00 6C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 46 [20:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:11:32]wFMCommunicate OK [20:11:32]requested_item fd.num is exist - process it [20:11:32]SAM_PROTO_GetFieldsCounters [20:11:32]wFMCommunicate request_size=4 [20:11:32]MH_SAM_APDU [20:11:32]CAPDU: 80 13 00 00 [20:11:32]Write to MH i2c: E2 08 00 6D 10 80 13 00 00 00 00 00 00 F9 [20:11:32]Write i2c OK [20:11:32]MH_I2C_Read... [20:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:32]Read from MH i2c: E2 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 62 00 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 62 00 6D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [20:11: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:32]wFMCommunicate OK [20:11:32]SAM_PROTO_GetFieldsCounters done [20:11:32]requested_item shift.num is exist - process it [20:11:32]requested_item shift.opened is exist - process it [20:11:32]req_shift_opened [20:11:32]FM_GetShiftState [20:11:32]SAM_PROTO_GetShiftState [20:11:32]wFMCommunicate request_size=4 [20:11:32]MH_SAM_APDU [20:11:32]CAPDU: 80 13 01 00 [20:11:32]Write to MH i2c: E2 08 00 6E 10 80 13 01 00 00 00 00 00 FB [20:11:32]Write i2c OK [20:11:32]MH_I2C_Read... [20:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:32]Read from MH i2c: E2 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 0E 00 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 0E 00 6E 10 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F1 [20:11:32]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [20:11:32]wFMCommunicate OK [20:11:32]SAM_PROTO_GetShiftState done [20:11:32]FM_GetShiftState done [20:11:32]req_shift_opened done [20:11:32]requested_item shift.open_date is exist - process it [20:11:32]req_shift_open_date [20:11:32]req_shift_open_date done [20:11:32]produce_requested_data done [20:11:32]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [20:11:32]process_action_free print_text [20:11:32]json_value_free [20:11:32]json_value_free done [20:11:32]process_json_proto returns [20:11:32]Send response to host [20:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [20:11:32]free response buf [20:11:32]execute_script done [20:11:32]execute_script returns [20:11:32]free content buf [20:11:32]Sock 8.Close socket [20:11:32]Sock 8.Thread stoped [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]accept exits with 10 [20:11:42]New connection [20:11:42]New thread 3067219300 created [20:11:42]Thread 3067362660 joined [20:11:42]Waiting for new connection... [20:11:42] Sock 10.Parse request [20:11:42]Sock 10.Check first char [20:11:42]Sock 10.First char is OK [20:11:42]request: POST /json_proto HTTP/1.0 [20:11:42]Method: POST [20:11:42]URL: /json_proto [20:11:42]Method is POST - this is cgi request [20:11:42]url: /json_proto [20:11:42]query_string will be loaded in cgi processing [20:11:42]execute_cgi json_proto POST (null) [20:11:42]execute_cgi path=json_proto method=POST [20:11:42]POST find Content-Length [20:11:42]Host: 172.17.39.195:8080 [20:11:42]Content-Length: 1209 [20:11:42]Content-Type: application/json [20:11:42] [20:11:42]POST finish read [20:11:42]Found Content-Length = 1209 [20:11:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694738\u000A22.06.2024 19:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.560 x 66.40\u000A\u0418\u0422\u041E\u0413: 900.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03093\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:42]execute_script... [20:11:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694738\u000A22.06.2024 19:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.560 x 66.40\u000A\u0418\u0422\u041E\u0413: 900.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03093\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:42]POST & json_proto [20:11:42]process_json_proto [20:11:42]json parsed OK: [20:11:42]protocol is kg_v1.0 [20:11:42]action value=print_text [20:11:42]process_action print_text [20:11:42]cmd_print_text [20:11:42]ExternCall_PrintAddStr [20:11:42]wPrintStart [20:11:42]Write to MH i2c: 01 00 00 6F 10 7F [20:11:42]Write i2c OK [20:11:42]MH_I2C_Read... [20:11:42]Read from MH i2c: 01 [20:11:42]MH_I2C_Read... [20:11:42]Read from MH i2c: 01 07 00 [20:11:42]MH_I2C_Read... [20:11:42]Read from MH i2c: 01 07 00 6F 10 00 00 00 00 00 FF 0F 94 [20:11:42]RasterBufferAndPrint [20:11:42]line *****ТОВАРНЫЙ ЧЕК***** [20:11:42]line АЗС 144 [20:11:42]line Партнер нефть [20:11:42]line 02508201610067 [20:11:42]line Кассир : Шайлообек у. Т. [20:11:42]line Счет N : (1)1694738 [20:11:42]line 22.06.2024 19:42 [20:11:42]line ПРОДАЖА [20:11:42]line ТРК (МРК, ГНК): 33 [20:11:42]line Вид ГСМ : 2710124130 [20:11:42]line Аи-92-К-5 [20:11:42]line 13.560 x 66.40 [20:11:42]line ИТОГ: 900.38 [20:11:42]line Тип оплаты: Талоны: Топливная Карта [20:11:42]line 03093 [20:11:42]line ______________________ [20:11:42]line (подпись) [20:11:42]written 0, free lines is 4095 [20:11:42]Write to MH i2c: 01 00 00 84 10 94 [20:11:42]Write i2c OK [20:11:42]MH_I2C_Read... [20:11:42]Read from MH i2c: 01 [20:11:42]MH_I2C_Read... [20:11:42]Read from MH i2c: 01 07 00 [20:11:42]MH_I2C_Read... [20:11:42]Read from MH i2c: 01 07 00 84 10 00 00 00 00 00 F7 0D 9F [20:11:42]RasterBufferAndPrint [20:11:42]line [20:11:42]line [20:11:42]line [20:11:42]line [20:11:42]line [20:11:42]written 0, free lines is 3576 [20:11:42]MH_Cut [20:11:42]Write to MH i2c: D1 01 00 8B 10 01 6D [20:11:42]Write i2c OK [20:11:42]MH_I2C_Read... [20:11:42]Read from MH i2c: D1 [20:11:42]MH_I2C_Read... [20:11:42]Read from MH i2c: D1 01 00 [20:11:42]MH_I2C_Read... [20:11:42]Read from MH i2c: D1 01 00 8B 10 00 6C [20:11:42]Write to MH i2c: 01 00 00 8C 10 9C [20:11:42]Write i2c OK [20:11:42]MH_I2C_Read... [20:11:42]OFD Sender: No OFD packet to send [20:11:42]*** Cut start [20:11:42]*** Partial cut [20:11:42]*** CUTSNS_PIN = 1 [20:11:42]*** CUTSNS_PIN = 0 [20:11:43]*** Brake cut motor [20:11:43]Read from MH i2c: 01 [20:11:43]MH_I2C_Read... [20:11:43]*** Stop cut motor [20:11:43]*** Cut end [20:11:43]Read from MH i2c: 01 07 00 [20:11:43]MH_I2C_Read... [20:11:43]Read from MH i2c: 01 07 00 8C 10 00 00 00 00 00 FF 0F B1 [20:11:43]process_action print_text done [20:11:43]requested_data is exist [20:11:43]produce_requested_data [20:11:43]requested_item fm.sn is exist - process it [20:11:43]wFMCommunicate request_size=4 [20:11:43]MH_SAM_APDU [20:11:43]CAPDU: 80 11 00 00 [20:11:43]Write to MH i2c: E2 08 00 8D 10 80 11 00 00 00 00 00 00 17 [20:11:43]Write i2c OK [20:11:43]MH_I2C_Read... [20:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:43]Read from MH i2c: E2 [20:11:43]MH_I2C_Read... [20:11:43]Read from MH i2c: E2 17 00 [20:11:43]MH_I2C_Read... [20:11:43]Read from MH i2c: E2 17 00 8D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 67 [20:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:11:43]wFMCommunicate OK [20:11:43]requested_item fd.num is exist - process it [20:11:43]SAM_PROTO_GetFieldsCounters [20:11:43]wFMCommunicate request_size=4 [20:11:43]MH_SAM_APDU [20:11:43]CAPDU: 80 13 00 00 [20:11:43]Write to MH i2c: E2 08 00 8E 10 80 13 00 00 00 00 00 00 1A [20:11:43]Write i2c OK [20:11:43]MH_I2C_Read... [20:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:43]Read from MH i2c: E2 [20:11:43]MH_I2C_Read... [20:11:43]Read from MH i2c: E2 62 00 [20:11:43]MH_I2C_Read... [20:11:43]Read from MH i2c: E2 62 00 8E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [20:11: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:43]wFMCommunicate OK [20:11:43]SAM_PROTO_GetFieldsCounters done [20:11:43]requested_item shift.num is exist - process it [20:11:43]requested_item shift.opened is exist - process it [20:11:43]req_shift_opened [20:11:43]FM_GetShiftState [20:11:43]SAM_PROTO_GetShiftState [20:11:43]wFMCommunicate request_size=4 [20:11:43]MH_SAM_APDU [20:11:43]CAPDU: 80 13 01 00 [20:11:43]Write to MH i2c: E2 08 00 8F 10 80 13 01 00 00 00 00 00 1C [20:11:43]Write i2c OK [20:11:43]MH_I2C_Read... [20:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:43]Read from MH i2c: E2 [20:11:43]MH_I2C_Read... [20:11:43]Read from MH i2c: E2 0E 00 [20:11:43]MH_I2C_Read... [20:11:43]Read from MH i2c: E2 0E 00 8F 10 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 12 [20:11:43]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [20:11:43]wFMCommunicate OK [20:11:43]SAM_PROTO_GetShiftState done [20:11:43]FM_GetShiftState done [20:11:43]req_shift_opened done [20:11:43]requested_item shift.open_date is exist - process it [20:11:43]req_shift_open_date [20:11:43]req_shift_open_date done [20:11:43]produce_requested_data done [20:11:43]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [20:11:43]process_action_free print_text [20:11:43]json_value_free [20:11:43]json_value_free done [20:11:43]process_json_proto returns [20:11:43]Send response to host [20:11:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [20:11:43]free response buf [20:11:43]execute_script done [20:11:43]execute_script returns [20:11:43]free content buf [20:11:43]Sock 10.Close socket [20:11:43]Sock 10.Thread stoped [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:52]ConnectInit Can't connect to host [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:07]accept exits with 8 [20:20:07]New connection [20:20:07]New thread 3067362660 created [20:20:07]Thread 3067219300 joined [20:20:07]Waiting for new connection... [20:20:07] Sock 8.Parse request [20:20:07]Sock 8.Check first char [20:20:07]Sock 8.First char is OK [20:20:07]request: POST /json_proto HTTP/1.0 [20:20:07]Method: POST [20:20:07]URL: /json_proto [20:20:07]Method is POST - this is cgi request [20:20:07]url: /json_proto [20:20:07]query_string will be loaded in cgi processing [20:20:07]execute_cgi json_proto POST (null) [20:20:07]execute_cgi path=json_proto method=POST [20:20:07]POST find Content-Length [20:20:07]Host: 172.17.39.195:8080 [20:20:07]Content-Length: 1210 [20:20:07]Content-Type: application/json [20:20:07] [20:20:07]POST finish read [20:20:07]Found Content-Length = 1210 [20:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694742\u000A22.06.2024 19:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03093\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:07]execute_script... [20:20:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 144\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)1694742\u000A22.06.2024 19:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03093\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:07]POST & json_proto [20:20:07]process_json_proto [20:20:07]json parsed OK: [20:20:07]protocol is kg_v1.0 [20:20:07]action value=print_text [20:20:07]process_action print_text [20:20:07]cmd_print_text [20:20:07]ExternCall_PrintAddStr [20:20:07]wPrintStart [20:20:07]Write to MH i2c: 01 00 00 90 10 A0 [20:20:07]Write i2c OK [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: 01 [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: 01 07 00 [20:20:07]MH_I2C_Read... [20:20:07]Read from MH i2c: 01 07 00 90 10 00 00 00 00 00 FF 0F B5 [20:20:07]RasterBufferAndPrint [20:20:07]line *****ТОВАРНЫЙ ЧЕК***** [20:20:07]line АЗС 144 [20:20:07]line Партнер нефть [20:20:07]line 02508201610067 [20:20:07]line Кассир : Шайлообек у. Т. [20:20:07]line Счет N : (1)1694742 [20:20:07]line 22.06.2024 19:51 [20:20:07]line ПРОДАЖА [20:20:07]line ТРК (МРК, ГНК): 63 [20:20:07]line Вид ГСМ : 2710124130 [20:20:07]line Аи-92-К-5 [20:20:07]line 15.070 x 66.40 [20:20:07]line ИТОГ: 1000.65 [20:20:07]line Тип оплаты: Талоны: Топливная Карта [20:20:07]line 03093 [20:20:07]line ______________________ [20:20:07]line (подпись) [20:20:07]written 0, free lines is 4095 [20:20:08]Write to MH i2c: 01 00 00 A5 10 B5 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: 01 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: 01 07 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: 01 07 00 A5 10 00 00 00 00 00 F6 0D BF [20:20:08]RasterBufferAndPrint [20:20:08]line [20:20:08]line [20:20:08]line [20:20:08]line [20:20:08]line [20:20:08]written 0, free lines is 3576 [20:20:08]MH_Cut [20:20:08]Write to MH i2c: D1 01 00 AC 10 01 8E [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: D1 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: D1 01 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: D1 01 00 AC 10 00 8D [20:20:08]Write to MH i2c: 01 00 00 AD 10 BD [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** Cut start [20:20:08]*** Partial cut [20:20:08]*** CUTSNS_PIN = 1 [20:20:08]*** CUTSNS_PIN = 0 [20:20:08]OFD Sender: No OFD packet to send [20:20:08]*** Brake cut motor [20:20:09]Read from MH i2c: 01 [20:20:09]MH_I2C_Read... [20:20:09]*** Stop cut motor [20:20:09]*** Cut end [20:20:09]Read from MH i2c: 01 07 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 07 00 AD 10 00 00 00 00 00 FF 0F D2 [20:20:09]process_action print_text done [20:20:09]requested_data is exist [20:20:09]produce_requested_data [20:20:09]requested_item fm.sn is exist - process it [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 11 00 00 [20:20:09]Write to MH i2c: E2 08 00 AE 10 80 11 00 00 00 00 00 00 38 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 17 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 17 00 AE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 88 [20:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:20:09]wFMCommunicate OK [20:20:09]requested_item fd.num is exist - process it [20:20:09]SAM_PROTO_GetFieldsCounters [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 13 00 00 [20:20:09]Write to MH i2c: E2 08 00 AF 10 80 13 00 00 00 00 00 00 3B [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 62 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 62 00 AF 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [20:20: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 58 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:09]wFMCommunicate OK [20:20:09]SAM_PROTO_GetFieldsCounters done [20:20:09]requested_item shift.num is exist - process it [20:20:09]requested_item shift.opened is exist - process it [20:20:09]req_shift_opened [20:20:09]FM_GetShiftState [20:20:09]SAM_PROTO_GetShiftState [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 13 01 00 [20:20:09]Write to MH i2c: E2 08 00 B0 10 80 13 01 00 00 00 00 00 3D [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 0E 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 0E 00 B0 10 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 33 [20:20:09]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [20:20:09]wFMCommunicate OK [20:20:09]SAM_PROTO_GetShiftState done [20:20:09]FM_GetShiftState done [20:20:09]req_shift_opened done [20:20:09]requested_item shift.open_date is exist - process it [20:20:09]req_shift_open_date [20:20:09]req_shift_open_date done [20:20:09]produce_requested_data done [20:20:09]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [20:20:09]process_action_free print_text [20:20:09]json_value_free [20:20:09]json_value_free done [20:20:09]process_json_proto returns [20:20:09]Send response to host [20:20:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76888,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [20:20:09]free response buf [20:20:09]execute_script done [20:20:09]execute_script returns [20:20:09]free content buf [20:20:09]Sock 8.Close socket [20:20:09]Sock 8.Thread stoped [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:48]accept exits with 9 [20:33:48]New connection [20:33:48]New thread 3067219300 created [20:33:48]Thread 3067362660 joined [20:33:48]Waiting for new connection... [20:33:48] Sock 9.Parse request [20:33:48]Sock 9.Check first char [20:33:48]Sock 9.First char is OK [20:33:48]request: POST /json_proto HTTP/1.0 [20:33:48]Method: POST [20:33:48]URL: /json_proto [20:33:48]Method is POST - this is cgi request [20:33:48]url: /json_proto [20:33:48]query_string will be loaded in cgi processing [20:33:48]execute_cgi json_proto POST (null) [20:33:48]execute_cgi path=json_proto method=POST [20:33:48]POST find Content-Length [20:33:48]Host: 172.17.39.195:8080 [20:33:48]Content-Length: 718 [20:33:48]Content-Type: application/json [20:33:48] [20:33:48]POST finish read [20:33:48]Found Content-Length = 718 [20:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220947", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:48]execute_script... [20:33:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220947", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:48]POST & json_proto [20:33:48]process_json_proto [20:33:48]json parsed OK: [20:33:48]protocol is kg_v1.0 [20:33:48]action value=close_receipt [20:33:48]process_action close_receipt [20:33:48]cmd_close_receipt [20:33:48]MH_GetDate [20:33:48]Write to MH i2c: F0 00 00 B1 10 B0 [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: F0 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: F0 09 00 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: F0 09 00 B1 10 00 2E 35 77 66 99 81 91 64 08 [20:33:48]GetLastDocTimeStamp 1719084011 [20:33:48]current date 1719088430 [20:33:48]FM_GetShiftState [20:33:48]SAM_PROTO_GetShiftState [20:33:48]wFMCommunicate request_size=4 [20:33:48]MH_SAM_APDU [20:33:48]CAPDU: 80 13 01 00 [20:33:48]Write to MH i2c: E2 08 00 B2 10 80 13 01 00 00 00 00 00 3F [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:48]Read from MH i2c: E2 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: E2 0E 00 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: E2 0E 00 B2 10 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 35 [20:33:48]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [20:33:48]wFMCommunicate OK [20:33:48]SAM_PROTO_GetShiftState done [20:33:48]FM_GetShiftState done [20:33:48]opened in 1719016435 [20:33:48]opened+sec_in_day 1719102835 [20:33:48]quantity*price = 12500 [20:33:48]sum+1 = 12501 [20:33:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 85 22.06.2024 20:33 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76889 ФПД: 34846738713700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T203350&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76889&fm=34846738713700&tin=02508201610067®Number=0000000000095696&sum=12500 0 [20:33:49]StoreToDocumentArchive [20:33:49]shift 395 fd 76889 [20:33:49]save to /storage/0395/doc_00076889 [20:33:49]save last doc name /storage/0395/doc_00076889 to /storage/kkm_last_doc_name [20:33:49]save OK [20:33:49]Clear old archive folders... [20:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=306 [20:33:49]tlvbuf is 00913730 [20:33:49]SAM_PROTO_ClearQueue [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 09 00 00 [20:33:49]Write to MH i2c: E2 08 00 BF 10 80 09 00 00 00 00 00 00 41 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 BF 10 00 90 00 43 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]SAM_PROTO_ClearQueue done [20:33:49]KKMCreateOFDPacket [20:33:49]OFDProtocolAddRootSTLVToBuf [20:33:49]FM_MakeSignedData [20:33:49]FM_MakeSignedData [20:33:49]SAM_PROTO_SignData [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 0D 01 02 [20:33:49]Write to MH i2c: E2 08 00 C0 10 80 0D 01 02 00 00 00 00 49 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 C0 10 00 90 00 44 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]wFMCommunicate request_size=255 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 2E 35 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 [20:33:49]Write to MH i2c: E2 02 01 C1 10 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 2E 35 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 00 3C [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 C1 10 00 90 00 45 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]wFMCommunicate request_size=65 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2C 01 00 35 04 06 00 1F B1 63 7B 8C 64 [20:33:49]Write to MH i2c: E2 44 00 C2 10 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2C 01 00 35 04 06 00 1F B1 63 7B 8C 64 00 00 C6 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 0D 03 02 [20:33:49]Write to MH i2c: E2 08 00 C3 10 80 0D 03 02 00 00 00 00 4E [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 0B 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 0B 00 C3 10 00 0D 85 D4 A3 91 06 C1 26 90 00 D6 [20:33:49]RAPDU: 0D 85 D4 A3 91 06 C1 26 90 00 [20:33:49]wFMCommunicate OK [20:33:49]SAM_PROTO_SignData done [20:33:49]FM_MakeSignedData done [20:33:49]CreateOFDProtocolMessage [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 11 00 00 [20:33:49]Write to MH i2c: E2 08 00 C4 10 80 11 00 00 00 00 00 00 4E [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 17 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 17 00 C4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 9E [20:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:33:49]wFMCommunicate OK [20:33:49]CreateOFDProtocolMessage done [20:33:49]OFDSenderStorePacket 76889 [20:33:49]StoreOFDPacket docnum=76889 [20:33:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 46 01 00 00 2A 12 3E 01 7B C1 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 2E 35 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2C 01 00 35 04 06 00 1F B1 63 7B 8C 64 0D 85 D4 A3 91 06 C1 26 [20:33:49]CheckFolder [20:33:49]dirname=/storage/ofd_packets [20:33:49]CheckFolder done [20:33:49]ProducePacketName [20:33:49]name=ofd_packets/00076889 [20:33:49]NVStorageSaveData ofd_packets/00076889 [20:33:49]File name is /storage/ofd_packets/00076889 [20:33:49]Write 356 bytes [20:33:49]NVStorageSaveData done [20:33:49]OFDSenderStorePacket done [20:33:49]KKMCreateOFDPacket done [20:33:49]NVStorageSaveData kkm_last_timestamp [20:33:49]File name is /storage/kkm_last_timestamp [20:33:49]Write 4 bytes [20:33:49]NVStorageSaveData done [20:33:49]ExternCall_PrintAddStr [20:33:49]wPrintStart [20:33:49]Write to MH i2c: 01 00 00 C5 10 D5 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 07 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 07 00 C5 10 00 00 00 00 00 FF 0F EA [20:33:49]RasterBufferAndPrint [20:33:49]line Счет N : (3)220947 [20:33:49]line ИНН: 02508201610067 [20:33:49]line Контрольно-Кассовый Чек [20:33:49]line ПРОДАЖА [20:33:49]line Товар: 4870202522671 [20:33:49]line Garden напиток со вкусом граната 1,20 ПЭ [20:33:49]line 1.000 * 125.00 [20:33:49]line = 125.00 [20:33:49]line НДС 12% НСП 1% [20:33:49]line > о реализуемом товаре [20:33:49]line ИТОГО: 125.00 [20:33:49]line НСП 1% : 1.11 [20:33:49]line НДС 12% : 13.27 [20:33:49]line Наличными: 125.00 [20:33:49]line Безнал.: 0.00 [20:33:49]line Место: АЗС № 144 "Партнер Нефть" [20:33:49]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [20:33:49]line СНО: Общий режим [20:33:49]line Чек 85 22.06.2024 20:33 [20:33:49]line Смена: 395 ФФД: 1.0 [20:33:49]line ЗНМ: 0300000170 [20:33:49]line РНМ: 0000000000095696 [20:33:49]line Версия ККМ: 001 [20:33:49]line ФМ: 0000000000875009 [20:33:49]line ФД: 76889 [20:33:49]line ФПД: 34846738713700 [20:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T203350&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76889&fm=34846738713700&tin=02508201610067®Number=0000000000095696&sum=12500 [20:33:50]line 0 [20:33:50]OFD Sender: Processing packet 76889 [packets to send 351, broken 350] [20:33:50]ProducePacketName [20:33:50]name=ofd_packets/00076889 [20:33:50]OFD Sender: To server: pG, [20:33:50]CommunicateWithHost lk.salyk.kg:30040 [20:33:50]ConnectInit lk.salyk.kg [20:33:50]written 0, free lines is 4095 [20:33:50]Connected sock=10 [20:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 46 01 00 00 2A 12 3E 01 7B C1 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 2E 35 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2C 01 00 35 04 06 00 1F B1 63 7B 8C 64 0D 85 D4 A3 91 06 C1 26 [20:33:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 EA 49 47 00 BB 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 59 2C 01 00 F4 03 04 00 C7 DB 76 66 B6 04 01 00 00 90 20 58 A7 F9 5E 50 51 [20:33:50]CommunicateWithHost err = 0 [20:33:50]CheckOFDResponse [20:33:50]1017 (14) - 77093643461234 [20:33:50]1041 (16) - 0000000000875009 [20:33:50]1040 (4) - 76889 [20:33:50]1012 (4) - 22.06.2024 14:12 [20:33:50]1206 (1) - 0 [20:33:50]OFD Sender: Remove packet 76889 [20:33:50]ProducePacketName [20:33:50]name=ofd_packets/00076889 [20:33:50]NVStorageDeleteData [20:33:50]Write to MH i2c: 01 00 00 EE 10 FE [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: 01 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: 01 07 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: 01 07 00 EE 10 00 00 00 00 00 ED 0C FE [20:33:50]RasterBufferAndPrint [20:33:50]line [20:33:50]line [20:33:50]line [20:33:50]line [20:33:50]line [20:33:50]written 0, free lines is 3318 [20:33:50]MH_Cut [20:33:50]Write to MH i2c: D1 01 00 F5 10 01 D7 [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: D1 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: D1 01 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: D1 01 00 F5 10 00 D6 [20:33:50]Write to MH i2c: 01 00 00 F6 10 06 [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:51]OFD Sender: No OFD packet to send [20:33:51]*** Cut start [20:33:51]*** Partial cut [20:33:51]*** CUTSNS_PIN = 1 [20:33:51]*** CUTSNS_PIN = 0 [20:33:51]*** Brake cut motor [20:33:51]Read from MH i2c: 01 [20:33:52]MH_I2C_Read... [20:33:52]*** Stop cut motor [20:33:52]*** Cut end [20:33:52]Read from MH i2c: 01 07 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: 01 07 00 F6 10 00 00 00 00 00 FF 0F 1B [20:33:52]process_action close_receipt done [20:33:52]requested_data is exist [20:33:52]produce_requested_data [20:33:52]requested_item fm.sn is exist - process it [20:33:52]wFMCommunicate request_size=4 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 11 00 00 [20:33:52]Write to MH i2c: E2 08 00 F7 10 80 11 00 00 00 00 00 00 81 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 17 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 17 00 F7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D1 [20:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:33:52]wFMCommunicate OK [20:33:52]requested_item fd.num is exist - process it [20:33:52]SAM_PROTO_GetFieldsCounters [20:33:52]wFMCommunicate request_size=4 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 13 00 00 [20:33:52]Write to MH i2c: E2 08 00 F8 10 80 13 00 00 00 00 00 00 84 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 62 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 62 00 F8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 59 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [20:33: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 59 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:52]wFMCommunicate OK [20:33:52]SAM_PROTO_GetFieldsCounters done [20:33:52]requested_item shift.num is exist - process it [20:33:52]requested_item shift.opened is exist - process it [20:33:52]req_shift_opened [20:33:52]FM_GetShiftState [20:33:52]SAM_PROTO_GetShiftState [20:33:52]wFMCommunicate request_size=4 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 13 01 00 [20:33:52]Write to MH i2c: E2 08 00 F9 10 80 13 01 00 00 00 00 00 86 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 0E 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 0E 00 F9 10 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 7C [20:33:52]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [20:33:52]wFMCommunicate OK [20:33:52]SAM_PROTO_GetShiftState done [20:33:52]FM_GetShiftState done [20:33:52]req_shift_opened done [20:33:52]requested_item shift.open_date is exist - process it [20:33:52]req_shift_open_date [20:33:52]req_shift_open_date done [20:33:52]produce_requested_data done [20:33:52]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76889,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [20:33:52]process_action_free close_receipt [20:33:52]json_value_free [20:33:52]json_value_free done [20:33:52]process_json_proto returns [20:33:52]Send response to host [20:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76889,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [20:33:52]free response buf [20:33:52]execute_script done [20:33:52]execute_script returns [20:33:52]free content buf [20:33:52]Sock 9.Close socket [20:33:52]Sock 9.Thread stoped [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:37:58]accept exits with 8 [20:37:58]New connection [20:37:58]New thread 3067362660 created [20:37:58]Thread 3067219300 joined [20:37:58]Waiting for new connection... [20:37:58] Sock 8.Parse request [20:37:58]Sock 8.Check first char [20:37:58]Sock 8.First char is OK [20:37:58]request: POST /json_proto HTTP/1.0 [20:37:58]Method: POST [20:37:58]URL: /json_proto [20:37:58]Method is POST - this is cgi request [20:37:58]url: /json_proto [20:37:58]query_string will be loaded in cgi processing [20:37:58]execute_cgi json_proto POST (null) [20:37:58]execute_cgi path=json_proto method=POST [20:37:58]POST find Content-Length [20:37:58]Host: 172.17.39.195:8080 [20:37:58]Content-Length: 675 [20:37:58]Content-Type: application/json [20:37:58] [20:37:58]POST finish read [20:37:58]Found Content-Length = 675 [20:37:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [20:37:58]execute_script... [20:37: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)1694750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [20:37:58]POST & json_proto [20:37:58]process_json_proto [20:37:58]json parsed OK: [20:37:58]protocol is kg_v1.0 [20:37:58]action value=close_receipt [20:37:58]process_action close_receipt [20:37:58]cmd_close_receipt [20:37:58]MH_GetDate [20:37:58]Write to MH i2c: F0 00 00 FA 10 F9 [20:37:58]Write i2c OK [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: F0 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: F0 09 00 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: F0 09 00 FA 10 00 29 36 77 66 99 81 91 64 4D [20:37:58]GetLastDocTimeStamp 1719088430 [20:37:58]current date 1719088681 [20:37:58]FM_GetShiftState [20:37:58]SAM_PROTO_GetShiftState [20:37:58]wFMCommunicate request_size=4 [20:37:58]MH_SAM_APDU [20:37:58]CAPDU: 80 13 01 00 [20:37:58]Write to MH i2c: E2 08 00 FB 10 80 13 01 00 00 00 00 00 88 [20:37:58]Write i2c OK [20:37:58]MH_I2C_Read... [20:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:58]Read from MH i2c: E2 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: E2 0E 00 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: E2 0E 00 FB 10 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 7E [20:37:58]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [20:37:58]wFMCommunicate OK [20:37:58]SAM_PROTO_GetShiftState done [20:37:58]FM_GetShiftState done [20:37:58]opened in 1719016435 [20:37:58]opened+sec_in_day 1719102835 [20:37:58]quantity*price = 40022 [20:37:58]sum+1 = 40023 [20:37:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 86 22.06.2024 20:38 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76890 ФПД: 268810272246091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T203801&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76890&fm=268810272246091&tin=02508201610067®Number=0000000000095696&sum=40000 [20:37:59]StoreToDocumentArchive [20:37:59]shift 395 fd 76890 [20:37:59]save to /storage/0395/doc_00076890 [20:37:59]save last doc name /storage/0395/doc_00076890 to /storage/kkm_last_doc_name [20:37:59]save OK [20:37:59]Clear old archive folders... [20:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:37:59]tlvbuf is 008E5830 [20:37:59]SAM_PROTO_ClearQueue [20:37:59]wFMCommunicate request_size=4 [20:37:59]MH_SAM_APDU [20:37:59]CAPDU: 80 09 00 00 [20:37:59]Write to MH i2c: E2 08 00 08 11 80 09 00 00 00 00 00 00 8B [20:37:59]Write i2c OK [20:37:59]MH_I2C_Read... [20:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:59]Read from MH i2c: E2 [20:37:59]MH_I2C_Read... [20:37:59]Read from MH i2c: E2 03 00 [20:37:59]MH_I2C_Read... [20:37:59]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [20:37:59]RAPDU: 90 00 [20:37:59]wFMCommunicate OK [20:37:59]SAM_PROTO_ClearQueue done [20:37:59]KKMCreateOFDPacket [20:37:59]OFDProtocolAddRootSTLVToBuf [20:37:59]FM_MakeSignedData [20:37:59]FM_MakeSignedData [20:37:59]SAM_PROTO_SignData [20:37:59]wFMCommunicate request_size=4 [20:37:59]MH_SAM_APDU [20:37:59]CAPDU: 80 0D 01 02 [20:37:59]Write to MH i2c: E2 08 00 09 11 80 0D 01 02 00 00 00 00 93 [20:37:59]Write i2c OK [20:37:59]MH_I2C_Read... [20:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:59]Read from MH i2c: E2 [20:37:59]MH_I2C_Read... [20:37:59]Read from MH i2c: E2 03 00 [20:37:59]MH_I2C_Read... [20:37:59]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [20:37:59]RAPDU: 90 00 [20:37:59]wFMCommunicate OK [20:37:59]wFMCommunicate request_size=255 [20:37:59]MH_SAM_APDU [20:37:59]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 32 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 29 36 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2C 01 00 35 04 06 00 F4 7B 44 CA [20:37:59]Write to MH i2c: E2 02 01 0A 11 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 32 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 29 36 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2C 01 00 35 04 06 00 F4 7B 44 CA 00 00 EA [20:37:59]Write i2c OK [20:37:59]MH_I2C_Read... [20:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:59]Read from MH i2c: E2 [20:37:59]MH_I2C_Read... [20:37:59]Read from MH i2c: E2 03 00 [20:37:59]MH_I2C_Read... [20:37:59]Read from MH i2c: E2 03 00 0A 11 00 90 00 8F [20:37:59]RAPDU: 90 00 [20:37:59]wFMCommunicate OK [20:37:59]wFMCommunicate request_size=7 [20:37:59]MH_SAM_APDU [20:37:59]CAPDU: 80 0D 02 02 02 09 4B [20:37:59]Write to MH i2c: E2 0A 00 0B 11 80 0D 02 02 02 00 09 4B 00 00 EE [20:37:59]Write i2c OK [20:37:59]MH_I2C_Read... [20:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:00]Read from MH i2c: E2 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 03 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 03 00 0B 11 00 90 00 90 [20:38:00]RAPDU: 90 00 [20:38:00]wFMCommunicate OK [20:38:00]wFMCommunicate request_size=4 [20:38:00]MH_SAM_APDU [20:38:00]CAPDU: 80 0D 03 02 [20:38:00]Write to MH i2c: E2 08 00 0C 11 80 0D 03 02 00 00 00 00 98 [20:38:00]Write i2c OK [20:38:00]MH_I2C_Read... [20:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:00]Read from MH i2c: E2 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 0B 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 0B 00 0C 11 00 ED 90 1F 30 74 F4 51 37 90 00 55 [20:38:00]RAPDU: ED 90 1F 30 74 F4 51 37 90 00 [20:38:00]wFMCommunicate OK [20:38:00]SAM_PROTO_SignData done [20:38:00]FM_MakeSignedData done [20:38:00]CreateOFDProtocolMessage [20:38:00]wFMCommunicate request_size=4 [20:38:00]MH_SAM_APDU [20:38:00]CAPDU: 80 11 00 00 [20:38:00]Write to MH i2c: E2 08 00 0D 11 80 11 00 00 00 00 00 00 98 [20:38:00]Write i2c OK [20:38:00]MH_I2C_Read... [20:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:00]Read from MH i2c: E2 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 17 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: E2 17 00 0D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E8 [20:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:38:00]wFMCommunicate OK [20:38:00]CreateOFDProtocolMessage done [20:38:00]OFDSenderStorePacket 76890 [20:38:00]StoreOFDPacket docnum=76890 [20:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 AF C9 04 01 A8 1A 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 32 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 29 36 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2C 01 00 35 04 06 00 F4 7B 44 CA 09 4B ED 90 1F 30 74 F4 51 37 [20:38:00]CheckFolder [20:38:00]dirname=/storage/ofd_packets [20:38:00]CheckFolder done [20:38:00]ProducePacketName [20:38:00]name=ofd_packets/00076890 [20:38:00]NVStorageSaveData ofd_packets/00076890 [20:38:00]File name is /storage/ofd_packets/00076890 [20:38:00]Write 298 bytes [20:38:00]NVStorageSaveData done [20:38:00]OFDSenderStorePacket done [20:38:00]KKMCreateOFDPacket done [20:38:00]NVStorageSaveData kkm_last_timestamp [20:38:00]File name is /storage/kkm_last_timestamp [20:38:00]Write 4 bytes [20:38:00]NVStorageSaveData done [20:38:00]ExternCall_PrintAddStr [20:38:00]wPrintStart [20:38:00]Write to MH i2c: 01 00 00 0E 11 1F [20:38:00]Write i2c OK [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: 01 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: 01 07 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 FF 0F 34 [20:38:00]RasterBufferAndPrint [20:38:00]line Счет N : (1)1694750 [20:38:00]line ИНН: 02508201610067 [20:38:00]line Контрольно-Кассовый Чек [20:38:00]line ПРОДАЖА [20:38:00]line ТРК (МРК, ГНК) : 11 [20:38:00]line Товар: 2710194210 [20:38:00]line ДТ-К-2 [20:38:00]line 5.490 * 72.90 [20:38:00]line = 400.22 [20:38:00]line НДС 12% НСП 1% [20:38:00]line > о реализуемом товаре [20:38:00]line ОКРУГЛЕНИЕ: -0.22 [20:38:00]line ИТОГО: 400.00 [20:38:00]line Внесено: 400.00 [20:38:00]line СДАЧА: 0.00 [20:38:00]line НСП 1% : 3.54 [20:38:00]line НДС 12% : 42.50 [20:38:00]line Наличными: 400.00 [20:38:00]line Безнал.: 0.00 [20:38:00]line Место: АЗС № 144 "Партнер Нефть" [20:38:00]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [20:38:00]line СНО: Общий режим [20:38:00]line Чек 86 22.06.2024 20:38 [20:38:00]line Смена: 395 ФФД: 1.0 [20:38:00]line ЗНМ: 0300000170 [20:38:00]line РНМ: 0000000000095696 [20:38:00]line Версия ККМ: 001 [20:38:00]line ФМ: 0000000000875009 [20:38:00]line ФД: 76890 [20:38:00]line ФПД: 268810272246091 [20:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T203801&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76890&fm=268810272246091&tin=02508201610067®Number=0000000000095696&sum=40000 [20:38:00]OFD Sender: Processing packet 76890 [packets to send 351, broken 350] [20:38:00]ProducePacketName [20:38:00]name=ofd_packets/00076890 [20:38:00]OFD Sender: To server: pG, [20:38:00]CommunicateWithHost lk.salyk.kg:30040 [20:38:00]ConnectInit lk.salyk.kg [20:38:00]written 0, free lines is 4095 [20:38:00]Connected sock=10 [20:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 AF C9 04 01 A8 1A 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 32 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 29 36 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2C 01 00 35 04 06 00 F4 7B 44 CA 09 4B ED 90 1F 30 74 F4 51 37 [20:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 89 F2 47 00 6D AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5A 2C 01 00 F4 03 04 00 C2 DC 76 66 B6 04 01 00 00 89 D3 A9 81 D2 F9 0C E0 [20:38:00]CommunicateWithHost err = 0 [20:38:00]CheckOFDResponse [20:38:00]1017 (14) - 77093643461234 [20:38:00]1041 (16) - 0000000000875009 [20:38:00]1040 (4) - 76890 [20:38:00]1012 (4) - 22.06.2024 14:16 [20:38:00]1206 (1) - 0 [20:38:00]OFD Sender: Remove packet 76890 [20:38:00]ProducePacketName [20:38:00]name=ofd_packets/00076890 [20:38:00]NVStorageDeleteData [20:38:00]Write to MH i2c: 01 00 00 39 11 4A [20:38:00]Write i2c OK [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: 01 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: 01 07 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: 01 07 00 39 11 00 00 00 00 00 DD 0C 3A [20:38:00]RasterBufferAndPrint [20:38:00]line [20:38:00]line [20:38:00]line [20:38:00]line [20:38:00]line [20:38:00]written 0, free lines is 3299 [20:38:00]MH_Cut [20:38:00]Write to MH i2c: D1 01 00 40 11 01 23 [20:38:00]Write i2c OK [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: D1 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: D1 01 00 [20:38:00]MH_I2C_Read... [20:38:00]Read from MH i2c: D1 01 00 40 11 00 22 [20:38:00]Write to MH i2c: 01 00 00 41 11 52 [20:38:00]Write i2c OK [20:38:00]MH_I2C_Read... [20:38:01]OFD Sender: No OFD packet to send [20:38:01]*** Cut start [20:38:01]*** Partial cut [20:38:01]*** CUTSNS_PIN = 1 [20:38:01]*** CUTSNS_PIN = 0 [20:38:01]*** Brake cut motor [20:38:02]Read from MH i2c: 01 [20:38:02]MH_I2C_Read... [20:38:02]*** Stop cut motor [20:38:02]*** Cut end [20:38:02]Read from MH i2c: 01 07 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: 01 07 00 41 11 00 00 00 00 00 FF 0F 67 [20:38:02]process_action close_receipt done [20:38:02]requested_data is exist [20:38:02]produce_requested_data [20:38:02]requested_item fm.sn is exist - process it [20:38:02]wFMCommunicate request_size=4 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 11 00 00 [20:38:02]Write to MH i2c: E2 08 00 42 11 80 11 00 00 00 00 00 00 CD [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 17 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 17 00 42 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 1D [20:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:38:02]wFMCommunicate OK [20:38:02]requested_item fd.num is exist - process it [20:38:02]SAM_PROTO_GetFieldsCounters [20:38:02]wFMCommunicate request_size=4 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 13 00 00 [20:38:02]Write to MH i2c: E2 08 00 43 11 80 13 00 00 00 00 00 00 D0 [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 62 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 62 00 43 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [20:38: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5A 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:02]wFMCommunicate OK [20:38:02]SAM_PROTO_GetFieldsCounters done [20:38:02]requested_item shift.num is exist - process it [20:38:02]requested_item shift.opened is exist - process it [20:38:02]req_shift_opened [20:38:02]FM_GetShiftState [20:38:02]SAM_PROTO_GetShiftState [20:38:02]wFMCommunicate request_size=4 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 13 01 00 [20:38:02]Write to MH i2c: E2 08 00 44 11 80 13 01 00 00 00 00 00 D2 [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 0E 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 0E 00 44 11 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 C8 [20:38:02]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [20:38:02]wFMCommunicate OK [20:38:02]SAM_PROTO_GetShiftState done [20:38:02]FM_GetShiftState done [20:38:02]req_shift_opened done [20:38:02]requested_item shift.open_date is exist - process it [20:38:02]req_shift_open_date [20:38:02]req_shift_open_date done [20:38:02]produce_requested_data done [20:38:02]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76890,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [20:38:02]process_action_free close_receipt [20:38:02]json_value_free [20:38:02]json_value_free done [20:38:02]process_json_proto returns [20:38:02]Send response to host [20:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76890,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [20:38:02]free response buf [20:38:02]execute_script done [20:38:02]execute_script returns [20:38:02]free content buf [20:38:02]Sock 8.Close socket [20:38:02]Sock 8.Thread stoped [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:14]accept exits with 9 [20:52:14]New connection [20:52:14]New thread 3067219300 created [20:52:14]Thread 3067362660 joined [20:52:14]Waiting for new connection... [20:52:14] Sock 9.Parse request [20:52:14]Sock 9.Check first char [20:52:14]Sock 9.First char is OK [20:52:14]request: POST /json_proto HTTP/1.0 [20:52:14]Method: POST [20:52:14]URL: /json_proto [20:52:14]Method is POST - this is cgi request [20:52:14]url: /json_proto [20:52:14]query_string will be loaded in cgi processing [20:52:14]execute_cgi json_proto POST (null) [20:52:14]execute_cgi path=json_proto method=POST [20:52:14]POST find Content-Length [20:52:14]Host: 172.17.39.195:8080 [20:52:14]Content-Length: 798 [20:52:14]Content-Type: application/json [20:52:14] [20:52:14]POST finish read [20:52:14]Found Content-Length = 798 [20:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:14]execute_script... [20:52: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)1694754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:14]POST & json_proto [20:52:14]process_json_proto [20:52:14]json parsed OK: [20:52:14]protocol is kg_v1.0 [20:52:14]action value=close_receipt [20:52:14]process_action close_receipt [20:52:14]cmd_close_receipt [20:52:14]MH_GetDate [20:52:14]Write to MH i2c: F0 00 00 45 11 45 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: F0 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: F0 09 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: F0 09 00 45 11 00 81 39 77 66 99 81 91 64 F4 [20:52:14]GetLastDocTimeStamp 1719088681 [20:52:14]current date 1719089537 [20:52:14]FM_GetShiftState [20:52:14]SAM_PROTO_GetShiftState [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 13 01 00 [20:52:14]Write to MH i2c: E2 08 00 46 11 80 13 01 00 00 00 00 00 D4 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0E 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0E 00 46 11 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 CA [20:52:15]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [20:52:15]wFMCommunicate OK [20:52:15]SAM_PROTO_GetShiftState done [20:52:15]FM_GetShiftState done [20:52:15]opened in 1719016435 [20:52:15]opened+sec_in_day 1719102835 [20:52:15]quantity*price = 50009 [20:52:15]sum+1 = 50010 [20:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 87 22.06.2024 20:52 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875009 ФД: 76891 ФПД: 33357000268166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T205217&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76891&fm=33357000268166&tin=02508201610067®Number=0000000000095696&sum=50009 [20:52:16]StoreToDocumentArchive [20:52:16]shift 395 fd 76891 [20:52:16]save to /storage/0395/doc_00076891 [20:52:16]save last doc name /storage/0395/doc_00076891 to /storage/kkm_last_doc_name [20:52:16]save OK [20:52:16]Clear old archive folders... [20:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:52:16]tlvbuf is 008E5C80 [20:52:16]SAM_PROTO_ClearQueue [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 09 00 00 [20:52:16]Write to MH i2c: E2 08 00 53 11 80 09 00 00 00 00 00 00 D6 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 53 11 00 90 00 D8 [20:52:16]RAPDU: 90 00 [20:52:16]wFMCommunicate OK [20:52:16]SAM_PROTO_ClearQueue done [20:52:16]KKMCreateOFDPacket [20:52:16]OFDProtocolAddRootSTLVToBuf [20:52:16]FM_MakeSignedData [20:52:16]FM_MakeSignedData [20:52:16]SAM_PROTO_SignData [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 0D 01 02 [20:52:16]Write to MH i2c: E2 08 00 54 11 80 0D 01 02 00 00 00 00 DE [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 54 11 00 90 00 D9 [20:52:16]RAPDU: 90 00 [20:52:16]wFMCommunicate OK [20:52:16]wFMCommunicate request_size=255 [20:52:16]MH_SAM_APDU [20:52:16]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 32 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 81 39 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5B 2C 01 00 35 04 06 00 1E 56 88 26 [20:52:16]Write to MH i2c: E2 02 01 55 11 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 32 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 81 39 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5B 2C 01 00 35 04 06 00 1E 56 88 26 00 00 C2 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 55 11 00 90 00 DA [20:52:16]RAPDU: 90 00 [20:52:16]wFMCommunicate OK [20:52:16]wFMCommunicate request_size=7 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 0D 02 02 02 D9 86 [20:52:16]Write to MH i2c: E2 0A 00 56 11 80 0D 02 02 02 00 D9 86 00 00 44 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [20:52:16]RAPDU: 90 00 [20:52:16]wFMCommunicate OK [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 0D 03 02 [20:52:16]Write to MH i2c: E2 08 00 57 11 80 0D 03 02 00 00 00 00 E3 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 0B 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 0B 00 57 11 00 DE AE 15 96 1B EB 89 56 90 00 00 [20:52:16]RAPDU: DE AE 15 96 1B EB 89 56 90 00 [20:52:16]wFMCommunicate OK [20:52:16]SAM_PROTO_SignData done [20:52:16]FM_MakeSignedData done [20:52:16]CreateOFDProtocolMessage [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 11 00 00 [20:52:16]Write to MH i2c: E2 08 00 58 11 80 11 00 00 00 00 00 00 E3 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 17 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 17 00 58 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 33 [20:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:52:16]wFMCommunicate OK [20:52:16]CreateOFDProtocolMessage done [20:52:16]OFDSenderStorePacket 76891 [20:52:16]StoreOFDPacket docnum=76891 [20:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 F5 C9 04 01 C7 60 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 32 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 81 39 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5B 2C 01 00 35 04 06 00 1E 56 88 26 D9 86 DE AE 15 96 1B EB 89 56 [20:52:16]CheckFolder [20:52:16]dirname=/storage/ofd_packets [20:52:16]CheckFolder done [20:52:16]ProducePacketName [20:52:16]name=ofd_packets/00076891 [20:52:16]NVStorageSaveData ofd_packets/00076891 [20:52:16]File name is /storage/ofd_packets/00076891 [20:52:16]Write 298 bytes [20:52:16]NVStorageSaveData done [20:52:16]OFDSenderStorePacket done [20:52:16]KKMCreateOFDPacket done [20:52:16]NVStorageSaveData kkm_last_timestamp [20:52:16]File name is /storage/kkm_last_timestamp [20:52:16]Write 4 bytes [20:52:16]NVStorageSaveData done [20:52:16]ExternCall_PrintAddStr [20:52:16]wPrintStart [20:52:16]Write to MH i2c: 01 00 00 59 11 6A [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: 01 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: 01 07 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: 01 07 00 59 11 00 00 00 00 00 FF 0F 7F [20:52:16]RasterBufferAndPrint [20:52:16]line Счет N : (1)1694754 [20:52:16]line ИНН: 02508201610067 [20:52:16]line Контрольно-Кассовый Чек [20:52:16]line ПРОДАЖА [20:52:16]line ТРК (МРК, ГНК) : 21 [20:52:16]line Товар: 2710194210 [20:52:16]line ДТ-К-2 [20:52:16]line 6.860 * 72.90 [20:52:16]line = 500.09 [20:52:16]line НДС 12% НСП 1% [20:52:16]line > о реализуемом товаре [20:52:16]line ИТОГО: 500.09 [20:52:16]line НСП 1% : 4.43 [20:52:16]line НДС 12% : 53.11 [20:52:16]line Наличными: 0.00 [20:52:16]line Безнал.: 500.09 [20:52:16]line Место: АЗС № 144 "Партнер Нефть" [20:52:16]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [20:52:16]line СНО: Общий режим [20:52:16]line Чек 87 22.06.2024 20:52 [20:52:16]line Смена: 395 ФФД: 1.0 [20:52:16]line ЗНМ: 0300000170 [20:52:16]line РНМ: 0000000000095696 [20:52:16]line Версия ККМ: 001 [20:52:16]line Платежная система: O! деньги [20:52:16]line ФМ: 0000000000875009 [20:52:16]line ФД: 76891 [20:52:16]line ФПД: 33357000268166 [20:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T205217&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76891&fm=33357000268166&tin=02508201610067®Number=0000000000095696&sum=50009 [20:52:16]written 0, free lines is 4095 [20:52:16]OFD Sender: Processing packet 76891 [packets to send 351, broken 350] [20:52:16]ProducePacketName [20:52:16]name=ofd_packets/00076891 [20:52:16]OFD Sender: To server: pG, [20:52:16]CommunicateWithHost lk.salyk.kg:30040 [20:52:16]ConnectInit lk.salyk.kg [20:52:16]Connected sock=10 [20:52:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0C 01 00 00 F5 C9 04 01 C7 60 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 32 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 81 39 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5B 2C 01 00 35 04 06 00 1E 56 88 26 D9 86 DE AE 15 96 1B EB 89 56 [20:52:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 3A 30 47 00 EF 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 35 30 30 39 10 04 04 00 5B 2C 01 00 F4 03 04 00 1A E0 76 66 B6 04 01 00 00 69 DE AF C8 1B F3 06 30 [20:52:17]CommunicateWithHost err = 0 [20:52:17]CheckOFDResponse [20:52:17]1017 (14) - 77093643461234 [20:52:17]1041 (16) - 0000000000875009 [20:52:17]1040 (4) - 76891 [20:52:17]1012 (4) - 22.06.2024 14:30 [20:52:17]1206 (1) - 0 [20:52:17]OFD Sender: Remove packet 76891 [20:52:17]ProducePacketName [20:52:17]name=ofd_packets/00076891 [20:52:17]NVStorageDeleteData [20:52:17]Write to MH i2c: 01 00 00 83 11 94 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 83 11 00 00 00 00 00 DE 0C 85 [20:52:17]RasterBufferAndPrint [20:52:17]line [20:52:17]line [20:52:17]line [20:52:17]line [20:52:17]line [20:52:17]written 0, free lines is 3300 [20:52:17]MH_Cut [20:52:17]Write to MH i2c: D1 01 00 8A 11 01 6D [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: D1 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: D1 01 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: D1 01 00 8A 11 00 6C [20:52:17]Write to MH i2c: 01 00 00 8B 11 9C [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]OFD Sender: No OFD packet to send [20:52:17]*** Cut start [20:52:17]*** Partial cut [20:52:17]*** CUTSNS_PIN = 1 [20:52:17]*** CUTSNS_PIN = 0 [20:52:18]*** Brake cut motor [20:52:18]Read from MH i2c: 01 [20:52:18]MH_I2C_Read... [20:52:18]*** Stop cut motor [20:52:18]*** Cut end [20:52:18]Read from MH i2c: 01 07 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: 01 07 00 8B 11 00 00 00 00 00 FF 0F B1 [20:52:18]process_action close_receipt done [20:52:18]requested_data is exist [20:52:18]produce_requested_data [20:52:18]requested_item fm.sn is exist - process it [20:52:18]wFMCommunicate request_size=4 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 11 00 00 [20:52:18]Write to MH i2c: E2 08 00 8C 11 80 11 00 00 00 00 00 00 17 [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 17 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 17 00 8C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 67 [20:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [20:52:18]wFMCommunicate OK [20:52:18]requested_item fd.num is exist - process it [20:52:18]SAM_PROTO_GetFieldsCounters [20:52:18]wFMCommunicate request_size=4 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 13 00 00 [20:52:18]Write to MH i2c: E2 08 00 8D 11 80 13 00 00 00 00 00 00 1A [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 62 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 62 00 8D 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [20:52:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5B 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:18]wFMCommunicate OK [20:52:18]SAM_PROTO_GetFieldsCounters done [20:52:18]requested_item shift.num is exist - process it [20:52:18]requested_item shift.opened is exist - process it [20:52:18]req_shift_opened [20:52:18]FM_GetShiftState [20:52:18]SAM_PROTO_GetShiftState [20:52:18]wFMCommunicate request_size=4 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 13 01 00 [20:52:18]Write to MH i2c: E2 08 00 8E 11 80 13 01 00 00 00 00 00 1C [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:18]Read from MH i2c: E2 0E 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 0E 00 8E 11 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 12 [20:52:18]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [20:52:18]wFMCommunicate OK [20:52:18]SAM_PROTO_GetShiftState done [20:52:18]FM_GetShiftState done [20:52:18]req_shift_opened done [20:52:18]requested_item shift.open_date is exist - process it [20:52:18]req_shift_open_date [20:52:18]req_shift_open_date done [20:52:18]produce_requested_data done [20:52:18]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76891,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [20:52:18]process_action_free close_receipt [20:52:18]json_value_free [20:52:18]json_value_free done [20:52:18]process_json_proto returns [20:52:18]Send response to host [20:52:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76891,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [20:52:18]free response buf [20:52:18]execute_script done [20:52:18]execute_script returns [20:52:18]free content buf [20:52:18]Sock 9.Close socket [20:52:18]Sock 9.Thread stoped [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:40]accept exits with 8 [21:31:40]New connection [21:31:40]New thread 3067362660 created [21:31:40]Thread 3067219300 joined [21:31:40]Waiting for new connection... [21:31:40] Sock 8.Parse request [21:31:40]Sock 8.Check first char [21:31:40]Sock 8.First char is OK [21:31:40]request: POST /json_proto HTTP/1.0 [21:31:40]Method: POST [21:31:40]URL: /json_proto [21:31:40]Method is POST - this is cgi request [21:31:40]url: /json_proto [21:31:40]query_string will be loaded in cgi processing [21:31:40]execute_cgi json_proto POST (null) [21:31:40]execute_cgi path=json_proto method=POST [21:31:40]POST find Content-Length [21:31:40]Host: 172.17.39.195:8080 [21:31:40]Content-Length: 844 [21:31:40]Content-Type: application/json [21:31:40] [21:31:40]POST finish read [21:31:40]Found Content-Length = 844 [21:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:40]execute_script... [21:31:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1694770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:40]POST & json_proto [21:31:40]process_json_proto [21:31:40]json parsed OK: [21:31:40]protocol is kg_v1.0 [21:31:40]action value=close_receipt [21:31:40]process_action close_receipt [21:31:40]cmd_close_receipt [21:31:40]MH_GetDate [21:31:40]Write to MH i2c: F0 00 00 8F 11 8F [21:31:40]Write i2c OK [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: F0 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: F0 09 00 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: F0 09 00 8F 11 00 BF 42 77 66 99 81 91 64 85 [21:31:40]GetLastDocTimeStamp 1719089537 [21:31:40]current date 1719091903 [21:31:40]FM_GetShiftState [21:31:40]SAM_PROTO_GetShiftState [21:31:40]wFMCommunicate request_size=4 [21:31:40]MH_SAM_APDU [21:31:40]CAPDU: 80 13 01 00 [21:31:40]Write to MH i2c: E2 08 00 90 11 80 13 01 00 00 00 00 00 1E [21:31:40]Write i2c OK [21:31:40]MH_I2C_Read... [21:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:40]Read from MH i2c: E2 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: E2 0E 00 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: E2 0E 00 90 11 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 14 [21:31:40]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [21:31:40]wFMCommunicate OK [21:31:40]SAM_PROTO_GetShiftState done [21:31:40]FM_GetShiftState done [21:31:40]opened in 1719016435 [21:31:40]opened+sec_in_day 1719102835 [21:31:40]quantity*price = 100064 [21:31:40]sum+1 = 100066 [21:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 88 22.06.2024 21:31 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875009 ФД: 76892 ФПД: 10058877032727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T213143&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76892&fm=10058877032727&tin=02508201610067®Number=0000000000095696&sum=100065 [21:31:42]StoreToDocumentArchive [21:31:42]shift 395 fd 76892 [21:31:42]save to /storage/0395/doc_00076892 [21:31:42]save last doc name /storage/0395/doc_00076892 to /storage/kkm_last_doc_name [21:31:42]save OK [21:31:42]Clear old archive folders... [21:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:42]tlvbuf is 00980340 [21:31:42]SAM_PROTO_ClearQueue [21:31:42]wFMCommunicate request_size=4 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 09 00 00 [21:31:42]Write to MH i2c: E2 08 00 9D 11 80 09 00 00 00 00 00 00 20 [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 03 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 03 00 9D 11 00 90 00 22 [21:31:42]RAPDU: 90 00 [21:31:42]wFMCommunicate OK [21:31:42]SAM_PROTO_ClearQueue done [21:31:42]KKMCreateOFDPacket [21:31:42]OFDProtocolAddRootSTLVToBuf [21:31:42]FM_MakeSignedData [21:31:42]FM_MakeSignedData [21:31:42]SAM_PROTO_SignData [21:31:42]wFMCommunicate request_size=4 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 0D 01 02 [21:31:42]Write to MH i2c: E2 08 00 9E 11 80 0D 01 02 00 00 00 00 28 [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 03 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 03 00 9E 11 00 90 00 23 [21:31:42]RAPDU: 90 00 [21:31:42]wFMCommunicate OK [21:31:42]wFMCommunicate request_size=255 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BF 42 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2C 01 00 35 04 06 00 09 [21:31:42]Write to MH i2c: E2 02 01 9F 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BF 42 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2C 01 00 35 04 06 00 09 00 00 09 [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]OFD Sender: No OFD packet to send [21:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 03 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 03 00 9F 11 00 90 00 24 [21:31:42]RAPDU: 90 00 [21:31:42]wFMCommunicate OK [21:31:42]wFMCommunicate request_size=10 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 0D 02 02 05 26 03 CA D9 17 [21:31:42]Write to MH i2c: E2 0D 00 A0 11 80 0D 02 02 05 00 26 03 CA D9 17 00 00 18 [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 03 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 03 00 A0 11 00 90 00 25 [21:31:42]RAPDU: 90 00 [21:31:42]wFMCommunicate OK [21:31:42]wFMCommunicate request_size=4 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 0D 03 02 [21:31:42]Write to MH i2c: E2 08 00 A1 11 80 0D 03 02 00 00 00 00 2D [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 0B 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 0B 00 A1 11 00 6E 63 41 F3 29 A6 E2 0F 90 00 F3 [21:31:42]RAPDU: 6E 63 41 F3 29 A6 E2 0F 90 00 [21:31:42]wFMCommunicate OK [21:31:42]SAM_PROTO_SignData done [21:31:42]FM_MakeSignedData done [21:31:42]CreateOFDProtocolMessage [21:31:42]wFMCommunicate request_size=4 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 11 00 00 [21:31:42]Write to MH i2c: E2 08 00 A2 11 80 11 00 00 00 00 00 00 2D [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 17 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 17 00 A2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 7D [21:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:31:42]wFMCommunicate OK [21:31:42]CreateOFDProtocolMessage done [21:31:42]OFDSenderStorePacket 76892 [21:31:42]StoreOFDPacket docnum=76892 [21:31:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 1C 75 07 01 CE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BF 42 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2C 01 00 35 04 06 00 09 26 03 CA D9 17 6E 63 41 F3 29 A6 E2 0F [21:31:42]CheckFolder [21:31:42]dirname=/storage/ofd_packets [21:31:42]CheckFolder done [21:31:42]ProducePacketName [21:31:42]name=ofd_packets/00076892 [21:31:42]NVStorageSaveData ofd_packets/00076892 [21:31:42]File name is /storage/ofd_packets/00076892 [21:31:42]Write 301 bytes [21:31:42]NVStorageSaveData done [21:31:42]OFDSenderStorePacket done [21:31:42]KKMCreateOFDPacket done [21:31:42]NVStorageSaveData kkm_last_timestamp [21:31:42]File name is /storage/kkm_last_timestamp [21:31:42]Write 4 bytes [21:31:42]NVStorageSaveData done [21:31:42]ExternCall_PrintAddStr [21:31:42]wPrintStart [21:31:42]Write to MH i2c: 01 00 00 A3 11 B4 [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: 01 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: 01 07 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: 01 07 00 A3 11 00 00 00 00 00 FF 0F C9 [21:31:42]RasterBufferAndPrint [21:31:42]line Счет N : (1)1694770 [21:31:42]line ИНН: 02508201610067 [21:31:42]line Контрольно-Кассовый Чек [21:31:42]line ПРОДАЖА [21:31:42]line ТРК (МРК, ГНК) : 33 [21:31:42]line Товар: 2710124130 [21:31:42]line Аи-92-К-5 [21:31:42]line 15.070 * 66.40 [21:31:42]line = 1000.65 [21:31:42]line НДС 12% НСП 1% [21:31:42]line > о реализуемом товаре [21:31:42]line ИТОГО: 1000.65 [21:31:42]line НСП 1% : 8.85 [21:31:42]line НДС 12% : 106.26 [21:31:42]line Наличными: 0.00 [21:31:42]line Безнал.: 1000.65 [21:31:42]line Место: АЗС № 144 "Партнер Нефть" [21:31:42]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [21:31:42]line СНО: Общий режим [21:31:42]line Чек 88 22.06.2024 21:31 [21:31:42]line Смена: 395 ФФД: 1.0 [21:31:42]line ЗНМ: 0300000170 [21:31:42]line РНМ: 0000000000095696 [21:31:42]line Версия ККМ: 001 [21:31:42]line Платежная система: АКБ Кыргызстан [21:31:42]line ФМ: 0000000000875009 [21:31:42]line ФД: 76892 [21:31:42]line ФПД: 10058877032727 [21:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T213143&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76892&fm=10058877032727&tin=02508201610067®Number=0000000000095696&sum=100065 [21:31:42]written 0, free lines is 4095 [21:31:42]OFD Sender: Processing packet 76892 [packets to send 351, broken 350] [21:31:42]ProducePacketName [21:31:42]name=ofd_packets/00076892 [21:31:42]OFD Sender: To server: pG, [21:31:42]CommunicateWithHost lk.salyk.kg:30040 [21:31:42]ConnectInit lk.salyk.kg [21:31:42]Connected sock=10 [21:31:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 01 00 00 1C 75 07 01 CE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BF 42 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2C 01 00 35 04 06 00 09 26 03 CA D9 17 6E 63 41 F3 29 A6 E2 0F [21:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 A1 98 47 00 F1 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5C 2C 01 00 F4 03 04 00 58 E9 76 66 B6 04 01 00 00 52 07 F5 CA 19 E9 23 95 [21:31:42]CommunicateWithHost err = 0 [21:31:42]CheckOFDResponse [21:31:42]1017 (14) - 77093643461234 [21:31:42]1041 (16) - 0000000000875009 [21:31:42]1040 (4) - 76892 [21:31:42]1012 (4) - 22.06.2024 15:10 [21:31:42]1206 (1) - 0 [21:31:42]OFD Sender: Remove packet 76892 [21:31:42]ProducePacketName [21:31:42]name=ofd_packets/00076892 [21:31:42]NVStorageDeleteData [21:31:43]Write to MH i2c: 01 00 00 CD 11 DE [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: 01 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: 01 07 00 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: 01 07 00 CD 11 00 00 00 00 00 EF 0C E0 [21:31:43]RasterBufferAndPrint [21:31:43]line [21:31:43]line [21:31:43]line [21:31:43]line [21:31:43]line [21:31:43]written 0, free lines is 3318 [21:31:43]MH_Cut [21:31:43]Write to MH i2c: D1 01 00 D4 11 01 B7 [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: D1 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: D1 01 00 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: D1 01 00 D4 11 00 B6 [21:31:43]Write to MH i2c: 01 00 00 D5 11 E6 [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:43]OFD Sender: No OFD packet to send [21:31:43]*** Cut start [21:31:43]*** Partial cut [21:31:43]*** CUTSNS_PIN = 1 [21:31:43]*** CUTSNS_PIN = 0 [21:31:44]*** Brake cut motor [21:31:44]Read from MH i2c: 01 [21:31:44]MH_I2C_Read... [21:31:44]*** Stop cut motor [21:31:44]*** Cut end [21:31:44]Read from MH i2c: 01 07 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: 01 07 00 D5 11 00 00 00 00 00 FF 0F FB [21:31:44]process_action close_receipt done [21:31:44]requested_data is exist [21:31:44]produce_requested_data [21:31:44]requested_item fm.sn is exist - process it [21:31:44]wFMCommunicate request_size=4 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 11 00 00 [21:31:44]Write to MH i2c: E2 08 00 D6 11 80 11 00 00 00 00 00 00 61 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 17 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 17 00 D6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B1 [21:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:31:44]wFMCommunicate OK [21:31:44]requested_item fd.num is exist - process it [21:31:44]SAM_PROTO_GetFieldsCounters [21:31:44]wFMCommunicate request_size=4 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 13 00 00 [21:31:44]Write to MH i2c: E2 08 00 D7 11 80 13 00 00 00 00 00 00 64 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 62 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 62 00 D7 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [21:31:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5C 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:44]wFMCommunicate OK [21:31:44]SAM_PROTO_GetFieldsCounters done [21:31:44]requested_item shift.num is exist - process it [21:31:44]requested_item shift.opened is exist - process it [21:31:44]req_shift_opened [21:31:44]FM_GetShiftState [21:31:44]SAM_PROTO_GetShiftState [21:31:44]wFMCommunicate request_size=4 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 13 01 00 [21:31:44]Write to MH i2c: E2 08 00 D8 11 80 13 01 00 00 00 00 00 66 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 0E 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 0E 00 D8 11 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 5C [21:31:44]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [21:31:44]wFMCommunicate OK [21:31:44]SAM_PROTO_GetShiftState done [21:31:44]FM_GetShiftState done [21:31:44]req_shift_opened done [21:31:44]requested_item shift.open_date is exist - process it [21:31:44]req_shift_open_date [21:31:44]req_shift_open_date done [21:31:44]produce_requested_data done [21:31:44]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76892,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [21:31:44]process_action_free close_receipt [21:31:44]json_value_free [21:31:44]json_value_free done [21:31:44]process_json_proto returns [21:31:44]Send response to host [21:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76892,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [21:31:44]free response buf [21:31:44]execute_script done [21:31:44]execute_script returns [21:31:44]free content buf [21:31:44]Sock 8.Close socket [21:31:44]Sock 8.Thread stoped [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:13]accept exits with 9 [21:37:13]New connection [21:37:13]New thread 3067219300 created [21:37:13]Thread 3067362660 joined [21:37:13]Waiting for new connection... [21:37:13] Sock 9.Parse request [21:37:13]Sock 9.Check first char [21:37:13]Sock 9.First char is OK [21:37:13]request: POST /json_proto HTTP/1.0 [21:37:13]Method: POST [21:37:13]URL: /json_proto [21:37:13]Method is POST - this is cgi request [21:37:13]url: /json_proto [21:37:13]query_string will be loaded in cgi processing [21:37:13]execute_cgi json_proto POST (null) [21:37:13]execute_cgi path=json_proto method=POST [21:37:13]POST find Content-Length [21:37:13]Host: 172.17.39.195:8080 [21:37:13]Content-Length: 623 [21:37:13]Content-Type: application/json [21:37:13] [21:37:13]POST finish read [21:37:13]Found Content-Length = 623 [21:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220948", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:13]execute_script... [21:37:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220948", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:13]POST & json_proto [21:37:13]process_json_proto [21:37:13]json parsed OK: [21:37:13]protocol is kg_v1.0 [21:37:13]action value=close_receipt [21:37:13]process_action close_receipt [21:37:13]cmd_close_receipt [21:37:13]MH_GetDate [21:37:13]Write to MH i2c: F0 00 00 D9 11 D9 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: F0 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: F0 09 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: F0 09 00 D9 11 00 0C 44 77 66 99 81 91 64 1E [21:37:13]GetLastDocTimeStamp 1719091903 [21:37:13]current date 1719092236 [21:37:13]FM_GetShiftState [21:37:13]SAM_PROTO_GetShiftState [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 13 01 00 [21:37:13]Write to MH i2c: E2 08 00 DA 11 80 13 01 00 00 00 00 00 68 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0E 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0E 00 DA 11 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 5E [21:37:13]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [21:37:13]wFMCommunicate OK [21:37:13]SAM_PROTO_GetShiftState done [21:37:13]FM_GetShiftState done [21:37:13]opened in 1719016435 [21:37:13]opened+sec_in_day 1719102835 [21:37:13]quantity*price = 26000 [21:37:13]sum+1 = 26001 [21:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 89 22.06.2024 21:37 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76893 ФПД: 111302860229096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T213716&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76893&fm=111302860229096&tin=02508201610067®Number=0000000000095696&sum=26000 0 [21:37:14]StoreToDocumentArchive [21:37:14]shift 395 fd 76893 [21:37:14]save to /storage/0395/doc_00076893 [21:37:14]save last doc name /storage/0395/doc_00076893 to /storage/kkm_last_doc_name [21:37:14]save OK [21:37:14]Clear old archive folders... [21:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:37:14]tlvbuf is 008E52F0 [21:37:14]SAM_PROTO_ClearQueue [21:37:14]wFMCommunicate request_size=4 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 09 00 00 [21:37:14]Write to MH i2c: E2 08 00 E7 11 80 09 00 00 00 00 00 00 6A [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 E7 11 00 90 00 6C [21:37:14]RAPDU: 90 00 [21:37:14]wFMCommunicate OK [21:37:14]SAM_PROTO_ClearQueue done [21:37:14]KKMCreateOFDPacket [21:37:14]OFDProtocolAddRootSTLVToBuf [21:37:14]FM_MakeSignedData [21:37:14]FM_MakeSignedData [21:37:14]SAM_PROTO_SignData [21:37:14]wFMCommunicate request_size=4 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 0D 01 02 [21:37:14]Write to MH i2c: E2 08 00 E8 11 80 0D 01 02 00 00 00 00 72 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 E8 11 00 90 00 6D [21:37:14]RAPDU: 90 00 [21:37:14]wFMCommunicate OK [21:37:14]wFMCommunicate request_size=255 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0C 44 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 [21:37:14]Write to MH i2c: E2 02 01 E9 11 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0C 44 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 00 00 12 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 E9 11 00 90 00 6E [21:37:14]RAPDU: 90 00 [21:37:14]wFMCommunicate OK [21:37:14]wFMCommunicate request_size=34 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2C 01 00 35 04 06 00 65 3A B7 72 49 E8 [21:37:14]Write to MH i2c: E2 25 00 EA 11 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2C 01 00 35 04 06 00 65 3A B7 72 49 E8 00 00 B6 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 03 00 EA 11 00 90 00 6F [21:37:14]RAPDU: 90 00 [21:37:14]wFMCommunicate OK [21:37:14]wFMCommunicate request_size=4 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 0D 03 02 [21:37:14]Write to MH i2c: E2 08 00 EB 11 80 0D 03 02 00 00 00 00 77 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 0B 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 0B 00 EB 11 00 19 25 30 F3 4B C1 71 31 90 00 87 [21:37:14]RAPDU: 19 25 30 F3 4B C1 71 31 90 00 [21:37:14]wFMCommunicate OK [21:37:14]SAM_PROTO_SignData done [21:37:14]FM_MakeSignedData done [21:37:14]CreateOFDProtocolMessage [21:37:14]wFMCommunicate request_size=4 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 11 00 00 [21:37:14]Write to MH i2c: E2 08 00 EC 11 80 11 00 00 00 00 00 00 77 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 17 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 17 00 EC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C7 [21:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:37:14]wFMCommunicate OK [21:37:14]CreateOFDProtocolMessage done [21:37:14]OFDSenderStorePacket 76893 [21:37:14]StoreOFDPacket docnum=76893 [21:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 27 01 00 00 1A 13 1F 01 41 C6 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0C 44 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2C 01 00 35 04 06 00 65 3A B7 72 49 E8 19 25 30 F3 4B C1 71 31 [21:37:14]CheckFolder [21:37:14]dirname=/storage/ofd_packets [21:37:14]CheckFolder done [21:37:14]ProducePacketName [21:37:14]name=ofd_packets/00076893 [21:37:14]NVStorageSaveData ofd_packets/00076893 [21:37:14]File name is /storage/ofd_packets/00076893 [21:37:14]Write 325 bytes [21:37:14]NVStorageSaveData done [21:37:14]OFDSenderStorePacket done [21:37:14]KKMCreateOFDPacket done [21:37:14]NVStorageSaveData kkm_last_timestamp [21:37:14]File name is /storage/kkm_last_timestamp [21:37:14]Write 4 bytes [21:37:14]NVStorageSaveData done [21:37:14]ExternCall_PrintAddStr [21:37:14]wPrintStart [21:37:14]Write to MH i2c: 01 00 00 ED 11 FE [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 ED 11 00 00 00 00 00 FF 0F 13 [21:37:14]RasterBufferAndPrint [21:37:14]line Счет N : (3)220948 [21:37:14]line ИНН: 02508201610067 [21:37:14]line Контрольно-Кассовый Чек [21:37:14]line ПРОДАЖА [21:37:14]line Товар: 48741415 [21:37:14]line Сигареты LD Super Slims Violet [21:37:14]line 2.000 * 130.00 [21:37:14]line = 260.00 [21:37:14]line НДС 12% НСП 1% [21:37:14]line > о реализуемом товаре [21:37:14]line ИТОГО: 260.00 [21:37:14]line НСП 1% : 2.30 [21:37:14]line НДС 12% : 27.61 [21:37:14]line Наличными: 260.00 [21:37:14]line Безнал.: 0.00 [21:37:14]line Место: АЗС № 144 "Партнер Нефть" [21:37:14]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [21:37:14]line СНО: Общий режим [21:37:14]line Чек 89 22.06.2024 21:37 [21:37:14]line Смена: 395 ФФД: 1.0 [21:37:14]line ЗНМ: 0300000170 [21:37:14]line РНМ: 0000000000095696 [21:37:14]line Версия ККМ: 001 [21:37:14]line ФМ: 0000000000875009 [21:37:14]line ФД: 76893 [21:37:14]line ФПД: 111302860229096 [21:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T213716&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76893&fm=111302860229096&tin=02508201610067®Number=0000000000095696&sum=26000 [21:37:14]line 0 [21:37:14]OFD Sender: Processing packet 76893 [packets to send 351, broken 350] [21:37:14]ProducePacketName [21:37:14]name=ofd_packets/00076893 [21:37:14]OFD Sender: To server: pG, [21:37:14]CommunicateWithHost lk.salyk.kg:30040 [21:37:14]ConnectInit lk.salyk.kg [21:37:14]written 0, free lines is 4095 [21:37:14]Connected sock=10 [21:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 27 01 00 00 1A 13 1F 01 41 C6 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0C 44 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2C 01 00 35 04 06 00 65 3A B7 72 49 E8 19 25 30 F3 4B C1 71 31 [21:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 CC 1B 47 00 2C 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5D 2C 01 00 F4 03 04 00 A4 EA 76 66 B6 04 01 00 00 C2 3E 1F 78 2C F5 18 3E [21:37:15]CommunicateWithHost err = 0 [21:37:15]CheckOFDResponse [21:37:15]1017 (14) - 77093643461234 [21:37:15]1041 (16) - 0000000000875009 [21:37:15]1040 (4) - 76893 [21:37:15]1012 (4) - 22.06.2024 15:15 [21:37:15]1206 (1) - 0 [21:37:15]OFD Sender: Remove packet 76893 [21:37:15]ProducePacketName [21:37:15]name=ofd_packets/00076893 [21:37:15]NVStorageDeleteData [21:37:15]Write to MH i2c: 01 00 00 16 12 28 [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 07 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 07 00 16 12 00 00 00 00 00 EC 0C 27 [21:37:15]RasterBufferAndPrint [21:37:15]line [21:37:15]line [21:37:15]line [21:37:15]line [21:37:15]line [21:37:15]written 0, free lines is 3314 [21:37:15]MH_Cut [21:37:15]Write to MH i2c: D1 01 00 1D 12 01 01 [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: D1 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: D1 01 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: D1 01 00 1D 12 00 00 [21:37:15]Write to MH i2c: 01 00 00 1E 12 30 [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]OFD Sender: No OFD packet to send [21:37:15]*** Cut start [21:37:15]*** Partial cut [21:37:15]*** CUTSNS_PIN = 1 [21:37:16]*** CUTSNS_PIN = 0 [21:37:16]*** Brake cut motor [21:37:16]Read from MH i2c: 01 [21:37:16]MH_I2C_Read... [21:37:16]*** Stop cut motor [21:37:16]*** Cut end [21:37:16]Read from MH i2c: 01 07 00 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: 01 07 00 1E 12 00 00 00 00 00 FF 0F 45 [21:37:16]process_action close_receipt done [21:37:16]requested_data is exist [21:37:16]produce_requested_data [21:37:16]requested_item fm.sn is exist - process it [21:37:16]wFMCommunicate request_size=4 [21:37:16]MH_SAM_APDU [21:37:16]CAPDU: 80 11 00 00 [21:37:16]Write to MH i2c: E2 08 00 1F 12 80 11 00 00 00 00 00 00 AB [21:37:16]Write i2c OK [21:37:16]MH_I2C_Read... [21:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:16]Read from MH i2c: E2 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 17 00 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 17 00 1F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FB [21:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:37:16]wFMCommunicate OK [21:37:16]requested_item fd.num is exist - process it [21:37:16]SAM_PROTO_GetFieldsCounters [21:37:16]wFMCommunicate request_size=4 [21:37:16]MH_SAM_APDU [21:37:16]CAPDU: 80 13 00 00 [21:37:16]Write to MH i2c: E2 08 00 20 12 80 13 00 00 00 00 00 00 AE [21:37:16]Write i2c OK [21:37:16]MH_I2C_Read... [21:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:16]Read from MH i2c: E2 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 62 00 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 62 00 20 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [21:37: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:16]wFMCommunicate OK [21:37:16]SAM_PROTO_GetFieldsCounters done [21:37:16]requested_item shift.num is exist - process it [21:37:16]requested_item shift.opened is exist - process it [21:37:16]req_shift_opened [21:37:16]FM_GetShiftState [21:37:16]SAM_PROTO_GetShiftState [21:37:16]wFMCommunicate request_size=4 [21:37:16]MH_SAM_APDU [21:37:16]CAPDU: 80 13 01 00 [21:37:16]Write to MH i2c: E2 08 00 21 12 80 13 01 00 00 00 00 00 B0 [21:37:16]Write i2c OK [21:37:16]MH_I2C_Read... [21:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:16]Read from MH i2c: E2 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 0E 00 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 0E 00 21 12 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 A6 [21:37:16]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [21:37:16]wFMCommunicate OK [21:37:16]SAM_PROTO_GetShiftState done [21:37:16]FM_GetShiftState done [21:37:16]req_shift_opened done [21:37:16]requested_item shift.open_date is exist - process it [21:37:16]req_shift_open_date [21:37:16]req_shift_open_date done [21:37:16]produce_requested_data done [21:37:16]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76893,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [21:37:16]process_action_free close_receipt [21:37:16]json_value_free [21:37:16]json_value_free done [21:37:16]process_json_proto returns [21:37:16]Send response to host [21:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76893,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [21:37:16]free response buf [21:37:16]execute_script done [21:37:16]execute_script returns [21:37:16]free content buf [21:37:16]Sock 9.Close socket [21:37:16]Sock 9.Thread stoped [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724E0 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31835651+1687257497=1719093148 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 9C 47 77 66 99 81 91 64 CE [21:52:28]Current date/time: 22.06.2024 21:52 [21:52:28]FM_Init [21:52:28]wFMConnect [21:52:28]MH_SAM_On [21:52:28]Write to MH i2c: E0 00 00 08 00 E7 [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]*** iso7816_init finished! [21:52:28]*** atr: [21:52:28]*** 0F 3B D5 18 FF 81 91 FE [21:52:28]*** 1F C3 80 73 C8 21 10 0A [21:52:28]*** 00 00 00 00 00 00 00 00 [21:52:28]*** 00 00 00 00 00 00 00 00 [21:52:28]*** 00 00 00 00 00 00 00 00 [21:52:28]*** 00 00 00 00 00 00 00 00 [21:52:28]*** 00 00 00 00 00 00 00 00 [21:52:28]*** 00 00 00 00 00 00 00 00 [21:52:28]Read from MH i2c: E0 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E0 10 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [21:52:28]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:52:28]wFMCommunicate request_size=10 [21:52:28]MH_SAM_APDU [21:52:28]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:52:28]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:52:28]Read from MH i2c: E2 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 03 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:52:28]RAPDU: 90 00 [21:52:28]wFMCommunicate OK [21:52:28]wFMCommunicate request_size=4 [21:52:28]MH_SAM_APDU [21:52:28]CAPDU: 80 11 00 00 [21:52:28]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:28]Read from MH i2c: E2 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 17 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D4 [21:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:52:28]wFMCommunicate OK [21:52:28]Detected FM SN is 0000000000875009 [21:52:28]Stored FM SN is 0000000000875009 [21:52:28]wFMCommunicate request_size=9 [21:52:28]MH_SAM_APDU [21:52:28]CAPDU: 80 16 00 00 04 FA 14 01 00 [21:52:28]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 14 01 00 00 00 A1 [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:52:28]Read from MH i2c: E2 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 03 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:52:28]RAPDU: 90 00 [21:52:28]wFMCommunicate OK [21:52:28]FM PIN OK [21:52:28]wFMCommunicate request_size=8 [21:52:28]MH_SAM_APDU [21:52:28]CAPDU: 80 14 04 00 03 02 00 01 [21:52:28]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:52:28]Read from MH i2c: E2 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 03 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:52:28]RAPDU: 90 00 [21:52:28]wFMCommunicate OK [21:52:28]wFMCommunicate request_size=13 [21:52:28]MH_SAM_APDU [21:52:28]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:52:28]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:52:28]Read from MH i2c: E2 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 03 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:52:28]RAPDU: 90 00 [21:52:28]wFMCommunicate OK [21:52:28]wFMCommunicate request_size=4 [21:52:28]MH_SAM_APDU [21:52:28]CAPDU: 80 11 00 00 [21:52:28]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:28]Read from MH i2c: E2 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 17 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D8 [21:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:52:28]wFMCommunicate OK [21:52:28]DocumentArchiveInit [21:52:28]Start Httpd... [21:52:28]Httpd thread 3067374948 created [21:52:28]Write to MH i2c: 01 00 00 0F 00 0F [21:52:28]Write i2c OK [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: 01 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: 01 07 00 [21:52:28]MH_I2C_Read... [21:52:28]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:52:28]MH Int Process started [21:52:28]Allocated Socket 7 [21:52:28]Bind OK [21:52:28]Listen OK [21:52:28]httpd running on port 8080 [21:52:28]Waiting for new connection... [21:52:28]OFD Sender: No OFD packet to send [21:52:31]accept exits with 8 [21:52:31]New connection [21:52:31]New thread 3067088228 created [21:52:31]Waiting for new connection... [21:52:31] Sock 8.Parse request [21:52:31]Sock 8.Check first char [21:52:31]Sock 8.First char is OK [21:52:31]request: POST /json_proto HTTP/1.0 [21:52:31]Method: POST [21:52:31]URL: /json_proto [21:52:31]Method is POST - this is cgi request [21:52:31]url: /json_proto [21:52:31]query_string will be loaded in cgi processing [21:52:31]execute_cgi json_proto POST (null) [21:52:31]execute_cgi path=json_proto method=POST [21:52:31]POST find Content-Length [21:52:31]Host: 172.17.39.195:8080 [21:52:31]Content-Length: 215 [21:52:31]Content-Type: application/json [21:52:31] [21:52:31]POST finish read [21:52:31]Found Content-Length = 215 [21:52: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" ] } } [21:52:31]execute_script... [21:52: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" ] } } [21:52:31]POST & json_proto [21:52:31]process_json_proto [21:52:31]json parsed OK: [21:52:31]protocol is kg_v1.0 [21:52:31]action value=get_value [21:52:31]process_action get_value [21:52:31]cmd_get_value [21:52:31]process_action get_value done [21:52:31]requested_data is exist [21:52:31]produce_requested_data [21:52:31]requested_item kkm.sn is exist - process it [21:52:31]requested_item kkm.ver is exist - process it [21:52:31]requested_item fm.sn is exist - process it [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 11 00 00 [21:52:31]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 17 00 [21:52:31]MH_I2C_Read... [21:52: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 35 30 30 39 90 00 DA [21:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [21:52:31]wFMCommunicate OK [21:52:31]requested_item fd.num is exist - process it [21:52:31]SAM_PROTO_GetFieldsCounters [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 13 00 00 [21:52:31]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 62 00 [21:52:31]MH_I2C_Read... [21:52:31]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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [21:52: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5D 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:31]wFMCommunicate OK [21:52:31]SAM_PROTO_GetFieldsCounters done [21:52:31]requested_item shift.num is exist - process it [21:52:31]requested_item shift.opened is exist - process it [21:52:31]req_shift_opened [21:52:31]FM_GetShiftState [21:52:31]SAM_PROTO_GetShiftState [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 13 01 00 [21:52:31]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 0E 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 85 [21:52:31]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [21:52:31]wFMCommunicate OK [21:52:31]SAM_PROTO_GetShiftState done [21:52:31]FM_GetShiftState done [21:52:31]req_shift_opened done [21:52:31]requested_item shift.open_date is exist - process it [21:52:31]req_shift_open_date [21:52:31]req_shift_open_date done [21:52:31]produce_requested_data done [21:52:31]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76893,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [21:52:31]process_action_free get_value [21:52:31]json_value_free [21:52:31]json_value_free done [21:52:31]process_json_proto returns [21:52:31]Send response to host [21:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76893,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [21:52:31]free response buf [21:52:31]execute_script done [21:52:31]execute_script returns [21:52:31]free content buf [21:52:31]Sock 8.Close socket [21:52:31]Sock 8.Thread stoped [21:52:31]accept exits with 5 [21:52:31]New connection [21:52:31]New thread 3066944868 created [21:52:31]Thread 3067088228 joined [21:52:31]Waiting for new connection... [21:52:31] Sock 5.Parse request [21:52:31]Sock 5.Check first char [21:52:31]Sock 5.First char is OK [21:52:31]request: POST /json_proto HTTP/1.0 [21:52:31]Method: POST [21:52:31]URL: /json_proto [21:52:31]Method is POST - this is cgi request [21:52:31]url: /json_proto [21:52:31]query_string will be loaded in cgi processing [21:52:31]execute_cgi json_proto POST (null) [21:52:31]execute_cgi path=json_proto method=POST [21:52:31]POST find Content-Length [21:52:31]Host: 172.17.39.195:8080 [21:52:31]Content-Length: 331 [21:52:31]Content-Type: application/json [21:52:31] [21:52:31]POST finish read [21:52:31]Found Content-Length = 331 [21:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:52:31]execute_script... [21:52:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:52:31]POST & json_proto [21:52:31]process_json_proto [21:52:31]json parsed OK: [21:52:31]protocol is kg_v1.0 [21:52:31]action value=get_value [21:52:31]process_action get_value [21:52:31]cmd_get_value [21:52:31]process_action get_value done [21:52:31]requested_data is exist [21:52:31]produce_requested_data [21:52:31]requested_item fm.sale.total is exist - process it [21:52:31]SAM_PROTO_GetFMData [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 13 03 00 [21:52:31]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 FD 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 47 29 01 00 69 04 A3 00 6F 04 04 00 08 26 01 00 B1 04 05 00 24 20 04 B1 01 70 04 05 00 84 29 89 6D 01 72 04 04 00 A0 F6 7A 43 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 95 C8 FD 2D 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 19 0D D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 6E [21:52:32]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 47 29 01 00 69 04 A3 00 6F 04 04 00 08 26 01 00 B1 04 05 00 24 20 04 B1 01 70 04 05 00 84 29 89 6D 01 72 04 04 00 A0 F6 7A 43 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 95 C8 FD 2D 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 19 0D D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [21:52:32]wFMCommunicate OK [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 17 00 00 [21:52:32]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 FD 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 21 [21:52:32]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [21:52:32]wFMCommunicate OK [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 17 00 00 [21:52:32]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 FD 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [21:52:32]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:52:32]wFMCommunicate OK [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 17 00 00 [21:52:32]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 FD 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [21:52:32]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:52:32]wFMCommunicate OK [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 17 00 00 [21:52:32]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 [21:52:33]MH_I2C_Read... [21:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [21:52:33]Read from MH i2c: E2 E3 00 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 E3 00 17 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 [21:52:33]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:52:33]wFMCommunicate OK [21:52:33]SAM_PROTO_GetFMData done [21:52:33]requested_item fm.sale_refund.total is exist - process it [21:52:33]requested_item fm.buy.total is exist - process it [21:52:33]requested_item shift.sale.total is exist - process it [21:52:33]SAM_PROTO_GetShiftData [21:52:33]wFMCommunicate request_size=4 [21:52:33]MH_SAM_APDU [21:52:33]CAPDU: 80 13 02 00 [21:52:33]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:52:33]Write i2c OK [21:52:33]MH_I2C_Read... [21:52:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:52:33]Read from MH i2c: E2 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 FD 00 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 59 00 00 00 69 04 9B 00 6F 04 04 00 59 00 00 00 B1 04 03 00 3A 59 52 70 04 03 00 98 06 2A 72 04 03 00 A2 52 28 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 D6 BE 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 85 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AD [21:52:33]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 59 00 00 00 69 04 9B 00 6F 04 04 00 59 00 00 00 B1 04 03 00 3A 59 52 70 04 03 00 98 06 2A 72 04 03 00 A2 52 28 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 D6 BE 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 85 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:52:33]wFMCommunicate OK [21:52:33]wFMCommunicate request_size=4 [21:52:33]MH_SAM_APDU [21:52:33]CAPDU: 80 17 00 00 [21:52:33]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:52:33]Write i2c OK [21:52:33]MH_I2C_Read... [21:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:52:33]Read from MH i2c: E2 [21:52:33]MH_I2C_Read... [21:52:33]Read from MH i2c: E2 FD 00 [21:52:33]MH_I2C_Read... [21:52:33]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 [21:52:33]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 [21:52:34]wFMCommunicate OK [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 17 00 00 [21:52:34]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:52:34]OFD Sender: No OFD packet to send [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 FD 00 [21:52:34]MH_I2C_Read... [21:52:34]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 [21:52: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 [21:52:34]wFMCommunicate OK [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 17 00 00 [21:52:34]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 FD 00 [21:52:34]MH_I2C_Read... [21:52:34]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 [21:52:34]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 [21:52:34]wFMCommunicate OK [21:52:34]wFMCommunicate request_size=4 [21:52:34]MH_SAM_APDU [21:52:34]CAPDU: 80 17 00 00 [21:52:34]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:52:34]Write i2c OK [21:52:34]MH_I2C_Read... [21:52:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [21:52:34]Read from MH i2c: E2 [21:52:34]MH_I2C_Read... [21:52:34]Read from MH i2c: E2 CB 00 [21:52:34]MH_I2C_Read... [21:52:34]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 [21:52:34]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 [21:52:34]wFMCommunicate OK [21:52:34]SAM_PROTO_GetShiftData done [21:52:34]requested_item shift.sale.total_cash is exist - process it [21:52:34]requested_item shift.sale_refund.total is exist - process it [21:52:34]requested_item shift.sale_refund.total_cash is exist - process it [21:52:34]requested_item shift.buy.total is exist - process it [21:52:34]requested_item shift.buy.total_cash is exist - process it [21:52:34]produce_requested_data done [21:52:34]produce_requested_data return {"fm.sale.total":72648049.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":53967.94,"shift.sale.total_cash":27542.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} [21:52:34]process_action_free get_value [21:52:34]json_value_free [21:52:34]json_value_free done [21:52:34]process_json_proto returns [21:52:34]Send response to host [21:52:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72648049.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":53967.94,"shift.sale.total_cash":27542.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}}} [21:52:34]free response buf [21:52:34]execute_script done [21:52:34]execute_script returns [21:52:34]free content buf [21:52:34]Sock 5.Close socket [21:52:34]Sock 5.Thread stoped [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:50]accept exits with 8 [22:02:50]New connection [22:02:50]New thread 3067088228 created [22:02:50]Thread 3066944868 joined [22:02:50]Waiting for new connection... [22:02:50] Sock 8.Parse request [22:02:50]Sock 8.Check first char [22:02:50]Sock 8.First char is OK [22:02:50]request: POST /json_proto HTTP/1.0 [22:02:50]Method: POST [22:02:50]URL: /json_proto [22:02:50]Method is POST - this is cgi request [22:02:50]url: /json_proto [22:02:50]query_string will be loaded in cgi processing [22:02:50]execute_cgi json_proto POST (null) [22:02:50]execute_cgi path=json_proto method=POST [22:02:50]POST find Content-Length [22:02:50]Host: 172.17.39.195:8080 [22:02:50]Content-Length: 1312 [22:02:50]Content-Type: application/json [22:02:50] [22:02:50]POST finish read [22:02:50]Found Content-Length = 1312 [22:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220949", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:50]execute_script... [22:02:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220949", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:50]POST & json_proto [22:02:50]process_json_proto [22:02:50]json parsed OK: [22:02:50]protocol is kg_v1.0 [22:02:50]action value=close_receipt [22:02:50]process_action close_receipt [22:02:50]cmd_close_receipt [22:02:50]MH_GetDate [22:02:50]Write to MH i2c: F0 00 00 1D 00 0C [22:02:50]Write i2c OK [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: F0 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: F0 09 00 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: F0 09 00 1D 00 00 0B 4A 77 66 99 81 91 64 56 [22:02:50]GetLastDocTimeStamp 1719092236 [22:02:50]current date 1719093771 [22:02:50]FM_GetShiftState [22:02:50]SAM_PROTO_GetShiftState [22:02:50]wFMCommunicate request_size=4 [22:02:50]MH_SAM_APDU [22:02:50]CAPDU: 80 13 01 00 [22:02:50]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [22:02:50]Write i2c OK [22:02:50]MH_I2C_Read... [22:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:50]Read from MH i2c: E2 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: E2 0E 00 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 91 [22:02:50]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [22:02:50]wFMCommunicate OK [22:02:50]SAM_PROTO_GetShiftState done [22:02:50]FM_GetShiftState done [22:02:50]opened in 1719016435 [22:02:50]opened+sec_in_day 1719102835 [22:02:50]quantity*price = 12500 [22:02:50]sum+1 = 12501 [22:02:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010476 Напиток Let`s Go! с/с яблоко ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 219.00 НСП 1% : 1.94 НДС 12% : 23.26 Наличными: 219.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 90 22.06.2024 22:02 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76894 ФПД: 32275368831534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T220252&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76894&fm=32275368831534&tin=02508201610067®Number=0000000000095696&sum=21900 0 [22:02:52]StoreToDocumentArchive [22:02:52]shift 395 fd 76894 [22:02:52]save to /storage/0395/doc_00076894 [22:02:52]save last doc name /storage/0395/doc_00076894 to /storage/kkm_last_doc_name [22:02:52]save OK [22:02:52]Clear old archive folders... [22:02:52]ProcessDocumentItem done err = 0, tmpTLVsize=549 [22:02:52]tlvbuf is 01FC66D0 [22:02:52]SAM_PROTO_ClearQueue [22:02:52]wFMCommunicate request_size=4 [22:02:52]MH_SAM_APDU [22:02:52]CAPDU: 80 09 00 00 [22:02:52]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [22:02:52]Write i2c OK [22:02:52]MH_I2C_Read... [22:02:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:52]Read from MH i2c: E2 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: E2 03 00 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [22:02:52]RAPDU: 90 00 [22:02:52]wFMCommunicate OK [22:02:52]SAM_PROTO_ClearQueue done [22:02:52]KKMCreateOFDPacket [22:02:52]OFDProtocolAddRootSTLVToBuf [22:02:52]FM_MakeSignedData [22:02:52]FM_MakeSignedData [22:02:52]SAM_PROTO_SignData [22:02:52]wFMCommunicate request_size=4 [22:02:52]MH_SAM_APDU [22:02:52]CAPDU: 80 0D 01 02 [22:02:52]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [22:02:52]Write i2c OK [22:02:52]MH_I2C_Read... [22:02:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:52]Read from MH i2c: E2 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: E2 03 00 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [22:02:52]RAPDU: 90 00 [22:02:52]wFMCommunicate OK [22:02:52]wFMCommunicate request_size=255 [22:02:52]MH_SAM_APDU [22:02:52]CAPDU: 80 0D 02 02 FA 03 00 25 02 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 [22:02:52]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 25 02 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 00 00 13 [22:02:52]Write i2c OK [22:02:52]MH_I2C_Read... [22:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:52]Read from MH i2c: E2 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: E2 03 00 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [22:02:52]RAPDU: 90 00 [22:02:52]wFMCommunicate OK [22:02:52]wFMCommunicate request_size=255 [22:02:52]MH_SAM_APDU [22:02:52]CAPDU: 80 0D 02 02 FA 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0C 4A 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [22:02:52]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0C 4A 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 FE [22:02:52]Write i2c OK [22:02:52]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [22:02:53]RAPDU: 90 00 [22:02:53]wFMCommunicate OK [22:02:53]wFMCommunicate request_size=58 [22:02:53]MH_SAM_APDU [22:02:53]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2C 01 00 35 04 06 00 1D 5A B1 E4 EA 2E [22:02:53]Write to MH i2c: E2 3D 00 2F 00 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2C 01 00 35 04 06 00 1D 5A B1 E4 EA 2E 00 00 4E [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [22:02:53]RAPDU: 90 00 [22:02:53]wFMCommunicate OK [22:02:53]wFMCommunicate request_size=4 [22:02:53]MH_SAM_APDU [22:02:53]CAPDU: 80 0D 03 02 [22:02:53]Write to MH i2c: E2 08 00 30 00 80 0D 03 02 00 00 00 00 AB [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 0B 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 0B 00 30 00 00 9E E1 1E D5 1A BE 12 53 90 00 5B [22:02:53]RAPDU: 9E E1 1E D5 1A BE 12 53 90 00 [22:02:53]wFMCommunicate OK [22:02:53]SAM_PROTO_SignData done [22:02:53]FM_MakeSignedData done [22:02:53]CreateOFDProtocolMessage [22:02:53]wFMCommunicate request_size=4 [22:02:53]MH_SAM_APDU [22:02:53]CAPDU: 80 11 00 00 [22:02:53]Write to MH i2c: E2 08 00 31 00 80 11 00 00 00 00 00 00 AB [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 17 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 17 00 31 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FB [22:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:02:53]wFMCommunicate OK [22:02:53]CreateOFDProtocolMessage done [22:02:53]OFDSenderStorePacket 76894 [22:02:53]StoreOFDPacket docnum=76894 [22:02:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 39 02 00 00 F4 23 31 02 6A 85 5A 03 01 00 03 00 25 02 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0C 4A 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2C 01 00 35 04 06 00 1D 5A B1 E4 EA 2E 9E E1 1E D5 1A BE 12 53 [22:02:53]CheckFolder [22:02:53]dirname=/storage/ofd_packets [22:02:53]CheckFolder done [22:02:53]ProducePacketName [22:02:53]name=ofd_packets/00076894 [22:02:53]NVStorageSaveData ofd_packets/00076894 [22:02:53]File name is /storage/ofd_packets/00076894 [22:02:53]Write 599 bytes [22:02:53]NVStorageSaveData done [22:02:53]OFDSenderStorePacket done [22:02:53]KKMCreateOFDPacket done [22:02:53]NVStorageSaveData kkm_last_timestamp [22:02:53]File name is /storage/kkm_last_timestamp [22:02:53]Write 4 bytes [22:02:53]NVStorageSaveData done [22:02:53]ExternCall_PrintAddStr [22:02:53]wPrintStart [22:02:53]Write to MH i2c: 01 00 00 32 00 32 [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: 01 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: 01 07 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: 01 07 00 32 00 00 00 00 00 00 FF 0F 47 [22:02:53]RasterBufferAndPrint [22:02:53]line Счет N : (3)220949 [22:02:53]line ИНН: 02508201610067 [22:02:53]line Контрольно-Кассовый Чек [22:02:53]line ПРОДАЖА [22:02:53]line Товар: 4870202522671 [22:02:53]line Garden напиток со вкусом граната 1,20 ПЭ [22:02:53]line 1.000 * 125.00 [22:02:53]line = 125.00 [22:02:53]line НДС 12% НСП 1% [22:02:53]line > о реализуемом товаре [22:02:53]line Товар: 4700003010476 [22:02:53]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [22:02:53]line 1.000 * 80.00 [22:02:53]line = 80.00 [22:02:53]line НДС 12% НСП 1% [22:02:53]line > о реализуемом товаре [22:02:53]line Товар: 2000053020015 [22:02:53]line Бумажные стаканы 250мл 1шт [22:02:53]line 2.000 * 7.00 [22:02:53]line = 14.00 [22:02:53]line НДС 12% НСП 1% [22:02:53]line > о реализуемом товаре [22:02:53]line ИТОГО: 219.00 [22:02:53]line НСП 1% : 1.94 [22:02:53]line НДС 12% : 23.26 [22:02:53]line Наличными: 219.00 [22:02:53]line Безнал.: 0.00 [22:02:53]line Место: АЗС № 144 "Партнер Нефть" [22:02:53]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:02:53]line СНО: Общий режим [22:02:53]line Чек 90 22.06.2024 22:02 [22:02:53]line Смена: 395 ФФД: 1.0 [22:02:53]line ЗНМ: 0300000170 [22:02:53]line РНМ: 0000000000095696 [22:02:53]line Версия ККМ: 001 [22:02:53]line ФМ: 0000000000875009 [22:02:53]line ФД: 76894 [22:02:53]line ФПД: 32275368831534 [22:02:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T220252&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76894&fm=32275368831534&tin=02508201610067®Number=0000000000095696&sum=21900 [22:02:53]OFD Sender: Processing packet 76894 [packets to send 351, broken 350] [22:02:53]ProducePacketName [22:02:53]name=ofd_packets/00076894 [22:02:53]OFD Sender: To server: pG, [22:02:53]CommunicateWithHost lk.salyk.kg:30040 [22:02:53]ConnectInit lk.salyk.kg [22:02:53]line 0 [22:02:53]written 0, free lines is 4095 [22:02:53]Connected sock=10 [22:02:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 39 02 00 00 F4 23 31 02 6A 85 5A 03 01 00 03 00 25 02 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 0C 4A 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2C 01 00 35 04 06 00 1D 5A B1 E4 EA 2E 9E E1 1E D5 1A BE 12 53 [22:02:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 0F A6 47 00 F7 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5E 2C 01 00 F4 03 04 00 A5 F0 76 66 B6 04 01 00 00 92 8B 1D EE 98 C5 87 F9 [22:02:53]CommunicateWithHost err = 0 [22:02:53]CheckOFDResponse [22:02:53]1017 (14) - 77093643461234 [22:02:53]1041 (16) - 0000000000875009 [22:02:53]1040 (4) - 76894 [22:02:53]1012 (4) - 22.06.2024 15:41 [22:02:53]1206 (1) - 0 [22:02:53]OFD Sender: Remove packet 76894 [22:02:53]ProducePacketName [22:02:53]name=ofd_packets/00076894 [22:02:53]NVStorageDeleteData [22:02:54]Write to MH i2c: 01 00 00 69 00 69 [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: 01 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: 01 07 00 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 0F 0C 8B [22:02:54]RasterBufferAndPrint [22:02:54]line [22:02:54]line [22:02:54]line [22:02:54]line [22:02:54]line [22:02:54]written 0, free lines is 3092 [22:02:54]MH_Cut [22:02:54]Write to MH i2c: D1 01 00 70 00 01 42 [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: D1 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: D1 01 00 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: D1 01 00 70 00 00 41 [22:02:54]Write to MH i2c: 01 00 00 71 00 71 [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:54]OFD Sender: No OFD packet to send [22:02:55]*** Cut start [22:02:55]*** Partial cut [22:02:55]*** CUTSNS_PIN = 1 [22:02:55]*** CUTSNS_PIN = 0 [22:02:55]*** Brake cut motor [22:02:55]Read from MH i2c: 01 [22:02:55]MH_I2C_Read... [22:02:55]*** Stop cut motor [22:02:55]*** Cut end [22:02:55]Read from MH i2c: 01 07 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: 01 07 00 71 00 00 00 00 00 00 FF 0F 86 [22:02:55]process_action close_receipt done [22:02:55]requested_data is exist [22:02:55]produce_requested_data [22:02:55]requested_item fm.sn is exist - process it [22:02:55]wFMCommunicate request_size=4 [22:02:55]MH_SAM_APDU [22:02:55]CAPDU: 80 11 00 00 [22:02:55]Write to MH i2c: E2 08 00 72 00 80 11 00 00 00 00 00 00 EC [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:55]Read from MH i2c: E2 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 17 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 17 00 72 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3C [22:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:02:55]wFMCommunicate OK [22:02:55]requested_item fd.num is exist - process it [22:02:55]SAM_PROTO_GetFieldsCounters [22:02:55]wFMCommunicate request_size=4 [22:02:55]MH_SAM_APDU [22:02:55]CAPDU: 80 13 00 00 [22:02:55]Write to MH i2c: E2 08 00 73 00 80 13 00 00 00 00 00 00 EF [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:55]Read from MH i2c: E2 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 62 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 62 00 73 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [22:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5E 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:55]wFMCommunicate OK [22:02:55]SAM_PROTO_GetFieldsCounters done [22:02:55]requested_item shift.num is exist - process it [22:02:55]requested_item shift.opened is exist - process it [22:02:55]req_shift_opened [22:02:55]FM_GetShiftState [22:02:55]SAM_PROTO_GetShiftState [22:02:55]wFMCommunicate request_size=4 [22:02:55]MH_SAM_APDU [22:02:55]CAPDU: 80 13 01 00 [22:02:55]Write to MH i2c: E2 08 00 74 00 80 13 01 00 00 00 00 00 F1 [22:02:55]Write i2c OK [22:02:55]MH_I2C_Read... [22:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:55]Read from MH i2c: E2 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 0E 00 [22:02:55]MH_I2C_Read... [22:02:55]Read from MH i2c: E2 0E 00 74 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 E7 [22:02:55]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [22:02:55]wFMCommunicate OK [22:02:55]SAM_PROTO_GetShiftState done [22:02:55]FM_GetShiftState done [22:02:55]req_shift_opened done [22:02:55]requested_item shift.open_date is exist - process it [22:02:55]req_shift_open_date [22:02:55]req_shift_open_date done [22:02:55]produce_requested_data done [22:02:55]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76894,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [22:02:55]process_action_free close_receipt [22:02:55]json_value_free [22:02:55]json_value_free done [22:02:55]process_json_proto returns [22:02:55]Send response to host [22:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76894,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [22:02:55]free response buf [22:02:55]execute_script done [22:02:55]execute_script returns [22:02:55]free content buf [22:02:55]Sock 8.Close socket [22:02:55]Sock 8.Thread stoped [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:34]accept exits with 9 [22:21:34]New connection [22:21:34]New thread 3066944868 created [22:21:34]Thread 3067088228 joined [22:21:34]Waiting for new connection... [22:21:34] Sock 9.Parse request [22:21:34]Sock 9.Check first char [22:21:34]Sock 9.First char is OK [22:21:34]request: POST /json_proto HTTP/1.0 [22:21:34]Method: POST [22:21:34]URL: /json_proto [22:21:34]Method is POST - this is cgi request [22:21:34]url: /json_proto [22:21:34]query_string will be loaded in cgi processing [22:21:34]execute_cgi json_proto POST (null) [22:21:34]execute_cgi path=json_proto method=POST [22:21:34]POST find Content-Length [22:21:34]Host: 172.17.39.195:8080 [22:21:34]Content-Length: 963 [22:21:34]Content-Type: application/json [22:21:34] [22:21:34]POST finish read [22:21:34]Found Content-Length = 963 [22:21:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220950", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:34]execute_script... [22:21:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220950", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:34]POST & json_proto [22:21:34]process_json_proto [22:21:34]json parsed OK: [22:21:34]protocol is kg_v1.0 [22:21:34]action value=close_receipt [22:21:34]process_action close_receipt [22:21:34]cmd_close_receipt [22:21:34]MH_GetDate [22:21:34]Write to MH i2c: F0 00 00 75 00 64 [22:21:34]Write i2c OK [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: F0 [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: F0 09 00 [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: F0 09 00 75 00 00 6F 4E 77 66 99 81 91 64 16 [22:21:34]GetLastDocTimeStamp 1719093772 [22:21:34]current date 1719094895 [22:21:34]FM_GetShiftState [22:21:34]SAM_PROTO_GetShiftState [22:21:34]wFMCommunicate request_size=4 [22:21:34]MH_SAM_APDU [22:21:34]CAPDU: 80 13 01 00 [22:21:34]Write to MH i2c: E2 08 00 76 00 80 13 01 00 00 00 00 00 F3 [22:21:34]Write i2c OK [22:21:34]MH_I2C_Read... [22:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:34]Read from MH i2c: E2 [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: E2 0E 00 [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: E2 0E 00 76 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 E9 [22:21:34]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [22:21:34]wFMCommunicate OK [22:21:34]SAM_PROTO_GetShiftState done [22:21:34]FM_GetShiftState done [22:21:34]opened in 1719016435 [22:21:34]opened+sec_in_day 1719102835 [22:21:34]quantity*price = 11000 [22:21:34]sum+1 = 11001 [22:21:34]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.94 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 91 22.06.2024 22:21 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76895 ФПД: 168220157001522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T222135&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76895&fm=168220157001522&tin=02508201610067®Number=0000000000095696&sum=22000 0 [22:21:35]StoreToDocumentArchive [22:21:35]shift 395 fd 76895 [22:21:35]save to /storage/0395/doc_00076895 [22:21:35]save last doc name /storage/0395/doc_00076895 to /storage/kkm_last_doc_name [22:21:35]save OK [22:21:35]Clear old archive folders... [22:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=417 [22:21:35]tlvbuf is 01FBB9B0 [22:21:35]SAM_PROTO_ClearQueue [22:21:35]wFMCommunicate request_size=4 [22:21:35]MH_SAM_APDU [22:21:35]CAPDU: 80 09 00 00 [22:21:35]Write to MH i2c: E2 08 00 83 00 80 09 00 00 00 00 00 00 F5 [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:35]Read from MH i2c: E2 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 03 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [22:21:35]RAPDU: 90 00 [22:21:35]wFMCommunicate OK [22:21:35]SAM_PROTO_ClearQueue done [22:21:35]KKMCreateOFDPacket [22:21:35]OFDProtocolAddRootSTLVToBuf [22:21:35]FM_MakeSignedData [22:21:35]FM_MakeSignedData [22:21:35]SAM_PROTO_SignData [22:21:35]wFMCommunicate request_size=4 [22:21:35]MH_SAM_APDU [22:21:35]CAPDU: 80 0D 01 02 [22:21:35]Write to MH i2c: E2 08 00 84 00 80 0D 01 02 00 00 00 00 FD [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:35]Read from MH i2c: E2 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 03 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 03 00 84 00 00 90 00 F8 [22:21:35]RAPDU: 90 00 [22:21:35]wFMCommunicate OK [22:21:35]wFMCommunicate request_size=255 [22:21:35]MH_SAM_APDU [22:21:35]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [22:21:35]Write to MH i2c: E2 02 01 85 00 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 6F [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:36]Read from MH i2c: E2 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 03 00 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 03 00 85 00 00 90 00 F9 [22:21:36]RAPDU: 90 00 [22:21:36]wFMCommunicate OK [22:21:36]wFMCommunicate request_size=176 [22:21:36]MH_SAM_APDU [22:21:36]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6F 4E 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2C 01 00 35 04 06 00 98 FE CE B3 BF 32 [22:21:36]Write to MH i2c: E2 B3 00 86 00 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6F 4E 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2C 01 00 35 04 06 00 98 FE CE B3 BF 32 00 00 EC [22:21:36]Write i2c OK [22:21:36]MH_I2C_Read... [22:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:36]Read from MH i2c: E2 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 03 00 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 03 00 86 00 00 90 00 FA [22:21:36]RAPDU: 90 00 [22:21:36]wFMCommunicate OK [22:21:36]wFMCommunicate request_size=4 [22:21:36]MH_SAM_APDU [22:21:36]CAPDU: 80 0D 03 02 [22:21:36]Write to MH i2c: E2 08 00 87 00 80 0D 03 02 00 00 00 00 02 [22:21:36]Write i2c OK [22:21:36]MH_I2C_Read... [22:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:36]Read from MH i2c: E2 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 0B 00 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 0B 00 87 00 00 09 76 E2 6D 2D 56 D3 7E 90 00 A5 [22:21:36]RAPDU: 09 76 E2 6D 2D 56 D3 7E 90 00 [22:21:36]wFMCommunicate OK [22:21:36]SAM_PROTO_SignData done [22:21:36]FM_MakeSignedData done [22:21:36]CreateOFDProtocolMessage [22:21:36]wFMCommunicate request_size=4 [22:21:36]MH_SAM_APDU [22:21:36]CAPDU: 80 11 00 00 [22:21:36]Write to MH i2c: E2 08 00 88 00 80 11 00 00 00 00 00 00 02 [22:21:36]Write i2c OK [22:21:36]MH_I2C_Read... [22:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:36]Read from MH i2c: E2 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 17 00 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: E2 17 00 88 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 52 [22:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:21:36]wFMCommunicate OK [22:21:36]CreateOFDProtocolMessage done [22:21:36]OFDSenderStorePacket 76895 [22:21:36]StoreOFDPacket docnum=76895 [22:21:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 B5 01 00 00 5A D9 AD 01 68 08 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6F 4E 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2C 01 00 35 04 06 00 98 FE CE B3 BF 32 09 76 E2 6D 2D 56 D3 7E [22:21:36]CheckFolder [22:21:36]dirname=/storage/ofd_packets [22:21:36]CheckFolder done [22:21:36]ProducePacketName [22:21:36]name=ofd_packets/00076895 [22:21:36]NVStorageSaveData ofd_packets/00076895 [22:21:36]File name is /storage/ofd_packets/00076895 [22:21:36]Write 467 bytes [22:21:36]NVStorageSaveData done [22:21:36]OFDSenderStorePacket done [22:21:36]KKMCreateOFDPacket done [22:21:36]NVStorageSaveData kkm_last_timestamp [22:21:36]File name is /storage/kkm_last_timestamp [22:21:36]Write 4 bytes [22:21:36]NVStorageSaveData done [22:21:36]ExternCall_PrintAddStr [22:21:36]wPrintStart [22:21:36]Write to MH i2c: 01 00 00 89 00 89 [22:21:36]Write i2c OK [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: 01 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: 01 07 00 [22:21:36]MH_I2C_Read... [22:21:36]Read from MH i2c: 01 07 00 89 00 00 00 00 00 00 FF 0F 9E [22:21:36]RasterBufferAndPrint [22:21:36]line Счет N : (3)220950 [22:21:36]line ИНН: 02508201610067 [22:21:36]line Контрольно-Кассовый Чек [22:21:36]line ПРОДАЖА [22:21:36]line Товар: 4650243871828 [22:21:36]line Gorilla эн нап манго-кокос 0,45 ж/б [22:21:36]line 1.000 * 110.00 [22:21:36]line = 110.00 [22:21:36]line НДС 12% НСП 1% [22:21:36]line > о реализуемом товаре [22:21:36]line Товар: 4870022003305 [22:21:36]line Напиток Gorilla эн нат ж/б 0,5/0,45л [22:21:36]line 1.000 * 110.00 [22:21:36]line = 110.00 [22:21:36]line НДС 12% НСП 1% [22:21:36]line > о реализуемом товаре [22:21:36]line ИТОГО: 220.00 [22:21:36]line НСП 1% : 1.94 [22:21:36]line НДС 12% : 23.36 [22:21:36]line Наличными: 220.00 [22:21:36]line Безнал.: 0.00 [22:21:36]line Место: АЗС № 144 "Партнер Нефть" [22:21:36]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:21:36]line СНО: Общий режим [22:21:36]line Чек 91 22.06.2024 22:21 [22:21:36]line Смена: 395 ФФД: 1.0 [22:21:36]line ЗНМ: 0300000170 [22:21:36]line РНМ: 0000000000095696 [22:21:36]line Версия ККМ: 001 [22:21:36]line ФМ: 0000000000875009 [22:21:36]line ФД: 76895 [22:21:36]line ФПД: 168220157001522 [22:21:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T222135&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76895&fm=168220157001522&tin=02508201610067®Number=0000000000095696&sum=22000 [22:21:36]OFD Sender: Processing packet 76895 [packets to send 351, broken 350] [22:21:36]ProducePacketName [22:21:36]name=ofd_packets/00076895 [22:21:36]OFD Sender: To server: pG, [22:21:36]CommunicateWithHost lk.salyk.kg:30040 [22:21:36]ConnectInit lk.salyk.kg [22:21:36]line 0 [22:21:36]written 0, free lines is 4095 [22:21:36]Connected sock=10 [22:21:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 B5 01 00 00 5A D9 AD 01 68 08 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6F 4E 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2C 01 00 35 04 06 00 98 FE CE B3 BF 32 09 76 E2 6D 2D 56 D3 7E [22:21:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 2C 10 47 00 18 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 5F 2C 01 00 F4 03 04 00 08 F5 76 66 B6 04 01 00 00 BC 6A BF 6A 9C 54 20 5A [22:21:37]CommunicateWithHost err = 0 [22:21:37]CheckOFDResponse [22:21:37]1017 (14) - 77093643461234 [22:21:37]1041 (16) - 0000000000875009 [22:21:37]1040 (4) - 76895 [22:21:37]1012 (4) - 22.06.2024 16:00 [22:21:37]1206 (1) - 0 [22:21:37]OFD Sender: Remove packet 76895 [22:21:37]ProducePacketName [22:21:37]name=ofd_packets/00076895 [22:21:37]NVStorageDeleteData [22:21:37]Write to MH i2c: 01 00 00 B9 00 B9 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 07 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 84 0C 50 [22:21:37]RasterBufferAndPrint [22:21:37]line [22:21:37]line [22:21:37]line [22:21:37]line [22:21:37]line [22:21:37]written 0, free lines is 3213 [22:21:37]MH_Cut [22:21:37]Write to MH i2c: D1 01 00 C0 00 01 92 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: D1 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: D1 01 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: D1 01 00 C0 00 00 91 [22:21:37]Write to MH i2c: 01 00 00 C1 00 C1 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]OFD Sender: No OFD packet to send [22:21:37]*** Cut start [22:21:37]*** Partial cut [22:21:37]*** CUTSNS_PIN = 1 [22:21:38]*** CUTSNS_PIN = 0 [22:21:38]*** Brake cut motor [22:21:38]Read from MH i2c: 01 [22:21:38]MH_I2C_Read... [22:21:38]*** Stop cut motor [22:21:38]*** Cut end [22:21:38]Read from MH i2c: 01 07 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [22:21:38]process_action close_receipt done [22:21:38]requested_data is exist [22:21:38]produce_requested_data [22:21:38]requested_item fm.sn is exist - process it [22:21:38]wFMCommunicate request_size=4 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 11 00 00 [22:21:38]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 17 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8C [22:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:21:38]wFMCommunicate OK [22:21:38]requested_item fd.num is exist - process it [22:21:38]SAM_PROTO_GetFieldsCounters [22:21:38]wFMCommunicate request_size=4 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 13 00 00 [22:21:38]Write to MH i2c: E2 08 00 C3 00 80 13 00 00 00 00 00 00 3F [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 62 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 62 00 C3 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [22:21: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 5F 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:38]wFMCommunicate OK [22:21:38]SAM_PROTO_GetFieldsCounters done [22:21:38]requested_item shift.num is exist - process it [22:21:38]requested_item shift.opened is exist - process it [22:21:38]req_shift_opened [22:21:38]FM_GetShiftState [22:21:38]SAM_PROTO_GetShiftState [22:21:38]wFMCommunicate request_size=4 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 13 01 00 [22:21:38]Write to MH i2c: E2 08 00 C4 00 80 13 01 00 00 00 00 00 41 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 0E 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 0E 00 C4 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 37 [22:21:38]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [22:21:38]wFMCommunicate OK [22:21:38]SAM_PROTO_GetShiftState done [22:21:38]FM_GetShiftState done [22:21:38]req_shift_opened done [22:21:38]requested_item shift.open_date is exist - process it [22:21:38]req_shift_open_date [22:21:38]req_shift_open_date done [22:21:38]produce_requested_data done [22:21:38]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76895,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [22:21:38]process_action_free close_receipt [22:21:38]json_value_free [22:21:38]json_value_free done [22:21:38]process_json_proto returns [22:21:38]Send response to host [22:21:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76895,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [22:21:38]free response buf [22:21:38]execute_script done [22:21:38]execute_script returns [22:21:38]free content buf [22:21:38]Sock 9.Close socket [22:21:38]Sock 9.Thread stoped [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]accept exits with 8 [22:40:44]New connection [22:40:44]New thread 3067088228 created [22:40:44]Thread 3066944868 joined [22:40:44]Waiting for new connection... [22:40:44] Sock 8.Parse request [22:40:44]Sock 8.Check first char [22:40:44]Sock 8.First char is OK [22:40:44]request: POST /json_proto HTTP/1.0 [22:40:44]Method: POST [22:40:44]URL: /json_proto [22:40:44]Method is POST - this is cgi request [22:40:44]url: /json_proto [22:40:44]query_string will be loaded in cgi processing [22:40:44]execute_cgi json_proto POST (null) [22:40:44]execute_cgi path=json_proto method=POST [22:40:44]POST find Content-Length [22:40:44]Host: 172.17.39.195:8080 [22:40:44]Content-Length: 621 [22:40:44]Content-Type: application/json [22:40:44] [22:40:44]POST finish read [22:40:44]Found Content-Length = 621 [22:40:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220951", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:44]execute_script... [22:40:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220951", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:44]POST & json_proto [22:40:44]process_json_proto [22:40:44]json parsed OK: [22:40:44]protocol is kg_v1.0 [22:40:44]action value=close_receipt [22:40:44]process_action close_receipt [22:40:44]cmd_close_receipt [22:40:44]MH_GetDate [22:40:44]Write to MH i2c: F0 00 00 C5 00 B4 [22:40:44]Write i2c OK [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: F0 [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: F0 09 00 [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: F0 09 00 C5 00 00 ED 52 77 66 99 81 91 64 E8 [22:40:44]GetLastDocTimeStamp 1719094895 [22:40:44]current date 1719096045 [22:40:44]FM_GetShiftState [22:40:44]SAM_PROTO_GetShiftState [22:40:44]wFMCommunicate request_size=4 [22:40:44]MH_SAM_APDU [22:40:44]CAPDU: 80 13 01 00 [22:40:44]Write to MH i2c: E2 08 00 C6 00 80 13 01 00 00 00 00 00 43 [22:40:44]Write i2c OK [22:40:44]MH_I2C_Read... [22:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:44]Read from MH i2c: E2 [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: E2 0E 00 [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: E2 0E 00 C6 00 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 39 [22:40:44]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [22:40:44]wFMCommunicate OK [22:40:44]SAM_PROTO_GetShiftState done [22:40:44]FM_GetShiftState done [22:40:44]opened in 1719016435 [22:40:44]opened+sec_in_day 1719102835 [22:40:44]quantity*price = 14000 [22:40:44]sum+1 = 14001 [22:40:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 92 22.06.2024 22:40 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76896 ФПД: 66931929541597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224045&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76896&fm=66931929541597&tin=02508201610067®Number=0000000000095696&sum=14000 0 [22:40:45]StoreToDocumentArchive [22:40:45]shift 395 fd 76896 [22:40:45]save to /storage/0395/doc_00076896 [22:40:45]save last doc name /storage/0395/doc_00076896 to /storage/kkm_last_doc_name [22:40:45]save OK [22:40:45]Clear old archive folders... [22:40:45]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:40:45]tlvbuf is 02000340 [22:40:45]SAM_PROTO_ClearQueue [22:40:45]wFMCommunicate request_size=4 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 09 00 00 [22:40:45]Write to MH i2c: E2 08 00 D3 00 80 09 00 00 00 00 00 00 45 [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [22:40:45]RAPDU: 90 00 [22:40:45]wFMCommunicate OK [22:40:45]SAM_PROTO_ClearQueue done [22:40:45]KKMCreateOFDPacket [22:40:45]OFDProtocolAddRootSTLVToBuf [22:40:45]FM_MakeSignedData [22:40:45]FM_MakeSignedData [22:40:45]SAM_PROTO_SignData [22:40:45]wFMCommunicate request_size=4 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 0D 01 02 [22:40:45]Write to MH i2c: E2 08 00 D4 00 80 0D 01 02 00 00 00 00 4D [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 D4 00 00 90 00 48 [22:40:45]RAPDU: 90 00 [22:40:45]wFMCommunicate OK [22:40:45]wFMCommunicate request_size=255 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 ED 52 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 [22:40:45]Write to MH i2c: E2 02 01 D5 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 ED 52 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 00 00 50 [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 D5 00 00 90 00 49 [22:40:45]RAPDU: 90 00 [22:40:45]wFMCommunicate OK [22:40:45]wFMCommunicate request_size=32 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 30 39 10 04 04 00 60 2C 01 00 35 04 06 00 3C DF CD E2 6B DD [22:40:45]Write to MH i2c: E2 23 00 D6 00 80 0D 02 02 1B 00 30 30 30 38 37 35 30 30 39 10 04 04 00 60 2C 01 00 35 04 06 00 3C DF CD E2 6B DD 00 00 49 [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 D6 00 00 90 00 4A [22:40:45]RAPDU: 90 00 [22:40:45]wFMCommunicate OK [22:40:45]wFMCommunicate request_size=4 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 0D 03 02 [22:40:45]Write to MH i2c: E2 08 00 D7 00 80 0D 03 02 00 00 00 00 52 [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:46]Read from MH i2c: E2 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: E2 0B 00 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: E2 0B 00 D7 00 00 6D 22 76 35 11 48 28 6C 90 00 7A [22:40:46]RAPDU: 6D 22 76 35 11 48 28 6C 90 00 [22:40:46]wFMCommunicate OK [22:40:46]SAM_PROTO_SignData done [22:40:46]FM_MakeSignedData done [22:40:46]CreateOFDProtocolMessage [22:40:46]wFMCommunicate request_size=4 [22:40:46]MH_SAM_APDU [22:40:46]CAPDU: 80 11 00 00 [22:40:46]Write to MH i2c: E2 08 00 D8 00 80 11 00 00 00 00 00 00 52 [22:40:46]Write i2c OK [22:40:46]MH_I2C_Read... [22:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:46]Read from MH i2c: E2 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: E2 17 00 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: E2 17 00 D8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A2 [22:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:40:46]wFMCommunicate OK [22:40:46]CreateOFDProtocolMessage done [22:40:46]OFDSenderStorePacket 76896 [22:40:46]StoreOFDPacket docnum=76896 [22:40:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 88 79 1D 01 46 83 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 ED 52 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 60 2C 01 00 35 04 06 00 3C DF CD E2 6B DD 6D 22 76 35 11 48 28 6C [22:40:46]CheckFolder [22:40:46]dirname=/storage/ofd_packets [22:40:46]CheckFolder done [22:40:46]ProducePacketName [22:40:46]name=ofd_packets/00076896 [22:40:46]NVStorageSaveData ofd_packets/00076896 [22:40:46]File name is /storage/ofd_packets/00076896 [22:40:46]Write 323 bytes [22:40:46]NVStorageSaveData done [22:40:46]OFDSenderStorePacket done [22:40:46]KKMCreateOFDPacket done [22:40:46]NVStorageSaveData kkm_last_timestamp [22:40:46]File name is /storage/kkm_last_timestamp [22:40:46]Write 4 bytes [22:40:46]NVStorageSaveData done [22:40:46]ExternCall_PrintAddStr [22:40:46]wPrintStart [22:40:46]Write to MH i2c: 01 00 00 D9 00 D9 [22:40:46]Write i2c OK [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 07 00 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 FF 0F EE [22:40:46]RasterBufferAndPrint [22:40:46]line Счет N : (3)220951 [22:40:46]line ИНН: 02508201610067 [22:40:46]line Контрольно-Кассовый Чек [22:40:46]line ПРОДАЖА [22:40:46]line Товар: 48743570 [22:40:46]line Сигареты Winston XStyle Blue [22:40:46]line 1.000 * 140.00 [22:40:46]line = 140.00 [22:40:46]line НДС 12% НСП 1% [22:40:46]line > о реализуемом товаре [22:40:46]line ИТОГО: 140.00 [22:40:46]line НСП 1% : 1.24 [22:40:46]line НДС 12% : 14.87 [22:40:46]line Наличными: 140.00 [22:40:46]line Безнал.: 0.00 [22:40:46]line Место: АЗС № 144 "Партнер Нефть" [22:40:46]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:40:46]line СНО: Общий режим [22:40:46]line Чек 92 22.06.2024 22:40 [22:40:46]line Смена: 395 ФФД: 1.0 [22:40:46]line ЗНМ: 0300000170 [22:40:46]line РНМ: 0000000000095696 [22:40:46]line Версия ККМ: 001 [22:40:46]line ФМ: 0000000000875009 [22:40:46]line ФД: 76896 [22:40:46]line ФПД: 66931929541597 [22:40:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T224045&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76896&fm=66931929541597&tin=02508201610067®Number=0000000000095696&sum=14000 [22:40:46]line 0 [22:40:46]written 0, free lines is 4095 [22:40:46]OFD Sender: Processing packet 76896 [packets to send 351, broken 350] [22:40:46]ProducePacketName [22:40:46]name=ofd_packets/00076896 [22:40:46]OFD Sender: To server: pG, [22:40:46]CommunicateWithHost lk.salyk.kg:30040 [22:40:46]ConnectInit lk.salyk.kg [22:40:46]Connected sock=10 [22:40:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 25 01 00 00 88 79 1D 01 46 83 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 ED 52 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 60 2C 01 00 35 04 06 00 3C DF CD E2 6B DD 6D 22 76 35 11 48 28 6C [22:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 DE 5C 47 00 14 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 35 30 30 39 10 04 04 00 60 2C 01 00 F4 03 04 00 85 F9 76 66 B6 04 01 00 00 E3 68 85 00 DD 7E 9C 8B [22:40:46]CommunicateWithHost err = 0 [22:40:46]CheckOFDResponse [22:40:46]1017 (14) - 77093643461234 [22:40:46]1041 (16) - 0000000000875009 [22:40:46]1040 (4) - 76896 [22:40:46]1012 (4) - 22.06.2024 16:19 [22:40:46]1206 (1) - 0 [22:40:46]OFD Sender: Remove packet 76896 [22:40:46]ProducePacketName [22:40:46]name=ofd_packets/00076896 [22:40:46]NVStorageDeleteData [22:40:46]Write to MH i2c: 01 00 00 01 01 02 [22:40:46]Write i2c OK [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 07 00 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 EB 0C 00 [22:40:46]RasterBufferAndPrint [22:40:46]line [22:40:46]line [22:40:46]line [22:40:46]line [22:40:46]line [22:40:46]written 0, free lines is 3313 [22:40:46]MH_Cut [22:40:46]Write to MH i2c: D1 01 00 08 01 01 DB [22:40:46]Write i2c OK [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: D1 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: D1 01 00 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: D1 01 00 08 01 00 DA [22:40:46]Write to MH i2c: 01 00 00 09 01 0A [22:40:46]Write i2c OK [22:40:46]MH_I2C_Read... [22:40:46]OFD Sender: No OFD packet to send [22:40:47]*** Cut start [22:40:47]*** Partial cut [22:40:47]*** CUTSNS_PIN = 1 [22:40:47]*** CUTSNS_PIN = 0 [22:40:47]*** Brake cut motor [22:40:47]Read from MH i2c: 01 [22:40:47]MH_I2C_Read... [22:40:47]*** Stop cut motor [22:40:47]*** Cut end [22:40:47]Read from MH i2c: 01 07 00 [22:40:47]MH_I2C_Read... [22:40:47]Read from MH i2c: 01 07 00 09 01 00 00 00 00 00 FF 0F 1F [22:40:47]process_action close_receipt done [22:40:47]requested_data is exist [22:40:47]produce_requested_data [22:40:47]requested_item fm.sn is exist - process it [22:40:47]wFMCommunicate request_size=4 [22:40:47]MH_SAM_APDU [22:40:47]CAPDU: 80 11 00 00 [22:40:47]Write to MH i2c: E2 08 00 0A 01 80 11 00 00 00 00 00 00 85 [22:40:47]Write i2c OK [22:40:47]MH_I2C_Read... [22:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:47]Read from MH i2c: E2 [22:40:47]MH_I2C_Read... [22:40:47]Read from MH i2c: E2 17 00 [22:40:47]MH_I2C_Read... [22:40:47]Read from MH i2c: E2 17 00 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D5 [22:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:40:47]wFMCommunicate OK [22:40:47]requested_item fd.num is exist - process it [22:40:47]SAM_PROTO_GetFieldsCounters [22:40:47]wFMCommunicate request_size=4 [22:40:47]MH_SAM_APDU [22:40:47]CAPDU: 80 13 00 00 [22:40:47]Write to MH i2c: E2 08 00 0B 01 80 13 00 00 00 00 00 00 88 [22:40:47]Write i2c OK [22:40:47]MH_I2C_Read... [22:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:48]Read from MH i2c: E2 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 62 00 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 62 00 0B 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 60 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [22:40: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 60 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:48]wFMCommunicate OK [22:40:48]SAM_PROTO_GetFieldsCounters done [22:40:48]requested_item shift.num is exist - process it [22:40:48]requested_item shift.opened is exist - process it [22:40:48]req_shift_opened [22:40:48]FM_GetShiftState [22:40:48]SAM_PROTO_GetShiftState [22:40:48]wFMCommunicate request_size=4 [22:40:48]MH_SAM_APDU [22:40:48]CAPDU: 80 13 01 00 [22:40:48]Write to MH i2c: E2 08 00 0C 01 80 13 01 00 00 00 00 00 8A [22:40:48]Write i2c OK [22:40:48]MH_I2C_Read... [22:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:48]Read from MH i2c: E2 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 0E 00 [22:40:48]MH_I2C_Read... [22:40:48]Read from MH i2c: E2 0E 00 0C 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 80 [22:40:48]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [22:40:48]wFMCommunicate OK [22:40:48]SAM_PROTO_GetShiftState done [22:40:48]FM_GetShiftState done [22:40:48]req_shift_opened done [22:40:48]requested_item shift.open_date is exist - process it [22:40:48]req_shift_open_date [22:40:48]req_shift_open_date done [22:40:48]produce_requested_data done [22:40:48]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76896,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [22:40:48]process_action_free close_receipt [22:40:48]json_value_free [22:40:48]json_value_free done [22:40:48]process_json_proto returns [22:40:48]Send response to host [22:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76896,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [22:40:48]free response buf [22:40:48]execute_script done [22:40:48]execute_script returns [22:40:48]free content buf [22:40:48]Sock 8.Close socket [22:40:48]Sock 8.Thread stoped [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:43]accept exits with 9 [22:59:43]New connection [22:59:43]New thread 3066944868 created [22:59:43] Sock 9.Parse request [22:59:43]Thread 3067088228 joined [22:59:43]Sock 9.Check first char [22:59:43]Waiting for new connection... [22:59:43]Sock 9.First char is OK [22:59:43]request: POST /json_proto HTTP/1.0 [22:59:43]Method: POST [22:59:43]URL: /json_proto [22:59:43]Method is POST - this is cgi request [22:59:43]url: /json_proto [22:59:43]query_string will be loaded in cgi processing [22:59:43]execute_cgi json_proto POST (null) [22:59:43]execute_cgi path=json_proto method=POST [22:59:43]POST find Content-Length [22:59:43]Host: 172.17.39.195:8080 [22:59:43]Content-Length: 902 [22:59:43]Content-Type: application/json [22:59:43] [22:59:43]POST finish read [22:59:43]Found Content-Length = 902 [22:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220952", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 321.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:43]execute_script... [22:59:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220952", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 321.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:43]POST & json_proto [22:59:43]process_json_proto [22:59:43]json parsed OK: [22:59:43]protocol is kg_v1.0 [22:59:43]action value=close_receipt [22:59:43]process_action close_receipt [22:59:43]cmd_close_receipt [22:59:43]MH_GetDate [22:59:43]Write to MH i2c: F0 00 00 0D 01 FD [22:59:43]Write i2c OK [22:59:43]MH_I2C_Read... [22:59:43]Read from MH i2c: F0 [22:59:43]MH_I2C_Read... [22:59:43]Read from MH i2c: F0 09 00 [22:59:43]MH_I2C_Read... [22:59:43]Read from MH i2c: F0 09 00 0D 01 00 60 57 77 66 99 81 91 64 A9 [22:59:43]GetLastDocTimeStamp 1719096045 [22:59:43]current date 1719097184 [22:59:43]FM_GetShiftState [22:59:43]SAM_PROTO_GetShiftState [22:59:43]wFMCommunicate request_size=4 [22:59:43]MH_SAM_APDU [22:59:43]CAPDU: 80 13 01 00 [22:59:43]Write to MH i2c: E2 08 00 0E 01 80 13 01 00 00 00 00 00 8C [22:59:43]Write i2c OK [22:59:43]MH_I2C_Read... [22:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:43]Read from MH i2c: E2 [22:59:43]MH_I2C_Read... [22:59:43]Read from MH i2c: E2 0E 00 [22:59:43]MH_I2C_Read... [22:59:43]Read from MH i2c: E2 0E 00 0E 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 82 [22:59:43]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [22:59:43]wFMCommunicate OK [22:59:43]SAM_PROTO_GetShiftState done [22:59:43]FM_GetShiftState done [22:59:43]opened in 1719016435 [22:59:43]opened+sec_in_day 1719102835 [22:59:43]quantity*price = 15100 [22:59:43]sum+1 = 15101 [22:59:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682000280 Напиток FLash up мохито 0,45 ж/б 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 321.00 НСП 1% : 2.84 НДС 12% : 34.08 Наличными: 321.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 93 22.06.2024 22:59 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76897 ФПД: 132401114370238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225944&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76897&fm=132401114370238&tin=02508201610067®Number=0000000000095696&sum=32100 0 [22:59:44]StoreToDocumentArchive [22:59:44]shift 395 fd 76897 [22:59:44]save to /storage/0395/doc_00076897 [22:59:44]save last doc name /storage/0395/doc_00076897 to /storage/kkm_last_doc_name [22:59:44]save OK [22:59:44]Clear old archive folders... [22:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=393 [22:59:44]tlvbuf is 01FB2650 [22:59:44]SAM_PROTO_ClearQueue [22:59:44]wFMCommunicate request_size=4 [22:59:44]MH_SAM_APDU [22:59:44]CAPDU: 80 09 00 00 [22:59:44]Write to MH i2c: E2 08 00 1B 01 80 09 00 00 00 00 00 00 8E [22:59:44]Write i2c OK [22:59:44]MH_I2C_Read... [22:59:44]Read from MH i2c: E2 [22:59:44]MH_I2C_Read... [22:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:44]Read from MH i2c: E2 03 00 [22:59:44]MH_I2C_Read... [22:59:44]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [22:59:44]RAPDU: 90 00 [22:59:44]wFMCommunicate OK [22:59:44]SAM_PROTO_ClearQueue done [22:59:44]KKMCreateOFDPacket [22:59:44]OFDProtocolAddRootSTLVToBuf [22:59:44]FM_MakeSignedData [22:59:44]FM_MakeSignedData [22:59:44]SAM_PROTO_SignData [22:59:44]wFMCommunicate request_size=4 [22:59:44]MH_SAM_APDU [22:59:44]CAPDU: 80 0D 01 02 [22:59:44]Write to MH i2c: E2 08 00 1C 01 80 0D 01 02 00 00 00 00 96 [22:59:44]Write i2c OK [22:59:44]MH_I2C_Read... [22:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:44]Read from MH i2c: E2 [22:59:44]MH_I2C_Read... [22:59:44]Read from MH i2c: E2 03 00 [22:59:44]MH_I2C_Read... [22:59:44]Read from MH i2c: E2 03 00 1C 01 00 90 00 91 [22:59:44]RAPDU: 90 00 [22:59:44]wFMCommunicate OK [22:59:44]wFMCommunicate request_size=255 [22:59:44]MH_SAM_APDU [22:59:44]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 [22:59:44]Write to MH i2c: E2 02 01 1D 01 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 38 [22:59:44]Write i2c OK [22:59:44]MH_I2C_Read... [22:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:45]Read from MH i2c: E2 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: E2 03 00 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: E2 03 00 1D 01 00 90 00 92 [22:59:45]RAPDU: 90 00 [22:59:45]wFMCommunicate OK [22:59:45]wFMCommunicate request_size=152 [22:59:45]MH_SAM_APDU [22:59:45]CAPDU: 80 0D 02 02 93 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 50 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 60 57 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2C 01 00 35 04 06 00 78 6B 09 63 D0 BE [22:59:45]Write to MH i2c: E2 9B 00 1E 01 80 0D 02 02 93 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 50 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 60 57 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2C 01 00 35 04 06 00 78 6B 09 63 D0 BE 00 00 31 [22:59:45]Write i2c OK [22:59:45]MH_I2C_Read... [22:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:45]Read from MH i2c: E2 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: E2 03 00 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: E2 03 00 1E 01 00 90 00 93 [22:59:45]RAPDU: 90 00 [22:59:45]wFMCommunicate OK [22:59:45]wFMCommunicate request_size=4 [22:59:45]MH_SAM_APDU [22:59:45]CAPDU: 80 0D 03 02 [22:59:45]Write to MH i2c: E2 08 00 1F 01 80 0D 03 02 00 00 00 00 9B [22:59:45]Write i2c OK [22:59:45]MH_I2C_Read... [22:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:45]Read from MH i2c: E2 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: E2 0B 00 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: E2 0B 00 1F 01 00 EF C6 63 5C 8D 28 6F 70 90 00 A4 [22:59:45]RAPDU: EF C6 63 5C 8D 28 6F 70 90 00 [22:59:45]wFMCommunicate OK [22:59:45]SAM_PROTO_SignData done [22:59:45]FM_MakeSignedData done [22:59:45]CreateOFDProtocolMessage [22:59:45]wFMCommunicate request_size=4 [22:59:45]MH_SAM_APDU [22:59:45]CAPDU: 80 11 00 00 [22:59:45]Write to MH i2c: E2 08 00 20 01 80 11 00 00 00 00 00 00 9B [22:59:45]Write i2c OK [22:59:45]MH_I2C_Read... [22:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:45]Read from MH i2c: E2 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: E2 17 00 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: E2 17 00 20 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 EB [22:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:59:45]wFMCommunicate OK [22:59:45]CreateOFDProtocolMessage done [22:59:45]OFDSenderStorePacket 76897 [22:59:45]StoreOFDPacket docnum=76897 [22:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 9D 01 00 00 ED 64 95 01 65 EE 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 60 57 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2C 01 00 35 04 06 00 78 6B 09 63 D0 BE EF C6 63 5C 8D 28 6F 70 [22:59:45]CheckFolder [22:59:45]dirname=/storage/ofd_packets [22:59:45]CheckFolder done [22:59:45]ProducePacketName [22:59:45]name=ofd_packets/00076897 [22:59:45]NVStorageSaveData ofd_packets/00076897 [22:59:45]File name is /storage/ofd_packets/00076897 [22:59:45]Write 443 bytes [22:59:45]NVStorageSaveData done [22:59:45]OFDSenderStorePacket done [22:59:45]KKMCreateOFDPacket done [22:59:45]NVStorageSaveData kkm_last_timestamp [22:59:45]File name is /storage/kkm_last_timestamp [22:59:45]Write 4 bytes [22:59:45]NVStorageSaveData done [22:59:45]ExternCall_PrintAddStr [22:59:45]wPrintStart [22:59:45]Write to MH i2c: 01 00 00 21 01 22 [22:59:45]Write i2c OK [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: 01 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: 01 07 00 [22:59:45]MH_I2C_Read... [22:59:45]Read from MH i2c: 01 07 00 21 01 00 00 00 00 00 FF 0F 37 [22:59:45]RasterBufferAndPrint [22:59:45]line Счет N : (3)220952 [22:59:45]line ИНН: 02508201610067 [22:59:45]line Контрольно-Кассовый Чек [22:59:45]line ПРОДАЖА [22:59:45]line Товар: 48741958 [22:59:45]line Сигареты Parliament Aqua Blue [22:59:45]line 1.000 * 151.00 [22:59:45]line = 151.00 [22:59:45]line НДС 12% НСП 1% [22:59:45]line > о реализуемом товаре [22:59:45]line Товар: 4600682000280 [22:59:45]line Напиток FLash up мохито 0,45 ж/б [22:59:45]line 2.000 * 85.00 [22:59:45]line = 170.00 [22:59:45]line НДС 12% НСП 1% [22:59:45]line > о реализуемом товаре [22:59:45]line ИТОГО: 321.00 [22:59:45]line НСП 1% : 2.84 [22:59:45]line НДС 12% : 34.08 [22:59:45]line Наличными: 321.00 [22:59:45]line Безнал.: 0.00 [22:59:45]line Место: АЗС № 144 "Партнер Нефть" [22:59:45]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [22:59:45]line СНО: Общий режим [22:59:45]line Чек 93 22.06.2024 22:59 [22:59:45]line Смена: 395 ФФД: 1.0 [22:59:45]line ЗНМ: 0300000170 [22:59:45]line РНМ: 0000000000095696 [22:59:45]line Версия ККМ: 001 [22:59:45]line ФМ: 0000000000875009 [22:59:45]line ФД: 76897 [22:59:45]line ФПД: 132401114370238 [22:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T225944&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76897&fm=132401114370238&tin=02508201610067®Number=0000000000095696&sum=32100 [22:59:45]line 0 [22:59:45]OFD Sender: Processing packet 76897 [packets to send 351, broken 350] [22:59:45]ProducePacketName [22:59:45]name=ofd_packets/00076897 [22:59:45]OFD Sender: To server: pG, [22:59:45]CommunicateWithHost lk.salyk.kg:30040 [22:59:45]ConnectInit lk.salyk.kg [22:59:45]written 0, free lines is 4095 [22:59:45]Connected sock=10 [22:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 9D 01 00 00 ED 64 95 01 65 EE 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0D 00 00 00 00 07 04 06 00 64 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 60 57 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2C 01 00 35 04 06 00 78 6B 09 63 D0 BE EF C6 63 5C 8D 28 6F 70 [22:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 0B 4C 47 00 50 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 61 2C 01 00 F4 03 04 00 F9 FD 76 66 B6 04 01 00 00 F9 E5 51 A7 D2 35 26 37 [22:59:46]CommunicateWithHost err = 0 [22:59:46]CheckOFDResponse [22:59:46]1017 (14) - 77093643461234 [22:59:46]1041 (16) - 0000000000875009 [22:59:46]1040 (4) - 76897 [22:59:46]1012 (4) - 22.06.2024 16:38 [22:59:46]1206 (1) - 0 [22:59:46]OFD Sender: Remove packet 76897 [22:59:46]ProducePacketName [22:59:46]name=ofd_packets/00076897 [22:59:46]NVStorageDeleteData [22:59:46]Write to MH i2c: 01 00 00 51 01 52 [22:59:46]Write i2c OK [22:59:46]MH_I2C_Read... [22:59:46]Read from MH i2c: 01 [22:59:46]MH_I2C_Read... [22:59:46]Read from MH i2c: 01 07 00 [22:59:46]MH_I2C_Read... [22:59:46]Read from MH i2c: 01 07 00 51 01 00 00 00 00 00 7A 0C DF [22:59:46]RasterBufferAndPrint [22:59:46]line [22:59:46]line [22:59:46]line [22:59:46]line [22:59:46]line [22:59:46]written 0, free lines is 3203 [22:59:46]MH_Cut [22:59:46]Write to MH i2c: D1 01 00 58 01 01 2B [22:59:46]Write i2c OK [22:59:46]MH_I2C_Read... [22:59:46]Read from MH i2c: D1 [22:59:46]MH_I2C_Read... [22:59:46]Read from MH i2c: D1 01 00 [22:59:46]MH_I2C_Read... [22:59:46]Read from MH i2c: D1 01 00 58 01 00 2A [22:59:46]Write to MH i2c: 01 00 00 59 01 5A [22:59:46]Write i2c OK [22:59:46]MH_I2C_Read... [22:59:46]OFD Sender: No OFD packet to send [22:59:47]*** Cut start [22:59:47]*** Partial cut [22:59:47]*** CUTSNS_PIN = 1 [22:59:47]*** CUTSNS_PIN = 0 [22:59:47]*** Brake cut motor [22:59:47]Read from MH i2c: 01 [22:59:47]MH_I2C_Read... [22:59:47]*** Stop cut motor [22:59:47]*** Cut end [22:59:47]Read from MH i2c: 01 07 00 [22:59:47]MH_I2C_Read... [22:59:47]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [22:59:47]process_action close_receipt done [22:59:47]requested_data is exist [22:59:47]produce_requested_data [22:59:47]requested_item fm.sn is exist - process it [22:59:47]wFMCommunicate request_size=4 [22:59:47]MH_SAM_APDU [22:59:47]CAPDU: 80 11 00 00 [22:59:47]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [22:59:47]Write i2c OK [22:59:47]MH_I2C_Read... [22:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:47]Read from MH i2c: E2 [22:59:47]MH_I2C_Read... [22:59:47]Read from MH i2c: E2 17 00 [22:59:47]MH_I2C_Read... [22:59:47]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 25 [22:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [22:59:47]wFMCommunicate OK [22:59:47]requested_item fd.num is exist - process it [22:59:47]SAM_PROTO_GetFieldsCounters [22:59:47]wFMCommunicate request_size=4 [22:59:47]MH_SAM_APDU [22:59:47]CAPDU: 80 13 00 00 [22:59:47]Write to MH i2c: E2 08 00 5B 01 80 13 00 00 00 00 00 00 D8 [22:59:47]Write i2c OK [22:59:47]MH_I2C_Read... [22:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:47]Read from MH i2c: E2 [22:59:47]MH_I2C_Read... [22:59:47]Read from MH i2c: E2 62 00 [22:59:47]MH_I2C_Read... [22:59:47]Read from MH i2c: E2 62 00 5B 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 61 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [22:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 61 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:47]wFMCommunicate OK [22:59:47]SAM_PROTO_GetFieldsCounters done [22:59:47]requested_item shift.num is exist - process it [22:59:47]requested_item shift.opened is exist - process it [22:59:47]req_shift_opened [22:59:47]FM_GetShiftState [22:59:47]SAM_PROTO_GetShiftState [22:59:47]wFMCommunicate request_size=4 [22:59:47]MH_SAM_APDU [22:59:47]CAPDU: 80 13 01 00 [22:59:47]Write to MH i2c: E2 08 00 5C 01 80 13 01 00 00 00 00 00 DA [22:59:47]Write i2c OK [22:59:47]MH_I2C_Read... [22:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:47]Read from MH i2c: E2 [22:59:47]MH_I2C_Read... [22:59:47]Read from MH i2c: E2 0E 00 [22:59:47]MH_I2C_Read... [22:59:47]Read from MH i2c: E2 0E 00 5C 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 D0 [22:59:47]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [22:59:47]wFMCommunicate OK [22:59:47]SAM_PROTO_GetShiftState done [22:59:47]FM_GetShiftState done [22:59:47]req_shift_opened done [22:59:47]requested_item shift.open_date is exist - process it [22:59:47]req_shift_open_date [22:59:47]req_shift_open_date done [22:59:47]produce_requested_data done [22:59:47]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76897,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [22:59:47]process_action_free close_receipt [22:59:47]json_value_free [22:59:47]json_value_free done [22:59:47]process_json_proto returns [22:59:47]Send response to host [22:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76897,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [22:59:47]free response buf [22:59:47]execute_script done [22:59:47]execute_script returns [22:59:47]free content buf [22:59:47]Sock 9.Close socket [22:59:47]Sock 9.Thread stoped [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:46]accept exits with 8 [23:27:46]New connection [23:27:46]New thread 3067088228 created [23:27:46]Thread 3066944868 joined [23:27:46]Waiting for new connection... [23:27:46] Sock 8.Parse request [23:27:46]Sock 8.Check first char [23:27:46]Sock 8.First char is OK [23:27:46]request: POST /json_proto HTTP/1.0 [23:27:46]Method: POST [23:27:46]URL: /json_proto [23:27:46]Method is POST - this is cgi request [23:27:46]url: /json_proto [23:27:46]query_string will be loaded in cgi processing [23:27:46]execute_cgi json_proto POST (null) [23:27:46]execute_cgi path=json_proto method=POST [23:27:46]POST find Content-Length [23:27:46]Host: 172.17.39.195:8080 [23:27:46]Content-Length: 619 [23:27:46]Content-Type: application/json [23:27:46] [23:27:46]POST finish read [23:27:46]Found Content-Length = 619 [23:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220953", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:46]execute_script... [23:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220953", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:46]POST & json_proto [23:27:46]process_json_proto [23:27:46]json parsed OK: [23:27:46]protocol is kg_v1.0 [23:27:46]action value=close_receipt [23:27:46]process_action close_receipt [23:27:46]cmd_close_receipt [23:27:46]MH_GetDate [23:27:46]Write to MH i2c: F0 00 00 5D 01 4D [23:27:46]Write i2c OK [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: F0 [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: F0 09 00 [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: F0 09 00 5D 01 00 F3 5D 77 66 99 81 91 64 92 [23:27:46]GetLastDocTimeStamp 1719097184 [23:27:46]current date 1719098867 [23:27:46]FM_GetShiftState [23:27:46]SAM_PROTO_GetShiftState [23:27:46]wFMCommunicate request_size=4 [23:27:46]MH_SAM_APDU [23:27:46]CAPDU: 80 13 01 00 [23:27:46]Write to MH i2c: E2 08 00 5E 01 80 13 01 00 00 00 00 00 DC [23:27:46]Write i2c OK [23:27:46]MH_I2C_Read... [23:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:46]Read from MH i2c: E2 [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: E2 0E 00 [23:27:46]MH_I2C_Read... [23:27:46]Read from MH i2c: E2 0E 00 5E 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 D2 [23:27:46]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [23:27:46]wFMCommunicate OK [23:27:46]SAM_PROTO_GetShiftState done [23:27:46]FM_GetShiftState done [23:27:46]opened in 1719016435 [23:27:46]opened+sec_in_day 1719102835 [23:27:46]quantity*price = 14000 [23:27:46]sum+1 = 14001 [23:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 94 22.06.2024 23:27 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76898 ФПД: 249053182930706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T232747&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76898&fm=249053182930706&tin=02508201610067®Number=0000000000095696&sum=14000 0 [23:27:47]StoreToDocumentArchive [23:27:47]shift 395 fd 76898 [23:27:47]save to /storage/0395/doc_00076898 [23:27:47]save last doc name /storage/0395/doc_00076898 to /storage/kkm_last_doc_name [23:27:47]save OK [23:27:47]Clear old archive folders... [23:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=271 [23:27:47]tlvbuf is 01FB2960 [23:27:47]SAM_PROTO_ClearQueue [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 09 00 00 [23:27:47]Write to MH i2c: E2 08 00 6B 01 80 09 00 00 00 00 00 00 DE [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 6B 01 00 90 00 E0 [23:27:47]RAPDU: 90 00 [23:27:47]wFMCommunicate OK [23:27:47]SAM_PROTO_ClearQueue done [23:27:47]KKMCreateOFDPacket [23:27:47]OFDProtocolAddRootSTLVToBuf [23:27:47]FM_MakeSignedData [23:27:47]FM_MakeSignedData [23:27:47]SAM_PROTO_SignData [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 0D 01 02 [23:27:47]Write to MH i2c: E2 08 00 6C 01 80 0D 01 02 00 00 00 00 E6 [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 6C 01 00 90 00 E1 [23:27:47]RAPDU: 90 00 [23:27:47]wFMCommunicate OK [23:27:47]wFMCommunicate request_size=255 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F3 5D 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [23:27:47]Write to MH i2c: E2 02 01 6D 01 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F3 5D 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 8B [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 6D 01 00 90 00 E2 [23:27:47]RAPDU: 90 00 [23:27:47]wFMCommunicate OK [23:27:47]wFMCommunicate request_size=30 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 0D 02 02 19 30 38 37 35 30 30 39 10 04 04 00 62 2C 01 00 35 04 06 00 E2 83 36 7F AF 12 [23:27:47]Write to MH i2c: E2 21 00 6E 01 80 0D 02 02 19 00 30 38 37 35 30 30 39 10 04 04 00 62 2C 01 00 35 04 06 00 E2 83 36 7F AF 12 00 00 49 [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 03 00 6E 01 00 90 00 E3 [23:27:47]RAPDU: 90 00 [23:27:47]wFMCommunicate OK [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 0D 03 02 [23:27:47]Write to MH i2c: E2 08 00 6F 01 80 0D 03 02 00 00 00 00 EB [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 0B 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 0B 00 6F 01 00 4D 10 F8 20 DA 4A E2 24 90 00 8B [23:27:47]RAPDU: 4D 10 F8 20 DA 4A E2 24 90 00 [23:27:47]wFMCommunicate OK [23:27:47]SAM_PROTO_SignData done [23:27:47]FM_MakeSignedData done [23:27:47]CreateOFDProtocolMessage [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 11 00 00 [23:27:47]Write to MH i2c: E2 08 00 70 01 80 11 00 00 00 00 00 00 EB [23:27:47]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:48]Read from MH i2c: E2 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 17 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 17 00 70 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 3B [23:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:27:48]wFMCommunicate OK [23:27:48]CreateOFDProtocolMessage done [23:27:48]OFDSenderStorePacket 76898 [23:27:48]StoreOFDPacket docnum=76898 [23:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 C9 3D 1B 01 4D 19 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F3 5D 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 62 2C 01 00 35 04 06 00 E2 83 36 7F AF 12 4D 10 F8 20 DA 4A E2 24 [23:27:48]CheckFolder [23:27:48]dirname=/storage/ofd_packets [23:27:48]CheckFolder done [23:27:48]ProducePacketName [23:27:48]name=ofd_packets/00076898 [23:27:48]NVStorageSaveData ofd_packets/00076898 [23:27:48]File name is /storage/ofd_packets/00076898 [23:27:48]Write 321 bytes [23:27:48]NVStorageSaveData done [23:27:48]OFDSenderStorePacket done [23:27:48]KKMCreateOFDPacket done [23:27:48]NVStorageSaveData kkm_last_timestamp [23:27:48]File name is /storage/kkm_last_timestamp [23:27:48]Write 4 bytes [23:27:48]NVStorageSaveData done [23:27:48]ExternCall_PrintAddStr [23:27:48]wPrintStart [23:27:48]Write to MH i2c: 01 00 00 71 01 72 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 07 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 FF 0F 87 [23:27:48]RasterBufferAndPrint [23:27:48]line Счет N : (3)220953 [23:27:48]line ИНН: 02508201610067 [23:27:48]line Контрольно-Кассовый Чек [23:27:48]line ПРОДАЖА [23:27:48]line Товар: 47802995 [23:27:48]line Сигареты Winston XS Silver [23:27:48]line 1.000 * 140.00 [23:27:48]line = 140.00 [23:27:48]line НДС 12% НСП 1% [23:27:48]line > о реализуемом товаре [23:27:48]line ИТОГО: 140.00 [23:27:48]line НСП 1% : 1.24 [23:27:48]line НДС 12% : 14.87 [23:27:48]line Наличными: 140.00 [23:27:48]line Безнал.: 0.00 [23:27:48]line Место: АЗС № 144 "Партнер Нефть" [23:27:48]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [23:27:48]line СНО: Общий режим [23:27:48]line Чек 94 22.06.2024 23:27 [23:27:48]line Смена: 395 ФФД: 1.0 [23:27:48]line ЗНМ: 0300000170 [23:27:48]line РНМ: 0000000000095696 [23:27:48]line Версия ККМ: 001 [23:27:48]line ФМ: 0000000000875009 [23:27:48]line ФД: 76898 [23:27:48]line ФПД: 249053182930706 [23:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T232747&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76898&fm=249053182930706&tin=02508201610067®Number=0000000000095696&sum=14000 [23:27:48]line 0 [23:27:48]OFD Sender: Processing packet 76898 [packets to send 351, broken 350] [23:27:48]ProducePacketName [23:27:48]name=ofd_packets/00076898 [23:27:48]OFD Sender: To server: pG, [23:27:48]CommunicateWithHost lk.salyk.kg:30040 [23:27:48]ConnectInit lk.salyk.kg [23:27:48]written 0, free lines is 4095 [23:27:48]Connected sock=10 [23:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 C9 3D 1B 01 4D 19 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F3 5D 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 62 2C 01 00 35 04 06 00 E2 83 36 7F AF 12 4D 10 F8 20 DA 4A E2 24 [23:27:48]Write to MH i2c: 01 00 00 99 01 9A [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 07 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FE 0C AB [23:27:48]RasterBufferAndPrint [23:27:48]line [23:27:48]line [23:27:48]line [23:27:48]line [23:27:48]line [23:27:48]written 0, free lines is 3332 [23:27:48]MH_Cut [23:27:48]Write to MH i2c: D1 01 00 A0 01 01 73 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: D1 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: D1 01 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: D1 01 00 A0 01 00 72 [23:27:48]Write to MH i2c: 01 00 00 A1 01 A2 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 67 38 47 00 89 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 62 2C 01 00 F4 03 04 00 8C 04 77 66 B6 04 01 00 00 49 B7 98 DC E5 60 60 51 [23:27:48]CommunicateWithHost err = 0 [23:27:48]CheckOFDResponse [23:27:48]1017 (14) - 77093643461234 [23:27:48]1041 (16) - 0000000000875009 [23:27:48]1040 (4) - 76898 [23:27:48]1012 (4) - 22.06.2024 17:06 [23:27:48]1206 (1) - 0 [23:27:48]OFD Sender: Remove packet 76898 [23:27:48]ProducePacketName [23:27:48]name=ofd_packets/00076898 [23:27:48]NVStorageDeleteData [23:27:49]OFD Sender: No OFD packet to send [23:27:49]*** Cut start [23:27:49]*** Partial cut [23:27:49]*** CUTSNS_PIN = 1 [23:27:49]*** CUTSNS_PIN = 0 [23:27:49]*** Brake cut motor [23:27:50]Read from MH i2c: 01 [23:27:50]MH_I2C_Read... [23:27:50]*** Stop cut motor [23:27:50]*** Cut end [23:27:50]Read from MH i2c: 01 07 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [23:27:50]process_action close_receipt done [23:27:50]requested_data is exist [23:27:50]produce_requested_data [23:27:50]requested_item fm.sn is exist - process it [23:27:50]wFMCommunicate request_size=4 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 11 00 00 [23:27:50]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 17 00 [23:27:50]MH_I2C_Read... [23:27:50]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 35 30 30 39 90 00 6D [23:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:27:50]wFMCommunicate OK [23:27:50]requested_item fd.num is exist - process it [23:27:50]SAM_PROTO_GetFieldsCounters [23:27:50]wFMCommunicate request_size=4 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 13 00 00 [23:27:50]Write to MH i2c: E2 08 00 A3 01 80 13 00 00 00 00 00 00 20 [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 62 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 62 00 A3 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 62 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [23:27: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 62 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:50]wFMCommunicate OK [23:27:50]SAM_PROTO_GetFieldsCounters done [23:27:50]requested_item shift.num is exist - process it [23:27:50]requested_item shift.opened is exist - process it [23:27:50]req_shift_opened [23:27:50]FM_GetShiftState [23:27:50]SAM_PROTO_GetShiftState [23:27:50]wFMCommunicate request_size=4 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 13 01 00 [23:27:50]Write to MH i2c: E2 08 00 A4 01 80 13 01 00 00 00 00 00 22 [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 0E 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 0E 00 A4 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 18 [23:27:50]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [23:27:50]wFMCommunicate OK [23:27:50]SAM_PROTO_GetShiftState done [23:27:50]FM_GetShiftState done [23:27:50]req_shift_opened done [23:27:50]requested_item shift.open_date is exist - process it [23:27:50]req_shift_open_date [23:27:50]req_shift_open_date done [23:27:50]produce_requested_data done [23:27:50]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76898,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [23:27:50]process_action_free close_receipt [23:27:50]json_value_free [23:27:50]json_value_free done [23:27:50]process_json_proto returns [23:27:50]Send response to host [23:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76898,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [23:27:50]free response buf [23:27:50]execute_script done [23:27:50]execute_script returns [23:27:50]free content buf [23:27:50]Sock 8.Close socket [23:27:50]Sock 8.Thread stoped [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:27]accept exits with 9 [23:49:27]New connection [23:49:27]New thread 3066944868 created [23:49:27]Thread 3067088228 joined [23:49:27]Waiting for new connection... [23:49:27] Sock 9.Parse request [23:49:27]Sock 9.Check first char [23:49:27]Sock 9.First char is OK [23:49:27]request: POST /json_proto HTTP/1.0 [23:49:27]Method: POST [23:49:27]URL: /json_proto [23:49:27]Method is POST - this is cgi request [23:49:27]url: /json_proto [23:49:27]query_string will be loaded in cgi processing [23:49:27]execute_cgi json_proto POST (null) [23:49:27]execute_cgi path=json_proto method=POST [23:49:27]POST find Content-Length [23:49:27]Host: 172.17.39.195:8080 [23:49:27]Content-Length: 1033 [23:49:27]Content-Type: application/json [23:49:27] [23:49:27]POST finish read [23:49:27]Found Content-Length = 1033 [23:49:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220954", "tax_sys" : 0, "items" : [ { "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:27]execute_script... [23:49:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220954", "tax_sys" : 0, "items" : [ { "code": "4607015232868", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 200\u0433", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:27]POST & json_proto [23:49:27]process_json_proto [23:49:27]json parsed OK: [23:49:27]protocol is kg_v1.0 [23:49:27]action value=close_receipt [23:49:27]process_action close_receipt [23:49:27]cmd_close_receipt [23:49:27]MH_GetDate [23:49:27]Write to MH i2c: F0 00 00 A5 01 95 [23:49:27]Write i2c OK [23:49:27]MH_I2C_Read... [23:49:27]Read from MH i2c: F0 [23:49:27]MH_I2C_Read... [23:49:27]Read from MH i2c: F0 09 00 [23:49:27]MH_I2C_Read... [23:49:27]Read from MH i2c: F0 09 00 A5 01 00 08 63 77 66 99 81 91 64 F5 [23:49:27]GetLastDocTimeStamp 1719098867 [23:49:27]current date 1719100168 [23:49:27]FM_GetShiftState [23:49:27]SAM_PROTO_GetShiftState [23:49:27]wFMCommunicate request_size=4 [23:49:27]MH_SAM_APDU [23:49:27]CAPDU: 80 13 01 00 [23:49:27]Write to MH i2c: E2 08 00 A6 01 80 13 01 00 00 00 00 00 24 [23:49:27]Write i2c OK [23:49:27]MH_I2C_Read... [23:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:27]Read from MH i2c: E2 [23:49:27]MH_I2C_Read... [23:49:27]Read from MH i2c: E2 0E 00 [23:49:27]MH_I2C_Read... [23:49:27]Read from MH i2c: E2 0E 00 A6 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 1A [23:49:27]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [23:49:27]wFMCommunicate OK [23:49:27]SAM_PROTO_GetShiftState done [23:49:27]FM_GetShiftState done [23:49:27]opened in 1719016435 [23:49:27]opened+sec_in_day 1719102835 [23:49:27]quantity*price = 11300 [23:49:27]sum+1 = 11301 [23:49:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010056 Чай хол Let`s Go! зел лим ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 208.00 НСП 1% : 1.84 НДС 12% : 22.09 Наличными: 208.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 95 22.06.2024 23:49 Смена: 395 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76899 ФПД: 18531799380691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T234928&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76899&fm=18531799380691&tin=02508201610067®Number=0000000000095696&sum=20800 0 [23:49:28]StoreToDocumentArchive [23:49:28]shift 395 fd 76899 [23:49:28]save to /storage/0395/doc_00076899 [23:49:28]save last doc name /storage/0395/doc_00076899 to /storage/kkm_last_doc_name [23:49:28]save OK [23:49:28]Clear old archive folders... [23:49:28]ProcessDocumentItem done err = 0, tmpTLVsize=433 [23:49:28]tlvbuf is 01FB07F0 [23:49:28]SAM_PROTO_ClearQueue [23:49:28]wFMCommunicate request_size=4 [23:49:28]MH_SAM_APDU [23:49:28]CAPDU: 80 09 00 00 [23:49:28]Write to MH i2c: E2 08 00 B3 01 80 09 00 00 00 00 00 00 26 [23:49:28]Write i2c OK [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:28]Read from MH i2c: E2 03 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [23:49:28]RAPDU: 90 00 [23:49:28]wFMCommunicate OK [23:49:28]SAM_PROTO_ClearQueue done [23:49:28]KKMCreateOFDPacket [23:49:28]OFDProtocolAddRootSTLVToBuf [23:49:28]FM_MakeSignedData [23:49:28]FM_MakeSignedData [23:49:28]SAM_PROTO_SignData [23:49:28]wFMCommunicate request_size=4 [23:49:28]MH_SAM_APDU [23:49:28]CAPDU: 80 0D 01 02 [23:49:28]Write to MH i2c: E2 08 00 B4 01 80 0D 01 02 00 00 00 00 2E [23:49:28]Write i2c OK [23:49:28]MH_I2C_Read... [23:49:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 03 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [23:49:28]RAPDU: 90 00 [23:49:28]wFMCommunicate OK [23:49:28]wFMCommunicate request_size=255 [23:49:28]MH_SAM_APDU [23:49:28]CAPDU: 80 0D 02 02 FA 03 00 B1 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 [23:49:28]Write to MH i2c: E2 02 01 B5 01 80 0D 02 02 FA 00 03 00 B1 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 00 F6 [23:49:28]Write i2c OK [23:49:28]MH_I2C_Read... [23:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 03 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [23:49:28]RAPDU: 90 00 [23:49:28]wFMCommunicate OK [23:49:28]wFMCommunicate request_size=192 [23:49:28]MH_SAM_APDU [23:49:28]CAPDU: 80 0D 02 02 BB 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 08 63 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2C 01 00 35 04 06 00 10 DA C5 51 B2 D3 [23:49:28]Write to MH i2c: E2 C3 00 B6 01 80 0D 02 02 BB 00 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 08 63 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2C 01 00 35 04 06 00 10 DA C5 51 B2 D3 00 00 B0 [23:49:28]Write i2c OK [23:49:28]MH_I2C_Read... [23:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 03 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 03 00 B6 01 00 90 00 2B [23:49:28]RAPDU: 90 00 [23:49:28]wFMCommunicate OK [23:49:28]wFMCommunicate request_size=4 [23:49:28]MH_SAM_APDU [23:49:28]CAPDU: 80 0D 03 02 [23:49:28]Write to MH i2c: E2 08 00 B7 01 80 0D 03 02 00 00 00 00 33 [23:49:28]Write i2c OK [23:49:28]MH_I2C_Read... [23:49:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 0B 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 0B 00 B7 01 00 39 24 C5 72 E1 48 CA D4 90 00 8F [23:49:28]RAPDU: 39 24 C5 72 E1 48 CA D4 90 00 [23:49:28]wFMCommunicate OK [23:49:28]SAM_PROTO_SignData done [23:49:28]FM_MakeSignedData done [23:49:28]CreateOFDProtocolMessage [23:49:28]wFMCommunicate request_size=4 [23:49:28]MH_SAM_APDU [23:49:28]CAPDU: 80 11 00 00 [23:49:28]Write to MH i2c: E2 08 00 B8 01 80 11 00 00 00 00 00 00 33 [23:49:28]Write i2c OK [23:49:28]MH_I2C_Read... [23:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:28]Read from MH i2c: E2 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 17 00 [23:49:28]MH_I2C_Read... [23:49:28]Read from MH i2c: E2 17 00 B8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 83 [23:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:49:28]wFMCommunicate OK [23:49:28]CreateOFDProtocolMessage done [23:49:28]OFDSenderStorePacket 76899 [23:49:28]StoreOFDPacket docnum=76899 [23:49:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 C5 01 00 00 BE 9A BD 01 6A 21 5A 03 01 00 03 00 B1 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 08 63 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2C 01 00 35 04 06 00 10 DA C5 51 B2 D3 39 24 C5 72 E1 48 CA D4 [23:49:28]CheckFolder [23:49:28]dirname=/storage/ofd_packets [23:49:28]CheckFolder done [23:49:28]ProducePacketName [23:49:28]name=ofd_packets/00076899 [23:49:28]NVStorageSaveData ofd_packets/00076899 [23:49:28]File name is /storage/ofd_packets/00076899 [23:49:28]Write 483 bytes [23:49:28]NVStorageSaveData done [23:49:29]OFDSenderStorePacket done [23:49:29]KKMCreateOFDPacket done [23:49:29]NVStorageSaveData kkm_last_timestamp [23:49:29]File name is /storage/kkm_last_timestamp [23:49:29]Write 4 bytes [23:49:29]NVStorageSaveData done [23:49:29]ExternCall_PrintAddStr [23:49:29]wPrintStart [23:49:29]Write to MH i2c: 01 00 00 B9 01 BA [23:49:29]OFD Sender: Processing packet 76899 [packets to send 351, broken 350] [23:49:29]ProducePacketName [23:49:29]name=ofd_packets/00076899 [23:49:29]OFD Sender: To server: pG, [23:49:29]CommunicateWithHost lk.salyk.kg:30040 [23:49:29]ConnectInit lk.salyk.kg [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: 01 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: 01 07 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 FF 0F CF [23:49:29]RasterBufferAndPrint [23:49:29]line Счет N : (3)220954 [23:49:29]line ИНН: 02508201610067 [23:49:29]line Контрольно-Кассовый Чек [23:49:29]line ПРОДАЖА [23:49:29]line Товар: 4607015232868 [23:49:29]line Вафли Яшкино в шоколадной глазури 200г [23:49:29]line 1.000 * 113.00 [23:49:29]line = 113.00 [23:49:29]line НДС 12% НСП 1% [23:49:29]line > о реализуемом товаре [23:49:29]line Товар: 4700003010056 [23:49:29]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [23:49:29]line 1.000 * 95.00 [23:49:29]line = 95.00 [23:49:29]line НДС 12% НСП 1% [23:49:29]line > о реализуемом товаре [23:49:29]line ИТОГО: 208.00 [23:49:29]line НСП 1% : 1.84 [23:49:29]line НДС 12% : 22.09 [23:49:29]line Наличными: 208.00 [23:49:29]line Безнал.: 0.00 [23:49:29]line Место: АЗС № 144 "Партнер Нефть" [23:49:29]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [23:49:29]line СНО: Общий режим [23:49:29]line Чек 95 22.06.2024 23:49 [23:49:29]line Смена: 395 ФФД: 1.0 [23:49:29]line ЗНМ: 0300000170 [23:49:29]line РНМ: 0000000000095696 [23:49:29]line Версия ККМ: 001 [23:49:29]line ФМ: 0000000000875009 [23:49:29]line ФД: 76899 [23:49:29]line ФПД: 18531799380691 [23:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T234928&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76899&fm=18531799380691&tin=02508201610067®Number=0000000000095696&sum=20800 [23:49:29]line 0 [23:49:29]written 0, free lines is 4095 [23:49:29]Connected sock=10 [23:49:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 C5 01 00 00 BE 9A BD 01 6A 21 5A 03 01 00 03 00 B1 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 38 36 38 06 04 44 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 08 63 77 66 0E 04 04 00 8B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2C 01 00 35 04 06 00 10 DA C5 51 B2 D3 39 24 C5 72 E1 48 CA D4 [23:49:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C6 D1 47 00 D3 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 63 2C 01 00 F4 03 04 00 A1 09 77 66 B6 04 01 00 00 F9 AB 41 5A E9 5A 5B 8E [23:49:29]CommunicateWithHost err = 0 [23:49:29]CheckOFDResponse [23:49:29]1017 (14) - 77093643461234 [23:49:29]1041 (16) - 0000000000875009 [23:49:29]1040 (4) - 76899 [23:49:29]1012 (4) - 22.06.2024 17:28 [23:49:29]1206 (1) - 0 [23:49:29]OFD Sender: Remove packet 76899 [23:49:29]ProducePacketName [23:49:29]name=ofd_packets/00076899 [23:49:29]NVStorageDeleteData [23:49:29]Write to MH i2c: 01 00 00 E9 01 EA [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: 01 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: 01 07 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 8C 0C 89 [23:49:29]RasterBufferAndPrint [23:49:29]line [23:49:29]line [23:49:29]line [23:49:29]line [23:49:29]line [23:49:29]written 0, free lines is 3220 [23:49:29]MH_Cut [23:49:29]Write to MH i2c: D1 01 00 F0 01 01 C3 [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: D1 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: D1 01 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: D1 01 00 F0 01 00 C2 [23:49:29]Write to MH i2c: 01 00 00 F1 01 F2 [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:30]OFD Sender: No OFD packet to send [23:49:30]*** Cut start [23:49:30]*** Partial cut [23:49:30]*** CUTSNS_PIN = 1 [23:49:30]*** CUTSNS_PIN = 0 [23:49:30]*** Brake cut motor [23:49:31]Read from MH i2c: 01 [23:49:31]MH_I2C_Read... [23:49:31]*** Stop cut motor [23:49:31]*** Cut end [23:49:31]Read from MH i2c: 01 07 00 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [23:49:31]process_action close_receipt done [23:49:31]requested_data is exist [23:49:31]produce_requested_data [23:49:31]requested_item fm.sn is exist - process it [23:49:31]wFMCommunicate request_size=4 [23:49:31]MH_SAM_APDU [23:49:31]CAPDU: 80 11 00 00 [23:49:31]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [23:49:31]Write i2c OK [23:49:31]MH_I2C_Read... [23:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:31]Read from MH i2c: E2 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 17 00 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BD [23:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [23:49:31]wFMCommunicate OK [23:49:31]requested_item fd.num is exist - process it [23:49:31]SAM_PROTO_GetFieldsCounters [23:49:31]wFMCommunicate request_size=4 [23:49:31]MH_SAM_APDU [23:49:31]CAPDU: 80 13 00 00 [23:49:31]Write to MH i2c: E2 08 00 F3 01 80 13 00 00 00 00 00 00 70 [23:49:31]Write i2c OK [23:49:31]MH_I2C_Read... [23:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:31]Read from MH i2c: E2 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 62 00 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 62 00 F3 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [23:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:31]wFMCommunicate OK [23:49:31]SAM_PROTO_GetFieldsCounters done [23:49:31]requested_item shift.num is exist - process it [23:49:31]requested_item shift.opened is exist - process it [23:49:31]req_shift_opened [23:49:31]FM_GetShiftState [23:49:31]SAM_PROTO_GetShiftState [23:49:31]wFMCommunicate request_size=4 [23:49:31]MH_SAM_APDU [23:49:31]CAPDU: 80 13 01 00 [23:49:31]Write to MH i2c: E2 08 00 F4 01 80 13 01 00 00 00 00 00 72 [23:49:31]Write i2c OK [23:49:31]MH_I2C_Read... [23:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:31]Read from MH i2c: E2 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 0E 00 [23:49:31]MH_I2C_Read... [23:49:31]Read from MH i2c: E2 0E 00 F4 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 68 [23:49:31]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [23:49:31]wFMCommunicate OK [23:49:31]SAM_PROTO_GetShiftState done [23:49:31]FM_GetShiftState done [23:49:31]req_shift_opened done [23:49:31]requested_item shift.open_date is exist - process it [23:49:31]req_shift_open_date [23:49:31]req_shift_open_date done [23:49:31]produce_requested_data done [23:49:31]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [23:49:31]process_action_free close_receipt [23:49:31]json_value_free [23:49:31]json_value_free done [23:49:31]process_json_proto returns [23:49:31]Send response to host [23:49:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [23:49:31]free response buf [23:49:31]execute_script done [23:49:31]execute_script returns [23:49:31]free content buf [23:49:31]Sock 9.Close socket [23:49:31]Sock 9.Thread stoped [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:09]accept exits with 8 [00:16:09]New connection [00:16:09]New thread 3067088228 created [00:16:09]Thread 3066944868 joined [00:16:09]Waiting for new connection... [00:16:09] Sock 8.Parse request [00:16:09]Sock 8.Check first char [00:16:09]Sock 8.First char is OK [00:16:09]request: POST /json_proto HTTP/1.0 [00:16:09]Method: POST [00:16:09]URL: /json_proto [00:16:09]Method is POST - this is cgi request [00:16:09]url: /json_proto [00:16:09]query_string will be loaded in cgi processing [00:16:09]execute_cgi json_proto POST (null) [00:16:09]execute_cgi path=json_proto method=POST [00:16:09]POST find Content-Length [00:16:09]Host: 172.17.39.195:8080 [00:16:09]Content-Length: 215 [00:16:09]Content-Type: application/json [00:16:09] [00:16:09]POST finish read [00:16:09]Found Content-Length = 215 [00:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:09]execute_script... [00:16:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:09]POST & json_proto [00:16:09]process_json_proto [00:16:09]json parsed OK: [00:16:09]protocol is kg_v1.0 [00:16:09]action value=get_value [00:16:09]process_action get_value [00:16:09]cmd_get_value [00:16:09]process_action get_value done [00:16:09]requested_data is exist [00:16:09]produce_requested_data [00:16:09]requested_item kkm.sn is exist - process it [00:16:09]requested_item kkm.ver is exist - process it [00:16:09]requested_item fm.sn is exist - process it [00:16:09]wFMCommunicate request_size=4 [00:16:09]MH_SAM_APDU [00:16:09]CAPDU: 80 11 00 00 [00:16:09]Write to MH i2c: E2 08 00 F5 01 80 11 00 00 00 00 00 00 70 [00:16:09]Write i2c OK [00:16:09]MH_I2C_Read... [00:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:09]Read from MH i2c: E2 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 17 00 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 17 00 F5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C0 [00:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:16:09]wFMCommunicate OK [00:16:09]requested_item fd.num is exist - process it [00:16:09]SAM_PROTO_GetFieldsCounters [00:16:09]wFMCommunicate request_size=4 [00:16:09]MH_SAM_APDU [00:16:09]CAPDU: 80 13 00 00 [00:16:09]Write to MH i2c: E2 08 00 F6 01 80 13 00 00 00 00 00 00 73 [00:16:09]Write i2c OK [00:16:09]MH_I2C_Read... [00:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:09]Read from MH i2c: E2 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 62 00 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 62 00 F6 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [00:16: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:09]wFMCommunicate OK [00:16:09]SAM_PROTO_GetFieldsCounters done [00:16:09]requested_item shift.num is exist - process it [00:16:09]requested_item shift.opened is exist - process it [00:16:09]req_shift_opened [00:16:09]FM_GetShiftState [00:16:09]SAM_PROTO_GetShiftState [00:16:09]wFMCommunicate request_size=4 [00:16:09]MH_SAM_APDU [00:16:09]CAPDU: 80 13 01 00 [00:16:09]Write to MH i2c: E2 08 00 F7 01 80 13 01 00 00 00 00 00 75 [00:16:09]Write i2c OK [00:16:09]MH_I2C_Read... [00:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:09]Read from MH i2c: E2 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 0E 00 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 0E 00 F7 01 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 6B [00:16:09]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [00:16:09]wFMCommunicate OK [00:16:09]SAM_PROTO_GetShiftState done [00:16:09]FM_GetShiftState done [00:16:09]req_shift_opened done [00:16:09]requested_item shift.open_date is exist - process it [00:16:09]req_shift_open_date [00:16:09]req_shift_open_date done [00:16:09]produce_requested_data done [00:16:09]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [00:16:09]process_action_free get_value [00:16:09]json_value_free [00:16:09]json_value_free done [00:16:09]process_json_proto returns [00:16:09]Send response to host [00:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [00:16:09]free response buf [00:16:09]execute_script done [00:16:09]execute_script returns [00:16:09]free content buf [00:16:09]Sock 8.Close socket [00:16:09]Sock 8.Thread stoped [00:16:09]accept exits with 9 [00:16:09]New connection [00:16:09]New thread 3066944868 created [00:16:09]Thread 3067088228 joined [00:16:09]Waiting for new connection... [00:16:09] Sock 9.Parse request [00:16:09]Sock 9.Check first char [00:16:09]Sock 9.First char is OK [00:16:09]request: POST /json_proto HTTP/1.0 [00:16:09]Method: POST [00:16:09]URL: /json_proto [00:16:09]Method is POST - this is cgi request [00:16:09]url: /json_proto [00:16:09]query_string will be loaded in cgi processing [00:16:09]execute_cgi json_proto POST (null) [00:16:09]execute_cgi path=json_proto method=POST [00:16:09]POST find Content-Length [00:16:09]Host: 172.17.39.195:8080 [00:16:09]Content-Length: 331 [00:16:09]Content-Type: application/json [00:16:09] [00:16:09]POST finish read [00:16:09]Found Content-Length = 331 [00:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:16:09]execute_script... [00:16: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" ] } } [00:16:10]POST & json_proto [00:16:10]process_json_proto [00:16:10]json parsed OK: [00:16:10]protocol is kg_v1.0 [00:16:10]action value=get_value [00:16:10]process_action get_value [00:16:10]cmd_get_value [00:16:10]process_action get_value done [00:16:10]requested_data is exist [00:16:10]produce_requested_data [00:16:10]requested_item fm.sale.total is exist - process it [00:16:10]SAM_PROTO_GetFMData [00:16:10]wFMCommunicate request_size=4 [00:16:10]MH_SAM_APDU [00:16:10]CAPDU: 80 13 03 00 [00:16:10]Write to MH i2c: E2 08 00 F8 01 80 13 03 00 00 00 00 00 78 [00:16:10]Write i2c OK [00:16:10]MH_I2C_Read... [00:16:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:16:10]Read from MH i2c: E2 [00:16:10]MH_I2C_Read... [00:16:10]Read from MH i2c: E2 FD 00 [00:16:10]MH_I2C_Read... [00:16:10]Read from MH i2c: E2 FD 00 F8 01 00 C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 80 [00:16:10]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [00:16:10]wFMCommunicate OK [00:16:10]wFMCommunicate request_size=4 [00:16:10]MH_SAM_APDU [00:16:10]CAPDU: 80 17 00 00 [00:16:10]Write to MH i2c: E2 08 00 F9 01 80 17 00 00 00 00 00 00 7A [00:16:10]Write i2c OK [00:16:10]MH_I2C_Read... [00:16:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:10]Read from MH i2c: E2 [00:16:10]MH_I2C_Read... [00:16:10]Read from MH i2c: E2 FD 00 [00:16:10]MH_I2C_Read... [00:16:10]Read from MH i2c: E2 FD 00 F9 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 07 [00:16:10]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:16:10]wFMCommunicate OK [00:16:10]wFMCommunicate request_size=4 [00:16:10]MH_SAM_APDU [00:16:10]CAPDU: 80 17 00 00 [00:16:10]Write to MH i2c: E2 08 00 FA 01 80 17 00 00 00 00 00 00 7B [00:16:10]Write i2c OK [00:16:10]MH_I2C_Read... [00:16:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:11]Read from MH i2c: E2 [00:16:11]MH_I2C_Read... [00:16:11]Read from MH i2c: E2 FD 00 [00:16:11]MH_I2C_Read... [00:16:11]Read from MH i2c: E2 FD 00 FA 01 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [00:16:11]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:16:11]wFMCommunicate OK [00:16:11]wFMCommunicate request_size=4 [00:16:11]MH_SAM_APDU [00:16:11]CAPDU: 80 17 00 00 [00:16:11]Write to MH i2c: E2 08 00 FB 01 80 17 00 00 00 00 00 00 7C [00:16:11]Write i2c OK [00:16:11]MH_I2C_Read... [00:16:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:11]Read from MH i2c: E2 [00:16:11]MH_I2C_Read... [00:16:11]Read from MH i2c: E2 FD 00 [00:16:11]MH_I2C_Read... [00:16:11]Read from MH i2c: E2 FD 00 FB 01 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [00:16:11]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:16:11]wFMCommunicate OK [00:16:11]wFMCommunicate request_size=4 [00:16:11]MH_SAM_APDU [00:16:11]CAPDU: 80 17 00 00 [00:16:11]Write to MH i2c: E2 08 00 FC 01 80 17 00 00 00 00 00 00 7D [00:16:11]Write i2c OK [00:16:11]MH_I2C_Read... [00:16:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:16:11]Read from MH i2c: E2 [00:16:11]MH_I2C_Read... [00:16:11]Read from MH i2c: E2 E3 00 [00:16:11]MH_I2C_Read... [00:16:11]Read from MH i2c: E2 E3 00 FC 01 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:16:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:16:11]wFMCommunicate OK [00:16:11]SAM_PROTO_GetFMData done [00:16:11]requested_item fm.sale_refund.total is exist - process it [00:16:11]requested_item fm.buy.total is exist - process it [00:16:11]requested_item shift.sale.total is exist - process it [00:16:11]SAM_PROTO_GetShiftData [00:16:11]wFMCommunicate request_size=4 [00:16:11]MH_SAM_APDU [00:16:11]CAPDU: 80 13 02 00 [00:16:11]Write to MH i2c: E2 08 00 FD 01 80 13 02 00 00 00 00 00 7C [00:16:11]Write i2c OK [00:16:11]MH_I2C_Read... [00:16:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:16:12]Read from MH i2c: E2 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: E2 FD 00 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: E2 FD 00 FD 01 00 AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [00:16:12]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:16:12]wFMCommunicate OK [00:16:12]wFMCommunicate request_size=4 [00:16:12]MH_SAM_APDU [00:16:12]CAPDU: 80 17 00 00 [00:16:12]Write to MH i2c: E2 08 00 FE 01 80 17 00 00 00 00 00 00 7F [00:16:12]Write i2c OK [00:16:12]MH_I2C_Read... [00:16:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:12]Read from MH i2c: E2 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: E2 FD 00 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: E2 FD 00 FE 01 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 A1 [00:16:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:16:12]wFMCommunicate OK [00:16:12]wFMCommunicate request_size=4 [00:16:12]MH_SAM_APDU [00:16:12]CAPDU: 80 17 00 00 [00:16:12]Write to MH i2c: E2 08 00 FF 01 80 17 00 00 00 00 00 00 80 [00:16:12]Write i2c OK [00:16:12]MH_I2C_Read... [00:16:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:12]Read from MH i2c: E2 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: E2 FD 00 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: E2 FD 00 FF 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 37 [00:16:12]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:16:12]wFMCommunicate OK [00:16:12]wFMCommunicate request_size=4 [00:16:12]MH_SAM_APDU [00:16:12]CAPDU: 80 17 00 00 [00:16:12]Write to MH i2c: E2 08 00 00 02 80 17 00 00 00 00 00 00 82 [00:16:12]Write i2c OK [00:16:12]MH_I2C_Read... [00:16:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:12]Read from MH i2c: E2 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: E2 FD 00 [00:16:12]MH_I2C_Read... [00:16:13]Read from MH i2c: E2 FD 00 00 02 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 F4 [00:16: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 [00:16:13]wFMCommunicate OK [00:16:13]wFMCommunicate request_size=4 [00:16:13]MH_SAM_APDU [00:16:13]CAPDU: 80 17 00 00 [00:16:13]Write to MH i2c: E2 08 00 01 02 80 17 00 00 00 00 00 00 83 [00:16:13]Write i2c OK [00:16:13]MH_I2C_Read... [00:16:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:16:13]Read from MH i2c: E2 [00:16:13]MH_I2C_Read... [00:16:13]Read from MH i2c: E2 CB 00 [00:16:13]MH_I2C_Read... [00:16:13]Read from MH i2c: E2 CB 00 01 02 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 6C [00:16:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:16:13]wFMCommunicate OK [00:16:13]SAM_PROTO_GetShiftData done [00:16:13]requested_item shift.sale.total_cash is exist - process it [00:16:13]requested_item shift.sale_refund.total is exist - process it [00:16:13]requested_item shift.sale_refund.total_cash is exist - process it [00:16:13]requested_item shift.buy.total is exist - process it [00:16:13]requested_item shift.buy.total_cash is exist - process it [00:16:13]produce_requested_data done [00:16:13]produce_requested_data return {"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:16:13]process_action_free get_value [00:16:13]json_value_free [00:16:13]json_value_free done [00:16:13]process_json_proto returns [00:16:13]Send response to host [00:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:16:13]free response buf [00:16:13]execute_script done [00:16:13]execute_script returns [00:16:13]free content buf [00:16:13]Sock 9.Close socket [00:16:13]Sock 9.Thread stoped [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]accept exits with 8 [00:18:28]New connection [00:18:28]New thread 3067088228 created [00:18:28]Thread 3066944868 joined [00:18:28]Waiting for new connection... [00:18:28] Sock 8.Parse request [00:18:28]Sock 8.Check first char [00:18:28]Sock 8.First char is OK [00:18:28]request: POST /json_proto HTTP/1.0 [00:18:28]Method: POST [00:18:28]URL: /json_proto [00:18:28]Method is POST - this is cgi request [00:18:28]url: /json_proto [00:18:28]query_string will be loaded in cgi processing [00:18:28]execute_cgi json_proto POST (null) [00:18:28]execute_cgi path=json_proto method=POST [00:18:28]POST find Content-Length [00:18:28]Host: 172.17.39.195:8080 [00:18:28]Content-Length: 215 [00:18:28]Content-Type: application/json [00:18:28] [00:18:28]POST finish read [00:18:28]Found Content-Length = 215 [00:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:28]execute_script... [00:18:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:28]POST & json_proto [00:18:28]process_json_proto [00:18:28]json parsed OK: [00:18:28]protocol is kg_v1.0 [00:18:28]action value=get_value [00:18:28]process_action get_value [00:18:28]cmd_get_value [00:18:28]process_action get_value done [00:18:28]requested_data is exist [00:18:28]produce_requested_data [00:18:28]requested_item kkm.sn is exist - process it [00:18:28]requested_item kkm.ver is exist - process it [00:18:28]requested_item fm.sn is exist - process it [00:18:28]wFMCommunicate request_size=4 [00:18:28]MH_SAM_APDU [00:18:28]CAPDU: 80 11 00 00 [00:18:28]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [00:18:28]Write i2c OK [00:18:28]MH_I2C_Read... [00:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:28]Read from MH i2c: E2 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 17 00 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 CE [00:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:18:28]wFMCommunicate OK [00:18:28]requested_item fd.num is exist - process it [00:18:28]SAM_PROTO_GetFieldsCounters [00:18:28]wFMCommunicate request_size=4 [00:18:28]MH_SAM_APDU [00:18:28]CAPDU: 80 13 00 00 [00:18:28]Write to MH i2c: E2 08 00 03 02 80 13 00 00 00 00 00 00 81 [00:18:28]Write i2c OK [00:18:28]MH_I2C_Read... [00:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:28]Read from MH i2c: E2 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 62 00 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 62 00 03 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [00:18: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:28]wFMCommunicate OK [00:18:28]SAM_PROTO_GetFieldsCounters done [00:18:28]requested_item shift.num is exist - process it [00:18:28]requested_item shift.opened is exist - process it [00:18:28]req_shift_opened [00:18:28]FM_GetShiftState [00:18:28]SAM_PROTO_GetShiftState [00:18:28]wFMCommunicate request_size=4 [00:18:28]MH_SAM_APDU [00:18:28]CAPDU: 80 13 01 00 [00:18:28]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [00:18:28]Write i2c OK [00:18:28]MH_I2C_Read... [00:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:28]Read from MH i2c: E2 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 0E 00 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 79 [00:18:28]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [00:18:28]wFMCommunicate OK [00:18:28]SAM_PROTO_GetShiftState done [00:18:28]FM_GetShiftState done [00:18:28]req_shift_opened done [00:18:28]requested_item shift.open_date is exist - process it [00:18:28]req_shift_open_date [00:18:28]req_shift_open_date done [00:18:28]produce_requested_data done [00:18:28]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [00:18:28]process_action_free get_value [00:18:28]json_value_free [00:18:28]json_value_free done [00:18:28]process_json_proto returns [00:18:28]Send response to host [00:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [00:18:28]free response buf [00:18:28]execute_script done [00:18:28]execute_script returns [00:18:28]free content buf [00:18:28]Sock 8.Close socket [00:18:28]Sock 8.Thread stoped [00:18:28]accept exits with 9 [00:18:28]New connection [00:18:28]New thread 3066944868 created [00:18:28]Thread 3067088228 joined [00:18:28]Waiting for new connection... [00:18:28] Sock 9.Parse request [00:18:28]Sock 9.Check first char [00:18:28]Sock 9.First char is OK [00:18:28]request: POST /json_proto HTTP/1.0 [00:18:28]Method: POST [00:18:28]URL: /json_proto [00:18:28]Method is POST - this is cgi request [00:18:28]url: /json_proto [00:18:28]query_string will be loaded in cgi processing [00:18:28]execute_cgi json_proto POST (null) [00:18:28]execute_cgi path=json_proto method=POST [00:18:28]POST find Content-Length [00:18:28]Host: 172.17.39.195:8080 [00:18:28]Content-Length: 331 [00:18:28]Content-Type: application/json [00:18:28] [00:18:28]POST finish read [00:18:28]Found Content-Length = 331 [00:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:28]execute_script... [00:18:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:28]POST & json_proto [00:18:28]process_json_proto [00:18:28]json parsed OK: [00:18:28]protocol is kg_v1.0 [00:18:28]action value=get_value [00:18:28]process_action get_value [00:18:28]cmd_get_value [00:18:28]process_action get_value done [00:18:28]requested_data is exist [00:18:28]produce_requested_data [00:18:28]requested_item fm.sale.total is exist - process it [00:18:28]SAM_PROTO_GetFMData [00:18:28]wFMCommunicate request_size=4 [00:18:28]MH_SAM_APDU [00:18:28]CAPDU: 80 13 03 00 [00:18:28]Write to MH i2c: E2 08 00 05 02 80 13 03 00 00 00 00 00 86 [00:18:28]Write i2c OK [00:18:28]MH_I2C_Read... [00:18:28]OFD Sender: No OFD packet to send [00:18:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:29]Read from MH i2c: E2 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 05 02 00 C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 8E [00:18:29]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [00:18:29]wFMCommunicate OK [00:18:29]wFMCommunicate request_size=4 [00:18:29]MH_SAM_APDU [00:18:29]CAPDU: 80 17 00 00 [00:18:29]Write to MH i2c: E2 08 00 06 02 80 17 00 00 00 00 00 00 88 [00:18:29]Write i2c OK [00:18:29]MH_I2C_Read... [00:18:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:29]Read from MH i2c: E2 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 06 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 15 [00:18:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:18:29]wFMCommunicate OK [00:18:29]wFMCommunicate request_size=4 [00:18:29]MH_SAM_APDU [00:18:29]CAPDU: 80 17 00 00 [00:18:29]Write to MH i2c: E2 08 00 07 02 80 17 00 00 00 00 00 00 89 [00:18:29]Write i2c OK [00:18:29]MH_I2C_Read... [00:18:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:29]Read from MH i2c: E2 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 07 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B0 [00:18:29]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:29]wFMCommunicate OK [00:18:29]wFMCommunicate request_size=4 [00:18:29]MH_SAM_APDU [00:18:29]CAPDU: 80 17 00 00 [00:18:29]Write to MH i2c: E2 08 00 08 02 80 17 00 00 00 00 00 00 8A [00:18:29]Write i2c OK [00:18:29]MH_I2C_Read... [00:18:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:29]Read from MH i2c: E2 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 08 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 05 [00:18:29]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:29]wFMCommunicate OK [00:18:29]wFMCommunicate request_size=4 [00:18:29]MH_SAM_APDU [00:18:29]CAPDU: 80 17 00 00 [00:18:29]Write to MH i2c: E2 08 00 09 02 80 17 00 00 00 00 00 00 8B [00:18:29]Write i2c OK [00:18:29]MH_I2C_Read... [00:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:18:30]Read from MH i2c: E2 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 E3 00 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 E3 00 09 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:18:30]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:30]wFMCommunicate OK [00:18:30]SAM_PROTO_GetFMData done [00:18:30]requested_item fm.sale_refund.total is exist - process it [00:18:30]requested_item fm.buy.total is exist - process it [00:18:30]requested_item shift.sale.total is exist - process it [00:18:30]SAM_PROTO_GetShiftData [00:18:30]wFMCommunicate request_size=4 [00:18:30]MH_SAM_APDU [00:18:30]CAPDU: 80 13 02 00 [00:18:30]Write to MH i2c: E2 08 00 0A 02 80 13 02 00 00 00 00 00 8A [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:30]Read from MH i2c: E2 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 FD 00 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 FD 00 0A 02 00 AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CC [00:18:30]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:18:30]wFMCommunicate OK [00:18:30]wFMCommunicate request_size=4 [00:18:30]MH_SAM_APDU [00:18:30]CAPDU: 80 17 00 00 [00:18:30]Write to MH i2c: E2 08 00 0B 02 80 17 00 00 00 00 00 00 8D [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:30]Read from MH i2c: E2 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 FD 00 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 FD 00 0B 02 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 AF [00:18:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:18:30]wFMCommunicate OK [00:18:30]wFMCommunicate request_size=4 [00:18:30]MH_SAM_APDU [00:18:30]CAPDU: 80 17 00 00 [00:18:30]Write to MH i2c: E2 08 00 0C 02 80 17 00 00 00 00 00 00 8E [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 FD 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 FD 00 0C 02 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 45 [00:18:31]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:18:31]wFMCommunicate OK [00:18:31]wFMCommunicate request_size=4 [00:18:31]MH_SAM_APDU [00:18:31]CAPDU: 80 17 00 00 [00:18:31]Write to MH i2c: E2 08 00 0D 02 80 17 00 00 00 00 00 00 8F [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 FD 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 FD 00 0D 02 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 01 [00:18:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:18:31]wFMCommunicate OK [00:18:31]wFMCommunicate request_size=4 [00:18:31]MH_SAM_APDU [00:18:31]CAPDU: 80 17 00 00 [00:18:31]Write to MH i2c: E2 08 00 0E 02 80 17 00 00 00 00 00 00 90 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 CB 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 CB 00 0E 02 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 79 [00:18:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:31]wFMCommunicate OK [00:18:31]SAM_PROTO_GetShiftData done [00:18:31]requested_item shift.sale.total_cash is exist - process it [00:18:31]requested_item shift.sale_refund.total is exist - process it [00:18:31]requested_item shift.sale_refund.total_cash is exist - process it [00:18:31]requested_item shift.buy.total is exist - process it [00:18:31]requested_item shift.buy.total_cash is exist - process it [00:18:31]produce_requested_data done [00:18:31]produce_requested_data return {"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:18:31]process_action_free get_value [00:18:31]json_value_free [00:18:31]json_value_free done [00:18:31]process_json_proto returns [00:18:31]Send response to host [00:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:18:31]free response buf [00:18:31]execute_script done [00:18:31]execute_script returns [00:18:31]free content buf [00:18:31]Sock 9.Close socket [00:18:31]Sock 9.Thread stoped [00:18:31]accept exits with 8 [00:18:31]New connection [00:18:31]New thread 3067088228 created [00:18:31]Thread 3066944868 joined [00:18:31]Waiting for new connection... [00:18:31] Sock 8.Parse request [00:18:31]Sock 8.Check first char [00:18:31]Sock 8.First char is OK [00:18:31]request: POST /json_proto HTTP/1.0 [00:18:31]Method: POST [00:18:31]URL: /json_proto [00:18:31]Method is POST - this is cgi request [00:18:31]url: /json_proto [00:18:31]query_string will be loaded in cgi processing [00:18:31]execute_cgi json_proto POST (null) [00:18:31]execute_cgi path=json_proto method=POST [00:18:31]POST find Content-Length [00:18:31]Host: 172.17.39.195:8080 [00:18:31]Content-Length: 331 [00:18:31]Content-Type: application/json [00:18:31] [00:18:31]POST finish read [00:18:31]Found Content-Length = 331 [00:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:31]execute_script... [00:18:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:31]POST & json_proto [00:18:31]process_json_proto [00:18:31]json parsed OK: [00:18:31]protocol is kg_v1.0 [00:18:31]action value=get_value [00:18:31]process_action get_value [00:18:31]cmd_get_value [00:18:31]process_action get_value done [00:18:31]requested_data is exist [00:18:31]produce_requested_data [00:18:31]requested_item fm.sale.total is exist - process it [00:18:31]SAM_PROTO_GetFMData [00:18:31]wFMCommunicate request_size=4 [00:18:31]MH_SAM_APDU [00:18:31]CAPDU: 80 13 03 00 [00:18:31]Write to MH i2c: E2 08 00 0F 02 80 13 03 00 00 00 00 00 90 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:32]Read from MH i2c: E2 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: E2 FD 00 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: E2 FD 00 0F 02 00 C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 98 [00:18:32]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [00:18:32]wFMCommunicate OK [00:18:32]wFMCommunicate request_size=4 [00:18:32]MH_SAM_APDU [00:18:32]CAPDU: 80 17 00 00 [00:18:32]Write to MH i2c: E2 08 00 10 02 80 17 00 00 00 00 00 00 92 [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:32]Read from MH i2c: E2 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: E2 FD 00 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: E2 FD 00 10 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 1F [00:18:32]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:18:32]wFMCommunicate OK [00:18:32]wFMCommunicate request_size=4 [00:18:32]MH_SAM_APDU [00:18:32]CAPDU: 80 17 00 00 [00:18:32]Write to MH i2c: E2 08 00 11 02 80 17 00 00 00 00 00 00 93 [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:32]Read from MH i2c: E2 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: E2 FD 00 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: E2 FD 00 11 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BA [00:18:32]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:33]wFMCommunicate OK [00:18:33]wFMCommunicate request_size=4 [00:18:33]MH_SAM_APDU [00:18:33]CAPDU: 80 17 00 00 [00:18:33]Write to MH i2c: E2 08 00 12 02 80 17 00 00 00 00 00 00 94 [00:18:33]Write i2c OK [00:18:33]MH_I2C_Read... [00:18:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:33]Read from MH i2c: E2 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 FD 00 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 FD 00 12 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0F [00:18:33]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:33]wFMCommunicate OK [00:18:33]wFMCommunicate request_size=4 [00:18:33]MH_SAM_APDU [00:18:33]CAPDU: 80 17 00 00 [00:18:33]Write to MH i2c: E2 08 00 13 02 80 17 00 00 00 00 00 00 95 [00:18:33]Write i2c OK [00:18:33]MH_I2C_Read... [00:18:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:18:33]Read from MH i2c: E2 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 E3 00 [00:18:33]MH_I2C_Read... [00:18:33]Read from MH i2c: E2 E3 00 13 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 74 [00:18:33]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:33]wFMCommunicate OK [00:18:33]SAM_PROTO_GetFMData done [00:18:33]requested_item fm.sale_refund.total is exist - process it [00:18:33]requested_item fm.buy.total is exist - process it [00:18:33]requested_item shift.sale.total is exist - process it [00:18:33]SAM_PROTO_GetShiftData [00:18:33]wFMCommunicate request_size=4 [00:18:33]MH_SAM_APDU [00:18:33]CAPDU: 80 13 02 00 [00:18:33]Write to MH i2c: E2 08 00 14 02 80 13 02 00 00 00 00 00 94 [00:18:33]Write i2c OK [00:18:33]MH_I2C_Read... [00:18:33]OFD Sender: No OFD packet to send [00:18:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:34]Read from MH i2c: E2 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 FD 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 FD 00 14 02 00 AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D6 [00:18:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:18:34]wFMCommunicate OK [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 17 00 00 [00:18:34]Write to MH i2c: E2 08 00 15 02 80 17 00 00 00 00 00 00 97 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:34]Read from MH i2c: E2 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 FD 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 FD 00 15 02 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 B9 [00:18: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 [00:18:34]wFMCommunicate OK [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 17 00 00 [00:18:34]Write to MH i2c: E2 08 00 16 02 80 17 00 00 00 00 00 00 98 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 16 02 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F [00:18: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 [00:18:35]wFMCommunicate OK [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 17 00 00 [00:18:35]Write to MH i2c: E2 08 00 17 02 80 17 00 00 00 00 00 00 99 [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 17 02 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 0B [00:18: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 [00:18:35]wFMCommunicate OK [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 17 00 00 [00:18:35]Write to MH i2c: E2 08 00 18 02 80 17 00 00 00 00 00 00 9A [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 CB 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 CB 00 18 02 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 83 [00:18: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 [00:18:35]wFMCommunicate OK [00:18:35]SAM_PROTO_GetShiftData done [00:18:35]requested_item shift.sale.total_cash is exist - process it [00:18:35]requested_item shift.sale_refund.total is exist - process it [00:18:35]requested_item shift.sale_refund.total_cash is exist - process it [00:18:35]requested_item shift.buy.total is exist - process it [00:18:35]requested_item shift.buy.total_cash is exist - process it [00:18:35]produce_requested_data done [00:18:35]produce_requested_data return {"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:18:35]process_action_free get_value [00:18:35]json_value_free [00:18:35]json_value_free done [00:18:35]process_json_proto returns [00:18:35]Send response to host [00:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:18:35]free response buf [00:18:35]execute_script done [00:18:35]execute_script returns [00:18:35]free content buf [00:18:35]Sock 8.Close socket [00:18:35]Sock 8.Thread stoped [00:18:35]accept exits with 9 [00:18:35]New connection [00:18:35]New thread 3066944868 created [00:18:35]Thread 3067088228 joined [00:18:35]Waiting for new connection... [00:18:35] Sock 9.Parse request [00:18:35]Sock 9.Check first char [00:18:35]Sock 9.First char is OK [00:18:35]request: POST /json_proto HTTP/1.0 [00:18:35]Method: POST [00:18:35]URL: /json_proto [00:18:35]Method is POST - this is cgi request [00:18:35]url: /json_proto [00:18:35]query_string will be loaded in cgi processing [00:18:35]execute_cgi json_proto POST (null) [00:18:35]execute_cgi path=json_proto method=POST [00:18:35]POST find Content-Length [00:18:35]Host: 172.17.39.195:8080 [00:18:35]Content-Length: 271 [00:18:35]Content-Type: application/json [00:18:35] [00:18:35]POST finish read [00:18:35]Found Content-Length = 271 [00:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:35]execute_script... [00:18:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:35]POST & json_proto [00:18:35]process_json_proto [00:18:35]json parsed OK: [00:18:35]protocol is kg_v1.0 [00:18:35]action value=x_report [00:18:35]process_action x_report [00:18:35]cmd_x_report [00:18:35]MH_GetDate [00:18:35]Write to MH i2c: F0 00 00 19 02 0A [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: F0 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: F0 09 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: F0 09 00 19 02 00 DD 69 77 66 99 81 91 64 45 [00:18:35]GetLastDocTimeStamp 1719100168 [00:18:35]current date 1719101917 [00:18:35]FM_GetShiftState [00:18:35]SAM_PROTO_GetShiftState [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 13 01 00 [00:18:35]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 0E 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 8F [00:18:35]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [00:18:35]wFMCommunicate OK [00:18:35]SAM_PROTO_GetShiftState done [00:18:35]FM_GetShiftState done [00:18:35]KKMCreateXReportDocument [00:18:35]Load OK [00:18:35]Malloc new data [00:18:35]MH_GetDate [00:18:35]Write to MH i2c: F0 00 00 1B 02 0C [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: F0 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: F0 09 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: F0 09 00 1B 02 00 DD 69 77 66 99 81 91 64 47 [00:18:35]Malloc new data [00:18:35]Malloc new data [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 11 00 00 [00:18:35]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 17 00 [00:18:36]MH_I2C_Read... [00:18:36]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 35 30 30 39 90 00 E8 [00:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:18:36]wFMCommunicate OK [00:18:36]SAM_PROTO_GetFieldsCounters [00:18:36]wFMCommunicate request_size=4 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 13 00 00 [00:18:36]Write to MH i2c: E2 08 00 1D 02 80 13 00 00 00 00 00 00 9B [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 62 00 [00:18:36]MH_I2C_Read... [00:18:36]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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [00:18:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:36]wFMCommunicate OK [00:18:36]SAM_PROTO_GetFieldsCounters done [00:18:36]Malloc new data [00:18:36]Malloc new data [00:18:36]Malloc new data [00:18:36]KKMCreateXReportDocument OK [00:18:36]KKMSetXReportData OK [00:18:36]KKMPrepareXReportFMData [00:18:36]SAM_PROTO_GetShiftData [00:18:36]wFMCommunicate request_size=4 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 13 02 00 [00:18:36]Write to MH i2c: E2 08 00 1E 02 80 13 02 00 00 00 00 00 9E [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 FD 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 FD 00 1E 02 00 AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E0 [00:18:36]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:18:36]wFMCommunicate OK [00:18:36]wFMCommunicate request_size=4 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 17 00 00 [00:18:36]Write to MH i2c: E2 08 00 1F 02 80 17 00 00 00 00 00 00 A1 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:37]Read from MH i2c: E2 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 1F 02 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 C3 [00:18: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 [00:18:37]wFMCommunicate OK [00:18:37]wFMCommunicate request_size=4 [00:18:37]MH_SAM_APDU [00:18:37]CAPDU: 80 17 00 00 [00:18:37]Write to MH i2c: E2 08 00 20 02 80 17 00 00 00 00 00 00 A2 [00:18:37]Write i2c OK [00:18:37]MH_I2C_Read... [00:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:37]Read from MH i2c: E2 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 20 02 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 59 [00:18:37]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:18:37]wFMCommunicate OK [00:18:37]wFMCommunicate request_size=4 [00:18:37]MH_SAM_APDU [00:18:37]CAPDU: 80 17 00 00 [00:18:37]Write to MH i2c: E2 08 00 21 02 80 17 00 00 00 00 00 00 A3 [00:18:37]Write i2c OK [00:18:37]MH_I2C_Read... [00:18:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:38]Read from MH i2c: E2 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 21 02 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 15 [00:18: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 [00:18:38]wFMCommunicate OK [00:18:38]wFMCommunicate request_size=4 [00:18:38]MH_SAM_APDU [00:18:38]CAPDU: 80 17 00 00 [00:18:38]Write to MH i2c: E2 08 00 22 02 80 17 00 00 00 00 00 00 A4 [00:18:38]Write i2c OK [00:18:38]MH_I2C_Read... [00:18:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:18:38]Read from MH i2c: E2 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 CB 00 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 CB 00 22 02 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 8D [00:18: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 [00:18:38]wFMCommunicate OK [00:18:38]SAM_PROTO_GetShiftData done [00:18:38]1194 (1194) - счетчики итогов смены [00:18:38] 1134 (4) - 95 - количество чеков со всеми признаками расчетов [00:18:38] 1129 (155) - счетчики операций «приход» [00:18:38] 1135 (4) - 95 - количество чеков по признаку расчетов [00:18:38] 1201 (3) - 55215.94 - общая итоговая сумма в чеках [00:18:38] 1136 (3) - 28790.00 - итоговая сумма в чеках наличными [00:18:38] 1138 (3) - 26425.94 - итоговая сумма в чеках безналичными [00:18:38] 1024 (122) - суммы налогов [00:18:38] 1006 (9) - суммы НДС [00:18:38] 1010 (1) - 0% - код ставки НДС [00:18:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:38] 1006 (12) - суммы НДС [00:18:38] 1010 (1) - 12% - код ставки НДС [00:18:38] 1011 (3) - 5863.95 - сумма НДС по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 0% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (11) - суммы НСП [00:18:38] 1014 (1) - 1% - код ставки НСП [00:18:38] 1015 (2) - 488.53 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 2% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 3% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 5% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 0,50% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 1,50% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1130 (141) - счетчики операций «возврат прихода» [00:18:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:38] 1024 (117) - суммы налогов [00:18:38] 1006 (9) - суммы НДС [00:18:38] 1010 (1) - 0% - код ставки НДС [00:18:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:38] 1006 (9) - суммы НДС [00:18:38] 1010 (1) - 12% - код ставки НДС [00:18:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 0% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 1% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 2% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 3% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 5% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 0,50% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 1,50% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1131 (141) - счетчики операций «расход» [00:18:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:38] 1024 (117) - суммы налогов [00:18:38] 1006 (9) - суммы НДС [00:18:38] 1010 (1) - 0% - код ставки НДС [00:18:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:38] 1006 (9) - суммы НДС [00:18:38] 1010 (1) - 12% - код ставки НДС [00:18:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 0% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 1% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 2% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 3% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 5% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 0,50% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 1,50% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1132 (141) - счетчики операций «возврат расхода» [00:18:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:38] 1024 (117) - суммы налогов [00:18:38] 1006 (9) - суммы НДС [00:18:38] 1010 (1) - 0% - код ставки НДС [00:18:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:38] 1006 (9) - суммы НДС [00:18:38] 1010 (1) - 12% - код ставки НДС [00:18:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 0% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 1% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 2% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 3% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 5% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 0,50% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1007 (9) - суммы НСП [00:18:38] 1014 (1) - 1,50% - код ставки НСП [00:18:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:38] 1133 (588) - - счетчики коррекции - не используются [00:18:38]SetTLVBufToDocument [00:18:38]Processing tag 1194 (04AA) [00:18:38]Load OK [00:18:38]SetTLVBufToDocument [00:18:38]Processing tag 1134 (046E) [00:18:38]Malloc new data [00:18:38]Processing tag 1129 (0469) [00:18:38]Load OK [00:18:38]SetTLVBufToDocument [00:18:38]Processing tag 1135 (046F) [00:18:38]Malloc new data [00:18:38]Processing tag 1201 (04B1) [00:18:38]Malloc new data [00:18:38]Processing tag 1136 (0470) [00:18:38]Malloc new data [00:18:38]Processing tag 1138 (0472) [00:18:38]Malloc new data [00:18:38]Processing tag 1024 (0400) [00:18:38]Load OK [00:18:38]SetTLVBufToDocument [00:18:38]Processing tag 1006 (03EE) [00:18:38]Load OK [00:18:38]SetTLVBufToDocument [00:18:38]Processing tag 1010 (03F2) [00:18:39]Malloc new data [00:18:39]Processing tag 1011 (03F3) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1006 (03EE) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1010 (03F2) [00:18:39]Malloc new data [00:18:39]Processing tag 1011 (03F3) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]SetTLVBufToDocument err=0 [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1130 (046A) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1135 (046F) [00:18:39]Malloc new data [00:18:39]Processing tag 1201 (04B1) [00:18:39]Malloc new data [00:18:39]Processing tag 1136 (0470) [00:18:39]Malloc new data [00:18:39]Processing tag 1138 (0472) [00:18:39]Malloc new data [00:18:39]Processing tag 1024 (0400) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1006 (03EE) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1010 (03F2) [00:18:39]Malloc new data [00:18:39]Processing tag 1011 (03F3) [00:18:39]Malloc new data [00:18:39]OFD Sender: No OFD packet to send [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1006 (03EE) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1010 (03F2) [00:18:39]Malloc new data [00:18:39]Processing tag 1011 (03F3) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]SetTLVBufToDocument err=0 [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1131 (046B) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1135 (046F) [00:18:39]Malloc new data [00:18:39]Processing tag 1201 (04B1) [00:18:39]Malloc new data [00:18:39]Processing tag 1136 (0470) [00:18:39]Malloc new data [00:18:39]Processing tag 1138 (0472) [00:18:39]Malloc new data [00:18:39]Processing tag 1024 (0400) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1006 (03EE) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1010 (03F2) [00:18:39]Malloc new data [00:18:39]Processing tag 1011 (03F3) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1006 (03EE) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1010 (03F2) [00:18:39]Malloc new data [00:18:39]Processing tag 1011 (03F3) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]SetTLVBufToDocument err=0 [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1132 (046C) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1135 (046F) [00:18:39]Malloc new data [00:18:39]Processing tag 1201 (04B1) [00:18:39]Malloc new data [00:18:39]Processing tag 1136 (0470) [00:18:39]Malloc new data [00:18:39]Processing tag 1138 (0472) [00:18:39]Malloc new data [00:18:39]Processing tag 1024 (0400) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1006 (03EE) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1010 (03F2) [00:18:39]Malloc new data [00:18:39]Processing tag 1011 (03F3) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1006 (03EE) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1010 (03F2) [00:18:39]Malloc new data [00:18:39]Processing tag 1011 (03F3) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1007 (03EF) [00:18:39]Load OK [00:18:39]SetTLVBufToDocument [00:18:39]Processing tag 1014 (03F6) [00:18:39]Malloc new data [00:18:39]Processing tag 1015 (03F7) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]SetTLVBufToDocument err=0 [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Processing tag 1133 (046D) [00:18:39]Malloc new data [00:18:39]SetTLVBufToDocument err=0 [00:18:39]SetTLVBufToDocument err=0 [00:18:39]Malloc new data [00:18:39]SAM_PROTO_GetFMData [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 13 03 00 [00:18:39]Write to MH i2c: E2 08 00 23 02 80 13 03 00 00 00 00 00 A4 [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 23 02 00 C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 AC [00:18:40]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [00:18:40]wFMCommunicate OK [00:18:40]wFMCommunicate request_size=4 [00:18:40]MH_SAM_APDU [00:18:40]CAPDU: 80 17 00 00 [00:18:40]Write to MH i2c: E2 08 00 24 02 80 17 00 00 00 00 00 00 A6 [00:18:40]Write i2c OK [00:18:40]MH_I2C_Read... [00:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 24 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 33 [00:18:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:18:41]wFMCommunicate OK [00:18:41]wFMCommunicate request_size=4 [00:18:41]MH_SAM_APDU [00:18:41]CAPDU: 80 17 00 00 [00:18:41]Write to MH i2c: E2 08 00 25 02 80 17 00 00 00 00 00 00 A7 [00:18:41]Write i2c OK [00:18:41]MH_I2C_Read... [00:18:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:41]Read from MH i2c: E2 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 25 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CE [00:18:41]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:41]wFMCommunicate OK [00:18:41]wFMCommunicate request_size=4 [00:18:41]MH_SAM_APDU [00:18:41]CAPDU: 80 17 00 00 [00:18:41]Write to MH i2c: E2 08 00 26 02 80 17 00 00 00 00 00 00 A8 [00:18:41]Write i2c OK [00:18:41]MH_I2C_Read... [00:18:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:41]Read from MH i2c: E2 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 26 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 23 [00:18:41]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:42]wFMCommunicate OK [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 17 00 00 [00:18:42]Write to MH i2c: E2 08 00 27 02 80 17 00 00 00 00 00 00 A9 [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 E3 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 E3 00 27 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 88 [00:18:42]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:42]wFMCommunicate OK [00:18:42]SAM_PROTO_GetFMData done [00:18:42]FM_GetFMData:85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 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 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:43]oper:6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:43]total:A4 07 06 B1 01 [00:18:43]Malloc new data [00:18:43]oper:6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 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 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:43]total:A0 8F 7F A0 [00:18:43]Malloc new data [00:18:43]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:43]total: [00:18:43]Malloc new data [00:18:43]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:43]total: [00:18:43]Malloc new data [00:18:43]KKMPrepareXReportFMData err=0 [00:18:43]Х отчет ИНН: 02508201610067 Кассир: Шайлообек у. Т. 23.06.2024 00:18 Смена: 266 РНМ: 0000000000095696 ЗНМ: 0300000170 СНО: Общий режим Всего чеков: 95 ИТОГИ ПРИХОД Чеков: 95 Общий итог: 55215.94 Итого наличными: 28790.00 Итого безнал.: 26425.94 НДС 0% : 0.00 НДС 12% : 5863.95 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 488.53 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 28790.00 НС Приход: 72649297.00 НС Возвр.Прихода: 26927144.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875009 [00:18:43]StoreToDocumentArchive [00:18:43]MH_GetDate [00:18:43]Write to MH i2c: F0 00 00 28 02 19 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: F0 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: F0 09 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: F0 09 00 28 02 00 E4 69 77 66 99 81 91 64 5B [00:18:43]shift 266 fd 1719101924 [00:18:43]Create dir for shift 0266 [00:18:43]save to /storage/0266/doc_1719101924 [00:18:43]save last doc name /storage/0266/doc_1719101924 to /storage/kkm_last_doc_name [00:18:43]save OK [00:18:43]Clear old archive folders... [00:18:43]NVStorageSaveData kkm_last_timestamp [00:18:43]File name is /storage/kkm_last_timestamp [00:18:43]Write 4 bytes [00:18:43]NVStorageSaveData done [00:18:43]ExternCall_PrintAddStr [00:18:43]wPrintStart [00:18:43]Write to MH i2c: 01 00 00 29 02 2B [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: 01 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: 01 07 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [00:18:43]RasterBufferAndPrint [00:18:43]line Х отчет [00:18:43]line ИНН: 02508201610067 [00:18:43]line Кассир: Шайлообек у. Т. [00:18:43]line 23.06.2024 00:18 [00:18:43]line Смена: 266 [00:18:43]line РНМ: 0000000000095696 [00:18:43]line ЗНМ: 0300000170 [00:18:43]line СНО: Общий режим [00:18:43]line Всего чеков: 95 [00:18:43]line ИТОГИ ПРИХОД [00:18:43]line Чеков: 95 [00:18:43]line Общий итог: 55215.94 [00:18:43]line Итого наличными: 28790.00 [00:18:43]line Итого безнал.: 26425.94 [00:18:43]line НДС 0% : 0.00 [00:18:43]line НДС 12% : 5863.95 [00:18:43]line НСП 0% : 0.00 [00:18:43]line НСП 1,50% : 0.00 [00:18:43]line НСП 0,50% : 0.00 [00:18:43]line НСП 5% : 0.00 [00:18:43]line НСП 3% : 0.00 [00:18:43]line НСП 2% : 0.00 [00:18:43]line НСП 1% : 488.53 [00:18:43]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:18:43]line Чеков: 0 [00:18:43]line Общий итог: 0.00 [00:18:43]line Итого наличными: 0.00 [00:18:43]line Итого безнал.: 0.00 [00:18:43]line НДС 0% : 0.00 [00:18:43]line НДС 12% : 0.00 [00:18:43]line НСП 0% : 0.00 [00:18:43]line НСП 1,50% : 0.00 [00:18:43]line НСП 0,50% : 0.00 [00:18:43]line НСП 5% : 0.00 [00:18:43]line НСП 3% : 0.00 [00:18:43]line НСП 2% : 0.00 [00:18:43]line НСП 1% : 0.00 [00:18:43]line ИТОГИ РАСХОД [00:18:43]line Чеков: 0 [00:18:43]line Общий итог: 0.00 [00:18:43]line Итого наличными: 0.00 [00:18:43]line Итого безнал.: 0.00 [00:18:43]line НДС 0% : 0.00 [00:18:43]line НДС 12% : 0.00 [00:18:43]line НСП 0% : 0.00 [00:18:43]line НСП 1,50% : 0.00 [00:18:43]line НСП 0,50% : 0.00 [00:18:43]line НСП 5% : 0.00 [00:18:43]line НСП 3% : 0.00 [00:18:43]line НСП 2% : 0.00 [00:18:43]line НСП 1% : 0.00 [00:18:43]line ИТОГИ ВОЗВРАТ РАСХОДА [00:18:43]line Чеков: 0 [00:18:43]line Общий итог: 0.00 [00:18:43]line Итого наличными: 0.00 [00:18:43]line Итого безнал.: 0.00 [00:18:43]line НДС 0% : 0.00 [00:18:43]line НДС 12% : 0.00 [00:18:43]line НСП 0% : 0.00 [00:18:43]line НСП 1,50% : 0.00 [00:18:43]line НСП 0,50% : 0.00 [00:18:43]line НСП 5% : 0.00 [00:18:43]line НСП 3% : 0.00 [00:18:43]line НСП 2% : 0.00 [00:18:43]line НСП 1% : 0.00 [00:18:43]line Сумма внесений: 0.00 [00:18:43]line Сумма выплат: 0.00 [00:18:43]line Нал. в кассе: 28790.00 [00:18:43]line НС Приход: 72649297.00 [00:18:43]line НС Возвр.Прихода: 26927144.00 [00:18:43]line НС Расход: 0.00 [00:18:43]line НС Возвр.Расхода: 0.00 [00:18:43]line ФМ: 0000000000875009 [00:18:43]written 0, free lines is 4095 [00:18:44]Write to MH i2c: 01 00 00 75 02 77 [00:18:44]Write i2c OK [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: 01 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: 01 07 00 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 87 0A 0F [00:18:44]RasterBufferAndPrint [00:18:44]line [00:18:44]line [00:18:44]line [00:18:44]line [00:18:44]line [00:18:44]written 0, free lines is 2729 [00:18:44]MH_Cut [00:18:44]Write to MH i2c: D1 01 00 7C 02 01 50 [00:18:44]Write i2c OK [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: D1 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: D1 01 00 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: D1 01 00 7C 02 00 4F [00:18:44]Write to MH i2c: 01 00 00 7D 02 7F [00:18:44]Write i2c OK [00:18:44]MH_I2C_Read... [00:18:44]OFD Sender: No OFD packet to send [00:18:45]*** Cut start [00:18:45]*** Partial cut [00:18:45]*** CUTSNS_PIN = 1 [00:18:45]*** CUTSNS_PIN = 0 [00:18:45]*** Brake cut motor [00:18:46]Read from MH i2c: 01 [00:18:46]MH_I2C_Read... [00:18:46]*** Stop cut motor [00:18:46]*** Cut end [00:18:46]Read from MH i2c: 01 07 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: 01 07 00 7D 02 00 00 00 00 00 FF 0F 94 [00:18:46]process_action x_report done [00:18:46]requested_data is exist [00:18:46]produce_requested_data [00:18:46]requested_item fd.num is exist - process it [00:18:46]SAM_PROTO_GetFieldsCounters [00:18:46]wFMCommunicate request_size=4 [00:18:46]MH_SAM_APDU [00:18:46]CAPDU: 80 13 00 00 [00:18:46]Write to MH i2c: E2 08 00 7E 02 80 13 00 00 00 00 00 00 FC [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:46]Read from MH i2c: E2 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 62 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 62 00 7E 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [00:18: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:46]wFMCommunicate OK [00:18:46]SAM_PROTO_GetFieldsCounters done [00:18:46]requested_item shift.num is exist - process it [00:18:46]requested_item shift.opened is exist - process it [00:18:46]req_shift_opened [00:18:46]FM_GetShiftState [00:18:46]SAM_PROTO_GetShiftState [00:18:46]wFMCommunicate request_size=4 [00:18:46]MH_SAM_APDU [00:18:46]CAPDU: 80 13 01 00 [00:18:46]Write to MH i2c: E2 08 00 7F 02 80 13 01 00 00 00 00 00 FE [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:46]Read from MH i2c: E2 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 0E 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 0E 00 7F 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F4 [00:18:46]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [00:18:46]wFMCommunicate OK [00:18:46]SAM_PROTO_GetShiftState done [00:18:46]FM_GetShiftState done [00:18:46]req_shift_opened done [00:18:46]requested_item shift.open_date is exist - process it [00:18:46]req_shift_open_date [00:18:46]req_shift_open_date done [00:18:46]produce_requested_data done [00:18:46]produce_requested_data return {"fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [00:18:46]process_action_free x_report [00:18:46]json_value_free [00:18:46]json_value_free done [00:18:46]process_json_proto returns [00:18:46]Send response to host [00:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [00:18:46]free response buf [00:18:46]execute_script done [00:18:46]execute_script returns [00:18:46]free content buf [00:18:46]Sock 9.Close socket [00:18:46]Sock 9.Thread stoped [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:19]accept exits with 8 [00:19:19]New connection [00:19:19]New thread 3067088228 created [00:19:19]Thread 3066944868 joined [00:19:19]Waiting for new connection... [00:19:19] Sock 8.Parse request [00:19:19]Sock 8.Check first char [00:19:19]Sock 8.First char is OK [00:19:19]request: POST /json_proto HTTP/1.0 [00:19:19]Method: POST [00:19:19]URL: /json_proto [00:19:19]Method is POST - this is cgi request [00:19:19]url: /json_proto [00:19:19]query_string will be loaded in cgi processing [00:19:19]execute_cgi json_proto POST (null) [00:19:19]execute_cgi path=json_proto method=POST [00:19:19]POST find Content-Length [00:19:19]Host: 172.17.39.195:8080 [00:19:19]Content-Length: 215 [00:19:19]Content-Type: application/json [00:19:19] [00:19:19]POST finish read [00:19:19]Found Content-Length = 215 [00:19:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:19]execute_script... [00:19:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:19]POST & json_proto [00:19:19]process_json_proto [00:19:19]json parsed OK: [00:19:19]protocol is kg_v1.0 [00:19:19]action value=get_value [00:19:19]process_action get_value [00:19:19]cmd_get_value [00:19:19]process_action get_value done [00:19:19]requested_data is exist [00:19:19]produce_requested_data [00:19:19]requested_item kkm.sn is exist - process it [00:19:19]requested_item kkm.ver is exist - process it [00:19:19]requested_item fm.sn is exist - process it [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 11 00 00 [00:19:19]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 17 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 4C [00:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:19:19]wFMCommunicate OK [00:19:19]requested_item fd.num is exist - process it [00:19:19]SAM_PROTO_GetFieldsCounters [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 13 00 00 [00:19:19]Write to MH i2c: E2 08 00 81 02 80 13 00 00 00 00 00 00 FF [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 62 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 62 00 81 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [00:19: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 63 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:19]wFMCommunicate OK [00:19:19]SAM_PROTO_GetFieldsCounters done [00:19:19]requested_item shift.num is exist - process it [00:19:19]requested_item shift.opened is exist - process it [00:19:19]req_shift_opened [00:19:19]FM_GetShiftState [00:19:19]SAM_PROTO_GetShiftState [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 13 01 00 [00:19:19]Write to MH i2c: E2 08 00 82 02 80 13 01 00 00 00 00 00 01 [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 0E 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 0E 00 82 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 F7 [00:19:20]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [00:19:20]wFMCommunicate OK [00:19:20]SAM_PROTO_GetShiftState done [00:19:20]FM_GetShiftState done [00:19:20]req_shift_opened done [00:19:20]requested_item shift.open_date is exist - process it [00:19:20]req_shift_open_date [00:19:20]req_shift_open_date done [00:19:20]produce_requested_data done [00:19:20]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435} [00:19:20]process_action_free get_value [00:19:20]json_value_free [00:19:20]json_value_free done [00:19:20]process_json_proto returns [00:19:20]Send response to host [00:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76899,"shift.num":395,"shift.opened":1,"shift.open_date":1719016435}}} [00:19:20]free response buf [00:19:20]execute_script done [00:19:20]execute_script returns [00:19:20]free content buf [00:19:20]Sock 8.Close socket [00:19:20]Sock 8.Thread stoped [00:19:20]accept exits with 9 [00:19:20]New connection [00:19:20]New thread 3066944868 created [00:19:20]Thread 3067088228 joined [00:19:20]Waiting for new connection... [00:19:20] Sock 9.Parse request [00:19:20]Sock 9.Check first char [00:19:20]Sock 9.First char is OK [00:19:20]request: POST /json_proto HTTP/1.0 [00:19:20]Method: POST [00:19:20]URL: /json_proto [00:19:20]Method is POST - this is cgi request [00:19:20]url: /json_proto [00:19:20]query_string will be loaded in cgi processing [00:19:20]execute_cgi json_proto POST (null) [00:19:20]execute_cgi path=json_proto method=POST [00:19:20]POST find Content-Length [00:19:20]Host: 172.17.39.195:8080 [00:19:20]Content-Length: 331 [00:19:20]Content-Type: application/json [00:19:20] [00:19:20]POST finish read [00:19:20]Found Content-Length = 331 [00:19:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:20]execute_script... [00:19:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:20]POST & json_proto [00:19:20]process_json_proto [00:19:20]json parsed OK: [00:19:20]protocol is kg_v1.0 [00:19:20]action value=get_value [00:19:20]process_action get_value [00:19:20]cmd_get_value [00:19:20]process_action get_value done [00:19:20]requested_data is exist [00:19:20]produce_requested_data [00:19:20]requested_item fm.sale.total is exist - process it [00:19:20]SAM_PROTO_GetFMData [00:19:20]wFMCommunicate request_size=4 [00:19:20]MH_SAM_APDU [00:19:20]CAPDU: 80 13 03 00 [00:19:20]Write to MH i2c: E2 08 00 83 02 80 13 03 00 00 00 00 00 04 [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 83 02 00 C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 0C [00:19:20]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [00:19:20]wFMCommunicate OK [00:19:20]wFMCommunicate request_size=4 [00:19:20]MH_SAM_APDU [00:19:20]CAPDU: 80 17 00 00 [00:19:20]Write to MH i2c: E2 08 00 84 02 80 17 00 00 00 00 00 00 06 [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 84 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 93 [00:19:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:19:20]wFMCommunicate OK [00:19:20]wFMCommunicate request_size=4 [00:19:20]MH_SAM_APDU [00:19:20]CAPDU: 80 17 00 00 [00:19:20]Write to MH i2c: E2 08 00 85 02 80 17 00 00 00 00 00 00 07 [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:21]Read from MH i2c: E2 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 85 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [00:19:21]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:21]wFMCommunicate OK [00:19:21]wFMCommunicate request_size=4 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 17 00 00 [00:19:21]Write to MH i2c: E2 08 00 86 02 80 17 00 00 00 00 00 00 08 [00:19:21]Write i2c OK [00:19:21]MH_I2C_Read... [00:19:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:21]Read from MH i2c: E2 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 86 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [00:19:21]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:21]wFMCommunicate OK [00:19:21]wFMCommunicate request_size=4 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 17 00 00 [00:19:21]Write to MH i2c: E2 08 00 87 02 80 17 00 00 00 00 00 00 09 [00:19:21]Write i2c OK [00:19:21]MH_I2C_Read... [00:19:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:19:21]Read from MH i2c: E2 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 E3 00 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 E3 00 87 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:19:21]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:21]wFMCommunicate OK [00:19:21]SAM_PROTO_GetFMData done [00:19:21]requested_item fm.sale_refund.total is exist - process it [00:19:21]requested_item fm.buy.total is exist - process it [00:19:21]requested_item shift.sale.total is exist - process it [00:19:21]SAM_PROTO_GetShiftData [00:19:21]wFMCommunicate request_size=4 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 13 02 00 [00:19:21]Write to MH i2c: E2 08 00 88 02 80 13 02 00 00 00 00 00 08 [00:19:21]Write i2c OK [00:19:21]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 88 02 00 AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4A [00:19:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:19:22]wFMCommunicate OK [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 17 00 00 [00:19:22]Write to MH i2c: E2 08 00 89 02 80 17 00 00 00 00 00 00 0B [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 89 02 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 [00:19:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:19:22]wFMCommunicate OK [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 17 00 00 [00:19:22]Write to MH i2c: E2 08 00 8A 02 80 17 00 00 00 00 00 00 0C [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 8A 02 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:19:22]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:19:22]wFMCommunicate OK [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 17 00 00 [00:19:23]Write to MH i2c: E2 08 00 8B 02 80 17 00 00 00 00 00 00 0D [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 FD 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 FD 00 8B 02 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 [00:19:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:19:23]wFMCommunicate OK [00:19:23]wFMCommunicate request_size=4 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 17 00 00 [00:19:23]Write to MH i2c: E2 08 00 8C 02 80 17 00 00 00 00 00 00 0E [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 CB 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 CB 00 8C 02 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 [00:19:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:23]wFMCommunicate OK [00:19:23]SAM_PROTO_GetShiftData done [00:19:23]requested_item shift.sale.total_cash is exist - process it [00:19:23]requested_item shift.sale_refund.total is exist - process it [00:19:23]requested_item shift.sale_refund.total_cash is exist - process it [00:19:23]requested_item shift.buy.total is exist - process it [00:19:23]requested_item shift.buy.total_cash is exist - process it [00:19:23]produce_requested_data done [00:19:23]produce_requested_data return {"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:23]process_action_free get_value [00:19:23]json_value_free [00:19:23]json_value_free done [00:19:23]process_json_proto returns [00:19:23]Send response to host [00:19:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:23]free response buf [00:19:23]execute_script done [00:19:23]execute_script returns [00:19:23]free content buf [00:19:23]Sock 9.Close socket [00:19:23]Sock 9.Thread stoped [00:19:23]accept exits with 8 [00:19:23]New connection [00:19:23]New thread 3067088228 created [00:19:23]Thread 3066944868 joined [00:19:23]Waiting for new connection... [00:19:23] Sock 8.Parse request [00:19:23]Sock 8.Check first char [00:19:23]Sock 8.First char is OK [00:19:23]request: POST /json_proto HTTP/1.0 [00:19:23]Method: POST [00:19:23]URL: /json_proto [00:19:23]Method is POST - this is cgi request [00:19:23]url: /json_proto [00:19:23]query_string will be loaded in cgi processing [00:19:23]execute_cgi json_proto POST (null) [00:19:23]execute_cgi path=json_proto method=POST [00:19:23]POST find Content-Length [00:19:23]Host: 172.17.39.195:8080 [00:19:23]Content-Length: 331 [00:19:23]Content-Type: application/json [00:19:23] [00:19:23]POST finish read [00:19:23]Found Content-Length = 331 [00:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:23]execute_script... [00:19:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:23]POST & json_proto [00:19:23]process_json_proto [00:19:23]json parsed OK: [00:19:23]protocol is kg_v1.0 [00:19:23]action value=get_value [00:19:23]process_action get_value [00:19:23]cmd_get_value [00:19:23]process_action get_value done [00:19:23]requested_data is exist [00:19:23]produce_requested_data [00:19:23]requested_item fm.sale.total is exist - process it [00:19:23]SAM_PROTO_GetFMData [00:19:23]wFMCommunicate request_size=4 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 13 03 00 [00:19:23]Write to MH i2c: E2 08 00 8D 02 80 13 03 00 00 00 00 00 0E [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 8D 02 00 C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 16 [00:19:24]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [00:19:24]wFMCommunicate OK [00:19:24]wFMCommunicate request_size=4 [00:19:24]MH_SAM_APDU [00:19:24]CAPDU: 80 17 00 00 [00:19:24]Write to MH i2c: E2 08 00 8E 02 80 17 00 00 00 00 00 00 10 [00:19:24]OFD Sender: No OFD packet to send [00:19:24]Write i2c OK [00:19:24]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 8E 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 9D [00:19:24]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:19:25]wFMCommunicate OK [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 17 00 00 [00:19:25]Write to MH i2c: E2 08 00 8F 02 80 17 00 00 00 00 00 00 11 [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:25]Read from MH i2c: E2 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 8F 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [00:19:25]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:25]wFMCommunicate OK [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 17 00 00 [00:19:25]Write to MH i2c: E2 08 00 90 02 80 17 00 00 00 00 00 00 12 [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:25]Read from MH i2c: E2 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 90 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [00:19:25]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:25]wFMCommunicate OK [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 17 00 00 [00:19:25]Write to MH i2c: E2 08 00 91 02 80 17 00 00 00 00 00 00 13 [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 E3 00 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 E3 00 91 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:19:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:26]wFMCommunicate OK [00:19:26]SAM_PROTO_GetFMData done [00:19:26]requested_item fm.sale_refund.total is exist - process it [00:19:26]requested_item fm.buy.total is exist - process it [00:19:26]requested_item shift.sale.total is exist - process it [00:19:26]SAM_PROTO_GetShiftData [00:19:26]wFMCommunicate request_size=4 [00:19:26]MH_SAM_APDU [00:19:26]CAPDU: 80 13 02 00 [00:19:26]Write to MH i2c: E2 08 00 92 02 80 13 02 00 00 00 00 00 12 [00:19:26]Write i2c OK [00:19:26]MH_I2C_Read... [00:19:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 FD 00 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 FD 00 92 02 00 AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 54 [00:19:26]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:19:26]wFMCommunicate OK [00:19:26]wFMCommunicate request_size=4 [00:19:26]MH_SAM_APDU [00:19:26]CAPDU: 80 17 00 00 [00:19:26]Write to MH i2c: E2 08 00 93 02 80 17 00 00 00 00 00 00 15 [00:19:26]Write i2c OK [00:19:26]MH_I2C_Read... [00:19:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:27]Read from MH i2c: E2 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 93 02 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 37 [00:19:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:19:27]wFMCommunicate OK [00:19:27]wFMCommunicate request_size=4 [00:19:27]MH_SAM_APDU [00:19:27]CAPDU: 80 17 00 00 [00:19:27]Write to MH i2c: E2 08 00 94 02 80 17 00 00 00 00 00 00 16 [00:19:27]Write i2c OK [00:19:27]MH_I2C_Read... [00:19:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:27]Read from MH i2c: E2 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 [00:19:27]MH_I2C_Read... [00:19:27]Read from MH i2c: E2 FD 00 94 02 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD [00:19:27]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:19:27]wFMCommunicate OK [00:19:27]wFMCommunicate request_size=4 [00:19:27]MH_SAM_APDU [00:19:27]CAPDU: 80 17 00 00 [00:19:27]Write to MH i2c: E2 08 00 95 02 80 17 00 00 00 00 00 00 17 [00:19:27]Write i2c OK [00:19:27]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 FD 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 FD 00 95 02 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 89 [00:19:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=4 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 17 00 00 [00:19:28]Write to MH i2c: E2 08 00 96 02 80 17 00 00 00 00 00 00 18 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 CB 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 CB 00 96 02 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 01 [00:19:28]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:28]wFMCommunicate OK [00:19:28]SAM_PROTO_GetShiftData done [00:19:28]requested_item shift.sale.total_cash is exist - process it [00:19:28]requested_item shift.sale_refund.total is exist - process it [00:19:28]requested_item shift.sale_refund.total_cash is exist - process it [00:19:28]requested_item shift.buy.total is exist - process it [00:19:28]requested_item shift.buy.total_cash is exist - process it [00:19:28]produce_requested_data done [00:19:28]produce_requested_data return {"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:28]process_action_free get_value [00:19:28]json_value_free [00:19:28]json_value_free done [00:19:28]process_json_proto returns [00:19:28]Send response to host [00:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:28]free response buf [00:19:28]execute_script done [00:19:28]execute_script returns [00:19:28]free content buf [00:19:28]Sock 8.Close socket [00:19:28]Sock 8.Thread stoped [00:19:28]accept exits with 9 [00:19:28]New connection [00:19:28]New thread 3066944868 created [00:19:28]Thread 3067088228 joined [00:19:28]Waiting for new connection... [00:19:28] Sock 9.Parse request [00:19:28]Sock 9.Check first char [00:19:28]Sock 9.First char is OK [00:19:28]request: POST /json_proto HTTP/1.0 [00:19:28]Method: POST [00:19:28]URL: /json_proto [00:19:28]Method is POST - this is cgi request [00:19:28]url: /json_proto [00:19:28]query_string will be loaded in cgi processing [00:19:28]execute_cgi json_proto POST (null) [00:19:28]execute_cgi path=json_proto method=POST [00:19:28]POST find Content-Length [00:19:28]Host: 172.17.39.195:8080 [00:19:28]Content-Length: 274 [00:19:28]Content-Type: application/json [00:19:28] [00:19:28]POST finish read [00:19:28]Found Content-Length = 274 [00:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:28]execute_script... [00:19:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u0439\u043B\u043E\u043E\u0431\u0435\u043A \u0443. \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:28]POST & json_proto [00:19:28]process_json_proto [00:19:28]json parsed OK: [00:19:28]protocol is kg_v1.0 [00:19:28]action value=close_shift [00:19:28]process_action close_shift [00:19:28]cmd_close_shift [00:19:28]MH_GetDate [00:19:28]Write to MH i2c: F0 00 00 97 02 88 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 09 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 09 00 97 02 00 12 6A 77 66 99 81 91 64 F9 [00:19:28]GetLastDocTimeStamp 1719101917 [00:19:28]current date 1719101970 [00:19:28]FM_GetShiftState [00:19:28]SAM_PROTO_GetShiftState [00:19:28]wFMCommunicate request_size=4 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 13 01 00 [00:19:28]Write to MH i2c: E2 08 00 98 02 80 13 01 00 00 00 00 00 17 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 0E 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 0E 00 98 02 00 09 00 01 F3 1B 76 66 00 00 00 00 90 00 0D [00:19:28]RAPDU: 09 00 01 F3 1B 76 66 00 00 00 00 90 00 [00:19:28]wFMCommunicate OK [00:19:28]SAM_PROTO_GetShiftState done [00:19:28]FM_GetShiftState done [00:19:28]KKMCreateCloseShiftDocument [00:19:28]Load OK [00:19:28]Malloc new data [00:19:28]MH_GetDate [00:19:28]Write to MH i2c: F0 00 00 99 02 8A [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 09 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: F0 09 00 99 02 00 12 6A 77 66 99 81 91 64 FB [00:19:28]Malloc new data [00:19:28]Malloc new data [00:19:28]Malloc new data [00:19:28]Malloc new data [00:19:28]KKMCreateCloseShiftDocument OK [00:19:28]KKMSetCloseShiftData OK [00:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=77 [00:19:28]tlvbuf is 020CF910 [00:19:28]KKMLoadAndSignCloseShiftData [00:19:28]SAM_PROTO_ProcessDocument [00:19:28]wFMCommunicate request_size=9 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 15 01 00 04 05 00 4D 00 [00:19:28]Write to MH i2c: E2 0C 00 9A 02 80 15 01 00 04 00 05 00 4D 00 00 00 75 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:29]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 03 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 03 00 9A 02 00 90 00 10 [00:19:29]RAPDU: 90 00 [00:19:29]wFMCommunicate OK [00:19:29]wFMCommunicate request_size=23 [00:19:29]MH_SAM_APDU [00:19:29]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:19:29]Write to MH i2c: E2 1A 00 9B 02 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 12 [00:19:29]Write i2c OK [00:19:29]MH_I2C_Read... [00:19:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 03 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 03 00 9B 02 00 90 00 11 [00:19:29]RAPDU: 90 00 [00:19:29]wFMCommunicate OK [00:19:29]wFMCommunicate request_size=36 [00:19:29]MH_SAM_APDU [00:19:29]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A8 D0 B0 D0 B9 D0 BB D0 BE D0 BE D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 A2 2E 20 [00:19:29]Write to MH i2c: E2 27 00 9C 02 80 15 02 00 1F 00 FD 03 1B 00 D0 A8 D0 B0 D0 B9 D0 BB D0 BE D0 BE D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 A2 2E 20 00 00 B1 [00:19:29]Write i2c OK [00:19:29]MH_I2C_Read... [00:19:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 03 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 03 00 9C 02 00 90 00 12 [00:19:29]RAPDU: 90 00 [00:19:29]wFMCommunicate OK [00:19:29]wFMCommunicate request_size=13 [00:19:29]MH_SAM_APDU [00:19:29]CAPDU: 80 15 02 00 08 F4 03 04 00 12 6A 77 66 [00:19:29]Write to MH i2c: E2 10 00 9D 02 80 15 02 00 08 00 F4 03 04 00 12 6A 77 66 00 00 83 [00:19:29]Write i2c OK [00:19:29]MH_I2C_Read... [00:19:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 03 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [00:19:29]RAPDU: 90 00 [00:19:29]wFMCommunicate OK [00:19:29]wFMCommunicate request_size=25 [00:19:29]MH_SAM_APDU [00:19:29]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 [00:19:29]Write to MH i2c: E2 1C 00 9E 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 00 00 8C [00:19:29]Write i2c OK [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:29]Read from MH i2c: E2 03 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [00:19:29]RAPDU: 90 00 [00:19:29]wFMCommunicate OK [00:19:29]wFMCommunicate request_size=4 [00:19:29]MH_SAM_APDU [00:19:29]CAPDU: 80 15 03 00 [00:19:29]Write to MH i2c: E2 08 00 9F 02 80 15 03 00 00 00 00 00 22 [00:19:29]Write i2c OK [00:19:29]MH_I2C_Read... [00:19:29]OFD Sender: No OFD packet to send [00:19:29]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 FD 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 FD 00 9F 02 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 64 2C 01 00 0E 04 04 00 8B 01 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DD [00:19:30]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 64 2C 01 00 0E 04 04 00 8B 01 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:19:30]wFMCommunicate OK [00:19:30]SAM_PROTO_ProcessDocument answer len = 1265 [00:19:30]SAM_PROTO_ProcessDocument remain to read = 1017 [00:19:30]wFMCommunicate request_size=4 [00:19:30]MH_SAM_APDU [00:19:30]CAPDU: 80 17 00 00 [00:19:30]Write to MH i2c: E2 08 00 A0 02 80 17 00 00 00 00 00 00 22 [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 FD 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 FD 00 A0 02 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6B [00:19:30]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:19:30]wFMCommunicate OK [00:19:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:30]SAM_PROTO_ProcessDocument remain to read = 767 [00:19:30]wFMCommunicate request_size=4 [00:19:30]MH_SAM_APDU [00:19:30]CAPDU: 80 17 00 00 [00:19:30]Write to MH i2c: E2 08 00 A1 02 80 17 00 00 00 00 00 00 23 [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 FD 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 FD 00 A1 02 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 85 [00:19:31]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:19:31]wFMCommunicate OK [00:19:31]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:31]SAM_PROTO_ProcessDocument remain to read = 517 [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 17 00 00 [00:19:31]Write to MH i2c: E2 08 00 A2 02 80 17 00 00 00 00 00 00 24 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 FD 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 FD 00 A2 02 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 AE [00:19:31]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [00:19:31]wFMCommunicate OK [00:19:31]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:31]SAM_PROTO_ProcessDocument remain to read = 267 [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 17 00 00 [00:19:31]Write to MH i2c: E2 08 00 A3 02 80 17 00 00 00 00 00 00 25 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:32]Read from MH i2c: E2 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 FD 00 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 FD 00 A3 02 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 ED [00:19:32]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:19:32]wFMCommunicate OK [00:19:32]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:32]SAM_PROTO_ProcessDocument remain to read = 17 [00:19:32]wFMCommunicate request_size=4 [00:19:32]MH_SAM_APDU [00:19:32]CAPDU: 80 17 00 00 [00:19:32]Write to MH i2c: E2 08 00 A4 02 80 17 00 00 00 00 00 00 26 [00:19:32]Write i2c OK [00:19:32]MH_I2C_Read... [00:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:19:32]Read from MH i2c: E2 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 14 00 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 14 00 A4 02 00 01 00 06 F7 03 00 00 35 04 06 00 CE A1 FF EA FA D7 90 00 94 [00:19:32]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 CE A1 FF EA FA D7 90 00 [00:19:32]wFMCommunicate OK [00:19:32]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:19:32]SAM_PROTO_ProcessDocument done [00:19:32]1209 (1) - 1.0 - номер версии ФФД [00:19:32]1041 (16) - 0000000000875009 - номер ФМ [00:19:32]1040 (4) - 76900 - номер ФД [00:19:32]1038 (4) - 395 - номер смены [00:19:32]1118 (4) - 95 - количество кассовых чеков за смену [00:19:32]1111 (4) - 97 - общее количество ФД за смену [00:19:32]1194 (1194) - счетчики итогов смены [00:19:32] 1134 (4) - 95 - количество чеков со всеми признаками расчетов [00:19:32] 1129 (155) - счетчики операций «приход» [00:19:32] 1135 (4) - 95 - количество чеков по признаку расчетов [00:19:32] 1201 (3) - 55215.94 - общая итоговая сумма в чеках [00:19:32] 1136 (3) - 28790.00 - итоговая сумма в чеках наличными [00:19:32] 1138 (3) - 26425.94 - итоговая сумма в чеках безналичными [00:19:32] 1024 (122) - суммы налогов [00:19:32] 1006 (9) - суммы НДС [00:19:32] 1010 (1) - 0% - код ставки НДС [00:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:32] 1006 (12) - суммы НДС [00:19:32] 1010 (1) - 12% - код ставки НДС [00:19:32] 1011 (3) - 5863.95 - сумма НДС по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 0% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (11) - суммы НСП [00:19:32] 1014 (1) - 1% - код ставки НСП [00:19:32] 1015 (2) - 488.53 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 2% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 3% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 5% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 0,50% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 1,50% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1130 (141) - счетчики операций «возврат прихода» [00:19:32] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:32] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:32] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:32] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:32] 1024 (117) - суммы налогов [00:19:32] 1006 (9) - суммы НДС [00:19:32] 1010 (1) - 0% - код ставки НДС [00:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:32] 1006 (9) - суммы НДС [00:19:32] 1010 (1) - 12% - код ставки НДС [00:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 0% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 1% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 2% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 3% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 5% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 0,50% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 1,50% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1131 (141) - счетчики операций «расход» [00:19:32] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:32] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:32] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:32] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:32] 1024 (117) - суммы налогов [00:19:32] 1006 (9) - суммы НДС [00:19:32] 1010 (1) - 0% - код ставки НДС [00:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:32] 1006 (9) - суммы НДС [00:19:32] 1010 (1) - 12% - код ставки НДС [00:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 0% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 1% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 2% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 3% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 5% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 0,50% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 1,50% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1132 (141) - счетчики операций «возврат расхода» [00:19:32] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:32] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:32] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:32] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:32] 1024 (117) - суммы налогов [00:19:32] 1006 (9) - суммы НДС [00:19:32] 1010 (1) - 0% - код ставки НДС [00:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:32] 1006 (9) - суммы НДС [00:19:32] 1010 (1) - 12% - код ставки НДС [00:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 0% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 1% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 2% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 3% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 5% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 0,50% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1007 (9) - суммы НСП [00:19:32] 1014 (1) - 1,50% - код ставки НСП [00:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:32] 1133 (588) - - счетчики коррекции - не используются [00:19:32]1077 (6) - 227195178646231 - ФПД [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1209 (04B9) [00:19:32]Malloc new data [00:19:32]Processing tag 1041 (0411) [00:19:32]Processing tag 1040 (0410) [00:19:32]Malloc new data [00:19:32]Processing tag 1038 (040E) [00:19:32]Malloc new data [00:19:32]Processing tag 1118 (045E) [00:19:32]Malloc new data [00:19:32]Processing tag 1111 (0457) [00:19:32]Malloc new data [00:19:32]Processing tag 1194 (04AA) [00:19:32]Load OK [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1134 (046E) [00:19:32]Malloc new data [00:19:32]Processing tag 1129 (0469) [00:19:32]Load OK [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1135 (046F) [00:19:32]Malloc new data [00:19:32]Processing tag 1201 (04B1) [00:19:32]Malloc new data [00:19:32]Processing tag 1136 (0470) [00:19:32]Malloc new data [00:19:32]Processing tag 1138 (0472) [00:19:32]Malloc new data [00:19:32]Processing tag 1024 (0400) [00:19:32]Load OK [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1006 (03EE) [00:19:32]Load OK [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1010 (03F2) [00:19:32]Malloc new data [00:19:32]Processing tag 1011 (03F3) [00:19:32]Malloc new data [00:19:32]SetTLVBufToDocument err=0 [00:19:32]Processing tag 1006 (03EE) [00:19:32]Load OK [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1010 (03F2) [00:19:32]Malloc new data [00:19:32]Processing tag 1011 (03F3) [00:19:32]Malloc new data [00:19:32]SetTLVBufToDocument err=0 [00:19:32]Processing tag 1007 (03EF) [00:19:32]Load OK [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1014 (03F6) [00:19:32]Malloc new data [00:19:32]Processing tag 1015 (03F7) [00:19:32]Malloc new data [00:19:32]SetTLVBufToDocument err=0 [00:19:32]Processing tag 1007 (03EF) [00:19:32]Load OK [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1014 (03F6) [00:19:32]Malloc new data [00:19:32]Processing tag 1015 (03F7) [00:19:32]Malloc new data [00:19:32]SetTLVBufToDocument err=0 [00:19:32]Processing tag 1007 (03EF) [00:19:32]Load OK [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1014 (03F6) [00:19:32]Malloc new data [00:19:32]Processing tag 1015 (03F7) [00:19:32]Malloc new data [00:19:32]SetTLVBufToDocument err=0 [00:19:32]Processing tag 1007 (03EF) [00:19:32]Load OK [00:19:32]SetTLVBufToDocument [00:19:32]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]SetTLVBufToDocument err=0 [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1130 (046A) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1135 (046F) [00:19:33]Malloc new data [00:19:33]Processing tag 1201 (04B1) [00:19:33]Malloc new data [00:19:33]Processing tag 1136 (0470) [00:19:33]Malloc new data [00:19:33]Processing tag 1138 (0472) [00:19:33]Malloc new data [00:19:33]Processing tag 1024 (0400) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1006 (03EE) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1010 (03F2) [00:19:33]Malloc new data [00:19:33]Processing tag 1011 (03F3) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1006 (03EE) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1010 (03F2) [00:19:33]Malloc new data [00:19:33]Processing tag 1011 (03F3) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]SetTLVBufToDocument err=0 [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1131 (046B) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1135 (046F) [00:19:33]Malloc new data [00:19:33]Processing tag 1201 (04B1) [00:19:33]Malloc new data [00:19:33]Processing tag 1136 (0470) [00:19:33]Malloc new data [00:19:33]Processing tag 1138 (0472) [00:19:33]Malloc new data [00:19:33]Processing tag 1024 (0400) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1006 (03EE) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1010 (03F2) [00:19:33]Malloc new data [00:19:33]Processing tag 1011 (03F3) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1006 (03EE) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1010 (03F2) [00:19:33]Malloc new data [00:19:33]Processing tag 1011 (03F3) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]SetTLVBufToDocument err=0 [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1132 (046C) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1135 (046F) [00:19:33]Malloc new data [00:19:33]Processing tag 1201 (04B1) [00:19:33]Malloc new data [00:19:33]Processing tag 1136 (0470) [00:19:33]Malloc new data [00:19:33]Processing tag 1138 (0472) [00:19:33]Malloc new data [00:19:33]Processing tag 1024 (0400) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1006 (03EE) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1010 (03F2) [00:19:33]Malloc new data [00:19:33]Processing tag 1011 (03F3) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1006 (03EE) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1010 (03F2) [00:19:33]Malloc new data [00:19:33]Processing tag 1011 (03F3) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1007 (03EF) [00:19:33]Load OK [00:19:33]SetTLVBufToDocument [00:19:33]Processing tag 1014 (03F6) [00:19:33]Malloc new data [00:19:33]Processing tag 1015 (03F7) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]SetTLVBufToDocument err=0 [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1133 (046D) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Processing tag 1077 (0435) [00:19:33]Malloc new data [00:19:33]SetTLVBufToDocument err=0 [00:19:33]Malloc new data [00:19:33]SAM_PROTO_GetFMData [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 13 03 00 [00:19:33]Write to MH i2c: E2 08 00 A5 02 80 13 03 00 00 00 00 00 26 [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 A5 02 00 C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 2E [00:19:34]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [00:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 17 00 00 [00:19:34]Write to MH i2c: E2 08 00 A6 02 80 17 00 00 00 00 00 00 28 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]OFD Sender: No OFD packet to send [00:19:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 A6 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 B5 [00:19:35]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 17 00 00 [00:19:35]Write to MH i2c: E2 08 00 A7 02 80 17 00 00 00 00 00 00 29 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 A7 02 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 50 [00:19:35]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 17 00 00 [00:19:35]Write to MH i2c: E2 08 00 A8 02 80 17 00 00 00 00 00 00 2A [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 A8 02 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A5 [00:19:36]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:36]wFMCommunicate OK [00:19:36]wFMCommunicate request_size=4 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 17 00 00 [00:19:36]Write to MH i2c: E2 08 00 A9 02 80 17 00 00 00 00 00 00 2B [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 E3 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 E3 00 A9 02 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A [00:19:36]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:37]wFMCommunicate OK [00:19:37]SAM_PROTO_GetFMData done [00:19:37]Malloc new data [00:19:37]Malloc new data [00:19:37]Malloc new data [00:19:37]Malloc new data [00:19:37]KKMLoadAndSignCloseShiftData err=0 [00:19:37]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шайлообек у. Т. 23.06.2024 00:19 Смена: 395 РНМ: 0000000000095696 ЗНМ: 0300000170 СНО: Общий режим Чеков за смену: 95 ФД за смену: 97 Всего чеков: 95 ИТОГИ ПРИХОД Чеков: 95 Общий итог: 55215.94 Итого наличными: 28790.00 Итого безнал.: 26425.94 НДС 0% : 0.00 НДС 12% : 5863.95 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 488.53 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 28790.00 НС Приход: 72649297.00 НС Возвр.Прихода: 26927144.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 76900 ФМ: 0000000000875009 ФПД: 227195178646231 [00:19:37]StoreToDocumentArchive [00:19:37]shift 395 fd 76900 [00:19:37]save to /storage/0395/doc_00076900 [00:19:37]save last doc name /storage/0395/doc_00076900 to /storage/kkm_last_doc_name [00:19:37]save OK [00:19:37]Clear old archive folders... [00:19:37]Remove dir /storage/0266 [00:19:37]opendir ok [00:19:37]file . [00:19:37]file .. [00:19:37]file doc_1719101924 [00:19:37]remove file /storage/0266/doc_1719101924 [00:19:37]remove dir /storage/0266 [00:19:37]NVStorageSaveData kkm_registers [00:19:37]File name is /storage/kkm_registers [00:19:37]Write 24 bytes [00:19:37]NVStorageSaveData done [00:19:37]NVStorageSaveData kkm_registers [00:19:37]File name is /storage/kkm_registers [00:19:37]Write 24 bytes [00:19:37]NVStorageSaveData done [00:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [00:19:37]tlvbuf is B6DC9230 [00:19:37]SAM_PROTO_ClearQueue [00:19:37]wFMCommunicate request_size=4 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 09 00 00 [00:19:37]Write to MH i2c: E2 08 00 AA 02 80 09 00 00 00 00 00 00 1E [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [00:19:37]RAPDU: 90 00 [00:19:37]wFMCommunicate OK [00:19:37]SAM_PROTO_ClearQueue done [00:19:37]KKMCreateOFDPacket [00:19:37]OFDProtocolAddRootSTLVToBuf [00:19:37]FM_MakeSignedData [00:19:37]FM_MakeSignedData [00:19:37]SAM_PROTO_SignData [00:19:37]wFMCommunicate request_size=4 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 0D 01 02 [00:19:37]Write to MH i2c: E2 08 00 AB 02 80 0D 01 02 00 00 00 00 26 [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 AB 02 00 90 00 21 [00:19:37]RAPDU: 90 00 [00:19:37]wFMCommunicate OK [00:19:37]wFMCommunicate request_size=255 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 0D 02 02 FA 05 00 69 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 1B 00 D0 A8 D0 B0 D0 B9 D0 BB D0 BE D0 BE D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 A2 2E 20 F4 03 04 00 12 6A 77 66 0E 04 04 00 8B 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 AA 04 D5 04 6E 04 04 00 5F 00 00 00 69 04 A2 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 08 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 [00:19:37]Write to MH i2c: E2 02 01 AC 02 80 0D 02 02 FA 00 05 00 69 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 1B 00 D0 A8 D0 B0 D0 B9 D0 BB D0 BE D0 BE D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 A2 2E 20 F4 03 04 00 12 6A 77 66 0E 04 04 00 8B 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 AA 04 D5 04 6E 04 04 00 5F 00 00 00 69 04 A2 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 08 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 00 00 6C [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [00:19:37]RAPDU: 90 00 [00:19:37]wFMCommunicate OK [00:19:37]wFMCommunicate request_size=255 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 0D 02 02 FA 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 D5 BE 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 [00:19:38]Write to MH i2c: E2 02 01 AD 02 80 0D 02 02 FA 00 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 D5 BE 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 00 00 29 [00:19:38]Write i2c OK [00:19:38]MH_I2C_Read... [00:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:38]Read from MH i2c: E2 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 03 00 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 03 00 AD 02 00 90 00 23 [00:19:38]RAPDU: 90 00 [00:19:38]wFMCommunicate OK [00:19:38]wFMCommunicate request_size=255 [00:19:38]MH_SAM_APDU [00:19:38]CAPDU: 80 0D 02 02 FA 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 [00:19:38]Write to MH i2c: E2 02 01 AE 02 80 0D 02 02 FA 00 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 00 00 F0 [00:19:38]Write i2c OK [00:19:38]MH_I2C_Read... [00:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 03 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [00:19:39]RAPDU: 90 00 [00:19:39]wFMCommunicate OK [00:19:39]wFMCommunicate request_size=255 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 0D 02 02 FA 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 [00:19:39]Write to MH i2c: E2 02 01 AF 02 80 0D 02 02 FA 00 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 00 00 FA [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:39]OFD Sender: No OFD packet to send [00:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 03 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [00:19:39]RAPDU: 90 00 [00:19:39]wFMCommunicate OK [00:19:39]wFMCommunicate request_size=255 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:40]Write to MH i2c: E2 02 01 B0 02 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 BB [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=144 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 64 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 CE A1 FF EA FA D7 [00:19:40]Write to MH i2c: E2 93 00 B1 02 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 64 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 CE A1 FF EA FA D7 00 00 21 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=4 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 0D 03 02 [00:19:40]Write to MH i2c: E2 08 00 B2 02 80 0D 03 02 00 00 00 00 2F [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:41]Read from MH i2c: E2 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 0B 00 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 0B 00 B2 02 00 C6 A1 95 2D A0 87 80 11 90 00 11 [00:19:41]RAPDU: C6 A1 95 2D A0 87 80 11 90 00 [00:19:41]wFMCommunicate OK [00:19:41]SAM_PROTO_SignData done [00:19:41]FM_MakeSignedData done [00:19:41]CreateOFDProtocolMessage [00:19:41]wFMCommunicate request_size=4 [00:19:41]MH_SAM_APDU [00:19:41]CAPDU: 80 11 00 00 [00:19:41]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [00:19:41]Write i2c OK [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 [00:19:41]MH_I2C_Read... [00:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:41]Read from MH i2c: E2 17 00 [00:19:41]MH_I2C_Read... [00:19:41]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 35 30 30 39 90 00 7F [00:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:19:41]wFMCommunicate OK [00:19:41]CreateOFDProtocolMessage done [00:19:41]OFDSenderStorePacket 76900 [00:19:41]StoreOFDPacket docnum=76900 [00:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 7D 05 00 00 12 A7 75 05 A6 5E 5A 05 01 00 05 00 69 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 1B 00 D0 A8 D0 B0 D0 B9 D0 BB D0 BE D0 BE D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 A2 2E 20 F4 03 04 00 12 6A 77 66 0E 04 04 00 8B 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 AA 04 D5 04 6E 04 04 00 5F 00 00 00 69 04 A2 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 08 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 D5 BE 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 64 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 CE A1 FF EA FA D7 C6 A1 95 2D A0 87 80 11 [00:19:41]CheckFolder [00:19:41]dirname=/storage/ofd_packets [00:19:41]CheckFolder done [00:19:41]ProducePacketName [00:19:41]name=ofd_packets/00076900 [00:19:41]NVStorageSaveData ofd_packets/00076900 [00:19:41]File name is /storage/ofd_packets/00076900 [00:19:41]Write 1435 bytes [00:19:41]NVStorageSaveData done [00:19:41]OFDSenderStorePacket done [00:19:41]KKMCreateOFDPacket done [00:19:41]NVStorageSaveData kkm_last_timestamp [00:19:41]File name is /storage/kkm_last_timestamp [00:19:41]Write 4 bytes [00:19:41]NVStorageSaveData done [00:19:41]ExternCall_PrintAddStr [00:19:41]wPrintStart [00:19:41]Write to MH i2c: 01 00 00 B4 02 B6 [00:19:41]Write i2c OK [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: 01 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: 01 07 00 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [00:19:41]RasterBufferAndPrint [00:19:41]line Отчет о закрытии смены [00:19:41]line ФФД: 1.0 [00:19:41]line ИНН: 02508201610067 [00:19:41]line Кассир: Шайлообек у. Т. [00:19:41]line 23.06.2024 00:19 [00:19:41]line Смена: 395 [00:19:41]line РНМ: 0000000000095696 [00:19:41]line ЗНМ: 0300000170 [00:19:41]line СНО: Общий режим [00:19:41]line Чеков за смену: 95 [00:19:41]line ФД за смену: 97 [00:19:41]line Всего чеков: 95 [00:19:41]line ИТОГИ ПРИХОД [00:19:41]line Чеков: 95 [00:19:41]line Общий итог: 55215.94 [00:19:41]line Итого наличными: 28790.00 [00:19:41]line Итого безнал.: 26425.94 [00:19:41]line НДС 0% : 0.00 [00:19:41]line НДС 12% : 5863.95 [00:19:41]line НСП 0% : 0.00 [00:19:41]line НСП 1,50% : 0.00 [00:19:41]line НСП 0,50% : 0.00 [00:19:41]line НСП 5% : 0.00 [00:19:41]line НСП 3% : 0.00 [00:19:41]line НСП 2% : 0.00 [00:19:41]line НСП 1% : 488.53 [00:19:41]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:19:41]line Чеков: 0 [00:19:41]line Общий итог: 0.00 [00:19:41]line Итого наличными: 0.00 [00:19:41]line Итого безнал.: 0.00 [00:19:41]line НДС 0% : 0.00 [00:19:41]line НДС 12% : 0.00 [00:19:41]line НСП 0% : 0.00 [00:19:41]line НСП 1,50% : 0.00 [00:19:41]line НСП 0,50% : 0.00 [00:19:41]line НСП 5% : 0.00 [00:19:41]line НСП 3% : 0.00 [00:19:41]line НСП 2% : 0.00 [00:19:41]line НСП 1% : 0.00 [00:19:41]line ИТОГИ РАСХОД [00:19:41]line Чеков: 0 [00:19:41]line Общий итог: 0.00 [00:19:41]line Итого наличными: 0.00 [00:19:41]line Итого безнал.: 0.00 [00:19:41]line НДС 0% : 0.00 [00:19:41]line НДС 12% : 0.00 [00:19:41]line НСП 0% : 0.00 [00:19:41]line НСП 1,50% : 0.00 [00:19:41]line НСП 0,50% : 0.00 [00:19:41]line НСП 5% : 0.00 [00:19:41]line НСП 3% : 0.00 [00:19:41]line НСП 2% : 0.00 [00:19:41]line НСП 1% : 0.00 [00:19:41]line ИТОГИ ВОЗВРАТ РАСХОДА [00:19:41]line Чеков: 0 [00:19:41]line Общий итог: 0.00 [00:19:41]line Итого наличными: 0.00 [00:19:41]line Итого безнал.: 0.00 [00:19:41]line НДС 0% : 0.00 [00:19:41]line НДС 12% : 0.00 [00:19:41]line НСП 0% : 0.00 [00:19:41]line НСП 1,50% : 0.00 [00:19:41]line НСП 0,50% : 0.00 [00:19:41]line НСП 5% : 0.00 [00:19:41]line НСП 3% : 0.00 [00:19:41]line НСП 2% : 0.00 [00:19:41]line НСП 1% : 0.00 [00:19:41]line Сумма внесений: 0.00 [00:19:41]line Сумма выплат: 0.00 [00:19:41]line Нал. в кассе: 28790.00 [00:19:41]line НС Приход: 72649297.00 [00:19:41]line НС Возвр.Прихода: 26927144.00 [00:19:41]line НС Расход: 0.00 [00:19:41]line НС Возвр.Расхода: 0.00 [00:19:41]line ФД: 76900 [00:19:41]line ФМ: 0000000000875009 [00:19:41]line ФПД: 227195178646231 [00:19:41]OFD Sender: Processing packet 76900 [packets to send 351, broken 350] [00:19:41]ProducePacketName [00:19:41]name=ofd_packets/00076900 [00:19:41]OFD Sender: To server: pG, [00:19:41]CommunicateWithHost lk.salyk.kg:30040 [00:19:41]ConnectInit lk.salyk.kg [00:19:41]written 0, free lines is 4095 [00:19:41]Connected sock=10 [00:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 7D 05 00 00 12 A7 75 05 A6 5E 5A 05 01 00 05 00 69 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 1B 00 D0 A8 D0 B0 D0 B9 D0 BB D0 BE D0 BE D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 A2 2E 20 F4 03 04 00 12 6A 77 66 0E 04 04 00 8B 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 AA 04 D5 04 6E 04 04 00 5F 00 00 00 69 04 A2 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 08 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 D5 BE 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 Write to MH i2c: 00 01 EF 00 03 00 0A 05 00 03 F6 08 03 [00:19:42]01 00 05 F7 03 01 Write i2c OK [00:19:42]00 MH_I2C_Read... [00:19:42]00 EF 03 0A 00 F6 03 01 Read from MH i2c: 01 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: 00 01 04 07 F7 00 03 [00:19:42]01 MH_I2C_Read... [00:19:42]00 00 EF Read from MH i2c: 03 01 0A 07 00 00 F6 05 03 03 01 00 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 02 00 F7 00 03 00 01 22 00 0C 00 3D EF [00:19:42]03 RasterBufferAndPrint [00:19:42]0A line [00:19:42]00 line [00:19:42]F6 line [00:19:42]03 line [00:19:42]01 line [00:19:42]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 written 0, free lines is 3287 [00:19:42]B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE MH_Cut [00:19:42]03 Write to MH i2c: 09 D1 00 01 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 00 0C 01 03 F3 01 03 E1 00 [00:19:42]00 EF 03 09 Write i2c OK [00:19:42]00 MH_I2C_Read... [00:19:42]F6 03 01 00 00 F7 03 00 00 EF Read from MH i2c: 03 D1 09 [00:19:42]00 MH_I2C_Read... [00:19:42]F6 03 01 00 01 F7 03 Read from MH i2c: 00 D1 00 01 EF 00 03 [00:19:43]09 00 MH_I2C_Read... [00:19:43]F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 Read from MH i2c: 00 D1 03 01 F7 00 03 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 E0 09 [00:19:43]00 Write to MH i2c: F6 01 03 00 01 00 00 0D 05 03 10 [00:19:43]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 Write i2c OK [00:19:43]03 MH_I2C_Read... [00:19:43]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 64 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 CE A1 FF EA FA D7 C6 A1 95 2D A0 87 80 11 [00:19:43]*** Cut start [00:19:43]*** Partial cut [00:19:43]*** CUTSNS_PIN = 1 [00:19:43]*** CUTSNS_PIN = 0 [00:19:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 D8 E8 47 00 7C 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 64 2C 01 00 F4 03 04 00 B7 10 77 66 B6 04 01 00 00 8B 76 01 8A 78 CD FD C8 [00:19:43]CommunicateWithHost err = 0 [00:19:43]CheckOFDResponse [00:19:43]1017 (14) - 77093643461234 [00:19:43]1041 (16) - 0000000000875009 [00:19:43]1040 (4) - 76900 [00:19:43]1012 (4) - 22.06.2024 17:58 [00:19:43]1206 (1) - 0 [00:19:43]OFD Sender: Remove packet 76900 [00:19:43]ProducePacketName [00:19:43]name=ofd_packets/00076900 [00:19:43]NVStorageDeleteData [00:19:43]*** Brake cut motor [00:19:44]Read from MH i2c: 01 [00:19:44]MH_I2C_Read... [00:19:44]*** Stop cut motor [00:19:44]*** Cut end [00:19:44]Read from MH i2c: 01 07 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 FF 0F 25 [00:19:44]process_action close_shift done [00:19:44]requested_data is exist [00:19:44]produce_requested_data [00:19:44]requested_item fd.num is exist - process it [00:19:44]SAM_PROTO_GetFieldsCounters [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 13 00 00 [00:19:44]Write to MH i2c: E2 08 00 0E 03 80 13 00 00 00 00 00 00 8D [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]OFD Sender: No OFD packet to send [00:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 62 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 62 00 0E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 64 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [00:19:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 64 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:44]wFMCommunicate OK [00:19:44]SAM_PROTO_GetFieldsCounters done [00:19:44]requested_item shift.num is exist - process it [00:19:44]requested_item shift.opened is exist - process it [00:19:44]req_shift_opened [00:19:44]FM_GetShiftState [00:19:44]SAM_PROTO_GetShiftState [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 13 01 00 [00:19:44]Write to MH i2c: E2 08 00 0F 03 80 13 01 00 00 00 00 00 8F [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 0E 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 0E 00 0F 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9A [00:19:44]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:44]wFMCommunicate OK [00:19:44]SAM_PROTO_GetShiftState done [00:19:44]FM_GetShiftState done [00:19:44]req_shift_opened done [00:19:44]requested_item shift.open_date is exist - process it [00:19:44]req_shift_open_date [00:19:44]FM_GetShiftState [00:19:44]SAM_PROTO_GetShiftState [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 13 01 00 [00:19:44]Write to MH i2c: E2 08 00 10 03 80 13 01 00 00 00 00 00 90 [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 0E 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 0E 00 10 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9B [00:19:44]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:44]wFMCommunicate OK [00:19:44]SAM_PROTO_GetShiftState done [00:19:44]FM_GetShiftState done [00:19:44]req_shift_open_date done [00:19:44]produce_requested_data done [00:19:44]produce_requested_data return {"fd.num":76900,"shift.num":395,"shift.opened":0,"shift.open_date":0} [00:19:44]process_action_free close_shift [00:19:44]json_value_free [00:19:44]json_value_free done [00:19:44]process_json_proto returns [00:19:44]Send response to host [00:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76900,"shift.num":395,"shift.opened":0,"shift.open_date":0}}} [00:19:44]free response buf [00:19:44]execute_script done [00:19:44]execute_script returns [00:19:44]free content buf [00:19:44]Sock 9.Close socket [00:19:44]Sock 9.Thread stoped [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:19]accept exits with 8 [00:32:19]New connection [00:32:19]New thread 3067088228 created [00:32:19]Thread 3066944868 joined [00:32:19]Waiting for new connection... [00:32:19] Sock 8.Parse request [00:32:19]Sock 8.Check first char [00:32:19]Sock 8.First char is OK [00:32:19]request: POST /json_proto HTTP/1.0 [00:32:19]Method: POST [00:32:19]URL: /json_proto [00:32:19]Method is POST - this is cgi request [00:32:19]url: /json_proto [00:32:19]query_string will be loaded in cgi processing [00:32:19]execute_cgi json_proto POST (null) [00:32:19]execute_cgi path=json_proto method=POST [00:32:19]POST find Content-Length [00:32:19]Host: 172.17.39.195:8080 [00:32:19]Content-Length: 215 [00:32:19]Content-Type: application/json [00:32:19] [00:32:19]POST finish read [00:32:19]Found Content-Length = 215 [00:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:19]execute_script... [00:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:19]POST & json_proto [00:32:19]process_json_proto [00:32:19]json parsed OK: [00:32:19]protocol is kg_v1.0 [00:32:19]action value=get_value [00:32:19]process_action get_value [00:32:19]cmd_get_value [00:32:19]process_action get_value done [00:32:19]requested_data is exist [00:32:19]produce_requested_data [00:32:19]requested_item kkm.sn is exist - process it [00:32:19]requested_item kkm.ver is exist - process it [00:32:19]requested_item fm.sn is exist - process it [00:32:19]wFMCommunicate request_size=4 [00:32:19]MH_SAM_APDU [00:32:19]CAPDU: 80 11 00 00 [00:32:19]Write to MH i2c: E2 08 00 11 03 80 11 00 00 00 00 00 00 8E [00:32:19]Write i2c OK [00:32:19]MH_I2C_Read... [00:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:19]Read from MH i2c: E2 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 17 00 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 17 00 11 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 DE [00:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:32:19]wFMCommunicate OK [00:32:19]requested_item fd.num is exist - process it [00:32:19]SAM_PROTO_GetFieldsCounters [00:32:19]wFMCommunicate request_size=4 [00:32:19]MH_SAM_APDU [00:32:19]CAPDU: 80 13 00 00 [00:32:19]Write to MH i2c: E2 08 00 12 03 80 13 00 00 00 00 00 00 91 [00:32:19]Write i2c OK [00:32:19]MH_I2C_Read... [00:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:20]Read from MH i2c: E2 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 62 00 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 62 00 12 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 64 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [00:32: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 64 2C 01 00 0E 04 04 00 8B 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:20]wFMCommunicate OK [00:32:20]SAM_PROTO_GetFieldsCounters done [00:32:20]requested_item shift.num is exist - process it [00:32:20]requested_item shift.opened is exist - process it [00:32:20]req_shift_opened [00:32:20]FM_GetShiftState [00:32:20]SAM_PROTO_GetShiftState [00:32:20]wFMCommunicate request_size=4 [00:32:20]MH_SAM_APDU [00:32:20]CAPDU: 80 13 01 00 [00:32:20]Write to MH i2c: E2 08 00 13 03 80 13 01 00 00 00 00 00 93 [00:32:20]Write i2c OK [00:32:20]MH_I2C_Read... [00:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:20]Read from MH i2c: E2 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 0E 00 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 0E 00 13 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9E [00:32:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:20]wFMCommunicate OK [00:32:20]SAM_PROTO_GetShiftState done [00:32:20]FM_GetShiftState done [00:32:20]req_shift_opened done [00:32:20]requested_item shift.open_date is exist - process it [00:32:20]req_shift_open_date [00:32:20]FM_GetShiftState [00:32:20]SAM_PROTO_GetShiftState [00:32:20]wFMCommunicate request_size=4 [00:32:20]MH_SAM_APDU [00:32:20]CAPDU: 80 13 01 00 [00:32:20]Write to MH i2c: E2 08 00 14 03 80 13 01 00 00 00 00 00 94 [00:32:20]Write i2c OK [00:32:20]MH_I2C_Read... [00:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:20]Read from MH i2c: E2 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 0E 00 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 0E 00 14 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9F [00:32:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:20]wFMCommunicate OK [00:32:20]SAM_PROTO_GetShiftState done [00:32:20]FM_GetShiftState done [00:32:20]req_shift_open_date done [00:32:20]produce_requested_data done [00:32:20]produce_requested_data return {"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76900,"shift.num":395,"shift.opened":0,"shift.open_date":0} [00:32:20]process_action_free get_value [00:32:20]json_value_free [00:32:20]json_value_free done [00:32:20]process_json_proto returns [00:32:20]Send response to host [00:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000170","kkm.ver":"001","fm.sn":"0000000000875009","fd.num":76900,"shift.num":395,"shift.opened":0,"shift.open_date":0}}} [00:32:20]free response buf [00:32:20]execute_script done [00:32:20]execute_script returns [00:32:20]free content buf [00:32:20]Sock 8.Close socket [00:32:20]Sock 8.Thread stoped [00:32:20]accept exits with 9 [00:32:20]New connection [00:32:20]New thread 3066944868 created [00:32:20]Thread 3067088228 joined [00:32:20]Waiting for new connection... [00:32:20] Sock 9.Parse request [00:32:20]Sock 9.Check first char [00:32:20]Sock 9.First char is OK [00:32:20]request: POST /json_proto HTTP/1.0 [00:32:20]Method: POST [00:32:20]URL: /json_proto [00:32:20]Method is POST - this is cgi request [00:32:20]url: /json_proto [00:32:20]query_string will be loaded in cgi processing [00:32:20]execute_cgi json_proto POST (null) [00:32:20]execute_cgi path=json_proto method=POST [00:32:20]POST find Content-Length [00:32:20]Host: 172.17.39.195:8080 [00:32:20]Content-Length: 331 [00:32:20]Content-Type: application/json [00:32:20] [00:32:20]POST finish read [00:32:20]Found Content-Length = 331 [00:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:20]execute_script... [00:32:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:20]POST & json_proto [00:32:20]process_json_proto [00:32:20]json parsed OK: [00:32:20]protocol is kg_v1.0 [00:32:20]action value=get_value [00:32:20]process_action get_value [00:32:20]cmd_get_value [00:32:20]process_action get_value done [00:32:20]requested_data is exist [00:32:20]produce_requested_data [00:32:20]requested_item fm.sale.total is exist - process it [00:32:20]SAM_PROTO_GetFMData [00:32:20]wFMCommunicate request_size=4 [00:32:20]MH_SAM_APDU [00:32:20]CAPDU: 80 13 03 00 [00:32:20]Write to MH i2c: E2 08 00 15 03 80 13 03 00 00 00 00 00 97 [00:32:20]Write i2c OK [00:32:20]MH_I2C_Read... [00:32:20]OFD Sender: No OFD packet to send [00:32:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:20]Read from MH i2c: E2 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 FD 00 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 FD 00 15 03 00 C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 9F [00:32:20]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [00:32:20]wFMCommunicate OK [00:32:20]wFMCommunicate request_size=4 [00:32:20]MH_SAM_APDU [00:32:20]CAPDU: 80 17 00 00 [00:32:20]Write to MH i2c: E2 08 00 16 03 80 17 00 00 00 00 00 00 99 [00:32:20]Write i2c OK [00:32:20]MH_I2C_Read... [00:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:21]Read from MH i2c: E2 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 16 03 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 26 [00:32:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:32:21]wFMCommunicate OK [00:32:21]wFMCommunicate request_size=4 [00:32:21]MH_SAM_APDU [00:32:21]CAPDU: 80 17 00 00 [00:32:21]Write to MH i2c: E2 08 00 17 03 80 17 00 00 00 00 00 00 9A [00:32:21]Write i2c OK [00:32:21]MH_I2C_Read... [00:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:21]Read from MH i2c: E2 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 17 03 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [00:32:21]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:21]wFMCommunicate OK [00:32:21]wFMCommunicate request_size=4 [00:32:21]MH_SAM_APDU [00:32:21]CAPDU: 80 17 00 00 [00:32:21]Write to MH i2c: E2 08 00 18 03 80 17 00 00 00 00 00 00 9B [00:32:21]Write i2c OK [00:32:21]MH_I2C_Read... [00:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:21]Read from MH i2c: E2 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 18 03 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 16 [00:32:21]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:21]wFMCommunicate OK [00:32:21]wFMCommunicate request_size=4 [00:32:21]MH_SAM_APDU [00:32:21]CAPDU: 80 17 00 00 [00:32:21]Write to MH i2c: E2 08 00 19 03 80 17 00 00 00 00 00 00 9C [00:32:21]Write i2c OK [00:32:21]MH_I2C_Read... [00:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:32:21]Read from MH i2c: E2 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 E3 00 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 E3 00 19 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7B [00:32:21]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:21]wFMCommunicate OK [00:32:21]SAM_PROTO_GetFMData done [00:32:21]requested_item fm.sale_refund.total is exist - process it [00:32:21]requested_item fm.buy.total is exist - process it [00:32:21]requested_item shift.sale.total is exist - process it [00:32:21]SAM_PROTO_GetShiftData [00:32:21]wFMCommunicate request_size=4 [00:32:21]MH_SAM_APDU [00:32:21]CAPDU: 80 13 02 00 [00:32:21]Write to MH i2c: E2 08 00 1A 03 80 13 02 00 00 00 00 00 9B [00:32:21]Write i2c OK [00:32:21]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 FD 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 FD 00 1A 03 00 AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DD [00:32:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5F 00 00 00 69 04 9B 00 6F 04 04 00 5F 00 00 00 B1 04 03 00 BA 40 54 70 04 03 00 18 EE 2B 72 04 03 00 A2 52 28 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 9B F2 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 D5 BE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:32:22]wFMCommunicate OK [00:32:22]wFMCommunicate request_size=4 [00:32:22]MH_SAM_APDU [00:32:22]CAPDU: 80 17 00 00 [00:32:22]Write to MH i2c: E2 08 00 1B 03 80 17 00 00 00 00 00 00 9E [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 FD 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 FD 00 1B 03 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 C0 [00:32:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:32:22]wFMCommunicate OK [00:32:22]wFMCommunicate request_size=4 [00:32:22]MH_SAM_APDU [00:32:22]CAPDU: 80 17 00 00 [00:32:22]Write to MH i2c: E2 08 00 1C 03 80 17 00 00 00 00 00 00 9F [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 FD 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 FD 00 1C 03 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 56 [00:32:23]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:32:23]wFMCommunicate OK [00:32:23]wFMCommunicate request_size=4 [00:32:23]MH_SAM_APDU [00:32:23]CAPDU: 80 17 00 00 [00:32:23]Write to MH i2c: E2 08 00 1D 03 80 17 00 00 00 00 00 00 A0 [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:23]Read from MH i2c: E2 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 FD 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 FD 00 1D 03 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 12 [00:32:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:32:23]wFMCommunicate OK [00:32:23]wFMCommunicate request_size=4 [00:32:23]MH_SAM_APDU [00:32:23]CAPDU: 80 17 00 00 [00:32:23]Write to MH i2c: E2 08 00 1E 03 80 17 00 00 00 00 00 00 A1 [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:32:23]Read from MH i2c: E2 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 CB 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 CB 00 1E 03 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 8A [00:32:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:23]wFMCommunicate OK [00:32:23]SAM_PROTO_GetShiftData done [00:32:23]requested_item shift.sale.total_cash is exist - process it [00:32:23]requested_item shift.sale_refund.total is exist - process it [00:32:23]requested_item shift.sale_refund.total_cash is exist - process it [00:32:23]requested_item shift.buy.total is exist - process it [00:32:23]requested_item shift.buy.total_cash is exist - process it [00:32:23]produce_requested_data done [00:32:23]produce_requested_data return {"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:32:23]process_action_free get_value [00:32:23]json_value_free [00:32:23]json_value_free done [00:32:23]process_json_proto returns [00:32:23]Send response to host [00:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":55215.94,"shift.sale.total_cash":28790.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:32:23]free response buf [00:32:23]execute_script done [00:32:23]execute_script returns [00:32:23]free content buf [00:32:23]Sock 9.Close socket [00:32:23]Sock 9.Thread stoped [00:32:23]accept exits with 8 [00:32:23]New connection [00:32:23]New thread 3067088228 created [00:32:23]Thread 3066944868 joined [00:32:23]Waiting for new connection... [00:32:23] Sock 8.Parse request [00:32:23]Sock 8.Check first char [00:32:23]Sock 8.First char is OK [00:32:23]request: POST /json_proto HTTP/1.0 [00:32:23]Method: POST [00:32:23]URL: /json_proto [00:32:23]Method is POST - this is cgi request [00:32:23]url: /json_proto [00:32:23]query_string will be loaded in cgi processing [00:32:23]execute_cgi json_proto POST (null) [00:32:23]execute_cgi path=json_proto method=POST [00:32:23]POST find Content-Length [00:32:23]Host: 172.17.39.195:8080 [00:32:23]Content-Length: 265 [00:32:23]Content-Type: application/json [00:32:23] [00:32:23]POST finish read [00:32:23]Found Content-Length = 265 [00:32:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:23]execute_script... [00:32:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u042D\u0441\u0435\u043D\u043A\u0430\u043D\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:23]POST & json_proto [00:32:23]process_json_proto [00:32:23]json parsed OK: [00:32:23]protocol is kg_v1.0 [00:32:23]action value=open_shift [00:32:23]process_action open_shift [00:32:23]cmd_open_shift [00:32:23]MH_GetDate [00:32:23]Write to MH i2c: F0 00 00 1F 03 11 [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: F0 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: F0 09 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: F0 09 00 1F 03 00 19 6D 77 66 99 81 91 64 8C [00:32:23]GetLastDocTimeStamp 1719101970 [00:32:23]current date 1719102745 [00:32:23]FM_GetShiftState [00:32:23]SAM_PROTO_GetShiftState [00:32:23]wFMCommunicate request_size=4 [00:32:23]MH_SAM_APDU [00:32:23]CAPDU: 80 13 01 00 [00:32:23]Write to MH i2c: E2 08 00 20 03 80 13 01 00 00 00 00 00 A0 [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:23]Read from MH i2c: E2 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 0E 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 0E 00 20 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AB [00:32:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:23]wFMCommunicate OK [00:32:23]SAM_PROTO_GetShiftState done [00:32:23]FM_GetShiftState done [00:32:23]KKMCreateOpenShiftDocument [00:32:23]Load OK [00:32:23]Malloc new data [00:32:23]MH_GetDate [00:32:23]Write to MH i2c: F0 00 00 21 03 13 [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: F0 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: F0 09 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: F0 09 00 21 03 00 19 6D 77 66 99 81 91 64 8E [00:32:23]Malloc new data [00:32:23]KKMCreateOpenShiftDocument OK [00:32:23]KKMSetOpenShiftData OK [00:32:23]ProcessDocumentItem done err = 0, tmpTLVsize=202 [00:32:23]tlvbuf is 01FCD940 [00:32:23]KKMLoadAndSignOpenShiftData [00:32:23]SAM_PROTO_ProcessDocument [00:32:23]wFMCommunicate request_size=9 [00:32:23]MH_SAM_APDU [00:32:23]CAPDU: 80 15 01 00 04 02 00 CA 00 [00:32:23]Write to MH i2c: E2 0C 00 22 03 80 15 01 00 04 00 02 00 CA 00 00 00 78 [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:32:23]Read from MH i2c: E2 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 03 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [00:32:23]RAPDU: 90 00 [00:32:23]wFMCommunicate OK [00:32:23]wFMCommunicate request_size=23 [00:32:23]MH_SAM_APDU [00:32:23]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:32:23]Write to MH i2c: E2 1A 00 23 03 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 9B [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:23]Read from MH i2c: E2 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 03 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [00:32:23]RAPDU: 90 00 [00:32:23]wFMCommunicate OK [00:32:23]wFMCommunicate request_size=32 [00:32:23]MH_SAM_APDU [00:32:23]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 [00:32:23]Write to MH i2c: E2 23 00 24 03 80 15 02 00 1B 00 FD 03 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 00 00 67 [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:24]Read from MH i2c: E2 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 24 03 00 90 00 9B [00:32:24]RAPDU: 90 00 [00:32:24]wFMCommunicate OK [00:32:24]wFMCommunicate request_size=88 [00:32:24]MH_SAM_APDU [00:32:24]CAPDU: 80 15 02 00 53 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 [00:32:24]Write to MH i2c: E2 5B 00 25 03 80 15 02 00 53 00 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 00 00 AA [00:32:24]Write i2c OK [00:32:24]MH_I2C_Read... [00:32:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:24]Read from MH i2c: E2 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 25 03 00 90 00 9C [00:32:24]RAPDU: 90 00 [00:32:24]wFMCommunicate OK [00:32:24]wFMCommunicate request_size=51 [00:32:24]MH_SAM_APDU [00:32:24]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:32:24]Write to MH i2c: E2 36 00 26 03 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 54 [00:32:24]Write i2c OK [00:32:24]MH_I2C_Read... [00:32:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:24]Read from MH i2c: E2 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 26 03 00 90 00 9D [00:32:24]RAPDU: 90 00 [00:32:24]wFMCommunicate OK [00:32:24]wFMCommunicate request_size=13 [00:32:24]MH_SAM_APDU [00:32:24]CAPDU: 80 15 02 00 08 F4 03 04 00 19 6D 77 66 [00:32:24]Write to MH i2c: E2 10 00 27 03 80 15 02 00 08 00 F4 03 04 00 19 6D 77 66 00 00 18 [00:32:24]Write i2c OK [00:32:24]MH_I2C_Read... [00:32:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:24]Read from MH i2c: E2 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 27 03 00 90 00 9E [00:32:24]RAPDU: 90 00 [00:32:24]wFMCommunicate OK [00:32:24]wFMCommunicate request_size=25 [00:32:24]MH_SAM_APDU [00:32:24]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 [00:32:24]Write to MH i2c: E2 1C 00 28 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 00 00 17 [00:32:24]Write i2c OK [00:32:24]MH_I2C_Read... [00:32:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:24]Read from MH i2c: E2 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [00:32:24]RAPDU: 90 00 [00:32:24]wFMCommunicate OK [00:32:24]wFMCommunicate request_size=4 [00:32:24]MH_SAM_APDU [00:32:24]CAPDU: 80 15 03 00 [00:32:24]Write to MH i2c: E2 08 00 29 03 80 15 03 00 00 00 00 00 AD [00:32:24]Write i2c OK [00:32:24]MH_I2C_Read... [00:32:24]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:32:24]Read from MH i2c: E2 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 38 00 [00:32:24]MH_I2C_Read... [00:32:24]Read from MH i2c: E2 38 00 29 03 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 65 2C 01 00 0E 04 04 00 8C 01 00 00 35 04 06 00 E0 B5 31 E9 A7 D3 90 00 BE [00:32:24]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 65 2C 01 00 0E 04 04 00 8C 01 00 00 35 04 06 00 E0 B5 31 E9 A7 D3 90 00 [00:32:24]wFMCommunicate OK [00:32:24]SAM_PROTO_ProcessDocument answer len = 51 [00:32:24]SAM_PROTO_ProcessDocument done [00:32:24]SetTLVBufToDocument [00:32:24]Processing tag 1209 (04B9) [00:32:24]Malloc new data [00:32:24]Processing tag 1041 (0411) [00:32:24]Processing tag 1040 (0410) [00:32:24]Malloc new data [00:32:24]Processing tag 1038 (040E) [00:32:24]Malloc new data [00:32:24]Processing tag 1077 (0435) [00:32:24]Malloc new data [00:32:24]SetTLVBufToDocument err=0 [00:32:24]KKMLoadAndSignOpenShiftData store KKM data [00:32:24]KKMLoadAndSignOpenShiftData err=0 [00:32:24]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Эсенканов Э. Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 Место: АЗС № 144 "Партнер Нефть" 23.06.2024 00:32 Смена: 396 РНМ: 0000000000095696 ЗНМ: 0300000170 ФД: 76901 ФМ: 0000000000875009 ФПД: 247068831098835 [00:32:24]StoreToDocumentArchive [00:32:24]shift 396 fd 76901 [00:32:24]Create dir for shift 0396 [00:32:24]save to /storage/0396/doc_00076901 [00:32:24]save last doc name /storage/0396/doc_00076901 to /storage/kkm_last_doc_name [00:32:24]save OK [00:32:24]Clear old archive folders... [00:32:24]Remove dir /storage/0395 [00:32:24]opendir ok [00:32:24]file . [00:32:24]file .. [00:32:24]file doc_00076804 [00:32:24]remove file /storage/0395/doc_00076804 [00:32:24]file doc_00076805 [00:32:24]remove file /storage/0395/doc_00076805 [00:32:24]file doc_00076806 [00:32:24]remove file /storage/0395/doc_00076806 [00:32:24]file doc_00076807 [00:32:24]remove file /storage/0395/doc_00076807 [00:32:24]file doc_00076808 [00:32:24]remove file /storage/0395/doc_00076808 [00:32:24]file doc_00076809 [00:32:24]remove file /storage/0395/doc_00076809 [00:32:24]file doc_00076810 [00:32:24]remove file /storage/0395/doc_00076810 [00:32:24]file doc_00076811 [00:32:24]remove file /storage/0395/doc_00076811 [00:32:24]file doc_00076812 [00:32:24]remove file /storage/0395/doc_00076812 [00:32:24]file doc_00076813 [00:32:24]remove file /storage/0395/doc_00076813 [00:32:24]file doc_00076814 [00:32:24]remove file /storage/0395/doc_00076814 [00:32:24]file doc_00076815 [00:32:24]remove file /storage/0395/doc_00076815 [00:32:24]file doc_00076816 [00:32:24]remove file /storage/0395/doc_00076816 [00:32:24]file doc_00076817 [00:32:24]remove file /storage/0395/doc_00076817 [00:32:24]file doc_00076818 [00:32:24]remove file /storage/0395/doc_00076818 [00:32:24]file doc_00076819 [00:32:24]remove file /storage/0395/doc_00076819 [00:32:24]file doc_00076820 [00:32:24]remove file /storage/0395/doc_00076820 [00:32:24]file doc_00076821 [00:32:24]remove file /storage/0395/doc_00076821 [00:32:24]file doc_00076822 [00:32:24]remove file /storage/0395/doc_00076822 [00:32:24]file doc_00076823 [00:32:24]remove file /storage/0395/doc_00076823 [00:32:24]file doc_00076824 [00:32:24]remove file /storage/0395/doc_00076824 [00:32:24]file doc_00076825 [00:32:24]remove file /storage/0395/doc_00076825 [00:32:24]file doc_00076826 [00:32:24]remove file /storage/0395/doc_00076826 [00:32:24]file doc_00076827 [00:32:24]remove file /storage/0395/doc_00076827 [00:32:24]file doc_00076828 [00:32:24]remove file /storage/0395/doc_00076828 [00:32:24]file doc_00076829 [00:32:24]remove file /storage/0395/doc_00076829 [00:32:24]file doc_00076830 [00:32:24]remove file /storage/0395/doc_00076830 [00:32:24]file doc_00076831 [00:32:24]remove file /storage/0395/doc_00076831 [00:32:24]file doc_00076832 [00:32:24]remove file /storage/0395/doc_00076832 [00:32:24]file doc_00076833 [00:32:24]remove file /storage/0395/doc_00076833 [00:32:24]file doc_00076834 [00:32:24]remove file /storage/0395/doc_00076834 [00:32:24]file doc_00076835 [00:32:24]remove file /storage/0395/doc_00076835 [00:32:24]file doc_00076836 [00:32:24]remove file /storage/0395/doc_00076836 [00:32:24]file doc_00076837 [00:32:24]remove file /storage/0395/doc_00076837 [00:32:24]file doc_00076838 [00:32:24]remove file /storage/0395/doc_00076838 [00:32:24]file doc_00076839 [00:32:24]remove file /storage/0395/doc_00076839 [00:32:24]file doc_00076840 [00:32:24]remove file /storage/0395/doc_00076840 [00:32:24]file doc_00076841 [00:32:24]remove file /storage/0395/doc_00076841 [00:32:24]file doc_00076842 [00:32:24]remove file /storage/0395/doc_00076842 [00:32:24]file doc_00076843 [00:32:24]remove file /storage/0395/doc_00076843 [00:32:24]file doc_00076844 [00:32:24]remove file /storage/0395/doc_00076844 [00:32:24]file doc_00076845 [00:32:24]remove file /storage/0395/doc_00076845 [00:32:24]file doc_00076846 [00:32:24]remove file /storage/0395/doc_00076846 [00:32:24]file doc_00076847 [00:32:24]remove file /storage/0395/doc_00076847 [00:32:24]file doc_00076848 [00:32:24]remove file /storage/0395/doc_00076848 [00:32:24]file doc_00076849 [00:32:24]remove file /storage/0395/doc_00076849 [00:32:24]file doc_00076850 [00:32:24]remove file /storage/0395/doc_00076850 [00:32:24]file doc_00076851 [00:32:24]remove file /storage/0395/doc_00076851 [00:32:24]file doc_00076852 [00:32:24]remove file /storage/0395/doc_00076852 [00:32:24]file doc_00076853 [00:32:24]remove file /storage/0395/doc_00076853 [00:32:24]file doc_00076854 [00:32:24]remove file /storage/0395/doc_00076854 [00:32:24]file doc_00076855 [00:32:24]remove file /storage/0395/doc_00076855 [00:32:24]file doc_00076856 [00:32:24]remove file /storage/0395/doc_00076856 [00:32:24]file doc_00076857 [00:32:24]remove file /storage/0395/doc_00076857 [00:32:24]file doc_00076858 [00:32:24]remove file /storage/0395/doc_00076858 [00:32:24]file doc_00076859 [00:32:24]remove file /storage/0395/doc_00076859 [00:32:24]file doc_00076860 [00:32:24]remove file /storage/0395/doc_00076860 [00:32:24]file doc_00076861 [00:32:24]remove file /storage/0395/doc_00076861 [00:32:24]file doc_00076862 [00:32:24]remove file /storage/0395/doc_00076862 [00:32:24]file doc_00076863 [00:32:24]remove file /storage/0395/doc_00076863 [00:32:24]file doc_00076864 [00:32:24]remove file /storage/0395/doc_00076864 [00:32:24]file doc_00076865 [00:32:24]remove file /storage/0395/doc_00076865 [00:32:24]file doc_00076866 [00:32:24]remove file /storage/0395/doc_00076866 [00:32:24]file doc_00076867 [00:32:25]remove file /storage/0395/doc_00076867 [00:32:25]file doc_00076868 [00:32:25]remove file /storage/0395/doc_00076868 [00:32:25]file doc_00076869 [00:32:25]remove file /storage/0395/doc_00076869 [00:32:25]file doc_00076870 [00:32:25]remove file /storage/0395/doc_00076870 [00:32:25]file doc_00076871 [00:32:25]remove file /storage/0395/doc_00076871 [00:32:25]file doc_00076872 [00:32:25]remove file /storage/0395/doc_00076872 [00:32:25]file doc_00076873 [00:32:25]remove file /storage/0395/doc_00076873 [00:32:25]file doc_00076874 [00:32:25]remove file /storage/0395/doc_00076874 [00:32:25]file doc_00076875 [00:32:25]remove file /storage/0395/doc_00076875 [00:32:25]file doc_00076876 [00:32:25]remove file /storage/0395/doc_00076876 [00:32:25]file doc_00076877 [00:32:25]remove file /storage/0395/doc_00076877 [00:32:25]file doc_00076878 [00:32:25]remove file /storage/0395/doc_00076878 [00:32:25]file doc_00076879 [00:32:25]remove file /storage/0395/doc_00076879 [00:32:25]file doc_00076880 [00:32:25]remove file /storage/0395/doc_00076880 [00:32:25]file doc_00076881 [00:32:25]remove file /storage/0395/doc_00076881 [00:32:25]file doc_00076882 [00:32:25]remove file /storage/0395/doc_00076882 [00:32:25]file doc_00076883 [00:32:25]remove file /storage/0395/doc_00076883 [00:32:25]file doc_00076884 [00:32:25]remove file /storage/0395/doc_00076884 [00:32:25]file doc_00076885 [00:32:25]remove file /storage/0395/doc_00076885 [00:32:25]file doc_00076886 [00:32:25]remove file /storage/0395/doc_00076886 [00:32:25]file doc_00076887 [00:32:25]remove file /storage/0395/doc_00076887 [00:32:25]file doc_00076888 [00:32:25]remove file /storage/0395/doc_00076888 [00:32:25]file doc_00076889 [00:32:25]remove file /storage/0395/doc_00076889 [00:32:25]file doc_00076890 [00:32:25]remove file /storage/0395/doc_00076890 [00:32:25]file doc_00076891 [00:32:25]remove file /storage/0395/doc_00076891 [00:32:25]file doc_00076892 [00:32:25]remove file /storage/0395/doc_00076892 [00:32:25]file doc_00076893 [00:32:25]remove file /storage/0395/doc_00076893 [00:32:25]file doc_00076894 [00:32:25]remove file /storage/0395/doc_00076894 [00:32:25]file doc_00076895 [00:32:25]remove file /storage/0395/doc_00076895 [00:32:25]file doc_00076896 [00:32:25]remove file /storage/0395/doc_00076896 [00:32:25]file doc_00076897 [00:32:25]remove file /storage/0395/doc_00076897 [00:32:25]file doc_00076898 [00:32:25]remove file /storage/0395/doc_00076898 [00:32:25]file doc_00076899 [00:32:25]remove file /storage/0395/doc_00076899 [00:32:25]file doc_00076900 [00:32:25]remove file /storage/0395/doc_00076900 [00:32:25]remove dir /storage/0395 [00:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=253 [00:32:25]tlvbuf is 01F93900 [00:32:25]SAM_PROTO_ClearQueue [00:32:25]wFMCommunicate request_size=4 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 09 00 00 [00:32:25]Write to MH i2c: E2 08 00 2A 03 80 09 00 00 00 00 00 00 9F [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [00:32:25]RAPDU: 90 00 [00:32:25]wFMCommunicate OK [00:32:25]SAM_PROTO_ClearQueue done [00:32:25]KKMCreateOFDPacket [00:32:25]OFDProtocolAddRootSTLVToBuf [00:32:25]FM_MakeSignedData [00:32:25]FM_MakeSignedData [00:32:25]SAM_PROTO_SignData [00:32:25]wFMCommunicate request_size=4 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 0D 01 02 [00:32:25]Write to MH i2c: E2 08 00 2B 03 80 0D 01 02 00 00 00 00 A7 [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [00:32:25]RAPDU: 90 00 [00:32:25]wFMCommunicate OK [00:32:25]wFMCommunicate request_size=255 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 0D 02 02 FA 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 19 6D 77 66 0E 04 04 00 8C 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 65 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 [00:32:25]Write to MH i2c: E2 02 01 2C 03 80 0D 02 02 FA 00 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 19 6D 77 66 0E 04 04 00 8C 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 65 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 00 D2 [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 2C 03 00 90 00 A3 [00:32:25]RAPDU: 90 00 [00:32:25]wFMCommunicate OK [00:32:25]wFMCommunicate request_size=12 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 0D 02 02 07 00 E0 B5 31 E9 A7 D3 [00:32:25]Write to MH i2c: E2 0F 00 2D 03 80 0D 02 02 07 00 00 E0 B5 31 E9 A7 D3 00 00 E1 [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 2D 03 00 90 00 A4 [00:32:25]RAPDU: 90 00 [00:32:25]wFMCommunicate OK [00:32:25]wFMCommunicate request_size=4 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 0D 03 02 [00:32:25]Write to MH i2c: E2 08 00 2E 03 80 0D 03 02 00 00 00 00 AC [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 0B 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 0B 00 2E 03 00 75 CA E0 3A 99 B9 E3 9D 90 00 D8 [00:32:25]RAPDU: 75 CA E0 3A 99 B9 E3 9D 90 00 [00:32:25]wFMCommunicate OK [00:32:25]SAM_PROTO_SignData done [00:32:25]FM_MakeSignedData done [00:32:25]CreateOFDProtocolMessage [00:32:25]wFMCommunicate request_size=4 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 11 00 00 [00:32:25]Write to MH i2c: E2 08 00 2F 03 80 11 00 00 00 00 00 00 AC [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 17 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 17 00 2F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FC [00:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:32:25]wFMCommunicate OK [00:32:25]CreateOFDProtocolMessage done [00:32:25]OFDSenderStorePacket 76901 [00:32:25]StoreOFDPacket docnum=76901 [00:32:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 11 01 00 00 D5 08 09 01 DB 0C 5A 02 01 00 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 19 6D 77 66 0E 04 04 00 8C 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 65 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 E0 B5 31 E9 A7 D3 75 CA E0 3A 99 B9 E3 9D [00:32:25]CheckFolder [00:32:25]dirname=/storage/ofd_packets [00:32:25]CheckFolder done [00:32:25]ProducePacketName [00:32:25]name=ofd_packets/00076901 [00:32:25]NVStorageSaveData ofd_packets/00076901 [00:32:25]File name is /storage/ofd_packets/00076901 [00:32:25]Write 303 bytes [00:32:25]NVStorageSaveData done [00:32:25]OFDSenderStorePacket done [00:32:25]KKMCreateOFDPacket done [00:32:25]NVStorageSaveData kkm_last_timestamp [00:32:25]File name is /storage/kkm_last_timestamp [00:32:25]Write 4 bytes [00:32:25]NVStorageSaveData done [00:32:25]ExternCall_PrintAddStr [00:32:25]wPrintStart [00:32:25]Write to MH i2c: 01 00 00 30 03 33 [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: 01 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: 01 07 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [00:32:25]RasterBufferAndPrint [00:32:25]line Отчет об открытии смены [00:32:25]line ФФД: 1.0 [00:32:25]line ИНН: 02508201610067 [00:32:25]line Кассир: Эсенканов Э. [00:32:25]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [00:32:25]line Место: АЗС № 144 "Партнер Нефть" [00:32:25]line 23.06.2024 00:32 [00:32:25]line Смена: 396 [00:32:25]line РНМ: 0000000000095696 [00:32:25]line ЗНМ: 0300000170 [00:32:25]line ФД: 76901 [00:32:25]line ФМ: 0000000000875009 [00:32:25]line ФПД: 247068831098835 [00:32:25]written 0, free lines is 4095 [00:32:25]OFD Sender: Processing packet 76901 [packets to send 351, broken 350] [00:32:25]ProducePacketName [00:32:25]name=ofd_packets/00076901 [00:32:25]OFD Sender: To server: pG, [00:32:25]CommunicateWithHost lk.salyk.kg:30040 [00:32:25]ConnectInit lk.salyk.kg [00:32:26]Write to MH i2c: 01 00 00 42 03 45 [00:32:26]Write i2c OK [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: 01 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: 01 07 00 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 55 0E AF [00:32:26]RasterBufferAndPrint [00:32:26]line [00:32:26]line [00:32:26]line [00:32:26]line [00:32:26]line [00:32:26]written 0, free lines is 3680 [00:32:26]MH_Cut [00:32:26]Write to MH i2c: D1 01 00 49 03 01 1E [00:32:26]Write i2c OK [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: D1 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: D1 01 00 [00:32:26]MH_I2C_Read... [00:32:26]Connected sock=10 [00:32:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 11 01 00 00 D5 08 09 01 DB 0C 5A 02 01 00 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 AD D1 81 D0 B5 D0 BD D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 AD 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 B0 D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9C D1 83 D1 80 D0 B0 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 37 30 2C 20 34 31 2E 39 33 33 39 35 35 2C 20 37 34 2E 35 33 38 30 36 33 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 19 6D 77 66 0E 04 04 00 8C 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 65 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 35 04 06 00 E0 B5 31 E9 A7 D3 75 CA E0 3A 99 B9 E3 9D [00:32:26]Read from MH i2c: D1 01 00 49 03 00 1D [00:32:26]Write to MH i2c: 01 00 00 4A 03 4D [00:32:26]Write i2c OK [00:32:26]MH_I2C_Read... [00:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 02 73 47 00 8D 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 65 2C 01 00 F4 03 04 00 B1 13 77 66 B6 04 01 00 00 70 17 FB 26 2D 47 96 3E [00:32:26]CommunicateWithHost err = 0 [00:32:26]CheckOFDResponse [00:32:26]1017 (14) - 77093643461234 [00:32:26]1041 (16) - 0000000000875009 [00:32:26]1040 (4) - 76901 [00:32:26]1012 (4) - 22.06.2024 18:10 [00:32:26]1206 (1) - 0 [00:32:26]OFD Sender: Remove packet 76901 [00:32:26]ProducePacketName [00:32:26]name=ofd_packets/00076901 [00:32:26]NVStorageDeleteData [00:32:26]*** Cut start [00:32:26]*** Partial cut [00:32:26]*** CUTSNS_PIN = 1 [00:32:26]*** CUTSNS_PIN = 0 [00:32:26]*** Brake cut motor [00:32:27]OFD Sender: No OFD packet to send [00:32:27]Read from MH i2c: 01 [00:32:27]MH_I2C_Read... [00:32:27]*** Stop cut motor [00:32:27]*** Cut end [00:32:27]Read from MH i2c: 01 07 00 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [00:32:27]process_action open_shift done [00:32:27]requested_data is exist [00:32:27]produce_requested_data [00:32:27]requested_item fd.num is exist - process it [00:32:27]SAM_PROTO_GetFieldsCounters [00:32:27]wFMCommunicate request_size=4 [00:32:27]MH_SAM_APDU [00:32:27]CAPDU: 80 13 00 00 [00:32:27]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [00:32:27]Write i2c OK [00:32:27]MH_I2C_Read... [00:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:27]Read from MH i2c: E2 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: E2 62 00 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: E2 62 00 4B 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 65 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [00:32: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 65 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:27]wFMCommunicate OK [00:32:27]SAM_PROTO_GetFieldsCounters done [00:32:27]requested_item shift.num is exist - process it [00:32:27]requested_item shift.opened is exist - process it [00:32:27]req_shift_opened [00:32:27]FM_GetShiftState [00:32:27]SAM_PROTO_GetShiftState [00:32:27]wFMCommunicate request_size=4 [00:32:27]MH_SAM_APDU [00:32:27]CAPDU: 80 13 01 00 [00:32:27]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [00:32:27]Write i2c OK [00:32:27]MH_I2C_Read... [00:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:27]Read from MH i2c: E2 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: E2 0E 00 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 3B [00:32:27]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [00:32:27]wFMCommunicate OK [00:32:27]SAM_PROTO_GetShiftState done [00:32:27]FM_GetShiftState done [00:32:27]req_shift_opened done [00:32:27]requested_item shift.open_date is exist - process it [00:32:27]req_shift_open_date [00:32:27]req_shift_open_date done [00:32:27]produce_requested_data done [00:32:27]produce_requested_data return {"fd.num":76901,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [00:32:27]process_action_free open_shift [00:32:27]json_value_free [00:32:27]json_value_free done [00:32:27]process_json_proto returns [00:32:27]Send response to host [00:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":76901,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [00:32:27]free response buf [00:32:27]execute_script done [00:32:27]execute_script returns [00:32:27]free content buf [00:32:27]Sock 8.Close socket [00:32:27]Sock 8.Thread stoped [00:32:27]accept exits with 9 [00:32:27]New connection [00:32:27]New thread 3066944868 created [00:32:27]Thread 3067088228 joined [00:32:27]Waiting for new connection... [00:32:27] Sock 9.Parse request [00:32:27]Sock 9.Check first char [00:32:27]Sock 9.First char is OK [00:32:27]request: POST /json_proto HTTP/1.0 [00:32:27]Method: POST [00:32:27]URL: /json_proto [00:32:27]Method is POST - this is cgi request [00:32:27]url: /json_proto [00:32:27]query_string will be loaded in cgi processing [00:32:27]execute_cgi json_proto POST (null) [00:32:27]execute_cgi path=json_proto method=POST [00:32:27]POST find Content-Length [00:32:27]Host: 172.17.39.195:8080 [00:32:27]Content-Length: 331 [00:32:27]Content-Type: application/json [00:32:27] [00:32:27]POST finish read [00:32:27]Found Content-Length = 331 [00:32:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:27]execute_script... [00:32:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:27]POST & json_proto [00:32:27]process_json_proto [00:32:27]json parsed OK: [00:32:27]protocol is kg_v1.0 [00:32:27]action value=get_value [00:32:27]process_action get_value [00:32:27]cmd_get_value [00:32:27]process_action get_value done [00:32:27]requested_data is exist [00:32:27]produce_requested_data [00:32:27]requested_item fm.sale.total is exist - process it [00:32:27]SAM_PROTO_GetFMData [00:32:27]wFMCommunicate request_size=4 [00:32:27]MH_SAM_APDU [00:32:27]CAPDU: 80 13 03 00 [00:32:27]Write to MH i2c: E2 08 00 4D 03 80 13 03 00 00 00 00 00 CF [00:32:27]Write i2c OK [00:32:27]MH_I2C_Read... [00:32:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:28]Read from MH i2c: E2 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 4D 03 00 C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 D7 [00:32:28]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 29 01 00 69 04 A3 00 6F 04 04 00 0E 26 01 00 B1 04 05 00 A4 07 06 B1 01 70 04 05 00 04 11 8B 6D 01 72 04 04 00 A0 F6 7A 43 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 5A FC FD 2D 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 69 11 D5 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 3F 03 00 00 B1 04 04 00 A0 8F 7F A0 70 04 04 00 A0 8F 7F A0 72 04 00 00 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 55 4F 0B 11 EF 03 09 90 00 [00:32:28]wFMCommunicate OK [00:32:28]wFMCommunicate request_size=4 [00:32:28]MH_SAM_APDU [00:32:28]CAPDU: 80 17 00 00 [00:32:28]Write to MH i2c: E2 08 00 4E 03 80 17 00 00 00 00 00 00 D1 [00:32:28]Write i2c OK [00:32:28]MH_I2C_Read... [00:32:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:28]Read from MH i2c: E2 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 4E 03 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 5E [00:32:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D2 9B 6B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:32:28]wFMCommunicate OK [00:32:28]wFMCommunicate request_size=4 [00:32:28]MH_SAM_APDU [00:32:28]CAPDU: 80 17 00 00 [00:32:28]Write to MH i2c: E2 08 00 4F 03 80 17 00 00 00 00 00 00 D2 [00:32:28]Write i2c OK [00:32:28]MH_I2C_Read... [00:32:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:28]Read from MH i2c: E2 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 4F 03 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [00:32:28]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:29]wFMCommunicate OK [00:32:29]wFMCommunicate request_size=4 [00:32:29]MH_SAM_APDU [00:32:29]CAPDU: 80 17 00 00 [00:32:29]Write to MH i2c: E2 08 00 50 03 80 17 00 00 00 00 00 00 D3 [00:32:29]Write i2c OK [00:32:29]MH_I2C_Read... [00:32:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:29]Read from MH i2c: E2 [00:32:29]MH_I2C_Read... [00:32:29]Read from MH i2c: E2 FD 00 [00:32:29]MH_I2C_Read... [00:32:29]Read from MH i2c: E2 FD 00 50 03 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [00:32:29]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:29]wFMCommunicate OK [00:32:29]wFMCommunicate request_size=4 [00:32:29]MH_SAM_APDU [00:32:29]CAPDU: 80 17 00 00 [00:32:29]Write to MH i2c: E2 08 00 51 03 80 17 00 00 00 00 00 00 D4 [00:32:29]Write i2c OK [00:32:29]MH_I2C_Read... [00:32:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:32:29]Read from MH i2c: E2 [00:32:29]MH_I2C_Read... [00:32:29]Read from MH i2c: E2 E3 00 [00:32:29]MH_I2C_Read... [00:32:29]Read from MH i2c: E2 E3 00 51 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B3 [00:32:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:29]wFMCommunicate OK [00:32:29]SAM_PROTO_GetFMData done [00:32:29]requested_item fm.sale_refund.total is exist - process it [00:32:29]requested_item fm.buy.total is exist - process it [00:32:29]requested_item shift.sale.total is exist - process it [00:32:29]SAM_PROTO_GetShiftData [00:32:29]wFMCommunicate request_size=4 [00:32:29]MH_SAM_APDU [00:32:29]CAPDU: 80 13 02 00 [00:32:29]Write to MH i2c: E2 08 00 52 03 80 13 02 00 00 00 00 00 D3 [00:32:29]Write i2c OK [00:32:29]MH_I2C_Read... [00:32:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:30]Read from MH i2c: E2 [00:32:30]MH_I2C_Read... [00:32:30]Read from MH i2c: E2 FD 00 [00:32:30]MH_I2C_Read... [00:32:30]Read from MH i2c: E2 FD 00 52 03 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 46 [00:32:30]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:32:30]wFMCommunicate OK [00:32:30]wFMCommunicate request_size=4 [00:32:30]MH_SAM_APDU [00:32:30]CAPDU: 80 17 00 00 [00:32:30]Write to MH i2c: E2 08 00 53 03 80 17 00 00 00 00 00 00 D6 [00:32:30]Write i2c OK [00:32:30]MH_I2C_Read... [00:32:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:30]Read from MH i2c: E2 [00:32:30]MH_I2C_Read... [00:32:30]Read from MH i2c: E2 FD 00 [00:32:30]MH_I2C_Read... [00:32:30]Read from MH i2c: E2 FD 00 53 03 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 DE [00:32:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:32:30]wFMCommunicate OK [00:32:30]wFMCommunicate request_size=4 [00:32:30]MH_SAM_APDU [00:32:30]CAPDU: 80 17 00 00 [00:32:30]Write to MH i2c: E2 08 00 54 03 80 17 00 00 00 00 00 00 D7 [00:32:30]Write i2c OK [00:32:30]MH_I2C_Read... [00:32:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:31]Read from MH i2c: E2 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 FD 00 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 FD 00 54 03 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 A9 [00:32:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:32:31]wFMCommunicate OK [00:32:31]wFMCommunicate request_size=4 [00:32:31]MH_SAM_APDU [00:32:31]CAPDU: 80 17 00 00 [00:32:31]Write to MH i2c: E2 08 00 55 03 80 17 00 00 00 00 00 00 D8 [00:32:31]Write i2c OK [00:32:31]MH_I2C_Read... [00:32:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:31]Read from MH i2c: E2 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 FD 00 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 FD 00 55 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 90 00 4A [00:32:31]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:32:31]wFMCommunicate OK [00:32:31]wFMCommunicate request_size=4 [00:32:31]MH_SAM_APDU [00:32:31]CAPDU: 80 17 00 00 [00:32:31]Write to MH i2c: E2 08 00 56 03 80 17 00 00 00 00 00 00 D9 [00:32:31]Write i2c OK [00:32:31]MH_I2C_Read... [00:32:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:32:32]Read from MH i2c: E2 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 BD 00 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 BD 00 56 03 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 BF [00:32:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:32]wFMCommunicate OK [00:32:32]SAM_PROTO_GetShiftData done [00:32:32]requested_item shift.sale.total_cash is exist - process it [00:32:32]requested_item shift.sale_refund.total is exist - process it [00:32:32]requested_item shift.sale_refund.total_cash is exist - process it [00:32:32]requested_item shift.buy.total is exist - process it [00:32:32]requested_item shift.buy.total_cash is exist - process it [00:32:32]produce_requested_data done [00:32:32]produce_requested_data return {"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:32:32]process_action_free get_value [00:32:32]json_value_free [00:32:32]json_value_free done [00:32:32]process_json_proto returns [00:32:32]Send response to host [00:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72649297.00,"fm.sale_refund.total":26927144.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:32:32]free response buf [00:32:32]execute_script done [00:32:32]execute_script returns [00:32:32]free content buf [00:32:32]Sock 9.Close socket [00:32:32]Sock 9.Thread stoped [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:12]accept exits with 8 [00:56:12]New connection [00:56:12]New thread 3067088228 created [00:56:12]Thread 3066944868 joined [00:56:12]Waiting for new connection... [00:56:12] Sock 8.Parse request [00:56:12]Sock 8.Check first char [00:56:12]Sock 8.First char is OK [00:56:12]request: POST /json_proto HTTP/1.0 [00:56:12]Method: POST [00:56:12]URL: /json_proto [00:56:12]Method is POST - this is cgi request [00:56:12]url: /json_proto [00:56:12]query_string will be loaded in cgi processing [00:56:12]execute_cgi json_proto POST (null) [00:56:12]execute_cgi path=json_proto method=POST [00:56:12]POST find Content-Length [00:56:12]Host: 172.17.39.195:8080 [00:56:12]Content-Length: 633 [00:56:12]Content-Type: application/json [00:56:12] [00:56:12]POST finish read [00:56:12]Found Content-Length = 633 [00:56:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220956", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:12]execute_script... [00:56:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220956", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:12]POST & json_proto [00:56:12]process_json_proto [00:56:12]json parsed OK: [00:56:12]protocol is kg_v1.0 [00:56:12]action value=close_receipt [00:56:12]process_action close_receipt [00:56:12]cmd_close_receipt [00:56:12]MH_GetDate [00:56:12]Write to MH i2c: F0 00 00 57 03 49 [00:56:12]Write i2c OK [00:56:12]MH_I2C_Read... [00:56:12]Read from MH i2c: F0 [00:56:12]MH_I2C_Read... [00:56:12]Read from MH i2c: F0 09 00 [00:56:12]MH_I2C_Read... [00:56:12]Read from MH i2c: F0 09 00 57 03 00 AD 72 77 66 99 81 91 64 5D [00:56:12]GetLastDocTimeStamp 1719102745 [00:56:12]current date 1719104173 [00:56:12]FM_GetShiftState [00:56:12]SAM_PROTO_GetShiftState [00:56:12]wFMCommunicate request_size=4 [00:56:12]MH_SAM_APDU [00:56:12]CAPDU: 80 13 01 00 [00:56:12]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [00:56:12]Write i2c OK [00:56:12]MH_I2C_Read... [00:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:12]Read from MH i2c: E2 [00:56:12]MH_I2C_Read... [00:56:12]Read from MH i2c: E2 0E 00 [00:56:12]MH_I2C_Read... [00:56:12]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 47 [00:56:12]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [00:56:12]wFMCommunicate OK [00:56:12]SAM_PROTO_GetShiftState done [00:56:12]FM_GetShiftState done [00:56:12]opened in 1719102745 [00:56:12]opened+sec_in_day 1719189145 [00:56:12]quantity*price = 14000 [00:56:12]sum+1 = 14001 [00:56:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 1 23.06.2024 00:56 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76902 ФПД: 242723042798807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T005613&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76902&fm=242723042798807&tin=02508201610067®Number=0000000000095696&sum=14000 0 [00:56:13]StoreToDocumentArchive [00:56:13]shift 396 fd 76902 [00:56:13]save to /storage/0396/doc_00076902 [00:56:13]save last doc name /storage/0396/doc_00076902 to /storage/kkm_last_doc_name [00:56:13]save OK [00:56:13]Clear old archive folders... [00:56:13]ProcessDocumentItem done err = 0, tmpTLVsize=285 [00:56:13]tlvbuf is 01FFC2F0 [00:56:13]SAM_PROTO_ClearQueue [00:56:13]wFMCommunicate request_size=4 [00:56:13]MH_SAM_APDU [00:56:13]CAPDU: 80 09 00 00 [00:56:13]Write to MH i2c: E2 08 00 65 03 80 09 00 00 00 00 00 00 DA [00:56:13]Write i2c OK [00:56:13]MH_I2C_Read... [00:56:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:13]Read from MH i2c: E2 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 03 00 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [00:56:13]RAPDU: 90 00 [00:56:13]wFMCommunicate OK [00:56:13]SAM_PROTO_ClearQueue done [00:56:13]KKMCreateOFDPacket [00:56:13]OFDProtocolAddRootSTLVToBuf [00:56:13]FM_MakeSignedData [00:56:13]FM_MakeSignedData [00:56:13]SAM_PROTO_SignData [00:56:13]wFMCommunicate request_size=4 [00:56:13]MH_SAM_APDU [00:56:13]CAPDU: 80 0D 01 02 [00:56:13]Write to MH i2c: E2 08 00 66 03 80 0D 01 02 00 00 00 00 E2 [00:56:13]Write i2c OK [00:56:13]MH_I2C_Read... [00:56:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:13]Read from MH i2c: E2 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 03 00 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [00:56:13]RAPDU: 90 00 [00:56:13]wFMCommunicate OK [00:56:13]wFMCommunicate request_size=255 [00:56:13]MH_SAM_APDU [00:56:13]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 AD 72 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 [00:56:13]Write to MH i2c: E2 02 01 67 03 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 AD 72 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 00 00 B9 [00:56:13]Write i2c OK [00:56:13]MH_I2C_Read... [00:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:13]Read from MH i2c: E2 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 03 00 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [00:56:13]RAPDU: 90 00 [00:56:13]wFMCommunicate OK [00:56:13]wFMCommunicate request_size=44 [00:56:13]MH_SAM_APDU [00:56:13]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2C 01 00 35 04 06 00 DC C1 5C BE AC D7 [00:56:13]Write to MH i2c: E2 2F 00 68 03 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2C 01 00 35 04 06 00 DC C1 5C BE AC D7 00 00 CF [00:56:13]Write i2c OK [00:56:13]MH_I2C_Read... [00:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:13]Read from MH i2c: E2 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 03 00 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [00:56:13]RAPDU: 90 00 [00:56:13]wFMCommunicate OK [00:56:13]wFMCommunicate request_size=4 [00:56:13]MH_SAM_APDU [00:56:13]CAPDU: 80 0D 03 02 [00:56:13]Write to MH i2c: E2 08 00 69 03 80 0D 03 02 00 00 00 00 E7 [00:56:13]Write i2c OK [00:56:13]MH_I2C_Read... [00:56:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:13]Read from MH i2c: E2 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 0B 00 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 0B 00 69 03 00 21 61 A6 21 3E 6C C2 2F 90 00 CC [00:56:13]RAPDU: 21 61 A6 21 3E 6C C2 2F 90 00 [00:56:13]wFMCommunicate OK [00:56:13]SAM_PROTO_SignData done [00:56:13]FM_MakeSignedData done [00:56:13]CreateOFDProtocolMessage [00:56:13]wFMCommunicate request_size=4 [00:56:13]MH_SAM_APDU [00:56:13]CAPDU: 80 11 00 00 [00:56:13]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [00:56:13]Write i2c OK [00:56:13]MH_I2C_Read... [00:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:13]Read from MH i2c: E2 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 17 00 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: E2 17 00 6A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 37 [00:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:56:13]wFMCommunicate OK [00:56:13]CreateOFDProtocolMessage done [00:56:13]OFDSenderStorePacket 76902 [00:56:13]StoreOFDPacket docnum=76902 [00:56:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 31 01 00 00 E3 ED 29 01 78 4A 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 AD 72 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2C 01 00 35 04 06 00 DC C1 5C BE AC D7 21 61 A6 21 3E 6C C2 2F [00:56:13]CheckFolder [00:56:13]dirname=/storage/ofd_packets [00:56:13]CheckFolder done [00:56:13]ProducePacketName [00:56:13]name=ofd_packets/00076902 [00:56:13]NVStorageSaveData ofd_packets/00076902 [00:56:13]File name is /storage/ofd_packets/00076902 [00:56:13]Write 335 bytes [00:56:13]NVStorageSaveData done [00:56:13]OFDSenderStorePacket done [00:56:13]KKMCreateOFDPacket done [00:56:13]NVStorageSaveData kkm_last_timestamp [00:56:13]File name is /storage/kkm_last_timestamp [00:56:13]Write 4 bytes [00:56:13]NVStorageSaveData done [00:56:13]ExternCall_PrintAddStr [00:56:13]wPrintStart [00:56:13]Write to MH i2c: 01 00 00 6B 03 6E [00:56:13]Write i2c OK [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: 01 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: 01 07 00 [00:56:13]MH_I2C_Read... [00:56:13]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 FF 0F 83 [00:56:13]RasterBufferAndPrint [00:56:13]line Счет N : (3)220956 [00:56:13]line ИНН: 02508201610067 [00:56:13]line Контрольно-Кассовый Чек [00:56:13]line ПРОДАЖА [00:56:13]line Товар: 48745024 [00:56:13]line Сигареты Winston Superslims Expand Purpl [00:56:13]line 1.000 * 140.00 [00:56:13]line = 140.00 [00:56:13]line НДС 12% НСП 1% [00:56:13]line > о реализуемом товаре [00:56:13]line ИТОГО: 140.00 [00:56:13]line НСП 1% : 1.24 [00:56:13]line НДС 12% : 14.87 [00:56:13]line Наличными: 140.00 [00:56:13]line Безнал.: 0.00 [00:56:13]line Место: АЗС № 144 "Партнер Нефть" [00:56:13]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [00:56:13]line СНО: Общий режим [00:56:13]line Чек 1 23.06.2024 00:56 [00:56:13]line Смена: 396 ФФД: 1.0 [00:56:13]line ЗНМ: 0300000170 [00:56:13]line РНМ: 0000000000095696 [00:56:13]line Версия ККМ: 001 [00:56:13]line ФМ: 0000000000875009 [00:56:13]line ФД: 76902 [00:56:13]line ФПД: 242723042798807 [00:56:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T005613&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76902&fm=242723042798807&tin=02508201610067®Number=0000000000095696&sum=14000 [00:56:13]line 0 [00:56:13]written 0, free lines is 4095 [00:56:13]OFD Sender: Processing packet 76902 [packets to send 351, broken 350] [00:56:13]ProducePacketName [00:56:13]name=ofd_packets/00076902 [00:56:13]OFD Sender: To server: pG, [00:56:13]CommunicateWithHost lk.salyk.kg:30040 [00:56:13]ConnectInit lk.salyk.kg [00:56:14]Connected sock=10 [00:56:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 31 01 00 00 E3 ED 29 01 78 4A 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 AD 72 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2C 01 00 35 04 06 00 DC C1 5C BE AC D7 21 61 A6 21 3E 6C C2 2F [00:56:14]Write to MH i2c: 01 00 00 94 03 97 [00:56:14]Write i2c OK [00:56:14]MH_I2C_Read... [00:56:14]Read from MH i2c: 01 [00:56:14]MH_I2C_Read... [00:56:14]Read from MH i2c: 01 07 00 [00:56:14]MH_I2C_Read... [00:56:14]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 E4 0C 8E [00:56:14]RasterBufferAndPrint [00:56:14]line [00:56:14]line [00:56:14]line [00:56:14]line [00:56:14]line [00:56:14]written 0, free lines is 3307 [00:56:14]MH_Cut [00:56:14]Write to MH i2c: D1 01 00 9B 03 01 70 [00:56:14]Write i2c OK [00:56:14]MH_I2C_Read... [00:56:14]Read from MH i2c: D1 [00:56:14]MH_I2C_Read... [00:56:14]Read from MH i2c: D1 01 00 [00:56:14]MH_I2C_Read... [00:56:14]Read from MH i2c: D1 01 00 9B 03 00 6F [00:56:14]Write to MH i2c: 01 00 00 9C 03 9F [00:56:14]Write i2c OK [00:56:14]MH_I2C_Read... [00:56:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 99 CF 47 00 F8 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 66 2C 01 00 F4 03 04 00 45 19 77 66 B6 04 01 00 00 38 47 F9 16 D1 EE 0C F1 [00:56:14]CommunicateWithHost err = 0 [00:56:14]CheckOFDResponse [00:56:14]1017 (14) - 77093643461234 [00:56:14]1041 (16) - 0000000000875009 [00:56:14]1040 (4) - 76902 [00:56:14]1012 (4) - 22.06.2024 18:34 [00:56:14]1206 (1) - 0 [00:56:14]OFD Sender: Remove packet 76902 [00:56:14]ProducePacketName [00:56:14]name=ofd_packets/00076902 [00:56:14]NVStorageDeleteData [00:56:14]OFD Sender: No OFD packet to send [00:56:15]*** Cut start [00:56:15]*** Partial cut [00:56:15]*** CUTSNS_PIN = 1 [00:56:15]*** CUTSNS_PIN = 0 [00:56:15]*** Brake cut motor [00:56:15]Read from MH i2c: 01 [00:56:15]MH_I2C_Read... [00:56:15]*** Stop cut motor [00:56:15]*** Cut end [00:56:15]Read from MH i2c: 01 07 00 [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [00:56:15]process_action close_receipt done [00:56:15]requested_data is exist [00:56:15]produce_requested_data [00:56:15]requested_item fm.sn is exist - process it [00:56:15]wFMCommunicate request_size=4 [00:56:15]MH_SAM_APDU [00:56:15]CAPDU: 80 11 00 00 [00:56:15]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [00:56:15]Write i2c OK [00:56:15]MH_I2C_Read... [00:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:15]Read from MH i2c: E2 [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: E2 17 00 [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 6A [00:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [00:56:15]wFMCommunicate OK [00:56:15]requested_item fd.num is exist - process it [00:56:15]SAM_PROTO_GetFieldsCounters [00:56:15]wFMCommunicate request_size=4 [00:56:15]MH_SAM_APDU [00:56:15]CAPDU: 80 13 00 00 [00:56:15]Write to MH i2c: E2 08 00 9E 03 80 13 00 00 00 00 00 00 1D [00:56:15]Write i2c OK [00:56:15]MH_I2C_Read... [00:56:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:15]Read from MH i2c: E2 [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: E2 62 00 [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: E2 62 00 9E 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 66 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [00:56: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 66 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:56:15]wFMCommunicate OK [00:56:15]SAM_PROTO_GetFieldsCounters done [00:56:15]requested_item shift.num is exist - process it [00:56:15]requested_item shift.opened is exist - process it [00:56:15]req_shift_opened [00:56:15]FM_GetShiftState [00:56:15]SAM_PROTO_GetShiftState [00:56:15]wFMCommunicate request_size=4 [00:56:15]MH_SAM_APDU [00:56:15]CAPDU: 80 13 01 00 [00:56:15]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [00:56:15]Write i2c OK [00:56:15]MH_I2C_Read... [00:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:15]Read from MH i2c: E2 [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: E2 0E 00 [00:56:15]MH_I2C_Read... [00:56:15]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 8E [00:56:15]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [00:56:15]wFMCommunicate OK [00:56:15]SAM_PROTO_GetShiftState done [00:56:15]FM_GetShiftState done [00:56:15]req_shift_opened done [00:56:15]requested_item shift.open_date is exist - process it [00:56:15]req_shift_open_date [00:56:15]req_shift_open_date done [00:56:15]produce_requested_data done [00:56:15]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76902,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [00:56:15]process_action_free close_receipt [00:56:15]json_value_free [00:56:15]json_value_free done [00:56:15]process_json_proto returns [00:56:15]Send response to host [00:56:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76902,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [00:56:15]free response buf [00:56:15]execute_script done [00:56:15]execute_script returns [00:56:15]free content buf [00:56:15]Sock 8.Close socket [00:56:15]Sock 8.Thread stoped [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:09]accept exits with 9 [01:21:09]New connection [01:21:09]New thread 3066944868 created [01:21:09]Thread 3067088228 joined [01:21:09]Waiting for new connection... [01:21:09] Sock 9.Parse request [01:21:09]Sock 9.Check first char [01:21:09]Sock 9.First char is OK [01:21:09]request: POST /json_proto HTTP/1.0 [01:21:09]Method: POST [01:21:09]URL: /json_proto [01:21:09]Method is POST - this is cgi request [01:21:09]url: /json_proto [01:21:09]query_string will be loaded in cgi processing [01:21:09]execute_cgi json_proto POST (null) [01:21:09]execute_cgi path=json_proto method=POST [01:21:09]POST find Content-Length [01:21:09]Host: 172.17.39.195:8080 [01:21:09]Content-Length: 644 [01:21:09]Content-Type: application/json [01:21:09] [01:21:09]POST finish read [01:21:09]Found Content-Length = 644 [01:21:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220957", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 2.000, "sum" : 1120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:09]execute_script... [01:21:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220957", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 2.000, "sum" : 1120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:09]POST & json_proto [01:21:09]process_json_proto [01:21:09]json parsed OK: [01:21:09]protocol is kg_v1.0 [01:21:09]action value=close_receipt [01:21:09]process_action close_receipt [01:21:09]cmd_close_receipt [01:21:09]MH_GetDate [01:21:09]Write to MH i2c: F0 00 00 A0 03 92 [01:21:09]Write i2c OK [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: F0 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: F0 09 00 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: F0 09 00 A0 03 00 86 78 77 66 99 81 91 64 85 [01:21:09]GetLastDocTimeStamp 1719104173 [01:21:09]current date 1719105670 [01:21:09]FM_GetShiftState [01:21:09]SAM_PROTO_GetShiftState [01:21:09]wFMCommunicate request_size=4 [01:21:09]MH_SAM_APDU [01:21:09]CAPDU: 80 13 01 00 [01:21:09]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [01:21:09]Write i2c OK [01:21:09]MH_I2C_Read... [01:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:09]Read from MH i2c: E2 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: E2 0E 00 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 90 [01:21:09]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:21:09]wFMCommunicate OK [01:21:09]SAM_PROTO_GetShiftState done [01:21:09]FM_GetShiftState done [01:21:09]opened in 1719102745 [01:21:09]opened+sec_in_day 1719189145 [01:21:09]quantity*price = 112000 [01:21:09]sum+1 = 112001 [01:21:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1120.00 НСП 1% : 9.91 НДС 12% : 118.94 Наличными: 1120.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 2 23.06.2024 01:21 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76903 ФПД: 154659501984988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T012110&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76903&fm=154659501984988&tin=02508201610067®Number=0000000000095696&sum=112000 0 [01:21:09]StoreToDocumentArchive [01:21:09]shift 396 fd 76903 [01:21:09]save to /storage/0396/doc_00076903 [01:21:09]save last doc name /storage/0396/doc_00076903 to /storage/kkm_last_doc_name [01:21:09]save OK [01:21:09]Clear old archive folders... [01:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=282 [01:21:09]tlvbuf is 020083E0 [01:21:09]SAM_PROTO_ClearQueue [01:21:09]wFMCommunicate request_size=4 [01:21:09]MH_SAM_APDU [01:21:09]CAPDU: 80 09 00 00 [01:21:09]Write to MH i2c: E2 08 00 AE 03 80 09 00 00 00 00 00 00 23 [01:21:09]Write i2c OK [01:21:09]MH_I2C_Read... [01:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:21:09]Read from MH i2c: E2 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: E2 03 00 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [01:21:09]RAPDU: 90 00 [01:21:09]wFMCommunicate OK [01:21:09]SAM_PROTO_ClearQueue done [01:21:09]KKMCreateOFDPacket [01:21:09]OFDProtocolAddRootSTLVToBuf [01:21:09]FM_MakeSignedData [01:21:09]FM_MakeSignedData [01:21:09]SAM_PROTO_SignData [01:21:09]wFMCommunicate request_size=4 [01:21:09]MH_SAM_APDU [01:21:09]CAPDU: 80 0D 01 02 [01:21:09]Write to MH i2c: E2 08 00 AF 03 80 0D 01 02 00 00 00 00 2B [01:21:09]Write i2c OK [01:21:09]MH_I2C_Read... [01:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:21:09]Read from MH i2c: E2 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: E2 03 00 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [01:21:09]RAPDU: 90 00 [01:21:09]wFMCommunicate OK [01:21:09]wFMCommunicate request_size=255 [01:21:09]MH_SAM_APDU [01:21:09]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 86 78 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 [01:21:09]Write to MH i2c: E2 02 01 B0 03 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 86 78 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 00 00 3B [01:21:10]Write i2c OK [01:21:10]MH_I2C_Read... [01:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:10]Read from MH i2c: E2 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: E2 03 00 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [01:21:10]RAPDU: 90 00 [01:21:10]wFMCommunicate OK [01:21:10]wFMCommunicate request_size=41 [01:21:10]MH_SAM_APDU [01:21:10]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2C 01 00 35 04 06 00 8C A9 78 AD 4C DC [01:21:10]Write to MH i2c: E2 2C 00 B1 03 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2C 01 00 35 04 06 00 8C A9 78 AD 4C DC 00 00 10 [01:21:10]Write i2c OK [01:21:10]MH_I2C_Read... [01:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:10]Read from MH i2c: E2 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: E2 03 00 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [01:21:10]RAPDU: 90 00 [01:21:10]wFMCommunicate OK [01:21:10]wFMCommunicate request_size=4 [01:21:10]MH_SAM_APDU [01:21:10]CAPDU: 80 0D 03 02 [01:21:10]Write to MH i2c: E2 08 00 B2 03 80 0D 03 02 00 00 00 00 30 [01:21:10]Write i2c OK [01:21:10]MH_I2C_Read... [01:21:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:21:10]Read from MH i2c: E2 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: E2 0B 00 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: E2 0B 00 B2 03 00 94 B4 7E 64 2E 9D 3C 77 90 00 D9 [01:21:10]RAPDU: 94 B4 7E 64 2E 9D 3C 77 90 00 [01:21:10]wFMCommunicate OK [01:21:10]SAM_PROTO_SignData done [01:21:10]FM_MakeSignedData done [01:21:10]CreateOFDProtocolMessage [01:21:10]wFMCommunicate request_size=4 [01:21:10]MH_SAM_APDU [01:21:10]CAPDU: 80 11 00 00 [01:21:10]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [01:21:10]Write i2c OK [01:21:10]MH_I2C_Read... [01:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:10]Read from MH i2c: E2 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: E2 17 00 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 80 [01:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:21:10]wFMCommunicate OK [01:21:10]CreateOFDProtocolMessage done [01:21:10]OFDSenderStorePacket 76903 [01:21:10]StoreOFDPacket docnum=76903 [01:21:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 F5 35 26 01 31 18 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 86 78 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2C 01 00 35 04 06 00 8C A9 78 AD 4C DC 94 B4 7E 64 2E 9D 3C 77 [01:21:10]CheckFolder [01:21:10]dirname=/storage/ofd_packets [01:21:10]CheckFolder done [01:21:10]ProducePacketName [01:21:10]name=ofd_packets/00076903 [01:21:10]NVStorageSaveData ofd_packets/00076903 [01:21:10]File name is /storage/ofd_packets/00076903 [01:21:10]Write 332 bytes [01:21:10]NVStorageSaveData done [01:21:10]OFDSenderStorePacket done [01:21:10]KKMCreateOFDPacket done [01:21:10]NVStorageSaveData kkm_last_timestamp [01:21:10]File name is /storage/kkm_last_timestamp [01:21:10]Write 4 bytes [01:21:10]NVStorageSaveData done [01:21:10]ExternCall_PrintAddStr [01:21:10]wPrintStart [01:21:10]Write to MH i2c: 01 00 00 B4 03 B7 [01:21:10]Write i2c OK [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: 01 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: 01 07 00 [01:21:10]MH_I2C_Read... [01:21:10]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [01:21:10]RasterBufferAndPrint [01:21:10]line Счет N : (3)220957 [01:21:10]line ИНН: 02508201610067 [01:21:10]line Контрольно-Кассовый Чек [01:21:10]line ПРОДАЖА [01:21:10]line Товар: 4700003150936 [01:21:10]line Новая Водка Organic 40% 0,48л [01:21:10]line 2.000 * 560.00 [01:21:10]line = 1120.00 [01:21:10]line НДС 12% НСП 1% [01:21:10]line > о реализуемом товаре [01:21:10]line ИТОГО: 1120.00 [01:21:10]line НСП 1% : 9.91 [01:21:10]line НДС 12% : 118.94 [01:21:10]line Наличными: 1120.00 [01:21:10]line Безнал.: 0.00 [01:21:10]line Место: АЗС № 144 "Партнер Нефть" [01:21:10]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:21:10]line СНО: Общий режим [01:21:10]line Чек 2 23.06.2024 01:21 [01:21:10]line Смена: 396 ФФД: 1.0 [01:21:10]line ЗНМ: 0300000170 [01:21:10]line РНМ: 0000000000095696 [01:21:10]line Версия ККМ: 001 [01:21:10]line ФМ: 0000000000875009 [01:21:10]line ФД: 76903 [01:21:10]line ФПД: 154659501984988 [01:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T012110&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76903&fm=154659501984988&tin=02508201610067®Number=0000000000095696&sum=112000 [01:21:10]line 0 [01:21:10]written 0, free lines is 4095 [01:21:10]OFD Sender: Processing packet 76903 [packets to send 351, broken 350] [01:21:10]ProducePacketName [01:21:10]name=ofd_packets/00076903 [01:21:10]OFD Sender: To server: pG, [01:21:10]CommunicateWithHost lk.salyk.kg:30040 [01:21:10]ConnectInit lk.salyk.kg [01:21:11]Write to MH i2c: 01 00 00 DD 03 E0 [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: 01 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: 01 07 00 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 D5 0C C8 [01:21:11]RasterBufferAndPrint [01:21:11]line [01:21:11]line [01:21:11]line [01:21:11]line [01:21:11]line [01:21:11]written 0, free lines is 3292 [01:21:11]MH_Cut [01:21:11]Write to MH i2c: D1 01 00 E4 03 01 B9 [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: D1 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: D1 01 00 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: D1 01 00 E4 03 00 B8 [01:21:11]Write to MH i2c: 01 00 00 E5 03 E8 [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]*** Cut start [01:21:11]*** Partial cut [01:21:11]*** CUTSNS_PIN = 1 [01:21:12]*** CUTSNS_PIN = 0 [01:21:12]*** Brake cut motor [01:21:12]Read from MH i2c: 01 [01:21:12]MH_I2C_Read... [01:21:12]*** Stop cut motor [01:21:12]*** Cut end [01:21:12]Read from MH i2c: 01 07 00 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: 01 07 00 E5 03 00 00 00 00 00 FF 0F FD [01:21:12]process_action close_receipt done [01:21:12]requested_data is exist [01:21:12]produce_requested_data [01:21:12]requested_item fm.sn is exist - process it [01:21:12]wFMCommunicate request_size=4 [01:21:12]MH_SAM_APDU [01:21:12]CAPDU: 80 11 00 00 [01:21:12]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [01:21:12]Write i2c OK [01:21:12]MH_I2C_Read... [01:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:12]Read from MH i2c: E2 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: E2 17 00 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 B3 [01:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:21:12]wFMCommunicate OK [01:21:12]requested_item fd.num is exist - process it [01:21:12]SAM_PROTO_GetFieldsCounters [01:21:12]wFMCommunicate request_size=4 [01:21:12]MH_SAM_APDU [01:21:12]CAPDU: 80 13 00 00 [01:21:12]Write to MH i2c: E2 08 00 E7 03 80 13 00 00 00 00 00 00 66 [01:21:12]Write i2c OK [01:21:12]MH_I2C_Read... [01:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:21:12]Read from MH i2c: E2 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: E2 62 00 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: E2 62 00 E7 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 67 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [01: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 67 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:21:12]wFMCommunicate OK [01:21:12]SAM_PROTO_GetFieldsCounters done [01:21:12]requested_item shift.num is exist - process it [01:21:12]requested_item shift.opened is exist - process it [01:21:12]req_shift_opened [01:21:12]FM_GetShiftState [01:21:12]SAM_PROTO_GetShiftState [01:21:12]wFMCommunicate request_size=4 [01:21:12]MH_SAM_APDU [01:21:12]CAPDU: 80 13 01 00 [01:21:12]Write to MH i2c: E2 08 00 E8 03 80 13 01 00 00 00 00 00 68 [01:21:12]Write i2c OK [01:21:12]MH_I2C_Read... [01:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:12]Read from MH i2c: E2 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: E2 0E 00 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: E2 0E 00 E8 03 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 D7 [01:21:12]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:21:12]wFMCommunicate OK [01:21:12]SAM_PROTO_GetShiftState done [01:21:12]FM_GetShiftState done [01:21:12]req_shift_opened done [01:21:12]requested_item shift.open_date is exist - process it [01:21:12]req_shift_open_date [01:21:12]req_shift_open_date done [01:21:12]produce_requested_data done [01:21:12]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76903,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [01:21:12]process_action_free close_receipt [01:21:12]json_value_free [01:21:12]json_value_free done [01:21:12]process_json_proto returns [01:21:12]Send response to host [01:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76903,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [01:21:12]free response buf [01:21:12]execute_script done [01:21:12]execute_script returns [01:21:12]free content buf [01:21:12]Sock 9.Close socket [01:21:12]Sock 9.Thread stoped [01:21:13]Connected sock=11 [01:21:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2E 01 00 00 F5 35 26 01 31 18 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 86 78 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2C 01 00 35 04 06 00 8C A9 78 AD 4C DC 94 B4 7E 64 2E 9D 3C 77 [01:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 A2 26 47 00 A5 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 67 2C 01 00 F4 03 04 00 20 1F 77 66 B6 04 01 00 00 B2 88 42 5A F6 16 EB D4 [01:21:13]CommunicateWithHost err = 0 [01:21:13]CheckOFDResponse [01:21:13]1017 (14) - 77093643461234 [01:21:13]1041 (16) - 0000000000875009 [01:21:13]1040 (4) - 76903 [01:21:13]1012 (4) - 22.06.2024 18:59 [01:21:13]1206 (1) - 0 [01:21:13]OFD Sender: Remove packet 76903 [01:21:13]ProducePacketName [01:21:13]name=ofd_packets/00076903 [01:21:13]NVStorageDeleteData [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:16]accept exits with 8 [01:34:16]New connection [01:34:16]New thread 3067088228 created [01:34:16]Thread 3066944868 joined [01:34:16]Waiting for new connection... [01:34:16] Sock 8.Parse request [01:34:16]Sock 8.Check first char [01:34:16]Sock 8.First char is OK [01:34:16]request: POST /json_proto HTTP/1.0 [01:34:16]Method: POST [01:34:16]URL: /json_proto [01:34:16]Method is POST - this is cgi request [01:34:16]url: /json_proto [01:34:16]query_string will be loaded in cgi processing [01:34:16]execute_cgi json_proto POST (null) [01:34:16]execute_cgi path=json_proto method=POST [01:34:16]POST find Content-Length [01:34:16]Host: 172.17.39.195:8080 [01:34:16]Content-Length: 619 [01:34:16]Content-Type: application/json [01:34:16] [01:34:16]POST finish read [01:34:16]Found Content-Length = 619 [01:34:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220958", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:16]execute_script... [01:34:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220958", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:16]POST & json_proto [01:34:16]process_json_proto [01:34:16]json parsed OK: [01:34:16]protocol is kg_v1.0 [01:34:16]action value=close_receipt [01:34:16]process_action close_receipt [01:34:16]cmd_close_receipt [01:34:16]MH_GetDate [01:34:16]Write to MH i2c: F0 00 00 E9 03 DB [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: F0 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: F0 09 00 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: F0 09 00 E9 03 00 99 7B 77 66 99 81 91 64 E4 [01:34:16]GetLastDocTimeStamp 1719105670 [01:34:16]current date 1719106457 [01:34:16]FM_GetShiftState [01:34:16]SAM_PROTO_GetShiftState [01:34:16]wFMCommunicate request_size=4 [01:34:16]MH_SAM_APDU [01:34:16]CAPDU: 80 13 01 00 [01:34:16]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:16]Read from MH i2c: E2 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 0E 00 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 D9 [01:34:16]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:34:16]wFMCommunicate OK [01:34:16]SAM_PROTO_GetShiftState done [01:34:16]FM_GetShiftState done [01:34:16]opened in 1719102745 [01:34:16]opened+sec_in_day 1719189145 [01:34:16]quantity*price = 14000 [01:34:16]sum+1 = 14001 [01:34:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 3 23.06.2024 01:34 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76904 ФПД: 199151796037253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T013417&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76904&fm=199151796037253&tin=02508201610067®Number=0000000000095696&sum=14000 0 [01:34:17]StoreToDocumentArchive [01:34:17]shift 396 fd 76904 [01:34:17]save to /storage/0396/doc_00076904 [01:34:17]save last doc name /storage/0396/doc_00076904 to /storage/kkm_last_doc_name [01:34:17]save OK [01:34:17]Clear old archive folders... [01:34:17]ProcessDocumentItem done err = 0, tmpTLVsize=271 [01:34:17]tlvbuf is 01FEFA40 [01:34:17]SAM_PROTO_ClearQueue [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 09 00 00 [01:34:17]Write to MH i2c: E2 08 00 F7 03 80 09 00 00 00 00 00 00 6C [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:17]Read from MH i2c: E2 03 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [01:34:17]RAPDU: 90 00 [01:34:17]wFMCommunicate OK [01:34:17]SAM_PROTO_ClearQueue done [01:34:17]KKMCreateOFDPacket [01:34:17]OFDProtocolAddRootSTLVToBuf [01:34:17]FM_MakeSignedData [01:34:17]FM_MakeSignedData [01:34:17]SAM_PROTO_SignData [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 0D 01 02 [01:34:17]Write to MH i2c: E2 08 00 F8 03 80 0D 01 02 00 00 00 00 74 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [01:34:17]RAPDU: 90 00 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=255 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 99 7B 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [01:34:17]Write to MH i2c: E2 02 01 F9 03 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 99 7B 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 83 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [01:34:17]RAPDU: 90 00 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=30 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 0D 02 02 19 30 38 37 35 30 30 39 10 04 04 00 68 2C 01 00 35 04 06 00 B5 20 A4 0F 26 85 [01:34:17]Write to MH i2c: E2 21 00 FA 03 80 0D 02 02 19 00 30 38 37 35 30 30 39 10 04 04 00 68 2C 01 00 35 04 06 00 B5 20 A4 0F 26 85 00 00 35 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [01:34:17]RAPDU: 90 00 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 0D 03 02 [01:34:17]Write to MH i2c: E2 08 00 FB 03 80 0D 03 02 00 00 00 00 79 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 0B 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 0B 00 FB 03 00 1E 9A 0F 5A DF DA 0E 3F 90 00 A1 [01:34:17]RAPDU: 1E 9A 0F 5A DF DA 0E 3F 90 00 [01:34:17]wFMCommunicate OK [01:34:17]SAM_PROTO_SignData done [01:34:17]FM_MakeSignedData done [01:34:17]CreateOFDProtocolMessage [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 11 00 00 [01:34:17]Write to MH i2c: E2 08 00 FC 03 80 11 00 00 00 00 00 00 79 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 17 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 17 00 FC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 C9 [01:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:34:17]wFMCommunicate OK [01:34:17]CreateOFDProtocolMessage done [01:34:17]OFDSenderStorePacket 76904 [01:34:17]StoreOFDPacket docnum=76904 [01:34:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 46 18 1B 01 14 FD 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 99 7B 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 68 2C 01 00 35 04 06 00 B5 20 A4 0F 26 85 1E 9A 0F 5A DF DA 0E 3F [01:34:17]CheckFolder [01:34:17]dirname=/storage/ofd_packets [01:34:17]CheckFolder done [01:34:17]ProducePacketName [01:34:17]name=ofd_packets/00076904 [01:34:17]NVStorageSaveData ofd_packets/00076904 [01:34:17]File name is /storage/ofd_packets/00076904 [01:34:17]Write 321 bytes [01:34:17]NVStorageSaveData done [01:34:17]OFDSenderStorePacket done [01:34:17]KKMCreateOFDPacket done [01:34:17]NVStorageSaveData kkm_last_timestamp [01:34:17]File name is /storage/kkm_last_timestamp [01:34:17]Write 4 bytes [01:34:17]NVStorageSaveData done [01:34:17]ExternCall_PrintAddStr [01:34:17]wPrintStart [01:34:17]Write to MH i2c: 01 00 00 FD 03 00 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: 01 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: 01 07 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 FF 0F 15 [01:34:17]RasterBufferAndPrint [01:34:17]line Счет N : (3)220958 [01:34:17]line ИНН: 02508201610067 [01:34:17]line Контрольно-Кассовый Чек [01:34:17]line ПРОДАЖА [01:34:17]line Товар: 47802995 [01:34:17]line Сигареты Winston XS Silver [01:34:17]line 1.000 * 140.00 [01:34:17]line = 140.00 [01:34:17]line НДС 12% НСП 1% [01:34:17]line > о реализуемом товаре [01:34:17]line ИТОГО: 140.00 [01:34:17]line НСП 1% : 1.24 [01:34:17]line НДС 12% : 14.87 [01:34:17]line Наличными: 140.00 [01:34:17]line Безнал.: 0.00 [01:34:17]line Место: АЗС № 144 "Партнер Нефть" [01:34:17]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:34:17]line СНО: Общий режим [01:34:17]line Чек 3 23.06.2024 01:34 [01:34:17]line Смена: 396 ФФД: 1.0 [01:34:17]line ЗНМ: 0300000170 [01:34:17]line РНМ: 0000000000095696 [01:34:17]line Версия ККМ: 001 [01:34:17]line ФМ: 0000000000875009 [01:34:17]line ФД: 76904 [01:34:17]line ФПД: 199151796037253 [01:34:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T013417&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76904&fm=199151796037253&tin=02508201610067®Number=0000000000095696&sum=14000 [01:34:18]OFD Sender: Processing packet 76904 [packets to send 351, broken 350] [01:34:18]ProducePacketName [01:34:18]name=ofd_packets/00076904 [01:34:18]OFD Sender: To server: pG, [01:34:18]CommunicateWithHost lk.salyk.kg:30040 [01:34:18]ConnectInit lk.salyk.kg [01:34:18]line 0 [01:34:18]written 0, free lines is 4095 [01:34:18]Connected sock=10 [01:34:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 23 01 00 00 46 18 1B 01 14 FD 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 99 7B 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 68 2C 01 00 35 04 06 00 B5 20 A4 0F 26 85 1E 9A 0F 5A DF DA 0E 3F [01:34:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 EB 63 47 00 40 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 35 30 30 39 10 04 04 00 68 2C 01 00 F4 03 04 00 31 22 77 66 B6 04 01 00 00 00 1F C2 F3 57 AE FF 12 [01:34:18]CommunicateWithHost err = 0 [01:34:18]CheckOFDResponse [01:34:18]1017 (14) - 77093643461234 [01:34:18]1041 (16) - 0000000000875009 [01:34:18]1040 (4) - 76904 [01:34:18]1012 (4) - 22.06.2024 19:12 [01:34:18]1206 (1) - 0 [01:34:18]OFD Sender: Remove packet 76904 [01:34:18]ProducePacketName [01:34:18]name=ofd_packets/00076904 [01:34:18]NVStorageDeleteData [01:34:18]Write to MH i2c: 01 00 00 25 04 29 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 07 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 09 0D 46 [01:34:18]RasterBufferAndPrint [01:34:18]line [01:34:18]line [01:34:18]line [01:34:18]line [01:34:18]line [01:34:18]written 0, free lines is 3346 [01:34:18]MH_Cut [01:34:18]Write to MH i2c: D1 01 00 2C 04 01 02 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: D1 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: D1 01 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: D1 01 00 2C 04 00 01 [01:34:18]Write to MH i2c: 01 00 00 2D 04 31 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]OFD Sender: No OFD packet to send [01:34:19]*** Cut start [01:34:19]*** Partial cut [01:34:19]*** CUTSNS_PIN = 1 [01:34:19]*** CUTSNS_PIN = 0 [01:34:19]*** Brake cut motor [01:34:19]Read from MH i2c: 01 [01:34:19]MH_I2C_Read... [01:34:19]*** Stop cut motor [01:34:19]*** Cut end [01:34:19]Read from MH i2c: 01 07 00 [01:34:19]MH_I2C_Read... [01:34:19]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 FF 0F 46 [01:34:19]process_action close_receipt done [01:34:19]requested_data is exist [01:34:19]produce_requested_data [01:34:19]requested_item fm.sn is exist - process it [01:34:19]wFMCommunicate request_size=4 [01:34:19]MH_SAM_APDU [01:34:19]CAPDU: 80 11 00 00 [01:34:19]Write to MH i2c: E2 08 00 2E 04 80 11 00 00 00 00 00 00 AC [01:34:19]Write i2c OK [01:34:19]MH_I2C_Read... [01:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:19]Read from MH i2c: E2 [01:34:19]MH_I2C_Read... [01:34:19]Read from MH i2c: E2 17 00 [01:34:19]MH_I2C_Read... [01:34:19]Read from MH i2c: E2 17 00 2E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 FC [01:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:34:19]wFMCommunicate OK [01:34:19]requested_item fd.num is exist - process it [01:34:19]SAM_PROTO_GetFieldsCounters [01:34:19]wFMCommunicate request_size=4 [01:34:19]MH_SAM_APDU [01:34:19]CAPDU: 80 13 00 00 [01:34:19]Write to MH i2c: E2 08 00 2F 04 80 13 00 00 00 00 00 00 AF [01:34:19]Write i2c OK [01:34:19]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 62 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 62 00 2F 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 68 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [01:34: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 68 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:20]wFMCommunicate OK [01:34:20]SAM_PROTO_GetFieldsCounters done [01:34:20]requested_item shift.num is exist - process it [01:34:20]requested_item shift.opened is exist - process it [01:34:20]req_shift_opened [01:34:20]FM_GetShiftState [01:34:20]SAM_PROTO_GetShiftState [01:34:20]wFMCommunicate request_size=4 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 13 01 00 [01:34:20]Write to MH i2c: E2 08 00 30 04 80 13 01 00 00 00 00 00 B1 [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 0E 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 0E 00 30 04 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 20 [01:34:20]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:34:20]wFMCommunicate OK [01:34:20]SAM_PROTO_GetShiftState done [01:34:20]FM_GetShiftState done [01:34:20]req_shift_opened done [01:34:20]requested_item shift.open_date is exist - process it [01:34:20]req_shift_open_date [01:34:20]req_shift_open_date done [01:34:20]produce_requested_data done [01:34:20]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76904,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [01:34:20]process_action_free close_receipt [01:34:20]json_value_free [01:34:20]json_value_free done [01:34:20]process_json_proto returns [01:34:20]Send response to host [01:34:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76904,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [01:34:20]free response buf [01:34:20]execute_script done [01:34:20]execute_script returns [01:34:20]free content buf [01:34:20]Sock 8.Close socket [01:34:20]Sock 8.Thread stoped [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:46]accept exits with 9 [01:35:46]New connection [01:35:46]New thread 3066944868 created [01:35:46]Thread 3067088228 joined [01:35:46]Waiting for new connection... [01:35:46] Sock 9.Parse request [01:35:46]Sock 9.Check first char [01:35:46]Sock 9.First char is OK [01:35:46]request: POST /json_proto HTTP/1.0 [01:35:46]Method: POST [01:35:46]URL: /json_proto [01:35:46]Method is POST - this is cgi request [01:35:46]url: /json_proto [01:35:46]query_string will be loaded in cgi processing [01:35:46]execute_cgi json_proto POST (null) [01:35:46]execute_cgi path=json_proto method=POST [01:35:46]POST find Content-Length [01:35:46]Host: 172.17.39.195:8080 [01:35:46]Content-Length: 633 [01:35:46]Content-Type: application/json [01:35:46] [01:35:46]POST finish read [01:35:46]Found Content-Length = 633 [01:35:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220959", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:46]execute_script... [01:35:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220959", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:46]POST & json_proto [01:35:46]process_json_proto [01:35:46]json parsed OK: [01:35:46]protocol is kg_v1.0 [01:35:46]action value=close_receipt [01:35:46]process_action close_receipt [01:35:46]cmd_close_receipt [01:35:46]MH_GetDate [01:35:46]Write to MH i2c: F0 00 00 31 04 24 [01:35:46]Write i2c OK [01:35:46]MH_I2C_Read... [01:35:46]Read from MH i2c: F0 [01:35:46]MH_I2C_Read... [01:35:46]Read from MH i2c: F0 09 00 [01:35:46]MH_I2C_Read... [01:35:46]Read from MH i2c: F0 09 00 31 04 00 F4 7B 77 66 99 81 91 64 88 [01:35:46]GetLastDocTimeStamp 1719106457 [01:35:46]current date 1719106548 [01:35:46]FM_GetShiftState [01:35:46]SAM_PROTO_GetShiftState [01:35:46]wFMCommunicate request_size=4 [01:35:46]MH_SAM_APDU [01:35:46]CAPDU: 80 13 01 00 [01:35:46]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [01:35:46]Write i2c OK [01:35:46]MH_I2C_Read... [01:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:47]Read from MH i2c: E2 [01:35:47]MH_I2C_Read... [01:35:47]Read from MH i2c: E2 0E 00 [01:35:47]MH_I2C_Read... [01:35:47]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 22 [01:35:47]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:35:47]wFMCommunicate OK [01:35:47]SAM_PROTO_GetShiftState done [01:35:47]FM_GetShiftState done [01:35:47]opened in 1719102745 [01:35:47]opened+sec_in_day 1719189145 [01:35:47]quantity*price = 14000 [01:35:47]sum+1 = 14001 [01:35:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 4 23.06.2024 01:35 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76905 ФПД: 252448467741262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T013548&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76905&fm=252448467741262&tin=02508201610067®Number=0000000000095696&sum=14000 0 [01:35:48]StoreToDocumentArchive [01:35:48]shift 396 fd 76905 [01:35:48]save to /storage/0396/doc_00076905 [01:35:48]save last doc name /storage/0396/doc_00076905 to /storage/kkm_last_doc_name [01:35:48]save OK [01:35:48]Clear old archive folders... [01:35:48]ProcessDocumentItem done err = 0, tmpTLVsize=285 [01:35:48]tlvbuf is 01FE0C60 [01:35:48]SAM_PROTO_ClearQueue [01:35:48]wFMCommunicate request_size=4 [01:35:48]MH_SAM_APDU [01:35:48]CAPDU: 80 09 00 00 [01:35:48]Write to MH i2c: E2 08 00 3F 04 80 09 00 00 00 00 00 00 B5 [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:48]Read from MH i2c: E2 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [01:35:48]RAPDU: 90 00 [01:35:48]wFMCommunicate OK [01:35:48]SAM_PROTO_ClearQueue done [01:35:48]KKMCreateOFDPacket [01:35:48]OFDProtocolAddRootSTLVToBuf [01:35:48]FM_MakeSignedData [01:35:48]FM_MakeSignedData [01:35:48]SAM_PROTO_SignData [01:35:48]wFMCommunicate request_size=4 [01:35:48]MH_SAM_APDU [01:35:48]CAPDU: 80 0D 01 02 [01:35:48]Write to MH i2c: E2 08 00 40 04 80 0D 01 02 00 00 00 00 BD [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:48]Read from MH i2c: E2 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [01:35:48]RAPDU: 90 00 [01:35:48]wFMCommunicate OK [01:35:48]wFMCommunicate request_size=255 [01:35:48]MH_SAM_APDU [01:35:48]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F4 7B 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 [01:35:48]Write to MH i2c: E2 02 01 41 04 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F4 7B 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 00 00 E7 [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:48]Read from MH i2c: E2 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [01:35:48]RAPDU: 90 00 [01:35:48]wFMCommunicate OK [01:35:48]wFMCommunicate request_size=44 [01:35:48]MH_SAM_APDU [01:35:48]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2C 01 00 35 04 06 00 E5 99 BD 3E 6A 4E [01:35:48]Write to MH i2c: E2 2F 00 42 04 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2C 01 00 35 04 06 00 E5 99 BD 3E 6A 4E 00 00 A4 [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:48]Read from MH i2c: E2 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [01:35:48]RAPDU: 90 00 [01:35:48]wFMCommunicate OK [01:35:48]wFMCommunicate request_size=4 [01:35:48]MH_SAM_APDU [01:35:48]CAPDU: 80 0D 03 02 [01:35:48]Write to MH i2c: E2 08 00 43 04 80 0D 03 02 00 00 00 00 C2 [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:48]Read from MH i2c: E2 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 0B 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 0B 00 43 04 00 AE 97 4D 32 57 66 EE 16 90 00 48 [01:35:48]RAPDU: AE 97 4D 32 57 66 EE 16 90 00 [01:35:48]wFMCommunicate OK [01:35:48]SAM_PROTO_SignData done [01:35:48]FM_MakeSignedData done [01:35:48]CreateOFDProtocolMessage [01:35:48]wFMCommunicate request_size=4 [01:35:48]MH_SAM_APDU [01:35:48]CAPDU: 80 11 00 00 [01:35:48]Write to MH i2c: E2 08 00 44 04 80 11 00 00 00 00 00 00 C2 [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:48]Read from MH i2c: E2 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 17 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 17 00 44 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 12 [01:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:35:48]wFMCommunicate OK [01:35:48]CreateOFDProtocolMessage done [01:35:48]OFDSenderStorePacket 76905 [01:35:48]StoreOFDPacket docnum=76905 [01:35:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 31 01 00 00 B8 B9 29 01 01 B3 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F4 7B 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2C 01 00 35 04 06 00 E5 99 BD 3E 6A 4E AE 97 4D 32 57 66 EE 16 [01:35:48]CheckFolder [01:35:48]dirname=/storage/ofd_packets [01:35:48]CheckFolder done [01:35:48]ProducePacketName [01:35:48]name=ofd_packets/00076905 [01:35:48]NVStorageSaveData ofd_packets/00076905 [01:35:48]File name is /storage/ofd_packets/00076905 [01:35:48]Write 335 bytes [01:35:48]NVStorageSaveData done [01:35:48]OFDSenderStorePacket done [01:35:48]KKMCreateOFDPacket done [01:35:48]NVStorageSaveData kkm_last_timestamp [01:35:48]File name is /storage/kkm_last_timestamp [01:35:48]Write 4 bytes [01:35:48]NVStorageSaveData done [01:35:48]ExternCall_PrintAddStr [01:35:48]wPrintStart [01:35:48]Write to MH i2c: 01 00 00 45 04 49 [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: 01 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: 01 07 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 FF 0F 5E [01:35:48]RasterBufferAndPrint [01:35:48]line Счет N : (3)220959 [01:35:48]line ИНН: 02508201610067 [01:35:48]line Контрольно-Кассовый Чек [01:35:48]line ПРОДАЖА [01:35:48]line Товар: 48745024 [01:35:48]line Сигареты Winston Superslims Expand Purpl [01:35:48]line 1.000 * 140.00 [01:35:48]line = 140.00 [01:35:48]line НДС 12% НСП 1% [01:35:48]line > о реализуемом товаре [01:35:48]line ИТОГО: 140.00 [01:35:48]line НСП 1% : 1.24 [01:35:48]line НДС 12% : 14.87 [01:35:48]line Наличными: 140.00 [01:35:48]line Безнал.: 0.00 [01:35:48]line Место: АЗС № 144 "Партнер Нефть" [01:35:48]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:35:48]line СНО: Общий режим [01:35:48]line Чек 4 23.06.2024 01:35 [01:35:48]line Смена: 396 ФФД: 1.0 [01:35:48]line ЗНМ: 0300000170 [01:35:48]line РНМ: 0000000000095696 [01:35:48]line Версия ККМ: 001 [01:35:48]line ФМ: 0000000000875009 [01:35:48]line ФД: 76905 [01:35:48]line ФПД: 252448467741262 [01:35:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T013548&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76905&fm=252448467741262&tin=02508201610067®Number=0000000000095696&sum=14000 [01:35:48]line 0 [01:35:48]OFD Sender: Processing packet 76905 [packets to send 351, broken 350] [01:35:48]ProducePacketName [01:35:48]name=ofd_packets/00076905 [01:35:48]OFD Sender: To server: pG, [01:35:48]CommunicateWithHost lk.salyk.kg:30040 [01:35:48]ConnectInit lk.salyk.kg [01:35:48]written 0, free lines is 4095 [01:35:49]Connected sock=10 [01:35:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 31 01 00 00 B8 B9 29 01 01 B3 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F4 7B 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2C 01 00 35 04 06 00 E5 99 BD 3E 6A 4E AE 97 4D 32 57 66 EE 16 [01:35:49]Write to MH i2c: 01 00 00 6E 04 72 [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: 01 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: 01 07 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 D5 0C 5A [01:35:49]RasterBufferAndPrint [01:35:49]line [01:35:49]line [01:35:49]line [01:35:49]line [01:35:49]line [01:35:49]written 0, free lines is 3291 [01:35:49]MH_Cut [01:35:49]Write to MH i2c: D1 01 00 75 04 01 4B [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: D1 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: D1 01 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: D1 01 00 75 04 00 4A [01:35:49]Write to MH i2c: 01 00 00 76 04 7A [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 B7 0A 47 00 ED C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 69 2C 01 00 F4 03 04 00 8C 22 77 66 B6 04 01 00 00 45 44 A0 6F 09 C8 0A E4 [01:35:49]CommunicateWithHost err = 0 [01:35:49]CheckOFDResponse [01:35:49]1017 (14) - 77093643461234 [01:35:49]1041 (16) - 0000000000875009 [01:35:49]1040 (4) - 76905 [01:35:49]1012 (4) - 22.06.2024 19:14 [01:35:49]1206 (1) - 0 [01:35:49]OFD Sender: Remove packet 76905 [01:35:49]ProducePacketName [01:35:49]name=ofd_packets/00076905 [01:35:49]NVStorageDeleteData [01:35:49]OFD Sender: No OFD packet to send [01:35:50]*** Cut start [01:35:50]*** Partial cut [01:35:50]*** CUTSNS_PIN = 1 [01:35:50]*** CUTSNS_PIN = 0 [01:35:50]*** Brake cut motor [01:35:50]Read from MH i2c: 01 [01:35:50]MH_I2C_Read... [01:35:50]*** Stop cut motor [01:35:50]*** Cut end [01:35:50]Read from MH i2c: 01 07 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: 01 07 00 76 04 00 00 00 00 00 FF 0F 8F [01:35:50]process_action close_receipt done [01:35:50]requested_data is exist [01:35:50]produce_requested_data [01:35:50]requested_item fm.sn is exist - process it [01:35:50]wFMCommunicate request_size=4 [01:35:50]MH_SAM_APDU [01:35:50]CAPDU: 80 11 00 00 [01:35:50]Write to MH i2c: E2 08 00 77 04 80 11 00 00 00 00 00 00 F5 [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:50]Read from MH i2c: E2 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 17 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: E2 17 00 77 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 45 [01:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:35:50]wFMCommunicate OK [01:35:50]requested_item fd.num is exist - process it [01:35:50]SAM_PROTO_GetFieldsCounters [01:35:50]wFMCommunicate request_size=4 [01:35:50]MH_SAM_APDU [01:35:50]CAPDU: 80 13 00 00 [01:35:50]Write to MH i2c: E2 08 00 78 04 80 13 00 00 00 00 00 00 F8 [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:51]Read from MH i2c: E2 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 62 00 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 62 00 78 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 69 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [01:35: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 69 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:35:51]wFMCommunicate OK [01:35:51]SAM_PROTO_GetFieldsCounters done [01:35:51]requested_item shift.num is exist - process it [01:35:51]requested_item shift.opened is exist - process it [01:35:51]req_shift_opened [01:35:51]FM_GetShiftState [01:35:51]SAM_PROTO_GetShiftState [01:35:51]wFMCommunicate request_size=4 [01:35:51]MH_SAM_APDU [01:35:51]CAPDU: 80 13 01 00 [01:35:51]Write to MH i2c: E2 08 00 79 04 80 13 01 00 00 00 00 00 FA [01:35:51]Write i2c OK [01:35:51]MH_I2C_Read... [01:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:51]Read from MH i2c: E2 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 0E 00 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 0E 00 79 04 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 69 [01:35:51]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:35:51]wFMCommunicate OK [01:35:51]SAM_PROTO_GetShiftState done [01:35:51]FM_GetShiftState done [01:35:51]req_shift_opened done [01:35:51]requested_item shift.open_date is exist - process it [01:35:51]req_shift_open_date [01:35:51]req_shift_open_date done [01:35:51]produce_requested_data done [01:35:51]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76905,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [01:35:51]process_action_free close_receipt [01:35:51]json_value_free [01:35:51]json_value_free done [01:35:51]process_json_proto returns [01:35:51]Send response to host [01:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76905,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [01:35:51]free response buf [01:35:51]execute_script done [01:35:51]execute_script returns [01:35:51]free content buf [01:35:51]Sock 9.Close socket [01:35:51]Sock 9.Thread stoped [01:35:54]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:29]accept exits with 8 [01:37:29]New connection [01:37:29]New thread 3067088228 created [01:37:29]Thread 3066944868 joined [01:37:29]Waiting for new connection... [01:37:29] Sock 8.Parse request [01:37:29]Sock 8.Check first char [01:37:29]Sock 8.First char is OK [01:37:29]request: POST /json_proto HTTP/1.0 [01:37:29]Method: POST [01:37:29]URL: /json_proto [01:37:29]Method is POST - this is cgi request [01:37:29]url: /json_proto [01:37:29]query_string will be loaded in cgi processing [01:37:29]execute_cgi json_proto POST (null) [01:37:29]execute_cgi path=json_proto method=POST [01:37:29]POST find Content-Length [01:37:29]Host: 172.17.39.195:8080 [01:37:29]Content-Length: 620 [01:37:29]Content-Type: application/json [01:37:29] [01:37:29]POST finish read [01:37:29]Found Content-Length = 620 [01:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220960", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:29]execute_script... [01:37:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220960", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:29]POST & json_proto [01:37:29]process_json_proto [01:37:29]json parsed OK: [01:37:29]protocol is kg_v1.0 [01:37:29]action value=close_receipt [01:37:29]process_action close_receipt [01:37:29]cmd_close_receipt [01:37:29]MH_GetDate [01:37:29]Write to MH i2c: F0 00 00 7A 04 6D [01:37:29]Write i2c OK [01:37:29]MH_I2C_Read... [01:37:29]Read from MH i2c: F0 [01:37:29]MH_I2C_Read... [01:37:29]Read from MH i2c: F0 09 00 [01:37:29]MH_I2C_Read... [01:37:29]Read from MH i2c: F0 09 00 7A 04 00 5A 7C 77 66 99 81 91 64 38 [01:37:29]GetLastDocTimeStamp 1719106548 [01:37:29]current date 1719106650 [01:37:29]FM_GetShiftState [01:37:29]SAM_PROTO_GetShiftState [01:37:29]wFMCommunicate request_size=4 [01:37:29]MH_SAM_APDU [01:37:29]CAPDU: 80 13 01 00 [01:37:29]Write to MH i2c: E2 08 00 7B 04 80 13 01 00 00 00 00 00 FC [01:37:29]Write i2c OK [01:37:29]MH_I2C_Read... [01:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:29]Read from MH i2c: E2 [01:37:29]MH_I2C_Read... [01:37:29]Read from MH i2c: E2 0E 00 [01:37:29]MH_I2C_Read... [01:37:29]Read from MH i2c: E2 0E 00 7B 04 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 6B [01:37:29]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:37:29]wFMCommunicate OK [01:37:29]SAM_PROTO_GetShiftState done [01:37:29]FM_GetShiftState done [01:37:29]opened in 1719102745 [01:37:29]opened+sec_in_day 1719189145 [01:37:29]quantity*price = 13500 [01:37:29]sum+1 = 13501 [01:37:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 5 23.06.2024 01:37 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76906 ФПД: 102737675216777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T013730&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76906&fm=102737675216777&tin=02508201610067®Number=0000000000095696&sum=13500 0 [01:37:30]StoreToDocumentArchive [01:37:30]shift 396 fd 76906 [01:37:30]save to /storage/0396/doc_00076906 [01:37:30]save last doc name /storage/0396/doc_00076906 to /storage/kkm_last_doc_name [01:37:30]save OK [01:37:30]Clear old archive folders... [01:37:30]ProcessDocumentItem done err = 0, tmpTLVsize=272 [01:37:30]tlvbuf is 01FEF970 [01:37:30]SAM_PROTO_ClearQueue [01:37:30]wFMCommunicate request_size=4 [01:37:30]MH_SAM_APDU [01:37:30]CAPDU: 80 09 00 00 [01:37:30]Write to MH i2c: E2 08 00 88 04 80 09 00 00 00 00 00 00 FE [01:37:30]Write i2c OK [01:37:30]MH_I2C_Read... [01:37:30]OFD Sender: No OFD packet to send [01:37:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:37:30]Read from MH i2c: E2 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 03 00 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [01:37:30]RAPDU: 90 00 [01:37:30]wFMCommunicate OK [01:37:30]SAM_PROTO_ClearQueue done [01:37:30]KKMCreateOFDPacket [01:37:30]OFDProtocolAddRootSTLVToBuf [01:37:30]FM_MakeSignedData [01:37:30]FM_MakeSignedData [01:37:30]SAM_PROTO_SignData [01:37:30]wFMCommunicate request_size=4 [01:37:30]MH_SAM_APDU [01:37:30]CAPDU: 80 0D 01 02 [01:37:30]Write to MH i2c: E2 08 00 89 04 80 0D 01 02 00 00 00 00 06 [01:37:30]Write i2c OK [01:37:30]MH_I2C_Read... [01:37:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:37:30]Read from MH i2c: E2 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 03 00 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [01:37:30]RAPDU: 90 00 [01:37:30]wFMCommunicate OK [01:37:30]wFMCommunicate request_size=255 [01:37:30]MH_SAM_APDU [01:37:30]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 5A 7C 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 [01:37:30]Write to MH i2c: E2 02 01 8A 04 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 5A 7C 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 10 [01:37:30]Write i2c OK [01:37:30]MH_I2C_Read... [01:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:30]Read from MH i2c: E2 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 03 00 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [01:37:30]RAPDU: 90 00 [01:37:30]wFMCommunicate OK [01:37:30]wFMCommunicate request_size=31 [01:37:30]MH_SAM_APDU [01:37:30]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 30 39 10 04 04 00 6A 2C 01 00 35 04 06 00 5D 70 7A A2 E7 89 [01:37:30]Write to MH i2c: E2 22 00 8B 04 80 0D 02 02 1A 00 30 30 38 37 35 30 30 39 10 04 04 00 6A 2C 01 00 35 04 06 00 5D 70 7A A2 E7 89 00 00 21 [01:37:30]Write i2c OK [01:37:30]MH_I2C_Read... [01:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:30]Read from MH i2c: E2 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 03 00 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [01:37:30]RAPDU: 90 00 [01:37:30]wFMCommunicate OK [01:37:30]wFMCommunicate request_size=4 [01:37:30]MH_SAM_APDU [01:37:30]CAPDU: 80 0D 03 02 [01:37:30]Write to MH i2c: E2 08 00 8C 04 80 0D 03 02 00 00 00 00 0B [01:37:30]Write i2c OK [01:37:30]MH_I2C_Read... [01:37:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:37:30]Read from MH i2c: E2 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 0B 00 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 0B 00 8C 04 00 B7 D0 21 A4 6F A3 93 FF 90 00 FC [01:37:30]RAPDU: B7 D0 21 A4 6F A3 93 FF 90 00 [01:37:30]wFMCommunicate OK [01:37:30]SAM_PROTO_SignData done [01:37:30]FM_MakeSignedData done [01:37:30]CreateOFDProtocolMessage [01:37:30]wFMCommunicate request_size=4 [01:37:30]MH_SAM_APDU [01:37:30]CAPDU: 80 11 00 00 [01:37:30]Write to MH i2c: E2 08 00 8D 04 80 11 00 00 00 00 00 00 0B [01:37:30]Write i2c OK [01:37:30]MH_I2C_Read... [01:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:30]Read from MH i2c: E2 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 17 00 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: E2 17 00 8D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 5B [01:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:37:30]wFMCommunicate OK [01:37:30]CreateOFDProtocolMessage done [01:37:30]OFDSenderStorePacket 76906 [01:37:30]StoreOFDPacket docnum=76906 [01:37:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 24 01 00 00 1B 30 1C 01 F9 11 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 5A 7C 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6A 2C 01 00 35 04 06 00 5D 70 7A A2 E7 89 B7 D0 21 A4 6F A3 93 FF [01:37:30]CheckFolder [01:37:30]dirname=/storage/ofd_packets [01:37:30]CheckFolder done [01:37:30]ProducePacketName [01:37:30]name=ofd_packets/00076906 [01:37:30]NVStorageSaveData ofd_packets/00076906 [01:37:30]File name is /storage/ofd_packets/00076906 [01:37:30]Write 322 bytes [01:37:30]NVStorageSaveData done [01:37:30]OFDSenderStorePacket done [01:37:30]KKMCreateOFDPacket done [01:37:30]NVStorageSaveData kkm_last_timestamp [01:37:30]File name is /storage/kkm_last_timestamp [01:37:30]Write 4 bytes [01:37:30]NVStorageSaveData done [01:37:30]ExternCall_PrintAddStr [01:37:30]wPrintStart [01:37:30]Write to MH i2c: 01 00 00 8E 04 92 [01:37:30]Write i2c OK [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: 01 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: 01 07 00 [01:37:30]MH_I2C_Read... [01:37:30]Read from MH i2c: 01 07 00 8E 04 00 00 00 00 00 FF 0F A7 [01:37:30]RasterBufferAndPrint [01:37:30]line Счет N : (3)220960 [01:37:30]line ИНН: 02508201610067 [01:37:30]line Контрольно-Кассовый Чек [01:37:30]line ПРОДАЖА [01:37:30]line Товар: 48745000 [01:37:30]line Сигареты Winston Purple Mix [01:37:30]line 1.000 * 135.00 [01:37:30]line = 135.00 [01:37:30]line НДС 12% НСП 1% [01:37:30]line > о реализуемом товаре [01:37:30]line ИТОГО: 135.00 [01:37:30]line НСП 1% : 1.19 [01:37:30]line НДС 12% : 14.34 [01:37:30]line Наличными: 135.00 [01:37:30]line Безнал.: 0.00 [01:37:30]line Место: АЗС № 144 "Партнер Нефть" [01:37:30]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:37:30]line СНО: Общий режим [01:37:30]line Чек 5 23.06.2024 01:37 [01:37:30]line Смена: 396 ФФД: 1.0 [01:37:30]line ЗНМ: 0300000170 [01:37:30]line РНМ: 0000000000095696 [01:37:30]line Версия ККМ: 001 [01:37:30]line ФМ: 0000000000875009 [01:37:30]line ФД: 76906 [01:37:30]line ФПД: 102737675216777 [01:37:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T013730&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76906&fm=102737675216777&tin=02508201610067®Number=0000000000095696&sum=13500 [01:37:31]line 0 [01:37:31]OFD Sender: Processing packet 76906 [packets to send 351, broken 350] [01:37:31]ProducePacketName [01:37:31]name=ofd_packets/00076906 [01:37:31]OFD Sender: To server: pG, [01:37:31]CommunicateWithHost lk.salyk.kg:30040 [01:37:31]ConnectInit lk.salyk.kg [01:37:31]written 0, free lines is 4095 [01:37:31]Connected sock=10 [01:37:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 24 01 00 00 1B 30 1C 01 F9 11 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 5A 7C 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6A 2C 01 00 35 04 06 00 5D 70 7A A2 E7 89 B7 D0 21 A4 6F A3 93 FF [01:37:31]Write to MH i2c: 01 00 00 B6 04 BA [01:37:31]Write i2c OK [01:37:31]MH_I2C_Read... [01:37:31]Read from MH i2c: 01 [01:37:31]MH_I2C_Read... [01:37:31]Read from MH i2c: 01 07 00 [01:37:31]MH_I2C_Read... [01:37:31]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 F5 0C C2 [01:37:31]RasterBufferAndPrint [01:37:31]line [01:37:31]line [01:37:31]line [01:37:31]line [01:37:31]line [01:37:31]written 0, free lines is 3326 [01:37:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 2A 3D 47 00 73 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 35 30 30 39 10 04 04 00 6A 2C 01 00 F4 03 04 00 F2 22 77 66 B6 04 01 00 00 72 B0 A6 F2 08 3D 4A A8 [01:37:31]CommunicateWithHost err = 0 [01:37:31]CheckOFDResponse [01:37:31]1017 (14) - 77093643461234 [01:37:31]1041 (16) - 0000000000875009 [01:37:31]1040 (4) - 76906 [01:37:31]1012 (4) - 22.06.2024 19:16 [01:37:31]1206 (1) - 0 [01:37:31]OFD Sender: Remove packet 76906 [01:37:31]ProducePacketName [01:37:31]name=ofd_packets/00076906 [01:37:31]NVStorageDeleteData [01:37:31]MH_Cut [01:37:31]Write to MH i2c: D1 01 00 BD 04 01 93 [01:37:31]Write i2c OK [01:37:31]MH_I2C_Read... [01:37:31]Read from MH i2c: D1 [01:37:31]MH_I2C_Read... [01:37:31]Read from MH i2c: D1 01 00 [01:37:31]MH_I2C_Read... [01:37:31]Read from MH i2c: D1 01 00 BD 04 00 92 [01:37:31]Write to MH i2c: 01 00 00 BE 04 C2 [01:37:31]Write i2c OK [01:37:31]MH_I2C_Read... [01:37:32]OFD Sender: No OFD packet to send [01:37:32]*** Cut start [01:37:32]*** Partial cut [01:37:32]*** CUTSNS_PIN = 1 [01:37:32]*** CUTSNS_PIN = 0 [01:37:32]*** Brake cut motor [01:37:32]Read from MH i2c: 01 [01:37:32]MH_I2C_Read... [01:37:32]*** Stop cut motor [01:37:32]*** Cut end [01:37:32]Read from MH i2c: 01 07 00 [01:37:32]MH_I2C_Read... [01:37:32]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FF 0F D7 [01:37:32]process_action close_receipt done [01:37:32]requested_data is exist [01:37:32]produce_requested_data [01:37:32]requested_item fm.sn is exist - process it [01:37:32]wFMCommunicate request_size=4 [01:37:32]MH_SAM_APDU [01:37:32]CAPDU: 80 11 00 00 [01:37:32]Write to MH i2c: E2 08 00 BF 04 80 11 00 00 00 00 00 00 3D [01:37:32]Write i2c OK [01:37:32]MH_I2C_Read... [01:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:32]Read from MH i2c: E2 [01:37:32]MH_I2C_Read... [01:37:32]Read from MH i2c: E2 17 00 [01:37:32]MH_I2C_Read... [01:37:32]Read from MH i2c: E2 17 00 BF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8D [01:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:37:32]wFMCommunicate OK [01:37:32]requested_item fd.num is exist - process it [01:37:32]SAM_PROTO_GetFieldsCounters [01:37:32]wFMCommunicate request_size=4 [01:37:32]MH_SAM_APDU [01:37:32]CAPDU: 80 13 00 00 [01:37:32]Write to MH i2c: E2 08 00 C0 04 80 13 00 00 00 00 00 00 40 [01:37:32]Write i2c OK [01:37:32]MH_I2C_Read... [01:37:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:37:33]Read from MH i2c: E2 [01:37:33]MH_I2C_Read... [01:37:33]Read from MH i2c: E2 62 00 [01:37:33]MH_I2C_Read... [01:37:33]Read from MH i2c: E2 62 00 C0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6A 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [01:37: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6A 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:37:33]wFMCommunicate OK [01:37:33]SAM_PROTO_GetFieldsCounters done [01:37:33]requested_item shift.num is exist - process it [01:37:33]requested_item shift.opened is exist - process it [01:37:33]req_shift_opened [01:37:33]FM_GetShiftState [01:37:33]SAM_PROTO_GetShiftState [01:37:33]wFMCommunicate request_size=4 [01:37:33]MH_SAM_APDU [01:37:33]CAPDU: 80 13 01 00 [01:37:33]Write to MH i2c: E2 08 00 C1 04 80 13 01 00 00 00 00 00 42 [01:37:33]Write i2c OK [01:37:33]MH_I2C_Read... [01:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:33]Read from MH i2c: E2 [01:37:33]MH_I2C_Read... [01:37:33]Read from MH i2c: E2 0E 00 [01:37:33]MH_I2C_Read... [01:37:33]Read from MH i2c: E2 0E 00 C1 04 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 B1 [01:37:33]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:37:33]wFMCommunicate OK [01:37:33]SAM_PROTO_GetShiftState done [01:37:33]FM_GetShiftState done [01:37:33]req_shift_opened done [01:37:33]requested_item shift.open_date is exist - process it [01:37:33]req_shift_open_date [01:37:33]req_shift_open_date done [01:37:33]produce_requested_data done [01:37:33]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76906,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [01:37:33]process_action_free close_receipt [01:37:33]json_value_free [01:37:33]json_value_free done [01:37:33]process_json_proto returns [01:37:33]Send response to host [01:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76906,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [01:37:33]free response buf [01:37:33]execute_script done [01:37:33]execute_script returns [01:37:33]free content buf [01:37:33]Sock 8.Close socket [01:37:33]Sock 8.Thread stoped [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:18]accept exits with 9 [01:40:18]New connection [01:40:18]New thread 3066944868 created [01:40:18]Thread 3067088228 joined [01:40:18]Waiting for new connection... [01:40:18] Sock 9.Parse request [01:40:18]Sock 9.Check first char [01:40:18]Sock 9.First char is OK [01:40:18]request: POST /json_proto HTTP/1.0 [01:40:18]Method: POST [01:40:18]URL: /json_proto [01:40:18]Method is POST - this is cgi request [01:40:18]url: /json_proto [01:40:18]query_string will be loaded in cgi processing [01:40:18]execute_cgi json_proto POST (null) [01:40:18]execute_cgi path=json_proto method=POST [01:40:18]POST find Content-Length [01:40:18]Host: 172.17.39.195:8080 [01:40:18]Content-Length: 1134 [01:40:18]Content-Type: application/json [01:40:18] [01:40:18]POST finish read [01:40:18]Found Content-Length = 1134 [01:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220961", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 678.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:18]execute_script... [01:40:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220961", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 678.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:18]POST & json_proto [01:40:18]process_json_proto [01:40:18]json parsed OK: [01:40:18]protocol is kg_v1.0 [01:40:18]action value=close_receipt [01:40:18]process_action close_receipt [01:40:18]cmd_close_receipt [01:40:18]MH_GetDate [01:40:18]Write to MH i2c: F0 00 00 C2 04 B5 [01:40:18]Write i2c OK [01:40:18]MH_I2C_Read... [01:40:18]Read from MH i2c: F0 [01:40:18]MH_I2C_Read... [01:40:18]Read from MH i2c: F0 09 00 [01:40:18]MH_I2C_Read... [01:40:18]Read from MH i2c: F0 09 00 C2 04 00 04 7D 77 66 99 81 91 64 2B [01:40:18]GetLastDocTimeStamp 1719106650 [01:40:18]current date 1719106820 [01:40:18]FM_GetShiftState [01:40:18]SAM_PROTO_GetShiftState [01:40:18]wFMCommunicate request_size=4 [01:40:18]MH_SAM_APDU [01:40:18]CAPDU: 80 13 01 00 [01:40:18]Write to MH i2c: E2 08 00 C3 04 80 13 01 00 00 00 00 00 44 [01:40:18]Write i2c OK [01:40:18]MH_I2C_Read... [01:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:18]Read from MH i2c: E2 [01:40:18]MH_I2C_Read... [01:40:18]Read from MH i2c: E2 0E 00 [01:40:18]MH_I2C_Read... [01:40:18]Read from MH i2c: E2 0E 00 C3 04 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 B3 [01:40:18]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:40:18]wFMCommunicate OK [01:40:18]SAM_PROTO_GetShiftState done [01:40:18]FM_GetShiftState done [01:40:18]opened in 1719102745 [01:40:18]opened+sec_in_day 1719189145 [01:40:18]quantity*price = 42500 [01:40:18]sum+1 = 42501 [01:40:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 678.00 НСП 1% : 6.00 НДС 12% : 72.00 Наличными: 678.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 6 23.06.2024 01:40 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76907 ФПД: 221515791097055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T014020&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76907&fm=221515791097055&tin=02508201610067®Number=0000000000095696&sum=67800 0 [01:40:19]StoreToDocumentArchive [01:40:19]shift 396 fd 76907 [01:40:19]save to /storage/0396/doc_00076907 [01:40:19]save last doc name /storage/0396/doc_00076907 to /storage/kkm_last_doc_name [01:40:19]save OK [01:40:19]Clear old archive folders... [01:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=478 [01:40:19]tlvbuf is 02008520 [01:40:19]SAM_PROTO_ClearQueue [01:40:19]wFMCommunicate request_size=4 [01:40:19]MH_SAM_APDU [01:40:19]CAPDU: 80 09 00 00 [01:40:19]Write to MH i2c: E2 08 00 D0 04 80 09 00 00 00 00 00 00 46 [01:40:19]Write i2c OK [01:40:19]MH_I2C_Read... [01:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:40:19]Read from MH i2c: E2 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 03 00 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [01:40:19]RAPDU: 90 00 [01:40:19]wFMCommunicate OK [01:40:19]SAM_PROTO_ClearQueue done [01:40:19]KKMCreateOFDPacket [01:40:19]OFDProtocolAddRootSTLVToBuf [01:40:19]FM_MakeSignedData [01:40:19]FM_MakeSignedData [01:40:19]SAM_PROTO_SignData [01:40:19]wFMCommunicate request_size=4 [01:40:19]MH_SAM_APDU [01:40:19]CAPDU: 80 0D 01 02 [01:40:19]Write to MH i2c: E2 08 00 D1 04 80 0D 01 02 00 00 00 00 4E [01:40:19]Write i2c OK [01:40:19]MH_I2C_Read... [01:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:40:19]Read from MH i2c: E2 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 03 00 [01:40:19]MH_I2C_Read... [01:40:19]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [01:40:19]RAPDU: 90 00 [01:40:19]wFMCommunicate OK [01:40:19]wFMCommunicate request_size=255 [01:40:19]MH_SAM_APDU [01:40:19]CAPDU: 80 0D 02 02 FA 03 00 DE 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 [01:40:19]Write to MH i2c: E2 02 01 D2 04 80 0D 02 02 FA 00 03 00 DE 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 00 00 03 [01:40:20]Write i2c OK [01:40:20]MH_I2C_Read... [01:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:20]Read from MH i2c: E2 [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: E2 03 00 [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: E2 03 00 D2 04 00 90 00 4A [01:40:20]RAPDU: 90 00 [01:40:20]wFMCommunicate OK [01:40:20]wFMCommunicate request_size=237 [01:40:20]MH_SAM_APDU [01:40:20]CAPDU: 80 0D 02 02 E8 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 04 7D 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2C 01 00 35 04 06 00 C9 77 AA 0A 5C DF [01:40:20]Write to MH i2c: E2 F0 00 D3 04 80 0D 02 02 E8 00 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 04 7D 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2C 01 00 35 04 06 00 C9 77 AA 0A 5C DF 00 00 62 [01:40:20]Write i2c OK [01:40:20]MH_I2C_Read... [01:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:20]Read from MH i2c: E2 [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: E2 03 00 [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [01:40:20]RAPDU: 90 00 [01:40:20]wFMCommunicate OK [01:40:20]wFMCommunicate request_size=4 [01:40:20]MH_SAM_APDU [01:40:20]CAPDU: 80 0D 03 02 [01:40:20]Write to MH i2c: E2 08 00 D4 04 80 0D 03 02 00 00 00 00 53 [01:40:20]Write i2c OK [01:40:20]MH_I2C_Read... [01:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:40:20]Read from MH i2c: E2 [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: E2 0B 00 [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: E2 0B 00 D4 04 00 25 DF 5D 8E D6 9E 04 DA 90 00 95 [01:40:20]RAPDU: 25 DF 5D 8E D6 9E 04 DA 90 00 [01:40:20]wFMCommunicate OK [01:40:20]SAM_PROTO_SignData done [01:40:20]FM_MakeSignedData done [01:40:20]CreateOFDProtocolMessage [01:40:20]wFMCommunicate request_size=4 [01:40:20]MH_SAM_APDU [01:40:20]CAPDU: 80 11 00 00 [01:40:20]Write to MH i2c: E2 08 00 D5 04 80 11 00 00 00 00 00 00 53 [01:40:20]Write i2c OK [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: E2 [01:40:20]MH_I2C_Read... [01:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:20]Read from MH i2c: E2 17 00 [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: E2 17 00 D5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 A3 [01:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:40:20]wFMCommunicate OK [01:40:20]CreateOFDProtocolMessage done [01:40:20]OFDSenderStorePacket 76907 [01:40:20]StoreOFDPacket docnum=76907 [01:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 F2 01 00 00 E2 46 EA 01 BE 6B 5A 03 01 00 03 00 DE 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 04 7D 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2C 01 00 35 04 06 00 C9 77 AA 0A 5C DF 25 DF 5D 8E D6 9E 04 DA [01:40:20]CheckFolder [01:40:20]dirname=/storage/ofd_packets [01:40:20]CheckFolder done [01:40:20]ProducePacketName [01:40:20]name=ofd_packets/00076907 [01:40:20]NVStorageSaveData ofd_packets/00076907 [01:40:20]File name is /storage/ofd_packets/00076907 [01:40:20]Write 528 bytes [01:40:20]NVStorageSaveData done [01:40:20]OFDSenderStorePacket done [01:40:20]KKMCreateOFDPacket done [01:40:20]NVStorageSaveData kkm_last_timestamp [01:40:20]File name is /storage/kkm_last_timestamp [01:40:20]Write 4 bytes [01:40:20]NVStorageSaveData done [01:40:20]ExternCall_PrintAddStr [01:40:20]wPrintStart [01:40:20]Write to MH i2c: 01 00 00 D6 04 DA [01:40:20]Write i2c OK [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: 01 [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: 01 07 00 [01:40:20]MH_I2C_Read... [01:40:20]Read from MH i2c: 01 07 00 D6 04 00 00 00 00 00 FF 0F EF [01:40:20]RasterBufferAndPrint [01:40:20]line Счет N : (3)220961 [01:40:20]line ИНН: 02508201610067 [01:40:20]line Контрольно-Кассовый Чек [01:40:20]line ПРОДАЖА [01:40:20]line Товар: 4700003150486 [01:40:20]line Водка Ороон 0,5 [01:40:20]line 1.000 * 425.00 [01:40:20]line = 425.00 [01:40:20]line НДС 12% НСП 1% [01:40:20]line > о реализуемом товаре [01:40:20]line Товар: 48747059 [01:40:20]line Сигареты Winston Legend Blue [01:40:20]line 1.000 * 140.00 [01:40:20]line = 140.00 [01:40:20]line НДС 12% НСП 1% [01:40:20]line > о реализуемом товаре [01:40:20]line Товар: 5449000054227 [01:40:20]line Напиток Кока-Кола 1л [01:40:20]line 1.000 * 113.00 [01:40:20]line = 113.00 [01:40:20]line НДС 12% НСП 1% [01:40:20]line > о реализуемом товаре [01:40:20]line ИТОГО: 678.00 [01:40:20]line НСП 1% : 6.00 [01:40:20]line НДС 12% : 72.00 [01:40:20]line Наличными: 678.00 [01:40:20]line Безнал.: 0.00 [01:40:20]line Место: АЗС № 144 "Партнер Нефть" [01:40:20]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:40:20]line СНО: Общий режим [01:40:20]line Чек 6 23.06.2024 01:40 [01:40:20]line Смена: 396 ФФД: 1.0 [01:40:20]line ЗНМ: 0300000170 [01:40:20]line РНМ: 0000000000095696 [01:40:20]line Версия ККМ: 001 [01:40:20]line ФМ: 0000000000875009 [01:40:20]line ФД: 76907 [01:40:20]line ФПД: 221515791097055 [01:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T014020&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76907&fm=221515791097055&tin=02508201610067®Number=0000000000095696&sum=67800 [01:40:20]line 0 [01:40:20]written 0, free lines is 4095 [01:40:20]OFD Sender: Processing packet 76907 [packets to send 351, broken 350] [01:40:20]ProducePacketName [01:40:20]name=ofd_packets/00076907 [01:40:20]OFD Sender: To server: pG, [01:40:20]CommunicateWithHost lk.salyk.kg:30040 [01:40:20]ConnectInit lk.salyk.kg [01:40:21]Connected sock=11 [01:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 F2 01 00 00 E2 46 EA 01 BE 6B 5A 03 01 00 03 00 DE 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 D8 08 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 04 7D 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2C 01 00 35 04 06 00 C9 77 AA 0A 5C DF 25 DF 5D 8E D6 9E 04 DA [01:40:21]Write to MH i2c: 01 00 00 0B 05 10 [01:40:21]Write i2c OK [01:40:21]MH_I2C_Read... [01:40:21]Read from MH i2c: 01 [01:40:21]MH_I2C_Read... [01:40:21]Read from MH i2c: 01 07 00 [01:40:21]MH_I2C_Read... [01:40:21]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 36 0C 59 [01:40:21]RasterBufferAndPrint [01:40:21]line [01:40:21]line [01:40:21]line [01:40:21]line [01:40:21]line [01:40:21]written 0, free lines is 3132 [01:40:21]MH_Cut [01:40:21]Write to MH i2c: D1 01 00 12 05 01 E9 [01:40:21]Write i2c OK [01:40:21]MH_I2C_Read... [01:40:21]Read from MH i2c: D1 [01:40:21]MH_I2C_Read... [01:40:21]Read from MH i2c: D1 01 00 [01:40:21]MH_I2C_Read... [01:40:21]Read from MH i2c: D1 01 00 12 05 00 E8 [01:40:21]Write to MH i2c: 01 00 00 13 05 18 [01:40:21]Write i2c OK [01:40:21]MH_I2C_Read... [01:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 C8 40 47 00 D2 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6B 2C 01 00 F4 03 04 00 9C 23 77 66 B6 04 01 00 00 49 77 B0 A8 25 41 4C FA [01:40:21]CommunicateWithHost err = 0 [01:40:21]CheckOFDResponse [01:40:21]1017 (14) - 77093643461234 [01:40:21]1041 (16) - 0000000000875009 [01:40:21]1040 (4) - 76907 [01:40:21]1012 (4) - 22.06.2024 19:18 [01:40:21]1206 (1) - 0 [01:40:21]OFD Sender: Remove packet 76907 [01:40:21]ProducePacketName [01:40:21]name=ofd_packets/00076907 [01:40:21]NVStorageDeleteData [01:40:21]OFD Sender: No OFD packet to send [01:40:22]*** Cut start [01:40:22]*** Partial cut [01:40:22]*** CUTSNS_PIN = 1 [01:40:22]*** CUTSNS_PIN = 0 [01:40:22]*** Brake cut motor [01:40:22]Read from MH i2c: 01 [01:40:22]MH_I2C_Read... [01:40:22]*** Stop cut motor [01:40:22]*** Cut end [01:40:22]Read from MH i2c: 01 07 00 [01:40:22]MH_I2C_Read... [01:40:22]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [01:40:22]process_action close_receipt done [01:40:22]requested_data is exist [01:40:22]produce_requested_data [01:40:22]requested_item fm.sn is exist - process it [01:40:22]wFMCommunicate request_size=4 [01:40:22]MH_SAM_APDU [01:40:22]CAPDU: 80 11 00 00 [01:40:22]Write to MH i2c: E2 08 00 14 05 80 11 00 00 00 00 00 00 93 [01:40:22]Write i2c OK [01:40:22]MH_I2C_Read... [01:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:22]Read from MH i2c: E2 [01:40:22]MH_I2C_Read... [01:40:22]Read from MH i2c: E2 17 00 [01:40:22]MH_I2C_Read... [01:40:22]Read from MH i2c: E2 17 00 14 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 E3 [01:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:40:22]wFMCommunicate OK [01:40:22]requested_item fd.num is exist - process it [01:40:22]SAM_PROTO_GetFieldsCounters [01:40:22]wFMCommunicate request_size=4 [01:40:22]MH_SAM_APDU [01:40:22]CAPDU: 80 13 00 00 [01:40:22]Write to MH i2c: E2 08 00 15 05 80 13 00 00 00 00 00 00 96 [01:40:22]Write i2c OK [01:40:22]MH_I2C_Read... [01:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:40:23]Read from MH i2c: E2 [01:40:23]MH_I2C_Read... [01:40:23]Read from MH i2c: E2 62 00 [01:40:23]MH_I2C_Read... [01:40:23]Read from MH i2c: E2 62 00 15 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6B 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [01:40: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6B 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:40:23]wFMCommunicate OK [01:40:23]SAM_PROTO_GetFieldsCounters done [01:40:23]requested_item shift.num is exist - process it [01:40:23]requested_item shift.opened is exist - process it [01:40:23]req_shift_opened [01:40:23]FM_GetShiftState [01:40:23]SAM_PROTO_GetShiftState [01:40:23]wFMCommunicate request_size=4 [01:40:23]MH_SAM_APDU [01:40:23]CAPDU: 80 13 01 00 [01:40:23]Write to MH i2c: E2 08 00 16 05 80 13 01 00 00 00 00 00 98 [01:40:23]Write i2c OK [01:40:23]MH_I2C_Read... [01:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:23]Read from MH i2c: E2 [01:40:23]MH_I2C_Read... [01:40:23]Read from MH i2c: E2 0E 00 [01:40:23]MH_I2C_Read... [01:40:23]Read from MH i2c: E2 0E 00 16 05 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 07 [01:40:23]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:40:23]wFMCommunicate OK [01:40:23]SAM_PROTO_GetShiftState done [01:40:23]FM_GetShiftState done [01:40:23]req_shift_opened done [01:40:23]requested_item shift.open_date is exist - process it [01:40:23]req_shift_open_date [01:40:23]req_shift_open_date done [01:40:23]produce_requested_data done [01:40:23]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76907,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [01:40:23]process_action_free close_receipt [01:40:23]json_value_free [01:40:23]json_value_free done [01:40:23]process_json_proto returns [01:40:23]Send response to host [01:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76907,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [01:40:23]free response buf [01:40:23]execute_script done [01:40:23]execute_script returns [01:40:23]free content buf [01:40:23]Sock 9.Close socket [01:40:23]Sock 9.Thread stoped [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:48]accept exits with 8 [01:40:48]New connection [01:40:48]New thread 3067088228 created [01:40:48]Thread 3066944868 joined [01:40:48]Waiting for new connection... [01:40:48] Sock 8.Parse request [01:40:48]Sock 8.Check first char [01:40:48]Sock 8.First char is OK [01:40:48]request: POST /json_proto HTTP/1.0 [01:40:48]Method: POST [01:40:48]URL: /json_proto [01:40:48]Method is POST - this is cgi request [01:40:48]url: /json_proto [01:40:48]query_string will be loaded in cgi processing [01:40:48]execute_cgi json_proto POST (null) [01:40:48]execute_cgi path=json_proto method=POST [01:40:48]POST find Content-Length [01:40:48]Host: 172.17.39.195:8080 [01:40:48]Content-Length: 675 [01:40:48]Content-Type: application/json [01:40:48] [01:40:48]POST finish read [01:40:48]Found Content-Length = 675 [01:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220962", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:48]execute_script... [01:40:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220962", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:48]POST & json_proto [01:40:48]process_json_proto [01:40:48]json parsed OK: [01:40:48]protocol is kg_v1.0 [01:40:48]action value=close_receipt [01:40:48]process_action close_receipt [01:40:48]cmd_close_receipt [01:40:48]MH_GetDate [01:40:48]Write to MH i2c: F0 00 00 17 05 0B [01:40:48]Write i2c OK [01:40:48]MH_I2C_Read... [01:40:48]Read from MH i2c: F0 [01:40:48]MH_I2C_Read... [01:40:48]Read from MH i2c: F0 09 00 [01:40:48]MH_I2C_Read... [01:40:48]Read from MH i2c: F0 09 00 17 05 00 21 7D 77 66 99 81 91 64 9E [01:40:48]GetLastDocTimeStamp 1719106820 [01:40:48]current date 1719106849 [01:40:48]FM_GetShiftState [01:40:48]SAM_PROTO_GetShiftState [01:40:48]wFMCommunicate request_size=4 [01:40:48]MH_SAM_APDU [01:40:48]CAPDU: 80 13 01 00 [01:40:48]Write to MH i2c: E2 08 00 18 05 80 13 01 00 00 00 00 00 9A [01:40:48]Write i2c OK [01:40:48]MH_I2C_Read... [01:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:48]Read from MH i2c: E2 [01:40:48]MH_I2C_Read... [01:40:48]Read from MH i2c: E2 0E 00 [01:40:48]MH_I2C_Read... [01:40:48]Read from MH i2c: E2 0E 00 18 05 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 09 [01:40:48]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:40:48]wFMCommunicate OK [01:40:48]SAM_PROTO_GetShiftState done [01:40:48]FM_GetShiftState done [01:40:48]opened in 1719102745 [01:40:48]opened+sec_in_day 1719189145 [01:40:48]quantity*price = 2100 [01:40:48]sum+1 = 2101 [01:40:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21.00 НСП 1% : 0.19 НДС 12% : 2.23 Наличными: 21.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 7 23.06.2024 01:40 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76908 ФПД: 96841941577366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T014049&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76908&fm=96841941577366&tin=02508201610067®Number=0000000000095696&sum=2100 0 [01:40:49]StoreToDocumentArchive [01:40:49]shift 396 fd 76908 [01:40:49]save to /storage/0396/doc_00076908 [01:40:49]save last doc name /storage/0396/doc_00076908 to /storage/kkm_last_doc_name [01:40:49]save OK [01:40:49]Clear old archive folders... [01:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=287 [01:40:49]tlvbuf is 01FD5760 [01:40:49]SAM_PROTO_ClearQueue [01:40:49]wFMCommunicate request_size=4 [01:40:49]MH_SAM_APDU [01:40:49]CAPDU: 80 09 00 00 [01:40:49]Write to MH i2c: E2 08 00 25 05 80 09 00 00 00 00 00 00 9C [01:40:49]Write i2c OK [01:40:49]MH_I2C_Read... [01:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:40:49]Read from MH i2c: E2 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 03 00 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [01:40:49]RAPDU: 90 00 [01:40:49]wFMCommunicate OK [01:40:49]SAM_PROTO_ClearQueue done [01:40:49]KKMCreateOFDPacket [01:40:49]OFDProtocolAddRootSTLVToBuf [01:40:49]FM_MakeSignedData [01:40:49]FM_MakeSignedData [01:40:49]SAM_PROTO_SignData [01:40:49]wFMCommunicate request_size=4 [01:40:49]MH_SAM_APDU [01:40:49]CAPDU: 80 0D 01 02 [01:40:49]Write to MH i2c: E2 08 00 26 05 80 0D 01 02 00 00 00 00 A4 [01:40:49]Write i2c OK [01:40:49]MH_I2C_Read... [01:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:40:49]Read from MH i2c: E2 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 03 00 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [01:40:49]RAPDU: 90 00 [01:40:49]wFMCommunicate OK [01:40:49]wFMCommunicate request_size=255 [01:40:49]MH_SAM_APDU [01:40:49]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 21 7D 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 [01:40:49]Write to MH i2c: E2 02 01 27 05 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 21 7D 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 00 00 E6 [01:40:49]Write i2c OK [01:40:49]MH_I2C_Read... [01:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:49]Read from MH i2c: E2 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 03 00 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [01:40:49]RAPDU: 90 00 [01:40:49]wFMCommunicate OK [01:40:49]wFMCommunicate request_size=46 [01:40:49]MH_SAM_APDU [01:40:49]CAPDU: 80 0D 02 02 29 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6C 2C 01 00 35 04 06 00 58 13 C5 86 EE 96 [01:40:49]Write to MH i2c: E2 31 00 28 05 80 0D 02 02 29 00 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6C 2C 01 00 35 04 06 00 58 13 C5 86 EE 96 00 00 0A [01:40:49]Write i2c OK [01:40:49]MH_I2C_Read... [01:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:49]Read from MH i2c: E2 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 03 00 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [01:40:49]RAPDU: 90 00 [01:40:49]wFMCommunicate OK [01:40:49]wFMCommunicate request_size=4 [01:40:49]MH_SAM_APDU [01:40:49]CAPDU: 80 0D 03 02 [01:40:49]Write to MH i2c: E2 08 00 29 05 80 0D 03 02 00 00 00 00 A9 [01:40:49]Write i2c OK [01:40:49]MH_I2C_Read... [01:40:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:40:49]Read from MH i2c: E2 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 0B 00 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 0B 00 29 05 00 A0 54 86 78 7F DA 23 86 90 00 9E [01:40:49]RAPDU: A0 54 86 78 7F DA 23 86 90 00 [01:40:49]wFMCommunicate OK [01:40:49]SAM_PROTO_SignData done [01:40:49]FM_MakeSignedData done [01:40:49]CreateOFDProtocolMessage [01:40:49]wFMCommunicate request_size=4 [01:40:49]MH_SAM_APDU [01:40:49]CAPDU: 80 11 00 00 [01:40:49]Write to MH i2c: E2 08 00 2A 05 80 11 00 00 00 00 00 00 A9 [01:40:49]Write i2c OK [01:40:49]MH_I2C_Read... [01:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:49]Read from MH i2c: E2 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 17 00 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: E2 17 00 2A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 F9 [01:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:40:49]wFMCommunicate OK [01:40:49]CreateOFDProtocolMessage done [01:40:49]OFDSenderStorePacket 76908 [01:40:49]StoreOFDPacket docnum=76908 [01:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 33 01 00 00 C6 42 2B 01 A4 3C 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 21 7D 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6C 2C 01 00 35 04 06 00 58 13 C5 86 EE 96 A0 54 86 78 7F DA 23 86 [01:40:49]CheckFolder [01:40:49]dirname=/storage/ofd_packets [01:40:49]CheckFolder done [01:40:49]ProducePacketName [01:40:49]name=ofd_packets/00076908 [01:40:49]NVStorageSaveData ofd_packets/00076908 [01:40:49]File name is /storage/ofd_packets/00076908 [01:40:49]Write 337 bytes [01:40:49]NVStorageSaveData done [01:40:49]OFDSenderStorePacket done [01:40:49]KKMCreateOFDPacket done [01:40:49]NVStorageSaveData kkm_last_timestamp [01:40:49]File name is /storage/kkm_last_timestamp [01:40:49]Write 4 bytes [01:40:49]NVStorageSaveData done [01:40:49]ExternCall_PrintAddStr [01:40:49]wPrintStart [01:40:49]Write to MH i2c: 01 00 00 2B 05 30 [01:40:49]Write i2c OK [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: 01 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: 01 07 00 [01:40:49]MH_I2C_Read... [01:40:49]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 FF 0F 45 [01:40:49]RasterBufferAndPrint [01:40:49]line Счет N : (3)220962 [01:40:49]line ИНН: 02508201610067 [01:40:49]line Контрольно-Кассовый Чек [01:40:49]line ПРОДАЖА [01:40:49]line Товар: 2000053020015 [01:40:49]line Бумажные стаканы 250мл 1шт [01:40:49]line 3.000 * 7.00 [01:40:49]line = 21.00 [01:40:49]line НДС 12% НСП 1% [01:40:49]line > о реализуемом товаре [01:40:49]line ИТОГО: 21.00 [01:40:49]line НСП 1% : 0.19 [01:40:49]line НДС 12% : 2.23 [01:40:49]line Наличными: 21.00 [01:40:49]line Безнал.: 0.00 [01:40:49]line Место: АЗС № 144 "Партнер Нефть" [01:40:49]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:40:49]line СНО: Общий режим [01:40:49]line Чек 7 23.06.2024 01:40 [01:40:49]line Смена: 396 ФФД: 1.0 [01:40:49]line ЗНМ: 0300000170 [01:40:49]line РНМ: 0000000000095696 [01:40:49]line Версия ККМ: 001 [01:40:49]line ФМ: 0000000000875009 [01:40:49]line ФД: 76908 [01:40:49]line ФПД: 96841941577366 [01:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T014049&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76908&fm=96841941577366&tin=02508201610067®Number=0000000000095696&sum=2100 [01:40:50]line 0 [01:40:50]OFD Sender: Processing packet 76908 [packets to send 351, broken 350] [01:40:50]ProducePacketName [01:40:50]name=ofd_packets/00076908 [01:40:50]OFD Sender: To server: pG, [01:40:50]CommunicateWithHost lk.salyk.kg:30040 [01:40:50]ConnectInit lk.salyk.kg [01:40:50]written 0, free lines is 4095 [01:40:50]Connected sock=9 [01:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 33 01 00 00 C6 42 2B 01 A4 3C 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 21 7D 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6C 2C 01 00 35 04 06 00 58 13 C5 86 EE 96 A0 54 86 78 7F DA 23 86 [01:40:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 08 7C 47 00 FD 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 35 30 30 39 10 04 04 00 6C 2C 01 00 F4 03 04 00 BA 23 77 66 B6 04 01 00 00 D8 0F 6E DD E6 AD 25 87 [01:40:50]CommunicateWithHost err = 0 [01:40:50]CheckOFDResponse [01:40:50]1017 (14) - 77093643461234 [01:40:50]1041 (16) - 0000000000875009 [01:40:50]1040 (4) - 76908 [01:40:50]1012 (4) - 22.06.2024 19:19 [01:40:50]1206 (1) - 0 [01:40:50]OFD Sender: Remove packet 76908 [01:40:50]ProducePacketName [01:40:50]name=ofd_packets/00076908 [01:40:50]NVStorageDeleteData [01:40:50]Write to MH i2c: 01 00 00 54 05 59 [01:40:50]Write i2c OK [01:40:50]MH_I2C_Read... [01:40:50]Read from MH i2c: 01 [01:40:50]MH_I2C_Read... [01:40:50]Read from MH i2c: 01 07 00 [01:40:50]MH_I2C_Read... [01:40:50]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 EF 0C 5B [01:40:50]RasterBufferAndPrint [01:40:50]line [01:40:50]line [01:40:50]line [01:40:50]line [01:40:50]line [01:40:50]written 0, free lines is 3320 [01:40:50]MH_Cut [01:40:50]Write to MH i2c: D1 01 00 5B 05 01 32 [01:40:50]Write i2c OK [01:40:50]MH_I2C_Read... [01:40:50]Read from MH i2c: D1 [01:40:50]MH_I2C_Read... [01:40:50]Read from MH i2c: D1 01 00 [01:40:50]MH_I2C_Read... [01:40:50]Read from MH i2c: D1 01 00 5B 05 00 31 [01:40:50]Write to MH i2c: 01 00 00 5C 05 61 [01:40:50]Write i2c OK [01:40:50]MH_I2C_Read... [01:40:51]OFD Sender: No OFD packet to send [01:40:51]*** Cut start [01:40:51]*** Partial cut [01:40:51]*** CUTSNS_PIN = 1 [01:40:51]*** CUTSNS_PIN = 0 [01:40:51]*** Brake cut motor [01:40:52]Read from MH i2c: 01 [01:40:52]MH_I2C_Read... [01:40:52]*** Stop cut motor [01:40:52]*** Cut end [01:40:52]Read from MH i2c: 01 07 00 [01:40:52]MH_I2C_Read... [01:40:52]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [01:40:52]process_action close_receipt done [01:40:52]requested_data is exist [01:40:52]produce_requested_data [01:40:52]requested_item fm.sn is exist - process it [01:40:52]wFMCommunicate request_size=4 [01:40:52]MH_SAM_APDU [01:40:52]CAPDU: 80 11 00 00 [01:40:52]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [01:40:52]Write i2c OK [01:40:52]MH_I2C_Read... [01:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:52]Read from MH i2c: E2 [01:40:52]MH_I2C_Read... [01:40:52]Read from MH i2c: E2 17 00 [01:40:52]MH_I2C_Read... [01:40:52]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2C [01:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:40:52]wFMCommunicate OK [01:40:52]requested_item fd.num is exist - process it [01:40:52]SAM_PROTO_GetFieldsCounters [01:40:52]wFMCommunicate request_size=4 [01:40:52]MH_SAM_APDU [01:40:52]CAPDU: 80 13 00 00 [01:40:52]Write to MH i2c: E2 08 00 5E 05 80 13 00 00 00 00 00 00 DF [01:40:52]Write i2c OK [01:40:52]MH_I2C_Read... [01:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:40:52]Read from MH i2c: E2 [01:40:52]MH_I2C_Read... [01:40:52]Read from MH i2c: E2 62 00 [01:40:52]MH_I2C_Read... [01:40:52]Read from MH i2c: E2 62 00 5E 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6C 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [01:40: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6C 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:40:52]wFMCommunicate OK [01:40:52]SAM_PROTO_GetFieldsCounters done [01:40:52]requested_item shift.num is exist - process it [01:40:52]requested_item shift.opened is exist - process it [01:40:52]req_shift_opened [01:40:52]FM_GetShiftState [01:40:52]SAM_PROTO_GetShiftState [01:40:52]wFMCommunicate request_size=4 [01:40:52]MH_SAM_APDU [01:40:52]CAPDU: 80 13 01 00 [01:40:52]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [01:40:52]Write i2c OK [01:40:52]MH_I2C_Read... [01:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:52]Read from MH i2c: E2 [01:40:52]MH_I2C_Read... [01:40:52]Read from MH i2c: E2 0E 00 [01:40:52]MH_I2C_Read... [01:40:52]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 50 [01:40:52]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:40:52]wFMCommunicate OK [01:40:52]SAM_PROTO_GetShiftState done [01:40:52]FM_GetShiftState done [01:40:52]req_shift_opened done [01:40:52]requested_item shift.open_date is exist - process it [01:40:52]req_shift_open_date [01:40:52]req_shift_open_date done [01:40:52]produce_requested_data done [01:40:52]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76908,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [01:40:52]process_action_free close_receipt [01:40:52]json_value_free [01:40:52]json_value_free done [01:40:52]process_json_proto returns [01:40:52]Send response to host [01:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76908,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [01:40:52]free response buf [01:40:52]execute_script done [01:40:52]execute_script returns [01:40:52]free content buf [01:40:52]Sock 8.Close socket [01:40:52]Sock 8.Thread stoped [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:23]accept exits with 10 [01:46:23]New connection [01:46:23]New thread 3066944868 created [01:46:23]Thread 3067088228 joined [01:46:23]Waiting for new connection... [01:46:23] Sock 10.Parse request [01:46:23]Sock 10.Check first char [01:46:23]Sock 10.First char is OK [01:46:23]request: POST /json_proto HTTP/1.0 [01:46:23]Method: POST [01:46:23]URL: /json_proto [01:46:23]Method is POST - this is cgi request [01:46:23]url: /json_proto [01:46:23]query_string will be loaded in cgi processing [01:46:23]execute_cgi json_proto POST (null) [01:46:23]execute_cgi path=json_proto method=POST [01:46:23]POST find Content-Length [01:46:23]Host: 172.17.39.195:8080 [01:46:23]Content-Length: 657 [01:46:23]Content-Type: application/json [01:46:23] [01:46:23]POST finish read [01:46:23]Found Content-Length = 657 [01:46:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220963", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 2.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:23]execute_script... [01:46:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220963", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 2.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:23]POST & json_proto [01:46:23]process_json_proto [01:46:23]json parsed OK: [01:46:23]protocol is kg_v1.0 [01:46:23]action value=close_receipt [01:46:23]process_action close_receipt [01:46:23]cmd_close_receipt [01:46:23]MH_GetDate [01:46:23]Write to MH i2c: F0 00 00 60 05 54 [01:46:23]Write i2c OK [01:46:23]MH_I2C_Read... [01:46:23]Read from MH i2c: F0 [01:46:23]MH_I2C_Read... [01:46:23]Read from MH i2c: F0 09 00 [01:46:23]MH_I2C_Read... [01:46:23]Read from MH i2c: F0 09 00 60 05 00 70 7E 77 66 99 81 91 64 37 [01:46:23]GetLastDocTimeStamp 1719106849 [01:46:23]current date 1719107184 [01:46:23]FM_GetShiftState [01:46:23]SAM_PROTO_GetShiftState [01:46:23]wFMCommunicate request_size=4 [01:46:23]MH_SAM_APDU [01:46:23]CAPDU: 80 13 01 00 [01:46:23]Write to MH i2c: E2 08 00 61 05 80 13 01 00 00 00 00 00 E3 [01:46:23]Write i2c OK [01:46:23]MH_I2C_Read... [01:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:23]Read from MH i2c: E2 [01:46:23]MH_I2C_Read... [01:46:23]Read from MH i2c: E2 0E 00 [01:46:23]MH_I2C_Read... [01:46:23]Read from MH i2c: E2 0E 00 61 05 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 52 [01:46:23]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:46:23]wFMCommunicate OK [01:46:23]SAM_PROTO_GetShiftState done [01:46:23]FM_GetShiftState done [01:46:23]opened in 1719102745 [01:46:23]opened+sec_in_day 1719189145 [01:46:23]quantity*price = 14400 [01:46:23]sum+1 = 14401 [01:46:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 8 23.06.2024 01:46 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76909 ФПД: 21579551665079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T014624&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76909&fm=21579551665079&tin=02508201610067®Number=0000000000095696&sum=14400 0 [01:46:24]StoreToDocumentArchive [01:46:24]shift 396 fd 76909 [01:46:24]save to /storage/0396/doc_00076909 [01:46:24]save last doc name /storage/0396/doc_00076909 to /storage/kkm_last_doc_name [01:46:24]save OK [01:46:24]Clear old archive folders... [01:46:24]ProcessDocumentItem done err = 0, tmpTLVsize=294 [01:46:24]tlvbuf is B6EFBB40 [01:46:24]SAM_PROTO_ClearQueue [01:46:24]wFMCommunicate request_size=4 [01:46:24]MH_SAM_APDU [01:46:24]CAPDU: 80 09 00 00 [01:46:24]Write to MH i2c: E2 08 00 6E 05 80 09 00 00 00 00 00 00 E5 [01:46:24]Write i2c OK [01:46:24]MH_I2C_Read... [01:46:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:46:24]Read from MH i2c: E2 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 03 00 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [01:46:24]RAPDU: 90 00 [01:46:24]wFMCommunicate OK [01:46:24]SAM_PROTO_ClearQueue done [01:46:24]KKMCreateOFDPacket [01:46:24]OFDProtocolAddRootSTLVToBuf [01:46:24]FM_MakeSignedData [01:46:24]FM_MakeSignedData [01:46:24]SAM_PROTO_SignData [01:46:24]wFMCommunicate request_size=4 [01:46:24]MH_SAM_APDU [01:46:24]CAPDU: 80 0D 01 02 [01:46:24]Write to MH i2c: E2 08 00 6F 05 80 0D 01 02 00 00 00 00 ED [01:46:24]Write i2c OK [01:46:24]MH_I2C_Read... [01:46:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:46:24]Read from MH i2c: E2 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 03 00 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [01:46:24]RAPDU: 90 00 [01:46:24]wFMCommunicate OK [01:46:24]wFMCommunicate request_size=255 [01:46:24]MH_SAM_APDU [01:46:24]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 70 7E 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [01:46:24]Write to MH i2c: E2 02 01 70 05 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 70 7E 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 15 [01:46:24]Write i2c OK [01:46:24]MH_I2C_Read... [01:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:24]Read from MH i2c: E2 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 03 00 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [01:46:24]RAPDU: 90 00 [01:46:24]wFMCommunicate OK [01:46:24]wFMCommunicate request_size=53 [01:46:24]MH_SAM_APDU [01:46:24]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2C 01 00 35 04 06 00 13 A0 61 82 EB B7 [01:46:24]Write to MH i2c: E2 38 00 71 05 80 0D 02 02 30 00 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2C 01 00 35 04 06 00 13 A0 61 82 EB B7 00 00 BE [01:46:24]Write i2c OK [01:46:24]MH_I2C_Read... [01:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:24]Read from MH i2c: E2 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 03 00 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [01:46:24]RAPDU: 90 00 [01:46:24]wFMCommunicate OK [01:46:24]wFMCommunicate request_size=4 [01:46:24]MH_SAM_APDU [01:46:24]CAPDU: 80 0D 03 02 [01:46:24]Write to MH i2c: E2 08 00 72 05 80 0D 03 02 00 00 00 00 F2 [01:46:24]Write i2c OK [01:46:24]MH_I2C_Read... [01:46:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:46:24]Read from MH i2c: E2 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 0B 00 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 0B 00 72 05 00 37 E1 8F 35 6D D8 F3 D0 90 00 D7 [01:46:24]RAPDU: 37 E1 8F 35 6D D8 F3 D0 90 00 [01:46:24]wFMCommunicate OK [01:46:24]SAM_PROTO_SignData done [01:46:24]FM_MakeSignedData done [01:46:24]CreateOFDProtocolMessage [01:46:24]wFMCommunicate request_size=4 [01:46:24]MH_SAM_APDU [01:46:24]CAPDU: 80 11 00 00 [01:46:24]Write to MH i2c: E2 08 00 73 05 80 11 00 00 00 00 00 00 F2 [01:46:24]Write i2c OK [01:46:24]MH_I2C_Read... [01:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:24]Read from MH i2c: E2 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 17 00 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: E2 17 00 73 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 42 [01:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:46:24]wFMCommunicate OK [01:46:24]CreateOFDProtocolMessage done [01:46:24]OFDSenderStorePacket 76909 [01:46:24]StoreOFDPacket docnum=76909 [01:46:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 92 08 32 01 E9 B2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 70 7E 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2C 01 00 35 04 06 00 13 A0 61 82 EB B7 37 E1 8F 35 6D D8 F3 D0 [01:46:24]CheckFolder [01:46:24]dirname=/storage/ofd_packets [01:46:24]CheckFolder done [01:46:24]ProducePacketName [01:46:24]name=ofd_packets/00076909 [01:46:24]NVStorageSaveData ofd_packets/00076909 [01:46:24]File name is /storage/ofd_packets/00076909 [01:46:24]Write 344 bytes [01:46:24]NVStorageSaveData done [01:46:24]OFDSenderStorePacket done [01:46:24]KKMCreateOFDPacket done [01:46:24]NVStorageSaveData kkm_last_timestamp [01:46:24]File name is /storage/kkm_last_timestamp [01:46:24]Write 4 bytes [01:46:24]NVStorageSaveData done [01:46:24]ExternCall_PrintAddStr [01:46:24]wPrintStart [01:46:24]Write to MH i2c: 01 00 00 74 05 79 [01:46:24]Write i2c OK [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: 01 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: 01 07 00 [01:46:24]MH_I2C_Read... [01:46:24]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 FF 0F 8E [01:46:24]RasterBufferAndPrint [01:46:24]line Счет N : (3)220963 [01:46:24]line ИНН: 02508201610067 [01:46:24]line Контрольно-Кассовый Чек [01:46:24]line ПРОДАЖА [01:46:24]line Товар: 4600682557456 [01:46:24]line Напиток FLash up energy эн ж/б 0,5/0,45л [01:46:24]line 2.000 * 72.00 [01:46:24]line = 144.00 [01:46:24]line НДС 12% НСП 1% [01:46:24]line > о реализуемом товаре [01:46:24]line ИТОГО: 144.00 [01:46:24]line НСП 1% : 1.27 [01:46:24]line НДС 12% : 15.29 [01:46:24]line Наличными: 144.00 [01:46:24]line Безнал.: 0.00 [01:46:24]line Место: АЗС № 144 "Партнер Нефть" [01:46:24]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:46:24]line СНО: Общий режим [01:46:24]line Чек 8 23.06.2024 01:46 [01:46:24]line Смена: 396 ФФД: 1.0 [01:46:24]line ЗНМ: 0300000170 [01:46:24]line РНМ: 0000000000095696 [01:46:24]line Версия ККМ: 001 [01:46:24]line ФМ: 0000000000875009 [01:46:24]line ФД: 76909 [01:46:24]line ФПД: 21579551665079 [01:46:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T014624&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76909&fm=21579551665079&tin=02508201610067®Number=0000000000095696&sum=14400 [01:46:25]line 0 [01:46:25]OFD Sender: Processing packet 76909 [packets to send 351, broken 350] [01:46:25]ProducePacketName [01:46:25]name=ofd_packets/00076909 [01:46:25]OFD Sender: To server: pG, [01:46:25]CommunicateWithHost lk.salyk.kg:30040 [01:46:25]ConnectInit lk.salyk.kg [01:46:25]written 0, free lines is 4095 [01:46:25]Connected sock=9 [01:46:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 3A 01 00 00 92 08 32 01 E9 B2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 70 7E 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2C 01 00 35 04 06 00 13 A0 61 82 EB B7 37 E1 8F 35 6D D8 F3 D0 [01:46:25]Write to MH i2c: 01 00 00 9D 05 A2 [01:46:25]Write i2c OK [01:46:25]MH_I2C_Read... [01:46:25]Read from MH i2c: 01 [01:46:25]MH_I2C_Read... [01:46:25]Read from MH i2c: 01 07 00 [01:46:25]MH_I2C_Read... [01:46:25]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 ED 0C A2 [01:46:25]RasterBufferAndPrint [01:46:25]line [01:46:25]line [01:46:25]line [01:46:25]line [01:46:25]line [01:46:25]written 0, free lines is 3315 [01:46:25]MH_Cut [01:46:25]Write to MH i2c: D1 01 00 A4 05 01 7B [01:46:25]Write i2c OK [01:46:25]MH_I2C_Read... [01:46:25]Read from MH i2c: D1 [01:46:25]MH_I2C_Read... [01:46:25]Read from MH i2c: D1 01 00 [01:46:25]MH_I2C_Read... [01:46:25]Read from MH i2c: D1 01 00 A4 05 00 7A [01:46:25]Write to MH i2c: 01 00 00 A5 05 AA [01:46:25]Write i2c OK [01:46:25]MH_I2C_Read... [01:46:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 1B D7 47 00 03 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6D 2C 01 00 F4 03 04 00 09 25 77 66 B6 04 01 00 00 CD CB 75 4B 89 ED B7 38 [01:46:25]CommunicateWithHost err = 0 [01:46:25]CheckOFDResponse [01:46:25]1017 (14) - 77093643461234 [01:46:25]1041 (16) - 0000000000875009 [01:46:25]1040 (4) - 76909 [01:46:25]1012 (4) - 22.06.2024 19:24 [01:46:25]1206 (1) - 0 [01:46:25]OFD Sender: Remove packet 76909 [01:46:25]ProducePacketName [01:46:25]name=ofd_packets/00076909 [01:46:25]NVStorageDeleteData [01:46:26]OFD Sender: No OFD packet to send [01:46:26]*** Cut start [01:46:26]*** Partial cut [01:46:26]*** CUTSNS_PIN = 1 [01:46:26]*** CUTSNS_PIN = 0 [01:46:26]*** Brake cut motor [01:46:26]Read from MH i2c: 01 [01:46:26]MH_I2C_Read... [01:46:26]*** Stop cut motor [01:46:26]*** Cut end [01:46:26]Read from MH i2c: 01 07 00 [01:46:26]MH_I2C_Read... [01:46:26]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 FF 0F BF [01:46:26]process_action close_receipt done [01:46:26]requested_data is exist [01:46:26]produce_requested_data [01:46:26]requested_item fm.sn is exist - process it [01:46:26]wFMCommunicate request_size=4 [01:46:26]MH_SAM_APDU [01:46:26]CAPDU: 80 11 00 00 [01:46:26]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [01:46:26]Write i2c OK [01:46:26]MH_I2C_Read... [01:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:26]Read from MH i2c: E2 [01:46:26]MH_I2C_Read... [01:46:26]Read from MH i2c: E2 17 00 [01:46:26]MH_I2C_Read... [01:46:26]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 75 [01:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:46:26]wFMCommunicate OK [01:46:26]requested_item fd.num is exist - process it [01:46:26]SAM_PROTO_GetFieldsCounters [01:46:26]wFMCommunicate request_size=4 [01:46:26]MH_SAM_APDU [01:46:26]CAPDU: 80 13 00 00 [01:46:26]Write to MH i2c: E2 08 00 A7 05 80 13 00 00 00 00 00 00 28 [01:46:26]Write i2c OK [01:46:26]MH_I2C_Read... [01:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:46:27]Read from MH i2c: E2 [01:46:27]MH_I2C_Read... [01:46:27]Read from MH i2c: E2 62 00 [01:46:27]MH_I2C_Read... [01:46:27]Read from MH i2c: E2 62 00 A7 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6D 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [01:46: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6D 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:46:27]wFMCommunicate OK [01:46:27]SAM_PROTO_GetFieldsCounters done [01:46:27]requested_item shift.num is exist - process it [01:46:27]requested_item shift.opened is exist - process it [01:46:27]req_shift_opened [01:46:27]FM_GetShiftState [01:46:27]SAM_PROTO_GetShiftState [01:46:27]wFMCommunicate request_size=4 [01:46:27]MH_SAM_APDU [01:46:27]CAPDU: 80 13 01 00 [01:46:27]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [01:46:27]Write i2c OK [01:46:27]MH_I2C_Read... [01:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:27]Read from MH i2c: E2 [01:46:27]MH_I2C_Read... [01:46:27]Read from MH i2c: E2 0E 00 [01:46:27]MH_I2C_Read... [01:46:27]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 99 [01:46:27]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:46:27]wFMCommunicate OK [01:46:27]SAM_PROTO_GetShiftState done [01:46:27]FM_GetShiftState done [01:46:27]req_shift_opened done [01:46:27]requested_item shift.open_date is exist - process it [01:46:27]req_shift_open_date [01:46:27]req_shift_open_date done [01:46:27]produce_requested_data done [01:46:27]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76909,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [01:46:27]process_action_free close_receipt [01:46:27]json_value_free [01:46:27]json_value_free done [01:46:27]process_json_proto returns [01:46:27]Send response to host [01:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76909,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [01:46:27]free response buf [01:46:27]execute_script done [01:46:27]execute_script returns [01:46:27]free content buf [01:46:27]Sock 10.Close socket [01:46:27]Sock 10.Thread stoped [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]accept exits with 8 [01:48:46]New connection [01:48:46]New thread 3067088228 created [01:48:46]Thread 3066944868 joined [01:48:46]Waiting for new connection... [01:48:46] Sock 8.Parse request [01:48:46]Sock 8.Check first char [01:48:46]Sock 8.First char is OK [01:48:46]request: POST /json_proto HTTP/1.0 [01:48:46]Method: POST [01:48:46]URL: /json_proto [01:48:46]Method is POST - this is cgi request [01:48:46]url: /json_proto [01:48:46]query_string will be loaded in cgi processing [01:48:46]execute_cgi json_proto POST (null) [01:48:46]execute_cgi path=json_proto method=POST [01:48:46]POST find Content-Length [01:48:46]Host: 172.17.39.195:8080 [01:48:46]Content-Length: 658 [01:48:46]Content-Type: application/json [01:48:46] [01:48:46]POST finish read [01:48:46]Found Content-Length = 658 [01:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220964", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:48:46]execute_script... [01:48:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220964", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:48:46]POST & json_proto [01:48:46]process_json_proto [01:48:46]json parsed OK: [01:48:46]protocol is kg_v1.0 [01:48:46]action value=close_receipt [01:48:46]process_action close_receipt [01:48:46]cmd_close_receipt [01:48:46]MH_GetDate [01:48:46]Write to MH i2c: F0 00 00 A9 05 9D [01:48:46]Write i2c OK [01:48:46]MH_I2C_Read... [01:48:46]Read from MH i2c: F0 [01:48:46]MH_I2C_Read... [01:48:46]Read from MH i2c: F0 09 00 [01:48:46]MH_I2C_Read... [01:48:46]Read from MH i2c: F0 09 00 A9 05 00 FF 7E 77 66 99 81 91 64 0F [01:48:46]GetLastDocTimeStamp 1719107184 [01:48:46]current date 1719107327 [01:48:46]FM_GetShiftState [01:48:46]SAM_PROTO_GetShiftState [01:48:46]wFMCommunicate request_size=4 [01:48:46]MH_SAM_APDU [01:48:46]CAPDU: 80 13 01 00 [01:48:46]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [01:48:46]Write i2c OK [01:48:46]MH_I2C_Read... [01:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:46]Read from MH i2c: E2 [01:48:46]MH_I2C_Read... [01:48:46]Read from MH i2c: E2 0E 00 [01:48:46]MH_I2C_Read... [01:48:46]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 9B [01:48:46]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:48:46]wFMCommunicate OK [01:48:46]SAM_PROTO_GetShiftState done [01:48:46]FM_GetShiftState done [01:48:46]opened in 1719102745 [01:48:46]opened+sec_in_day 1719189145 [01:48:46]quantity*price = 11300 [01:48:46]sum+1 = 11301 [01:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 9 23.06.2024 01:48 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76910 ФПД: 103321497142485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T014847&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76910&fm=103321497142485&tin=02508201610067®Number=0000000000095696&sum=11300 0 [01:48:47]StoreToDocumentArchive [01:48:47]shift 396 fd 76910 [01:48:47]save to /storage/0396/doc_00076910 [01:48:47]save last doc name /storage/0396/doc_00076910 to /storage/kkm_last_doc_name [01:48:47]save OK [01:48:47]Clear old archive folders... [01:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=278 [01:48:47]tlvbuf is B6EFB770 [01:48:47]SAM_PROTO_ClearQueue [01:48:47]wFMCommunicate request_size=4 [01:48:47]MH_SAM_APDU [01:48:47]CAPDU: 80 09 00 00 [01:48:47]Write to MH i2c: E2 08 00 B7 05 80 09 00 00 00 00 00 00 2E [01:48:47]Write i2c OK [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 [01:48:47]MH_I2C_Read... [01:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:48:47]Read from MH i2c: E2 03 00 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [01:48:47]RAPDU: 90 00 [01:48:47]wFMCommunicate OK [01:48:47]SAM_PROTO_ClearQueue done [01:48:47]KKMCreateOFDPacket [01:48:47]OFDProtocolAddRootSTLVToBuf [01:48:47]FM_MakeSignedData [01:48:47]FM_MakeSignedData [01:48:47]SAM_PROTO_SignData [01:48:47]wFMCommunicate request_size=4 [01:48:47]MH_SAM_APDU [01:48:47]CAPDU: 80 0D 01 02 [01:48:47]Write to MH i2c: E2 08 00 B8 05 80 0D 01 02 00 00 00 00 36 [01:48:47]Write i2c OK [01:48:47]MH_I2C_Read... [01:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:48:47]Read from MH i2c: E2 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 03 00 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [01:48:47]RAPDU: 90 00 [01:48:47]wFMCommunicate OK [01:48:47]wFMCommunicate request_size=255 [01:48:47]MH_SAM_APDU [01:48:47]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FF 7E 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 [01:48:47]Write to MH i2c: E2 02 01 B9 05 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FF 7E 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 00 00 81 [01:48:47]Write i2c OK [01:48:47]MH_I2C_Read... [01:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:47]Read from MH i2c: E2 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 03 00 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [01:48:47]RAPDU: 90 00 [01:48:47]wFMCommunicate OK [01:48:47]wFMCommunicate request_size=37 [01:48:47]MH_SAM_APDU [01:48:47]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2C 01 00 35 04 06 00 5D F8 69 22 84 D5 [01:48:47]Write to MH i2c: E2 28 00 BA 05 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2C 01 00 35 04 06 00 5D F8 69 22 84 D5 00 00 61 [01:48:47]Write i2c OK [01:48:47]MH_I2C_Read... [01:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:48:47]Read from MH i2c: E2 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 03 00 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [01:48:47]RAPDU: 90 00 [01:48:47]wFMCommunicate OK [01:48:47]wFMCommunicate request_size=4 [01:48:47]MH_SAM_APDU [01:48:47]CAPDU: 80 0D 03 02 [01:48:47]Write to MH i2c: E2 08 00 BB 05 80 0D 03 02 00 00 00 00 3B [01:48:47]Write i2c OK [01:48:47]MH_I2C_Read... [01:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:48:47]Read from MH i2c: E2 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 0B 00 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 0B 00 BB 05 00 17 06 E3 A9 7F 1D DE 82 90 00 E1 [01:48:47]RAPDU: 17 06 E3 A9 7F 1D DE 82 90 00 [01:48:47]wFMCommunicate OK [01:48:47]SAM_PROTO_SignData done [01:48:47]FM_MakeSignedData done [01:48:47]CreateOFDProtocolMessage [01:48:47]wFMCommunicate request_size=4 [01:48:47]MH_SAM_APDU [01:48:47]CAPDU: 80 11 00 00 [01:48:47]Write to MH i2c: E2 08 00 BC 05 80 11 00 00 00 00 00 00 3B [01:48:47]Write i2c OK [01:48:47]MH_I2C_Read... [01:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:47]Read from MH i2c: E2 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 17 00 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: E2 17 00 BC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 8B [01:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:48:47]wFMCommunicate OK [01:48:47]CreateOFDProtocolMessage done [01:48:47]OFDSenderStorePacket 76910 [01:48:47]StoreOFDPacket docnum=76910 [01:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 7A 06 22 01 2F 24 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FF 7E 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2C 01 00 35 04 06 00 5D F8 69 22 84 D5 17 06 E3 A9 7F 1D DE 82 [01:48:47]CheckFolder [01:48:47]dirname=/storage/ofd_packets [01:48:47]CheckFolder done [01:48:47]ProducePacketName [01:48:47]name=ofd_packets/00076910 [01:48:47]NVStorageSaveData ofd_packets/00076910 [01:48:47]File name is /storage/ofd_packets/00076910 [01:48:47]Write 328 bytes [01:48:47]NVStorageSaveData done [01:48:47]OFDSenderStorePacket done [01:48:47]KKMCreateOFDPacket done [01:48:47]NVStorageSaveData kkm_last_timestamp [01:48:47]File name is /storage/kkm_last_timestamp [01:48:47]Write 4 bytes [01:48:47]NVStorageSaveData done [01:48:47]ExternCall_PrintAddStr [01:48:47]wPrintStart [01:48:47]Write to MH i2c: 01 00 00 BD 05 C2 [01:48:47]Write i2c OK [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: 01 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: 01 07 00 [01:48:47]MH_I2C_Read... [01:48:47]Read from MH i2c: 01 07 00 BD 05 00 00 00 00 00 FF 0F D7 [01:48:47]RasterBufferAndPrint [01:48:47]line Счет N : (3)220964 [01:48:47]line ИНН: 02508201610067 [01:48:47]line Контрольно-Кассовый Чек [01:48:47]line ПРОДАЖА [01:48:47]line Товар: 5449000054227 [01:48:47]line Напиток Кока-Кола 1л [01:48:47]line 1.000 * 113.00 [01:48:47]line = 113.00 [01:48:47]line НДС 12% НСП 1% [01:48:47]line > о реализуемом товаре [01:48:47]line ИТОГО: 113.00 [01:48:47]line НСП 1% : 1.00 [01:48:47]line НДС 12% : 12.00 [01:48:47]line Наличными: 113.00 [01:48:47]line Безнал.: 0.00 [01:48:47]line Место: АЗС № 144 "Партнер Нефть" [01:48:47]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [01:48:47]line СНО: Общий режим [01:48:47]line Чек 9 23.06.2024 01:48 [01:48:47]line Смена: 396 ФФД: 1.0 [01:48:47]line ЗНМ: 0300000170 [01:48:47]line РНМ: 0000000000095696 [01:48:47]line Версия ККМ: 001 [01:48:47]line ФМ: 0000000000875009 [01:48:47]line ФД: 76910 [01:48:47]line ФПД: 103321497142485 [01:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T014847&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76910&fm=103321497142485&tin=02508201610067®Number=0000000000095696&sum=11300 [01:48:48]line 0 [01:48:48]OFD Sender: Processing packet 76910 [packets to send 351, broken 350] [01:48:48]ProducePacketName [01:48:48]name=ofd_packets/00076910 [01:48:48]OFD Sender: To server: pG, [01:48:48]CommunicateWithHost lk.salyk.kg:30040 [01:48:48]ConnectInit lk.salyk.kg [01:48:48]written 0, free lines is 4095 [01:48:48]Connected sock=10 [01:48:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 2A 01 00 00 7A 06 22 01 2F 24 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 FF 7E 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2C 01 00 35 04 06 00 5D F8 69 22 84 D5 17 06 E3 A9 7F 1D DE 82 [01:48:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 5E 19 47 00 D4 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6E 2C 01 00 F4 03 04 00 97 25 77 66 B6 04 01 00 00 60 97 69 84 6D 06 CE 4C [01:48:48]CommunicateWithHost err = 0 [01:48:48]CheckOFDResponse [01:48:48]1017 (14) - 77093643461234 [01:48:48]1041 (16) - 0000000000875009 [01:48:48]1040 (4) - 76910 [01:48:48]1012 (4) - 22.06.2024 19:27 [01:48:48]1206 (1) - 0 [01:48:48]OFD Sender: Remove packet 76910 [01:48:48]ProducePacketName [01:48:48]name=ofd_packets/00076910 [01:48:48]NVStorageDeleteData [01:48:48]Write to MH i2c: 01 00 00 E5 05 EA [01:48:48]Write i2c OK [01:48:48]MH_I2C_Read... [01:48:48]Read from MH i2c: 01 [01:48:48]MH_I2C_Read... [01:48:48]Read from MH i2c: 01 07 00 [01:48:48]MH_I2C_Read... [01:48:48]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 FE 0C FB [01:48:48]RasterBufferAndPrint [01:48:48]line [01:48:48]line [01:48:48]line [01:48:48]line [01:48:48]line [01:48:48]written 0, free lines is 3332 [01:48:48]MH_Cut [01:48:48]Write to MH i2c: D1 01 00 EC 05 01 C3 [01:48:48]Write i2c OK [01:48:48]MH_I2C_Read... [01:48:48]Read from MH i2c: D1 [01:48:48]MH_I2C_Read... [01:48:48]Read from MH i2c: D1 01 00 [01:48:48]MH_I2C_Read... [01:48:48]Read from MH i2c: D1 01 00 EC 05 00 C2 [01:48:48]Write to MH i2c: 01 00 00 ED 05 F2 [01:48:48]Write i2c OK [01:48:48]MH_I2C_Read... [01:48:48]OFD Sender: No OFD packet to send [01:48:49]*** Cut start [01:48:49]*** Partial cut [01:48:49]*** CUTSNS_PIN = 1 [01:48:49]*** CUTSNS_PIN = 0 [01:48:49]*** Brake cut motor [01:48:49]Read from MH i2c: 01 [01:48:49]MH_I2C_Read... [01:48:49]*** Stop cut motor [01:48:49]*** Cut end [01:48:49]Read from MH i2c: 01 07 00 [01:48:49]MH_I2C_Read... [01:48:49]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 FF 0F 07 [01:48:49]process_action close_receipt done [01:48:49]requested_data is exist [01:48:49]produce_requested_data [01:48:49]requested_item fm.sn is exist - process it [01:48:49]wFMCommunicate request_size=4 [01:48:49]MH_SAM_APDU [01:48:49]CAPDU: 80 11 00 00 [01:48:49]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [01:48:49]Write i2c OK [01:48:49]MH_I2C_Read... [01:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:48:49]Read from MH i2c: E2 [01:48:49]MH_I2C_Read... [01:48:49]Read from MH i2c: E2 17 00 [01:48:49]MH_I2C_Read... [01:48:49]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 BD [01:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [01:48:49]wFMCommunicate OK [01:48:49]requested_item fd.num is exist - process it [01:48:49]SAM_PROTO_GetFieldsCounters [01:48:49]wFMCommunicate request_size=4 [01:48:49]MH_SAM_APDU [01:48:49]CAPDU: 80 13 00 00 [01:48:49]Write to MH i2c: E2 08 00 EF 05 80 13 00 00 00 00 00 00 70 [01:48:49]Write i2c OK [01:48:49]MH_I2C_Read... [01:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:48:50]Read from MH i2c: E2 [01:48:50]MH_I2C_Read... [01:48:50]Read from MH i2c: E2 62 00 [01:48:50]MH_I2C_Read... [01:48:50]Read from MH i2c: E2 62 00 EF 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6E 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [01:48: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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6E 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:48:50]wFMCommunicate OK [01:48:50]SAM_PROTO_GetFieldsCounters done [01:48:50]requested_item shift.num is exist - process it [01:48:50]requested_item shift.opened is exist - process it [01:48:50]req_shift_opened [01:48:50]FM_GetShiftState [01:48:50]SAM_PROTO_GetShiftState [01:48:50]wFMCommunicate request_size=4 [01:48:50]MH_SAM_APDU [01:48:50]CAPDU: 80 13 01 00 [01:48:50]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [01:48:50]Write i2c OK [01:48:50]MH_I2C_Read... [01:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:48:50]Read from MH i2c: E2 [01:48:50]MH_I2C_Read... [01:48:50]Read from MH i2c: E2 0E 00 [01:48:50]MH_I2C_Read... [01:48:50]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 E1 [01:48:50]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [01:48:50]wFMCommunicate OK [01:48:50]SAM_PROTO_GetShiftState done [01:48:50]FM_GetShiftState done [01:48:50]req_shift_opened done [01:48:50]requested_item shift.open_date is exist - process it [01:48:50]req_shift_open_date [01:48:50]req_shift_open_date done [01:48:50]produce_requested_data done [01:48:50]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76910,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [01:48:50]process_action_free close_receipt [01:48:50]json_value_free [01:48:50]json_value_free done [01:48:50]process_json_proto returns [01:48:50]Send response to host [01:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76910,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [01:48:50]free response buf [01:48:50]execute_script done [01:48:50]execute_script returns [01:48:50]free content buf [01:48:50]Sock 8.Close socket [01:48:50]Sock 8.Thread stoped [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:54]accept exits with 9 [02:14:54]New connection [02:14:54]New thread 3066944868 created [02:14:54]Thread 3067088228 joined [02:14:54]Waiting for new connection... [02:14:54] Sock 9.Parse request [02:14:54]Sock 9.Check first char [02:14:54]Sock 9.First char is OK [02:14:54]request: POST /json_proto HTTP/1.0 [02:14:54]Method: POST [02:14:54]URL: /json_proto [02:14:54]Method is POST - this is cgi request [02:14:54]url: /json_proto [02:14:54]query_string will be loaded in cgi processing [02:14:54]execute_cgi json_proto POST (null) [02:14:54]execute_cgi path=json_proto method=POST [02:14:54]POST find Content-Length [02:14:54]Host: 172.17.39.195:8080 [02:14:54]Content-Length: 1239 [02:14:54]Content-Type: application/json [02:14:54] [02:14:54]POST finish read [02:14:54]Found Content-Length = 1239 [02:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220965", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 397.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:54]execute_script... [02:14:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220965", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 397.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:54]POST & json_proto [02:14:54]process_json_proto [02:14:54]json parsed OK: [02:14:54]protocol is kg_v1.0 [02:14:54]action value=close_receipt [02:14:54]process_action close_receipt [02:14:54]cmd_close_receipt [02:14:54]MH_GetDate [02:14:54]Write to MH i2c: F0 00 00 F1 05 E5 [02:14:54]Write i2c OK [02:14:54]MH_I2C_Read... [02:14:54]Read from MH i2c: F0 [02:14:54]MH_I2C_Read... [02:14:54]Read from MH i2c: F0 09 00 [02:14:54]MH_I2C_Read... [02:14:54]Read from MH i2c: F0 09 00 F1 05 00 20 85 77 66 99 81 91 64 7F [02:14:54]GetLastDocTimeStamp 1719107327 [02:14:54]current date 1719108896 [02:14:54]FM_GetShiftState [02:14:54]SAM_PROTO_GetShiftState [02:14:54]wFMCommunicate request_size=4 [02:14:54]MH_SAM_APDU [02:14:54]CAPDU: 80 13 01 00 [02:14:54]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [02:14:54]Write i2c OK [02:14:54]MH_I2C_Read... [02:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:54]Read from MH i2c: E2 [02:14:54]MH_I2C_Read... [02:14:54]Read from MH i2c: E2 0E 00 [02:14:54]MH_I2C_Read... [02:14:54]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 E3 [02:14:54]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [02:14:54]wFMCommunicate OK [02:14:54]SAM_PROTO_GetShiftState done [02:14:54]FM_GetShiftState done [02:14:54]opened in 1719102745 [02:14:54]opened+sec_in_day 1719189145 [02:14:54]quantity*price = 15500 [02:14:54]sum+1 = 15501 [02:14:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607015235401 Пряники Яшкино шоколадные 350г 1.000 * 129.00 = 129.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 397.00 НСП 1% : 3.51 НДС 12% : 42.16 Наличными: 397.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 10 23.06.2024 02:14 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76911 ФПД: 214843347206188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T021456&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76911&fm=214843347206188&tin=02508201610067®Number=0000000000095696&sum=39700 0 [02:14:55]StoreToDocumentArchive [02:14:55]shift 396 fd 76911 [02:14:55]save to /storage/0396/doc_00076911 [02:14:55]save last doc name /storage/0396/doc_00076911 to /storage/kkm_last_doc_name [02:14:55]save OK [02:14:55]Clear old archive folders... [02:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=507 [02:14:55]tlvbuf is 02005DE0 [02:14:55]SAM_PROTO_ClearQueue [02:14:55]wFMCommunicate request_size=4 [02:14:55]MH_SAM_APDU [02:14:55]CAPDU: 80 09 00 00 [02:14:55]Write to MH i2c: E2 08 00 FF 05 80 09 00 00 00 00 00 00 76 [02:14:55]Write i2c OK [02:14:55]MH_I2C_Read... [02:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:14:55]Read from MH i2c: E2 [02:14:55]MH_I2C_Read... [02:14:55]Read from MH i2c: E2 03 00 [02:14:55]MH_I2C_Read... [02:14:55]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [02:14:55]RAPDU: 90 00 [02:14:55]wFMCommunicate OK [02:14:55]SAM_PROTO_ClearQueue done [02:14:55]KKMCreateOFDPacket [02:14:55]OFDProtocolAddRootSTLVToBuf [02:14:55]FM_MakeSignedData [02:14:55]FM_MakeSignedData [02:14:55]SAM_PROTO_SignData [02:14:55]wFMCommunicate request_size=4 [02:14:55]MH_SAM_APDU [02:14:55]CAPDU: 80 0D 01 02 [02:14:55]Write to MH i2c: E2 08 00 00 06 80 0D 01 02 00 00 00 00 7F [02:14:55]Write i2c OK [02:14:55]MH_I2C_Read... [02:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:14:55]Read from MH i2c: E2 [02:14:55]MH_I2C_Read... [02:14:55]Read from MH i2c: E2 03 00 [02:14:55]MH_I2C_Read... [02:14:55]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [02:14:55]RAPDU: 90 00 [02:14:55]wFMCommunicate OK [02:14:55]wFMCommunicate request_size=255 [02:14:55]MH_SAM_APDU [02:14:55]CAPDU: 80 0D 02 02 FA 03 00 FB 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A [02:14:55]Write to MH i2c: E2 02 01 01 06 80 0D 02 02 FA 00 03 00 FB 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 00 00 40 [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [02:14:56]RAPDU: 90 00 [02:14:56]wFMCommunicate OK [02:14:56]wFMCommunicate request_size=255 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 0D 02 02 FA 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 10 00 00 00 00 07 04 06 00 14 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 20 85 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2C 01 [02:14:56]Write to MH i2c: E2 02 01 02 06 80 0D 02 02 FA 00 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 10 00 00 00 00 07 04 06 00 14 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 20 85 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2C 01 00 00 B3 [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [02:14:56]RAPDU: 90 00 [02:14:56]wFMCommunicate OK [02:14:56]wFMCommunicate request_size=16 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C3 66 1D 64 80 2C [02:14:56]Write to MH i2c: E2 13 00 03 06 80 0D 02 02 0B 00 00 35 04 06 00 C3 66 1D 64 80 2C 00 00 2E [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [02:14:56]RAPDU: 90 00 [02:14:56]wFMCommunicate OK [02:14:56]wFMCommunicate request_size=4 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 0D 03 02 [02:14:56]Write to MH i2c: E2 08 00 04 06 80 0D 03 02 00 00 00 00 85 [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 0B 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 0B 00 04 06 00 F7 08 39 39 D6 AE 27 FD 90 00 9F [02:14:56]RAPDU: F7 08 39 39 D6 AE 27 FD 90 00 [02:14:56]wFMCommunicate OK [02:14:56]SAM_PROTO_SignData done [02:14:56]FM_MakeSignedData done [02:14:56]CreateOFDProtocolMessage [02:14:56]wFMCommunicate request_size=4 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 11 00 00 [02:14:56]Write to MH i2c: E2 08 00 05 06 80 11 00 00 00 00 00 00 85 [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 17 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 17 00 05 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 D5 [02:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:14:56]wFMCommunicate OK [02:14:56]CreateOFDProtocolMessage done [02:14:56]OFDSenderStorePacket 76911 [02:14:56]StoreOFDPacket docnum=76911 [02:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 02 00 00 F9 7D 07 02 5C B3 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 10 00 00 00 00 07 04 06 00 14 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 20 85 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2C 01 00 35 04 06 00 C3 66 1D 64 80 2C F7 08 39 39 D6 AE 27 FD [02:14:56]CheckFolder [02:14:56]dirname=/storage/ofd_packets [02:14:56]CheckFolder done [02:14:56]ProducePacketName [02:14:56]name=ofd_packets/00076911 [02:14:56]NVStorageSaveData ofd_packets/00076911 [02:14:56]File name is /storage/ofd_packets/00076911 [02:14:56]Write 557 bytes [02:14:56]NVStorageSaveData done [02:14:56]OFDSenderStorePacket done [02:14:56]KKMCreateOFDPacket done [02:14:56]NVStorageSaveData kkm_last_timestamp [02:14:56]File name is /storage/kkm_last_timestamp [02:14:56]Write 4 bytes [02:14:56]NVStorageSaveData done [02:14:56]ExternCall_PrintAddStr [02:14:56]wPrintStart [02:14:56]Write to MH i2c: 01 00 00 06 06 0C [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: 01 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: 01 07 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: 01 07 00 06 06 00 00 00 00 00 FF 0F 21 [02:14:56]RasterBufferAndPrint [02:14:56]line Счет N : (3)220965 [02:14:56]line ИНН: 02508201610067 [02:14:56]line Контрольно-Кассовый Чек [02:14:56]line ПРОДАЖА [02:14:56]line Товар: 5449000000439 [02:14:56]line Напиток Кока-Кола 1,5л [02:14:56]line 1.000 * 155.00 [02:14:56]line = 155.00 [02:14:56]line НДС 12% НСП 1% [02:14:56]line > о реализуемом товаре [02:14:56]line Товар: 4607015235401 [02:14:56]line Пряники Яшкино шоколадные 350г [02:14:56]line 1.000 * 129.00 [02:14:56]line = 129.00 [02:14:56]line НДС 12% НСП 1% [02:14:56]line > о реализуемом товаре [02:14:56]line Товар: 5449000006271 [02:14:56]line Напиток Фанта 1л [02:14:56]line 1.000 * 113.00 [02:14:56]line = 113.00 [02:14:56]line НДС 12% НСП 1% [02:14:56]line > о реализуемом товаре [02:14:56]line ИТОГО: 397.00 [02:14:56]line НСП 1% : 3.51 [02:14:56]line НДС 12% : 42.16 [02:14:56]line Наличными: 397.00 [02:14:56]line Безнал.: 0.00 [02:14:56]line Место: АЗС № 144 "Партнер Нефть" [02:14:56]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [02:14:56]line СНО: Общий режим [02:14:56]line Чек 10 23.06.2024 02:14 [02:14:56]line Смена: 396 ФФД: 1.0 [02:14:56]line ЗНМ: 0300000170 [02:14:56]line РНМ: 0000000000095696 [02:14:56]line Версия ККМ: 001 [02:14:56]line ФМ: 0000000000875009 [02:14:56]line ФД: 76911 [02:14:56]line ФПД: 214843347206188 [02:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T021456&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76911&fm=214843347206188&tin=02508201610067®Number=0000000000095696&sum=39700 [02:14:57]line 0 [02:14:57]OFD Sender: Processing packet 76911 [packets to send 351, broken 350] [02:14:57]ProducePacketName [02:14:57]name=ofd_packets/00076911 [02:14:57]OFD Sender: To server: pG, [02:14:57]CommunicateWithHost lk.salyk.kg:30040 [02:14:57]ConnectInit lk.salyk.kg [02:14:57]written 0, free lines is 4095 [02:14:57]Connected sock=10 [02:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0F 02 00 00 F9 7D 07 02 5C B3 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 10 00 00 00 00 07 04 06 00 14 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 20 85 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2C 01 00 35 04 06 00 C3 66 1D 64 80 2C F7 08 39 39 D6 AE 27 FD [02:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 30 03 47 00 CB 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 6F 2C 01 00 F4 03 04 00 B9 2B 77 66 B6 04 01 00 00 9A 50 35 60 F8 2C 0A 74 [02:14:57]CommunicateWithHost err = 0 [02:14:57]CheckOFDResponse [02:14:57]1017 (14) - 77093643461234 [02:14:57]1041 (16) - 0000000000875009 [02:14:57]1040 (4) - 76911 [02:14:57]1012 (4) - 22.06.2024 19:53 [02:14:57]1206 (1) - 0 [02:14:57]OFD Sender: Remove packet 76911 [02:14:57]ProducePacketName [02:14:57]name=ofd_packets/00076911 [02:14:57]NVStorageDeleteData [02:14:57]Write to MH i2c: 01 00 00 3B 06 41 [02:14:57]Write i2c OK [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: 01 [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: 01 07 00 [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 25 0C 79 [02:14:57]RasterBufferAndPrint [02:14:57]line [02:14:57]line [02:14:57]line [02:14:57]line [02:14:57]line [02:14:57]written 0, free lines is 3116 [02:14:57]MH_Cut [02:14:57]Write to MH i2c: D1 01 00 42 06 01 1A [02:14:57]Write i2c OK [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: D1 [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: D1 01 00 [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: D1 01 00 42 06 00 19 [02:14:57]Write to MH i2c: 01 00 00 43 06 49 [02:14:57]Write i2c OK [02:14:57]MH_I2C_Read... [02:14:58]OFD Sender: No OFD packet to send [02:14:58]*** Cut start [02:14:58]*** Partial cut [02:14:58]*** CUTSNS_PIN = 1 [02:14:58]*** CUTSNS_PIN = 0 [02:14:58]*** Brake cut motor [02:14:59]Read from MH i2c: 01 [02:14:59]MH_I2C_Read... [02:14:59]*** Stop cut motor [02:14:59]*** Cut end [02:14:59]Read from MH i2c: 01 07 00 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 FF 0F 5E [02:14:59]process_action close_receipt done [02:14:59]requested_data is exist [02:14:59]produce_requested_data [02:14:59]requested_item fm.sn is exist - process it [02:14:59]wFMCommunicate request_size=4 [02:14:59]MH_SAM_APDU [02:14:59]CAPDU: 80 11 00 00 [02:14:59]Write to MH i2c: E2 08 00 44 06 80 11 00 00 00 00 00 00 C4 [02:14:59]Write i2c OK [02:14:59]MH_I2C_Read... [02:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:59]Read from MH i2c: E2 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 17 00 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 17 00 44 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 14 [02:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [02:14:59]wFMCommunicate OK [02:14:59]requested_item fd.num is exist - process it [02:14:59]SAM_PROTO_GetFieldsCounters [02:14:59]wFMCommunicate request_size=4 [02:14:59]MH_SAM_APDU [02:14:59]CAPDU: 80 13 00 00 [02:14:59]Write to MH i2c: E2 08 00 45 06 80 13 00 00 00 00 00 00 C7 [02:14:59]Write i2c OK [02:14:59]MH_I2C_Read... [02:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:14:59]Read from MH i2c: E2 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 62 00 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 62 00 45 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6F 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [02:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 6F 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:14:59]wFMCommunicate OK [02:14:59]SAM_PROTO_GetFieldsCounters done [02:14:59]requested_item shift.num is exist - process it [02:14:59]requested_item shift.opened is exist - process it [02:14:59]req_shift_opened [02:14:59]FM_GetShiftState [02:14:59]SAM_PROTO_GetShiftState [02:14:59]wFMCommunicate request_size=4 [02:14:59]MH_SAM_APDU [02:14:59]CAPDU: 80 13 01 00 [02:14:59]Write to MH i2c: E2 08 00 46 06 80 13 01 00 00 00 00 00 C9 [02:14:59]Write i2c OK [02:14:59]MH_I2C_Read... [02:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:59]Read from MH i2c: E2 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 0E 00 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 0E 00 46 06 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 38 [02:14:59]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [02:14:59]wFMCommunicate OK [02:14:59]SAM_PROTO_GetShiftState done [02:14:59]FM_GetShiftState done [02:14:59]req_shift_opened done [02:14:59]requested_item shift.open_date is exist - process it [02:14:59]req_shift_open_date [02:14:59]req_shift_open_date done [02:14:59]produce_requested_data done [02:14:59]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76911,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [02:14:59]process_action_free close_receipt [02:14:59]json_value_free [02:14:59]json_value_free done [02:14:59]process_json_proto returns [02:14:59]Send response to host [02:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76911,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [02:14:59]free response buf [02:14:59]execute_script done [02:14:59]execute_script returns [02:14:59]free content buf [02:14:59]Sock 9.Close socket [02:14:59]Sock 9.Thread stoped [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]recv_with_timeout no data received [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [02:59:59]accept exits with 8 [02:59:59]New connection [02:59:59]New thread 3067088228 created [02:59:59]Thread 3066944868 joined [02:59:59]Waiting for new connection... [02:59:59] Sock 8.Parse request [02:59:59]Sock 8.Check first char [02:59:59]Sock 8.First char is OK [02:59:59]request: POST /json_proto HTTP/1.0 [02:59:59]Method: POST [02:59:59]URL: /json_proto [02:59:59]Method is POST - this is cgi request [02:59:59]url: /json_proto [02:59:59]query_string will be loaded in cgi processing [02:59:59]execute_cgi json_proto POST (null) [02:59:59]execute_cgi path=json_proto method=POST [02:59:59]POST find Content-Length [02:59:59]Host: 172.17.39.195:8080 [02:59:59]Content-Length: 893 [02:59:59]Content-Type: application/json [02:59:59] [02:59:59]POST finish read [02:59:59]Found Content-Length = 893 [02:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220966", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 437.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:59]execute_script... [02:59:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)220966", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 437.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:59]POST & json_proto [02:59:59]process_json_proto [02:59:59]json parsed OK: [02:59:59]protocol is kg_v1.0 [02:59:59]action value=close_receipt [02:59:59]process_action close_receipt [02:59:59]cmd_close_receipt [02:59:59]MH_GetDate [02:59:59]Write to MH i2c: F0 00 00 47 06 3C [02:59:59]Write i2c OK [02:59:59]MH_I2C_Read... [02:59:59]Read from MH i2c: F0 [02:59:59]MH_I2C_Read... [02:59:59]Read from MH i2c: F0 09 00 [02:59:59]MH_I2C_Read... [02:59:59]Read from MH i2c: F0 09 00 47 06 00 B1 8F 77 66 99 81 91 64 71 [02:59:59]GetLastDocTimeStamp 1719108896 [02:59:59]current date 1719111601 [02:59:59]FM_GetShiftState [02:59:59]SAM_PROTO_GetShiftState [02:59:59]wFMCommunicate request_size=4 [02:59:59]MH_SAM_APDU [02:59:59]CAPDU: 80 13 01 00 [02:59:59]Write to MH i2c: E2 08 00 48 06 80 13 01 00 00 00 00 00 CB [02:59:59]Write i2c OK [02:59:59]MH_I2C_Read... [02:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:59]Read from MH i2c: E2 [02:59:59]MH_I2C_Read... [02:59:59]Read from MH i2c: E2 0E 00 [02:59:59]MH_I2C_Read... [02:59:59]Read from MH i2c: E2 0E 00 48 06 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 3A [02:59:59]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [02:59:59]wFMCommunicate OK [02:59:59]SAM_PROTO_GetShiftState done [02:59:59]FM_GetShiftState done [02:59:59]opened in 1719102745 [02:59:59]opened+sec_in_day 1719189145 [02:59:59]quantity*price = 28200 [02:59:59]sum+1 = 28201 [02:59:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745895 Сигареты RICHMOND KS GOLD EDITION 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 437.00 НСП 1% : 3.87 НДС 12% : 46.41 Наличными: 437.00 Безнал.: 0.00 Место: АЗС № 144 "Партнер Нефть" Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 СНО: Общий режим Чек 11 23.06.2024 03:00 Смена: 396 ФФД: 1.0 ЗНМ: 0300000170 РНМ: 0000000000095696 Версия ККМ: 001 ФМ: 0000000000875009 ФД: 76912 ФПД: 237687150502247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T030001&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76912&fm=237687150502247&tin=02508201610067®Number=0000000000095696&sum=43700 0 [03:00:00]StoreToDocumentArchive [03:00:00]shift 396 fd 76912 [03:00:00]save to /storage/0396/doc_00076912 [03:00:00]save last doc name /storage/0396/doc_00076912 to /storage/kkm_last_doc_name [03:00:00]save OK [03:00:00]Clear old archive folders... [03:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=395 [03:00:00]tlvbuf is 01FFEBA0 [03:00:00]SAM_PROTO_ClearQueue [03:00:00]wFMCommunicate request_size=4 [03:00:00]MH_SAM_APDU [03:00:00]CAPDU: 80 09 00 00 [03:00:00]Write to MH i2c: E2 08 00 55 06 80 09 00 00 00 00 00 00 CD [03:00:00]Write i2c OK [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 [03:00:00]MH_I2C_Read... [03:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:00:00]Read from MH i2c: E2 03 00 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 03 00 55 06 00 90 00 CF [03:00:00]RAPDU: 90 00 [03:00:00]wFMCommunicate OK [03:00:00]SAM_PROTO_ClearQueue done [03:00:00]KKMCreateOFDPacket [03:00:00]OFDProtocolAddRootSTLVToBuf [03:00:00]FM_MakeSignedData [03:00:00]FM_MakeSignedData [03:00:00]SAM_PROTO_SignData [03:00:00]wFMCommunicate request_size=4 [03:00:00]MH_SAM_APDU [03:00:00]CAPDU: 80 0D 01 02 [03:00:00]Write to MH i2c: E2 08 00 56 06 80 0D 01 02 00 00 00 00 D5 [03:00:00]Write i2c OK [03:00:00]MH_I2C_Read... [03:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:00:00]Read from MH i2c: E2 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 03 00 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 03 00 56 06 00 90 00 D0 [03:00:00]RAPDU: 90 00 [03:00:00]wFMCommunicate OK [03:00:00]wFMCommunicate request_size=255 [03:00:00]MH_SAM_APDU [03:00:00]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 AA 00 00 00 00 EB 03 26 00 EF 03 [03:00:00]Write to MH i2c: E2 02 01 57 06 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 AA 00 00 00 00 EB 03 26 00 EF 03 00 00 A2 [03:00:00]Write i2c OK [03:00:00]MH_I2C_Read... [03:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:00]Read from MH i2c: E2 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 03 00 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 03 00 57 06 00 90 00 D1 [03:00:00]RAPDU: 90 00 [03:00:00]wFMCommunicate OK [03:00:00]wFMCommunicate request_size=154 [03:00:00]MH_SAM_APDU [03:00:00]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 83 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 12 00 00 00 00 07 04 06 00 B4 AA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B1 8F 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 70 2C 01 00 35 04 06 00 D8 2C DA 2C 61 67 [03:00:00]Write to MH i2c: E2 9D 00 58 06 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 83 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 12 00 00 00 00 07 04 06 00 B4 AA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B1 8F 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 70 2C 01 00 35 04 06 00 D8 2C DA 2C 61 67 00 00 79 [03:00:00]Write i2c OK [03:00:00]MH_I2C_Read... [03:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:00]Read from MH i2c: E2 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 03 00 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 03 00 58 06 00 90 00 D2 [03:00:00]RAPDU: 90 00 [03:00:00]wFMCommunicate OK [03:00:00]wFMCommunicate request_size=4 [03:00:00]MH_SAM_APDU [03:00:00]CAPDU: 80 0D 03 02 [03:00:00]Write to MH i2c: E2 08 00 59 06 80 0D 03 02 00 00 00 00 DA [03:00:00]Write i2c OK [03:00:00]MH_I2C_Read... [03:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:00:00]Read from MH i2c: E2 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 0B 00 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 0B 00 59 06 00 D5 95 6C 4B 38 FA 8B 8C 90 00 45 [03:00:00]RAPDU: D5 95 6C 4B 38 FA 8B 8C 90 00 [03:00:00]wFMCommunicate OK [03:00:00]SAM_PROTO_SignData done [03:00:00]FM_MakeSignedData done [03:00:00]CreateOFDProtocolMessage [03:00:00]wFMCommunicate request_size=4 [03:00:00]MH_SAM_APDU [03:00:00]CAPDU: 80 11 00 00 [03:00:00]Write to MH i2c: E2 08 00 5A 06 80 11 00 00 00 00 00 00 DA [03:00:00]Write i2c OK [03:00:00]MH_I2C_Read... [03:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:00]Read from MH i2c: E2 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 17 00 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: E2 17 00 5A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 2A [03:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:00:00]wFMCommunicate OK [03:00:00]CreateOFDProtocolMessage done [03:00:00]OFDSenderStorePacket 76912 [03:00:00]StoreOFDPacket docnum=76912 [03:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 9F 01 00 00 E5 7A 97 01 BA 05 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 AA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 12 00 00 00 00 07 04 06 00 B4 AA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B1 8F 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 70 2C 01 00 35 04 06 00 D8 2C DA 2C 61 67 D5 95 6C 4B 38 FA 8B 8C [03:00:00]CheckFolder [03:00:00]dirname=/storage/ofd_packets [03:00:00]CheckFolder done [03:00:00]ProducePacketName [03:00:00]name=ofd_packets/00076912 [03:00:00]NVStorageSaveData ofd_packets/00076912 [03:00:00]File name is /storage/ofd_packets/00076912 [03:00:00]Write 445 bytes [03:00:00]NVStorageSaveData done [03:00:00]OFDSenderStorePacket done [03:00:00]KKMCreateOFDPacket done [03:00:00]NVStorageSaveData kkm_last_timestamp [03:00:00]File name is /storage/kkm_last_timestamp [03:00:00]Write 4 bytes [03:00:00]NVStorageSaveData done [03:00:00]ExternCall_PrintAddStr [03:00:00]wPrintStart [03:00:00]Write to MH i2c: 01 00 00 5B 06 61 [03:00:00]Write i2c OK [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: 01 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: 01 07 00 [03:00:00]MH_I2C_Read... [03:00:00]Read from MH i2c: 01 07 00 5B 06 00 00 00 00 00 FF 0F 76 [03:00:00]RasterBufferAndPrint [03:00:00]line Счет N : (3)220966 [03:00:00]line ИНН: 02508201610067 [03:00:01]line Контрольно-Кассовый Чек [03:00:01]line ПРОДАЖА [03:00:01]line Товар: 4870216765088 [03:00:01]line Нагр.Таб.Палоч. HEETS Purple Wave [03:00:01]line 2.000 * 141.00 [03:00:01]line = 282.00 [03:00:01]line НДС 12% НСП 1% [03:00:01]line > о реализуемом товаре [03:00:01]line Товар: 48745895 [03:00:01]line Сигареты RICHMOND KS GOLD EDITION [03:00:01]line 1.000 * 155.00 [03:00:01]line = 155.00 [03:00:01]line НДС 12% НСП 1% [03:00:01]line > о реализуемом товаре [03:00:01]line ИТОГО: 437.00 [03:00:01]line НСП 1% : 3.87 [03:00:01]line НДС 12% : 46.41 [03:00:01]line Наличными: 437.00 [03:00:01]line Безнал.: 0.00 [03:00:01]line Место: АЗС № 144 "Партнер Нефть" [03:00:01]line Адрес: 720001, с. Чаек, ул. Т. Мураталиева 70, 41.933955, 74.538063 [03:00:01]line СНО: Общий режим [03:00:01]line Чек 11 23.06.2024 03:00 [03:00:01]line Смена: 396 ФФД: 1.0 [03:00:01]line ЗНМ: 0300000170 [03:00:01]line РНМ: 0000000000095696 [03:00:01]line Версия ККМ: 001 [03:00:01]line ФМ: 0000000000875009 [03:00:01]line ФД: 76912 [03:00:01]line ФПД: 237687150502247 [03:00:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240623T030001&type=1&operation_type=1&fn_number=0000000000875009&fd_number=76912&fm=237687150502247&tin=02508201610067®Number=0000000000095696&sum=43700 [03:00:01]line 0 [03:00:01]OFD Sender: Processing packet 76912 [packets to send 351, broken 350] [03:00:01]ProducePacketName [03:00:01]name=ofd_packets/00076912 [03:00:01]OFD Sender: To server: pG, [03:00:01]CommunicateWithHost lk.salyk.kg:30040 [03:00:01]ConnectInit lk.salyk.kg [03:00:01]written 0, free lines is 4095 [03:00:01]Write to MH i2c: 01 00 00 8B 06 91 [03:00:01]Write i2c OK [03:00:01]MH_I2C_Read... [03:00:01]Read from MH i2c: 01 [03:00:01]MH_I2C_Read... [03:00:01]Read from MH i2c: 01 07 00 [03:00:01]MH_I2C_Read... [03:00:01]Read from MH i2c: 01 07 00 8B 06 00 00 00 00 00 78 0C 1C [03:00:01]RasterBufferAndPrint [03:00:01]line [03:00:01]line [03:00:01]line [03:00:01]line [03:00:01]line [03:00:01]written 0, free lines is 3198 [03:00:01]MH_Cut [03:00:01]Write to MH i2c: D1 01 00 92 06 01 6A [03:00:01]Write i2c OK [03:00:01]MH_I2C_Read... [03:00:01]Read from MH i2c: D1 [03:00:01]MH_I2C_Read... [03:00:01]Read from MH i2c: D1 01 00 [03:00:01]MH_I2C_Read... [03:00:01]Read from MH i2c: D1 01 00 92 06 00 69 [03:00:01]Write to MH i2c: 01 00 00 93 06 99 [03:00:01]Write i2c OK [03:00:01]MH_I2C_Read... [03:00:02]*** Cut start [03:00:02]*** Partial cut [03:00:02]*** CUTSNS_PIN = 1 [03:00:02]*** CUTSNS_PIN = 0 [03:00:02]Connected sock=11 [03:00:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 9F 01 00 00 E5 7A 97 01 BA 05 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 AA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 12 00 00 00 00 07 04 06 00 B4 AA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 B1 8F 77 66 0E 04 04 00 8C 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 10 04 04 00 70 2C 01 00 35 04 06 00 D8 2C DA 2C 61 67 D5 95 6C 4B 38 FA 8B 8C [03:00:02]*** Brake cut motor [03:00:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 4F 00 00 00 0B CD 47 00 65 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 35 30 30 39 10 04 04 00 70 2C 01 00 F4 03 04 00 4A 36 77 66 B6 04 01 00 00 46 7D 09 62 69 7F 57 B9 [03:00:03]CommunicateWithHost err = 0 [03:00:03]CheckOFDResponse [03:00:03]1017 (14) - 77093643461234 [03:00:03]1041 (16) - 0000000000875009 [03:00:03]1040 (4) - 76912 [03:00:03]1012 (4) - 22.06.2024 20:38 [03:00:03]1206 (1) - 0 [03:00:03]OFD Sender: Remove packet 76912 [03:00:03]ProducePacketName [03:00:03]name=ofd_packets/00076912 [03:00:03]NVStorageDeleteData [03:00:03]Read from MH i2c: 01 [03:00:03]MH_I2C_Read... [03:00:03]*** Stop cut motor [03:00:03]*** Cut end [03:00:03]Read from MH i2c: 01 07 00 [03:00:03]MH_I2C_Read... [03:00:03]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FF 0F AE [03:00:03]process_action close_receipt done [03:00:03]requested_data is exist [03:00:03]produce_requested_data [03:00:03]requested_item fm.sn is exist - process it [03:00:03]wFMCommunicate request_size=4 [03:00:03]MH_SAM_APDU [03:00:03]CAPDU: 80 11 00 00 [03:00:03]Write to MH i2c: E2 08 00 94 06 80 11 00 00 00 00 00 00 14 [03:00:03]Write i2c OK [03:00:03]MH_I2C_Read... [03:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:03]Read from MH i2c: E2 [03:00:03]MH_I2C_Read... [03:00:03]Read from MH i2c: E2 17 00 [03:00:03]MH_I2C_Read... [03:00:03]Read from MH i2c: E2 17 00 94 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 64 [03:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 90 00 [03:00:03]wFMCommunicate OK [03:00:03]requested_item fd.num is exist - process it [03:00:03]SAM_PROTO_GetFieldsCounters [03:00:03]wFMCommunicate request_size=4 [03:00:03]MH_SAM_APDU [03:00:03]CAPDU: 80 13 00 00 [03:00:03]Write to MH i2c: E2 08 00 95 06 80 13 00 00 00 00 00 00 17 [03:00:03]Write i2c OK [03:00:03]MH_I2C_Read... [03:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:00:03]Read from MH i2c: E2 [03:00:03]MH_I2C_Read... [03:00:03]Read from MH i2c: E2 62 00 [03:00:03]MH_I2C_Read... [03:00:03]Read from MH i2c: E2 62 00 95 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 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 70 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [03:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 30 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 35 36 39 36 10 04 04 00 70 2C 01 00 0E 04 04 00 8C 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:00:03]wFMCommunicate OK [03:00:03]SAM_PROTO_GetFieldsCounters done [03:00:03]requested_item shift.num is exist - process it [03:00:03]requested_item shift.opened is exist - process it [03:00:03]req_shift_opened [03:00:03]FM_GetShiftState [03:00:03]SAM_PROTO_GetShiftState [03:00:03]wFMCommunicate request_size=4 [03:00:03]MH_SAM_APDU [03:00:03]CAPDU: 80 13 01 00 [03:00:03]Write to MH i2c: E2 08 00 96 06 80 13 01 00 00 00 00 00 19 [03:00:03]Write i2c OK [03:00:03]MH_I2C_Read... [03:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:00:03]Read from MH i2c: E2 [03:00:03]MH_I2C_Read... [03:00:03]Read from MH i2c: E2 0E 00 [03:00:03]MH_I2C_Read... [03:00:03]Read from MH i2c: E2 0E 00 96 06 00 09 00 01 19 6D 77 66 00 00 00 00 90 00 88 [03:00:03]RAPDU: 09 00 01 19 6D 77 66 00 00 00 00 90 00 [03:00:03]wFMCommunicate OK [03:00:03]SAM_PROTO_GetShiftState done [03:00:03]FM_GetShiftState done [03:00:03]req_shift_opened done [03:00:03]requested_item shift.open_date is exist - process it [03:00:03]req_shift_open_date [03:00:03]req_shift_open_date done [03:00:03]produce_requested_data done [03:00:03]produce_requested_data return {"fm.sn":"0000000000875009","fd.num":76912,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745} [03:00:03]process_action_free close_receipt [03:00:03]json_value_free [03:00:03]json_value_free done [03:00:03]process_json_proto returns [03:00:03]Send response to host [03:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875009","fd.num":76912,"shift.num":396,"shift.opened":1,"shift.open_date":1719102745}}} [03:00:03]free response buf [03:00:03]execute_script done [03:00:03]execute_script returns [03:00:03]free content buf [03:00:03]Sock 8.Close socket [03:00:03]Sock 8.Thread stoped [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send