[13:12:31]ConnectInit Can't connect to host [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:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15: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:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]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:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]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:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]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:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]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:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:28]ConnectInit Can't connect to host [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:06]accept exits with 7 [14:27:06]New connection [14:27:06]New thread 3066490212 created [14:27:06]Thread 3066633572 joined [14:27:06]Waiting for new connection... [14:27:06] Sock 7.Parse request [14:27:06]Sock 7.Check first char [14:27:06]Sock 7.First char is OK [14:27:06]request: POST /json_proto HTTP/1.0 [14:27:06]Method: POST [14:27:06]URL: /json_proto [14:27:06]Method is POST - this is cgi request [14:27:06]url: /json_proto [14:27:06]query_string will be loaded in cgi processing [14:27:06]execute_cgi json_proto POST (null) [14:27:06]execute_cgi path=json_proto method=POST [14:27:06]POST find Content-Length [14:27:06]Host: 172.17.42.132:8080 [14:27:06]Content-Length: 625 [14:27:06]Content-Type: application/json [14:27:06] [14:27:06]POST finish read [14:27:06]Found Content-Length = 625 [14:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47769", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:06]execute_script... [14:27: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)47769", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:06]POST & json_proto [14:27:06]process_json_proto [14:27:06]json parsed OK: [14:27:06]protocol is kg_v1.0 [14:27:06]action value=close_receipt [14:27:06]process_action close_receipt [14:27:06]cmd_close_receipt [14:27:06]MH_GetDate [14:27:06]Write to MH i2c: F0 00 00 65 24 78 [14:27:06]Write i2c OK [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: F0 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: F0 09 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: F0 09 00 65 24 00 40 59 1A 67 4C DF 56 66 82 [14:27:06]GetLastDocTimeStamp 1729774519 [14:27:06]current date 1729780032 [14:27:06]FM_GetShiftState [14:27:06]SAM_PROTO_GetShiftState [14:27:06]wFMCommunicate request_size=4 [14:27:06]MH_SAM_APDU [14:27:06]CAPDU: 80 13 01 00 [14:27:06]Write to MH i2c: E2 08 00 66 24 80 13 01 00 00 00 00 00 07 [14:27:06]Write i2c OK [14:27:06]MH_I2C_Read... [14:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:06]Read from MH i2c: E2 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 0E 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 0E 00 66 24 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 E8 [14:27:06]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:27:06]wFMCommunicate OK [14:27:06]SAM_PROTO_GetShiftState done [14:27:06]FM_GetShiftState done [14:27:06]opened in 1729728964 [14:27:06]opened+sec_in_day 1729815364 [14:27:06]quantity*price = 13900 [14:27:06]sum+1 = 13901 [14:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 77 24.10.2024 14:27 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63463 ФПД: 230692007619726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142712&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63463&fm=230692007619726&tin=02508201610067®Number=0000000000091619&sum=13900 0 [14:27:07]StoreToDocumentArchive [14:27:07]shift 547 fd 63463 [14:27:07]save to /storage/0547/doc_00063463 [14:27:07]save last doc name /storage/0547/doc_00063463 to /storage/kkm_last_doc_name [14:27:07]save OK [14:27:07]Clear old archive folders... [14:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:27:07]tlvbuf is 00C03550 [14:27:07]SAM_PROTO_ClearQueue [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 09 00 00 [14:27:07]Write to MH i2c: E2 08 00 73 24 80 09 00 00 00 00 00 00 09 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 73 24 00 90 00 0B [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]SAM_PROTO_ClearQueue done [14:27:07]KKMCreateOFDPacket [14:27:07]OFDProtocolAddRootSTLVToBuf [14:27:07]FM_MakeSignedData [14:27:07]FM_MakeSignedData [14:27:07]SAM_PROTO_SignData [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 0D 01 02 [14:27:07]Write to MH i2c: E2 08 00 74 24 80 0D 01 02 00 00 00 00 11 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 74 24 00 90 00 0C [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]wFMCommunicate request_size=255 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 4D 00 00 00 F4 03 04 00 40 59 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [14:27:07]Write to MH i2c: E2 02 01 75 24 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 4D 00 00 00 F4 03 04 00 40 59 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 00 00 DE [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 75 24 00 90 00 0D [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]wFMCommunicate request_size=37 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E7 F7 00 00 35 04 06 00 D1 D0 2B 2A AC 8E [14:27:07]Write to MH i2c: E2 28 00 76 24 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E7 F7 00 00 35 04 06 00 D1 D0 2B 2A AC 8E 00 00 7F [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:08]Read from MH i2c: E2 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 76 24 00 90 00 0E [14:27:08]RAPDU: 90 00 [14:27:08]wFMCommunicate OK [14:27:08]wFMCommunicate request_size=4 [14:27:08]MH_SAM_APDU [14:27:08]CAPDU: 80 0D 03 02 [14:27:08]Write to MH i2c: E2 08 00 77 24 80 0D 03 02 00 00 00 00 16 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:08]Read from MH i2c: E2 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 0B 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 0B 00 77 24 00 EF 9C 85 A9 66 FD ED 04 90 00 24 [14:27:08]RAPDU: EF 9C 85 A9 66 FD ED 04 90 00 [14:27:08]wFMCommunicate OK [14:27:08]SAM_PROTO_SignData done [14:27:08]FM_MakeSignedData done [14:27:08]CreateOFDProtocolMessage [14:27:08]wFMCommunicate request_size=4 [14:27:08]MH_SAM_APDU [14:27:08]CAPDU: 80 11 00 00 [14:27:08]Write to MH i2c: E2 08 00 78 24 80 11 00 00 00 00 00 00 16 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:08]Read from MH i2c: E2 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 17 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 17 00 78 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6F [14:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:27:08]wFMCommunicate OK [14:27:08]CreateOFDProtocolMessage done [14:27:08]OFDSenderStorePacket 63463 [14:27:08]StoreOFDPacket docnum=63463 [14:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 E3 11 22 01 E5 80 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 4D 00 00 00 F4 03 04 00 40 59 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E7 F7 00 00 35 04 06 00 D1 D0 2B 2A AC 8E EF 9C 85 A9 66 FD ED 04 [14:27:08]CheckFolder [14:27:08]dirname=/storage/ofd_packets [14:27:08]CheckFolder done [14:27:08]ProducePacketName [14:27:08]name=ofd_packets/00063463 [14:27:08]NVStorageSaveData ofd_packets/00063463 [14:27:08]File name is /storage/ofd_packets/00063463 [14:27:08]Write 328 bytes [14:27:08]NVStorageSaveData done [14:27:08]OFDSenderStorePacket done [14:27:08]KKMCreateOFDPacket done [14:27:08]NVStorageSaveData kkm_last_timestamp [14:27:08]File name is /storage/kkm_last_timestamp [14:27:08]Write 4 bytes [14:27:08]NVStorageSaveData done [14:27:08]ExternCall_PrintAddStr [14:27:08]wPrintStart [14:27:08]Write to MH i2c: 01 00 00 79 24 9D [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 79 24 00 00 00 00 00 FF 0F B2 [14:27:08]RasterBufferAndPrint [14:27:08]line Счет N : (3)47769 [14:27:08]line ИНН: 02508201610067 [14:27:08]line Контрольно-Кассовый Чек [14:27:08]line ПРОДАЖА [14:27:08]line Товар: 48741224 [14:27:08]line Сигареты Winston Super Slims Blue [14:27:08]line 1.000 * 139.00 [14:27:08]line = 139.00 [14:27:08]line НДС 12% НСП 1% [14:27:08]line > о реализуемом товаре [14:27:08]line ИТОГО: 139.00 [14:27:08]line НСП 1% : 1.23 [14:27:08]line НДС 12% : 14.76 [14:27:08]line Наличными: 139.00 [14:27:08]line Безнал.: 0.00 [14:27:08]line Место: АЗС № 86 "Партнер Нефть" [14:27:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:27:08]line СНО: Общий режим [14:27:08]line Чек 77 24.10.2024 14:27 [14:27:08]line Смена: 547 ФФД: 1.0 [14:27:08]line ЗНМ: 0300000154 [14:27:08]line РНМ: 0000000000091619 [14:27:08]line Версия ККМ: 001 [14:27:08]line ФМ: 0000000000874676 [14:27:08]line ФД: 63463 [14:27:08]line ФПД: 230692007619726 [14:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142712&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63463&fm=230692007619726&tin=02508201610067®Number=0000000000091619&sum=13900 [14:27:08]line 0 [14:27:08]OFD Sender: Processing packet 63463 [packets to send 232, broken 231] [14:27:08]ProducePacketName [14:27:08]name=ofd_packets/00063463 [14:27:08]OFD Sender: To server: pG, [14:27:08]CommunicateWithHost lk.salyk.kg:30040 [14:27:08]ConnectInit lk.salyk.kg [14:27:08]written 0, free lines is 4095 [14:27:08]Connected sock=11 [14:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 E3 11 22 01 E5 80 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 4D 00 00 00 F4 03 04 00 40 59 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E7 F7 00 00 35 04 06 00 D1 D0 2B 2A AC 8E EF 9C 85 A9 66 FD ED 04 [14:27:08]Write to MH i2c: 01 00 00 A2 24 C6 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 A2 24 00 00 00 00 00 FA 0C D3 [14:27:08]RasterBufferAndPrint [14:27:08]line [14:27:08]line [14:27:08]line [14:27:08]line [14:27:08]line [14:27:08]written 0, free lines is 3328 [14:27:08]MH_Cut [14:27:08]Write to MH i2c: D1 01 00 A9 24 01 9F [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: D1 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: D1 01 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: D1 01 00 A9 24 00 9E [14:27:08]Write to MH i2c: 01 00 00 AA 24 CE [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CC 9C 47 00 89 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 34 36 37 36 10 04 04 00 E7 F7 00 00 F4 03 04 00 34 03 1A 67 B6 04 01 00 00 43 2A 78 CD 34 97 18 CF [14:27:08]CommunicateWithHost err = 0 [14:27:08]CheckOFDResponse [14:27:08]1017 (14) - 77093643461234 [14:27:08]1041 (16) - 0000000000874676 [14:27:08]1040 (4) - 63463 [14:27:08]1012 (4) - 24.10.2024 08:20 [14:27:08]1206 (1) - 0 [14:27:08]OFD Sender: Remove packet 63463 [14:27:08]ProducePacketName [14:27:08]name=ofd_packets/00063463 [14:27:08]NVStorageDeleteData [14:27:09]OFD Sender: No OFD packet to send [14:27:09]*** Cut start [14:27:09]*** Partial cut [14:27:09]*** CUTSNS_PIN = 1 [14:27:09]*** CUTSNS_PIN = 0 [14:27:09]*** Brake cut motor [14:27:10]Read from MH i2c: 01 [14:27:10]MH_I2C_Read... [14:27:10]*** Stop cut motor [14:27:10]*** Cut end [14:27:10]Read from MH i2c: 01 07 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: 01 07 00 AA 24 00 00 00 00 00 FF 0F E3 [14:27:10]process_action close_receipt done [14:27:10]requested_data is exist [14:27:10]produce_requested_data [14:27:10]requested_item fm.sn is exist - process it [14:27:10]wFMCommunicate request_size=4 [14:27:10]MH_SAM_APDU [14:27:10]CAPDU: 80 11 00 00 [14:27:10]Write to MH i2c: E2 08 00 AB 24 80 11 00 00 00 00 00 00 49 [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 17 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 17 00 AB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A2 [14:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:27:10]wFMCommunicate OK [14:27:10]requested_item fd.num is exist - process it [14:27:10]SAM_PROTO_GetFieldsCounters [14:27:10]wFMCommunicate request_size=4 [14:27:10]MH_SAM_APDU [14:27:10]CAPDU: 80 13 00 00 [14:27:10]Write to MH i2c: E2 08 00 AC 24 80 13 00 00 00 00 00 00 4C [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 62 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 62 00 AC 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 E7 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [14:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 E7 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:10]wFMCommunicate OK [14:27:10]SAM_PROTO_GetFieldsCounters done [14:27:10]requested_item shift.num is exist - process it [14:27:10]requested_item shift.opened is exist - process it [14:27:10]req_shift_opened [14:27:10]FM_GetShiftState [14:27:10]SAM_PROTO_GetShiftState [14:27:10]wFMCommunicate request_size=4 [14:27:10]MH_SAM_APDU [14:27:10]CAPDU: 80 13 01 00 [14:27:10]Write to MH i2c: E2 08 00 AD 24 80 13 01 00 00 00 00 00 4E [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 AD 24 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 2F [14:27:10]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:27:10]wFMCommunicate OK [14:27:10]SAM_PROTO_GetShiftState done [14:27:10]FM_GetShiftState done [14:27:10]req_shift_opened done [14:27:10]requested_item shift.open_date is exist - process it [14:27:10]req_shift_open_date [14:27:10]req_shift_open_date done [14:27:10]produce_requested_data done [14:27:10]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63463,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [14:27:10]process_action_free close_receipt [14:27:10]json_value_free [14:27:10]json_value_free done [14:27:10]process_json_proto returns [14:27:10]Send response to host [14:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63463,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [14:27:10]free response buf [14:27:10]execute_script done [14:27:10]execute_script returns [14:27:10]free content buf [14:27:10]Sock 7.Close socket [14:27:10]Sock 7.Thread stoped [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:45]accept exits with 9 [14:30:45]New connection [14:30:45]New thread 3066633572 created [14:30:45]Thread 3066490212 joined [14:30:45]Waiting for new connection... [14:30:45] Sock 9.Parse request [14:30:45]Sock 9.Check first char [14:30:45]Sock 9.First char is OK [14:30:45]request: POST /json_proto HTTP/1.0 [14:30:45]Method: POST [14:30:45]URL: /json_proto [14:30:45]Method is POST - this is cgi request [14:30:45]url: /json_proto [14:30:45]query_string will be loaded in cgi processing [14:30:45]execute_cgi json_proto POST (null) [14:30:45]execute_cgi path=json_proto method=POST [14:30:45]POST find Content-Length [14:30:45]Host: 172.17.42.132:8080 [14:30:45]Content-Length: 882 [14:30:45]Content-Type: application/json [14:30:45] [14:30:45]POST finish read [14:30:45]Found Content-Length = 882 [14:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47770", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 298.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:45]execute_script... [14:30: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)47770", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 298.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:45]POST & json_proto [14:30:45]process_json_proto [14:30:45]json parsed OK: [14:30:45]protocol is kg_v1.0 [14:30:45]action value=close_receipt [14:30:45]process_action close_receipt [14:30:45]cmd_close_receipt [14:30:45]MH_GetDate [14:30:45]Write to MH i2c: F0 00 00 AE 24 C1 [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: F0 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: F0 09 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: F0 09 00 AE 24 00 1B 5A 1A 67 4C DF 56 66 A7 [14:30:45]GetLastDocTimeStamp 1729780032 [14:30:45]current date 1729780251 [14:30:45]FM_GetShiftState [14:30:45]SAM_PROTO_GetShiftState [14:30:45]wFMCommunicate request_size=4 [14:30:45]MH_SAM_APDU [14:30:45]CAPDU: 80 13 01 00 [14:30:45]Write to MH i2c: E2 08 00 AF 24 80 13 01 00 00 00 00 00 50 [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:45]Read from MH i2c: E2 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 0E 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 0E 00 AF 24 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 31 [14:30:45]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:30:45]wFMCommunicate OK [14:30:45]SAM_PROTO_GetShiftState done [14:30:45]FM_GetShiftState done [14:30:45]opened in 1729728964 [14:30:45]opened+sec_in_day 1729815364 [14:30:45]quantity*price = 28800 [14:30:45]sum+1 = 28801 [14:30:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 298.00 НСП 1% : 2.64 НДС 12% : 31.64 Наличными: 298.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 78 24.10.2024 14:30 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63464 ФПД: 68774439023990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143051&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63464&fm=68774439023990&tin=02508201610067®Number=0000000000091619&sum=29800 0 [14:30:46]StoreToDocumentArchive [14:30:46]shift 547 fd 63464 [14:30:46]save to /storage/0547/doc_00063464 [14:30:46]save last doc name /storage/0547/doc_00063464 to /storage/kkm_last_doc_name [14:30:46]save OK [14:30:46]Clear old archive folders... [14:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=383 [14:30:46]tlvbuf is 00B97A60 [14:30:46]SAM_PROTO_ClearQueue [14:30:46]wFMCommunicate request_size=4 [14:30:46]MH_SAM_APDU [14:30:46]CAPDU: 80 09 00 00 [14:30:46]Write to MH i2c: E2 08 00 BC 24 80 09 00 00 00 00 00 00 52 [14:30:46]Write i2c OK [14:30:46]MH_I2C_Read... [14:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:46]Read from MH i2c: E2 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 03 00 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 03 00 BC 24 00 90 00 54 [14:30:46]RAPDU: 90 00 [14:30:46]wFMCommunicate OK [14:30:46]SAM_PROTO_ClearQueue done [14:30:46]KKMCreateOFDPacket [14:30:46]OFDProtocolAddRootSTLVToBuf [14:30:46]FM_MakeSignedData [14:30:46]FM_MakeSignedData [14:30:46]SAM_PROTO_SignData [14:30:46]wFMCommunicate request_size=4 [14:30:46]MH_SAM_APDU [14:30:46]CAPDU: 80 0D 01 02 [14:30:46]Write to MH i2c: E2 08 00 BD 24 80 0D 01 02 00 00 00 00 5A [14:30:46]Write i2c OK [14:30:46]MH_I2C_Read... [14:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:46]Read from MH i2c: E2 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 03 00 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 03 00 BD 24 00 90 00 55 [14:30:46]RAPDU: 90 00 [14:30:46]wFMCommunicate OK [14:30:46]wFMCommunicate request_size=255 [14:30:46]MH_SAM_APDU [14:30:46]CAPDU: 80 0D 02 02 FA 03 00 7F 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 [14:30:46]Write to MH i2c: E2 02 01 BE 24 80 0D 02 02 FA 00 03 00 7F 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 [14:30:46]Write i2c OK [14:30:46]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 BE 24 00 90 00 56 [14:30:47]RAPDU: 90 00 [14:30:47]wFMCommunicate OK [14:30:47]wFMCommunicate request_size=142 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 0D 02 02 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1B 5A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E8 F7 00 00 35 04 06 00 3E 8C CC 01 F5 76 [14:30:47]Write to MH i2c: E2 91 00 BF 24 80 0D 02 02 89 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1B 5A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E8 F7 00 00 35 04 06 00 3E 8C CC 01 F5 76 00 00 32 [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 03 00 BF 24 00 90 00 57 [14:30:47]RAPDU: 90 00 [14:30:47]wFMCommunicate OK [14:30:47]wFMCommunicate request_size=4 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 0D 03 02 [14:30:47]Write to MH i2c: E2 08 00 C0 24 80 0D 03 02 00 00 00 00 5F [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 0B 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 0B 00 C0 24 00 02 81 FA BA B7 CB A3 83 90 00 3F [14:30:47]RAPDU: 02 81 FA BA B7 CB A3 83 90 00 [14:30:47]wFMCommunicate OK [14:30:47]SAM_PROTO_SignData done [14:30:47]FM_MakeSignedData done [14:30:47]CreateOFDProtocolMessage [14:30:47]wFMCommunicate request_size=4 [14:30:47]MH_SAM_APDU [14:30:47]CAPDU: 80 11 00 00 [14:30:47]Write to MH i2c: E2 08 00 C1 24 80 11 00 00 00 00 00 00 5F [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 17 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 17 00 C1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B8 [14:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:30:47]wFMCommunicate OK [14:30:47]CreateOFDProtocolMessage done [14:30:47]OFDSenderStorePacket 63464 [14:30:47]StoreOFDPacket docnum=63464 [14:30:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 93 01 00 00 FD C4 8B 01 D2 A3 5A 03 01 00 03 00 7F 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1B 5A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E8 F7 00 00 35 04 06 00 3E 8C CC 01 F5 76 02 81 FA BA B7 CB A3 83 [14:30:47]CheckFolder [14:30:47]dirname=/storage/ofd_packets [14:30:47]CheckFolder done [14:30:47]ProducePacketName [14:30:47]name=ofd_packets/00063464 [14:30:47]NVStorageSaveData ofd_packets/00063464 [14:30:47]File name is /storage/ofd_packets/00063464 [14:30:47]Write 433 bytes [14:30:47]NVStorageSaveData done [14:30:47]OFDSenderStorePacket done [14:30:47]KKMCreateOFDPacket done [14:30:47]NVStorageSaveData kkm_last_timestamp [14:30:47]File name is /storage/kkm_last_timestamp [14:30:47]Write 4 bytes [14:30:47]NVStorageSaveData done [14:30:47]ExternCall_PrintAddStr [14:30:47]wPrintStart [14:30:47]Write to MH i2c: 01 00 00 C2 24 E6 [14:30:47]Write i2c OK [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: 01 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: 01 07 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: 01 07 00 C2 24 00 00 00 00 00 FF 0F FB [14:30:47]RasterBufferAndPrint [14:30:47]line Счет N : (3)47770 [14:30:47]line ИНН: 02508201610067 [14:30:47]line Контрольно-Кассовый Чек [14:30:47]line ПРОДАЖА [14:30:47]line Товар: 48743570 [14:30:47]line Сигареты Winston XStyle Blue [14:30:47]line 2.000 * 144.00 [14:30:47]line = 288.00 [14:30:47]line НДС 12% НСП 1% [14:30:47]line > о реализуемом товаре [14:30:47]line Товар: 46226617 [14:30:47]line Mentos ПВ Нежная Мята 6*100*2г [14:30:47]line 1.000 * 10.00 [14:30:47]line = 10.00 [14:30:47]line НДС 12% НСП 1% [14:30:47]line > о реализуемом товаре [14:30:47]line ИТОГО: 298.00 [14:30:47]line НСП 1% : 2.64 [14:30:47]line НДС 12% : 31.64 [14:30:47]line Наличными: 298.00 [14:30:47]line Безнал.: 0.00 [14:30:47]line Место: АЗС № 86 "Партнер Нефть" [14:30:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:30:47]line СНО: Общий режим [14:30:47]line Чек 78 24.10.2024 14:30 [14:30:47]line Смена: 547 ФФД: 1.0 [14:30:47]line ЗНМ: 0300000154 [14:30:47]line РНМ: 0000000000091619 [14:30:47]line Версия ККМ: 001 [14:30:47]line ФМ: 0000000000874676 [14:30:47]line ФД: 63464 [14:30:47]line ФПД: 68774439023990 [14:30:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143051&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63464&fm=68774439023990&tin=02508201610067®Number=0000000000091619&sum=29800 [14:30:47]line 0 [14:30:47]OFD Sender: Processing packet 63464 [packets to send 232, broken 231] [14:30:47]ProducePacketName [14:30:47]name=ofd_packets/00063464 [14:30:47]OFD Sender: To server: pG, [14:30:47]CommunicateWithHost lk.salyk.kg:30040 [14:30:47]ConnectInit lk.salyk.kg [14:30:47]written 0, free lines is 4095 [14:30:48]Connected sock=10 [14:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 93 01 00 00 FD C4 8B 01 D2 A3 5A 03 01 00 03 00 7F 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1B 5A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E8 F7 00 00 35 04 06 00 3E 8C CC 01 F5 76 02 81 FA BA B7 CB A3 83 [14:30:48]Write to MH i2c: 01 00 00 F1 24 15 [14:30:48]Write i2c OK [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: 01 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: 01 07 00 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: 01 07 00 F1 24 00 00 00 00 00 B5 0C DD [14:30:48]RasterBufferAndPrint [14:30:48]line [14:30:48]line [14:30:48]line [14:30:48]line [14:30:48]line [14:30:48]written 0, free lines is 3259 [14:30:48]MH_Cut [14:30:48]Write to MH i2c: D1 01 00 F8 24 01 EE [14:30:48]Write i2c OK [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: D1 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: D1 01 00 [14:30:48]MH_I2C_Read... [14:30:48]Read from MH i2c: D1 01 00 F8 24 00 ED [14:30:48]Write to MH i2c: 01 00 00 F9 24 1D [14:30:48]Write i2c OK [14:30:48]MH_I2C_Read... [14:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CC C0 47 00 05 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 34 36 37 36 10 04 04 00 E8 F7 00 00 F4 03 04 00 10 04 1A 67 B6 04 01 00 00 51 3B 8A 2B AA 94 EB 69 [14:30:48]CommunicateWithHost err = 0 [14:30:48]CheckOFDResponse [14:30:48]1017 (14) - 77093643461234 [14:30:48]1041 (16) - 0000000000874676 [14:30:48]1040 (4) - 63464 [14:30:48]1012 (4) - 24.10.2024 08:23 [14:30:48]1206 (1) - 0 [14:30:48]OFD Sender: Remove packet 63464 [14:30:48]ProducePacketName [14:30:48]name=ofd_packets/00063464 [14:30:48]NVStorageDeleteData [14:30:48]OFD Sender: No OFD packet to send [14:30:48]*** Cut start [14:30:48]*** Partial cut [14:30:48]*** CUTSNS_PIN = 1 [14:30:49]*** CUTSNS_PIN = 0 [14:30:49]*** Brake cut motor [14:30:49]Read from MH i2c: 01 [14:30:49]MH_I2C_Read... [14:30:49]*** Stop cut motor [14:30:49]*** Cut end [14:30:49]Read from MH i2c: 01 07 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: 01 07 00 F9 24 00 00 00 00 00 FF 0F 32 [14:30:49]process_action close_receipt done [14:30:49]requested_data is exist [14:30:49]produce_requested_data [14:30:49]requested_item fm.sn is exist - process it [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 11 00 00 [14:30:49]Write to MH i2c: E2 08 00 FA 24 80 11 00 00 00 00 00 00 98 [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 17 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 17 00 FA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F1 [14:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:30:49]wFMCommunicate OK [14:30:49]requested_item fd.num is exist - process it [14:30:49]SAM_PROTO_GetFieldsCounters [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 13 00 00 [14:30:49]Write to MH i2c: E2 08 00 FB 24 80 13 00 00 00 00 00 00 9B [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 62 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 62 00 FB 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 E8 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [14:30:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 E8 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:49]wFMCommunicate OK [14:30:49]SAM_PROTO_GetFieldsCounters done [14:30:49]requested_item shift.num is exist - process it [14:30:49]requested_item shift.opened is exist - process it [14:30:49]req_shift_opened [14:30:49]FM_GetShiftState [14:30:49]SAM_PROTO_GetShiftState [14:30:49]wFMCommunicate request_size=4 [14:30:49]MH_SAM_APDU [14:30:49]CAPDU: 80 13 01 00 [14:30:49]Write to MH i2c: E2 08 00 FC 24 80 13 01 00 00 00 00 00 9D [14:30:49]Write i2c OK [14:30:49]MH_I2C_Read... [14:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:49]Read from MH i2c: E2 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 0E 00 [14:30:49]MH_I2C_Read... [14:30:49]Read from MH i2c: E2 0E 00 FC 24 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 7E [14:30:49]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:30:49]wFMCommunicate OK [14:30:49]SAM_PROTO_GetShiftState done [14:30:49]FM_GetShiftState done [14:30:49]req_shift_opened done [14:30:49]requested_item shift.open_date is exist - process it [14:30:49]req_shift_open_date [14:30:49]req_shift_open_date done [14:30:49]produce_requested_data done [14:30:49]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63464,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [14:30:49]process_action_free close_receipt [14:30:49]json_value_free [14:30:49]json_value_free done [14:30:49]process_json_proto returns [14:30:49]Send response to host [14:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63464,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [14:30:49]free response buf [14:30:49]execute_script done [14:30:49]execute_script returns [14:30:49]free content buf [14:30:49]Sock 9.Close socket [14:30:49]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:42]accept exits with 7 [14:32:42]New connection [14:32:42]New thread 3066490212 created [14:32:42]Thread 3066633572 joined [14:32:42]Waiting for new connection... [14:32:42] Sock 7.Parse request [14:32:42]Sock 7.Check first char [14:32:42]Sock 7.First char is OK [14:32:42]request: POST /json_proto HTTP/1.0 [14:32:42]Method: POST [14:32:42]URL: /json_proto [14:32:42]Method is POST - this is cgi request [14:32:42]url: /json_proto [14:32:42]query_string will be loaded in cgi processing [14:32:42]execute_cgi json_proto POST (null) [14:32:42]execute_cgi path=json_proto method=POST [14:32:42]POST find Content-Length [14:32:42]Host: 172.17.42.132:8080 [14:32:42]Content-Length: 2637 [14:32:42]Content-Type: application/json [14:32:42] [14:32:42]POST finish read [14:32:42]Found Content-Length = 2637 [14:32:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47771", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 79.29, "quantity" : 1.000, "sum" : 79.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 94.16, "quantity" : 1.000, "sum" : 94.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 34.69, "quantity" : 1.000, "sum" : 34.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 89.20, "quantity" : 1.000, "sum" : 89.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 98.12, "quantity" : 1.000, "sum" : 98.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 163.54, "quantity" : 1.000, "sum" : 163.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000512994909", "name": "\u0440\u0401\u044C\u0445\u044B\u0440\u0444 \u0401\u044E\u044B\u044B\u0448 \u0401\u0443\u0445\u0401 \u0448\u044D\u0448", "price" : 43.61, "quantity" : 1.000, "sum" : 43.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: Mbank", "payments": [ { "type": 1, "sum" : 602.61 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:42]execute_script... [14:32:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47771", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 79.29, "quantity" : 1.000, "sum" : 79.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 94.16, "quantity" : 1.000, "sum" : 94.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 34.69, "quantity" : 1.000, "sum" : 34.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 89.20, "quantity" : 1.000, "sum" : 89.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 98.12, "quantity" : 1.000, "sum" : 98.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 163.54, "quantity" : 1.000, "sum" : 163.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000512994909", "name": "\u0440\u0401\u044C\u0445\u044B\u0440\u0444 \u0401\u044E\u044B\u044B\u0448 \u0401\u0443\u0445\u0401 \u0448\u044D\u0448", "price" : 43.61, "quantity" : 1.000, "sum" : 43.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: Mbank", "payments": [ { "type": 1, "sum" : 602.61 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:42]POST & json_proto [14:32:42]process_json_proto [14:32:42]json parsed OK: [14:32:42]protocol is kg_v1.0 [14:32:42]action value=close_receipt [14:32:42]process_action close_receipt [14:32:42]cmd_close_receipt [14:32:42]MH_GetDate [14:32:42]Write to MH i2c: F0 00 00 FD 24 10 [14:32:42]Write i2c OK [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: F0 [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: F0 09 00 [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: F0 09 00 FD 24 00 91 5A 1A 67 4C DF 56 66 6C [14:32:42]GetLastDocTimeStamp 1729780251 [14:32:42]current date 1729780369 [14:32:42]FM_GetShiftState [14:32:42]SAM_PROTO_GetShiftState [14:32:42]wFMCommunicate request_size=4 [14:32:42]MH_SAM_APDU [14:32:42]CAPDU: 80 13 01 00 [14:32:42]Write to MH i2c: E2 08 00 FE 24 80 13 01 00 00 00 00 00 9F [14:32:42]Write i2c OK [14:32:42]MH_I2C_Read... [14:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:42]Read from MH i2c: E2 [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: E2 0E 00 [14:32:42]MH_I2C_Read... [14:32:42]Read from MH i2c: E2 0E 00 FE 24 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 80 [14:32:42]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:32:42]wFMCommunicate OK [14:32:42]SAM_PROTO_GetShiftState done [14:32:42]FM_GetShiftState done [14:32:42]opened in 1729728964 [14:32:42]opened+sec_in_day 1729815364 [14:32:42]quantity*price = 7929 [14:32:42]sum+1 = 7930 [14:32:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 94.16 = 94.16 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100091993 Шок Батончик Милки Вей 26г 1.000 * 34.69 = 34.69 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 89.20 = 89.20 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870022003312 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 98.12 = 98.12 НДС 12% НСП 1% > о реализуемом товаре Товар: 4680988568943 Жид/ст ПН апельсин летняя 4,5л 1.000 * 163.54 = 163.54 НДС 12% НСП 1% > о реализуемом товаре Товар: 4000512994909 рЁьхырф Ёюыыш ЁухЁ шэш 1.000 * 43.61 = 43.61 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 602.61 НСП 1% : 5.34 НДС 12% : 63.99 Наличными: 0.00 Безнал.: 602.61 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 79 24.10.2024 14:32 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63465 ФПД: 10453846583972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143249&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63465&fm=10453846583972&tin=02508201610067®Number=0000000000091619&sum=60261 0 [14:32:44]StoreToDocumentArchive [14:32:44]shift 547 fd 63465 [14:32:44]save to /storage/0547/doc_00063465 [14:32:44]save last doc name /storage/0547/doc_00063465 to /storage/kkm_last_doc_name [14:32:44]save OK [14:32:44]Clear old archive folders... [14:32:44]ProcessDocumentItem done err = 0, tmpTLVsize=1031 [14:32:44]tlvbuf is 00B975A0 [14:32:44]SAM_PROTO_ClearQueue [14:32:44]wFMCommunicate request_size=4 [14:32:44]MH_SAM_APDU [14:32:44]CAPDU: 80 09 00 00 [14:32:44]Write to MH i2c: E2 08 00 0B 25 80 09 00 00 00 00 00 00 A2 [14:32:44]Write i2c OK [14:32:44]MH_I2C_Read... [14:32:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:44]Read from MH i2c: E2 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: E2 03 00 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: E2 03 00 0B 25 00 90 00 A4 [14:32:44]RAPDU: 90 00 [14:32:44]wFMCommunicate OK [14:32:44]SAM_PROTO_ClearQueue done [14:32:44]KKMCreateOFDPacket [14:32:44]OFDProtocolAddRootSTLVToBuf [14:32:44]FM_MakeSignedData [14:32:44]FM_MakeSignedData [14:32:44]SAM_PROTO_SignData [14:32:44]wFMCommunicate request_size=4 [14:32:44]MH_SAM_APDU [14:32:44]CAPDU: 80 0D 01 02 [14:32:44]Write to MH i2c: E2 08 00 0C 25 80 0D 01 02 00 00 00 00 AA [14:32:44]Write i2c OK [14:32:44]MH_I2C_Read... [14:32:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:44]Read from MH i2c: E2 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: E2 03 00 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: E2 03 00 0C 25 00 90 00 A5 [14:32:44]RAPDU: 90 00 [14:32:44]wFMCommunicate OK [14:32:44]wFMCommunicate request_size=255 [14:32:44]MH_SAM_APDU [14:32:44]CAPDU: 80 0D 02 02 FA 03 00 07 04 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 1E 00 00 00 00 13 04 06 00 F9 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 C8 24 00 00 00 00 F2 03 01 [14:32:44]Write to MH i2c: E2 02 01 0D 25 80 0D 02 02 FA 00 03 00 07 04 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 1E 00 00 00 00 13 04 06 00 F9 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 C8 24 00 00 00 00 F2 03 01 00 00 F1 [14:32:44]Write i2c OK [14:32:44]MH_I2C_Read... [14:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:44]Read from MH i2c: E2 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: E2 03 00 [14:32:44]MH_I2C_Read... [14:32:44]Read from MH i2c: E2 03 00 0D 25 00 90 00 A6 [14:32:44]RAPDU: 90 00 [14:32:44]wFMCommunicate OK [14:32:44]wFMCommunicate request_size=255 [14:32:44]MH_SAM_APDU [14:32:44]CAPDU: 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 8D 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 22 00 00 00 00 13 04 06 00 D8 22 00 00 00 00 F2 03 01 00 01 F6 [14:32:44]Write to MH i2c: E2 02 01 0E 25 80 0D 02 02 FA 00 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 8D 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 22 00 00 00 00 13 04 06 00 D8 22 00 00 00 00 F2 03 01 00 01 F6 00 00 44 [14:32:44]Write i2c OK [14:32:44]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 0E 25 00 90 00 A7 [14:32:45]RAPDU: 90 00 [14:32:45]wFMCommunicate OK [14:32:45]wFMCommunicate request_size=255 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 0D 02 02 FA 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 E2 3F 00 00 00 00 13 04 06 00 E2 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 [14:32:45]Write to MH i2c: E2 02 01 0F 25 80 0D 02 02 FA 00 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 E2 3F 00 00 00 00 13 04 06 00 E2 3F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 C9 [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 0F 25 00 90 00 A8 [14:32:45]RAPDU: 90 00 [14:32:45]wFMCommunicate OK [14:32:45]wFMCommunicate request_size=255 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 30 30 35 31 32 39 39 34 39 30 39 06 04 29 00 D1 80 D0 81 D1 8C D1 85 D1 8B D1 80 D1 84 20 D0 81 D1 8E D1 8B D1 8B D1 88 20 D0 81 D1 83 D1 85 D0 81 20 D1 88 D1 8D D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 09 11 00 00 00 00 13 04 06 00 09 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 91 5A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 [14:32:45]Write to MH i2c: E2 02 01 10 25 80 0D 02 02 FA 00 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 30 30 35 31 32 39 39 34 39 30 39 06 04 29 00 D1 80 D0 81 D1 8C D1 85 D1 8B D1 80 D1 84 20 D0 81 D1 8E D1 8B D1 8B D1 88 20 D0 81 D1 83 D1 85 D0 81 20 D1 88 D1 8D D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 09 11 00 00 00 00 13 04 06 00 09 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 91 5A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 00 FA [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 10 25 00 90 00 A9 [14:32:45]RAPDU: 90 00 [14:32:45]wFMCommunicate OK [14:32:45]wFMCommunicate request_size=40 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E9 F7 00 00 35 04 06 00 09 81 F9 CF EA A4 [14:32:45]Write to MH i2c: E2 2B 00 11 25 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E9 F7 00 00 35 04 06 00 09 81 F9 CF EA A4 00 00 33 [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 03 00 11 25 00 90 00 AA [14:32:45]RAPDU: 90 00 [14:32:45]wFMCommunicate OK [14:32:45]wFMCommunicate request_size=4 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 0D 03 02 [14:32:45]Write to MH i2c: E2 08 00 12 25 80 0D 03 02 00 00 00 00 B2 [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 0B 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 0B 00 12 25 00 F9 40 09 BC 31 E2 36 16 90 00 10 [14:32:45]RAPDU: F9 40 09 BC 31 E2 36 16 90 00 [14:32:45]wFMCommunicate OK [14:32:45]SAM_PROTO_SignData done [14:32:45]FM_MakeSignedData done [14:32:45]CreateOFDProtocolMessage [14:32:45]wFMCommunicate request_size=4 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 11 00 00 [14:32:45]Write to MH i2c: E2 08 00 13 25 80 11 00 00 00 00 00 00 B2 [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 17 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 17 00 13 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0B [14:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:32:45]wFMCommunicate OK [14:32:45]CreateOFDProtocolMessage done [14:32:45]OFDSenderStorePacket 63465 [14:32:45]StoreOFDPacket docnum=63465 [14:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 1B 04 00 00 50 0F 13 04 5C E1 5A 03 01 00 03 00 07 04 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 1E 00 00 00 00 13 04 06 00 F9 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 C8 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 8D 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 22 00 00 00 00 13 04 06 00 D8 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 E2 3F 00 00 00 00 13 04 06 00 E2 3F 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 30 30 30 35 31 32 39 39 34 39 30 39 06 04 29 00 D1 80 D0 81 D1 8C D1 85 D1 8B D1 80 D1 84 20 D0 81 D1 8E D1 8B D1 8B D1 88 20 D0 81 D1 83 D1 85 D0 81 20 D1 88 D1 8D D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 09 11 00 00 00 00 13 04 06 00 09 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 91 5A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E9 F7 00 00 35 04 06 00 09 81 F9 CF EA A4 F9 40 09 BC 31 E2 36 16 [14:32:46]CheckFolder [14:32:46]dirname=/storage/ofd_packets [14:32:46]CheckFolder done [14:32:46]ProducePacketName [14:32:46]name=ofd_packets/00063465 [14:32:46]NVStorageSaveData ofd_packets/00063465 [14:32:46]File name is /storage/ofd_packets/00063465 [14:32:46]Write 1081 bytes [14:32:46]NVStorageSaveData done [14:32:46]OFDSenderStorePacket done [14:32:46]KKMCreateOFDPacket done [14:32:46]NVStorageSaveData kkm_last_timestamp [14:32:46]File name is /storage/kkm_last_timestamp [14:32:46]Write 4 bytes [14:32:46]NVStorageSaveData done [14:32:46]ExternCall_PrintAddStr [14:32:46]wPrintStart [14:32:46]Write to MH i2c: 01 00 00 14 25 39 [14:32:46]OFD Sender: Processing packet 63465 [packets to send 232, broken 231] [14:32:46]ProducePacketName [14:32:46]name=ofd_packets/00063465 [14:32:46]OFD Sender: To server: pG, [14:32:46]CommunicateWithHost lk.salyk.kg:30040 [14:32:46]ConnectInit lk.salyk.kg [14:32:46]Write i2c OK [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: 01 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: 01 07 00 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: 01 07 00 14 25 00 00 00 00 00 FF 0F 4E [14:32:46]RasterBufferAndPrint [14:32:46]line Счет N : (3)47771 [14:32:46]line ИНН: 02508201610067 [14:32:46]line Контрольно-Кассовый Чек [14:32:46]line ПРОДАЖА [14:32:46]line Товар: 4700003010353 [14:32:46]line Напиток Let`s Go! с/с груша ПЭТ 1л [14:32:46]line 1.000 * 79.29 [14:32:46]line = 79.29 [14:32:46]line НДС 12% НСП 1% [14:32:46]line > о реализуемом товаре [14:32:46]line Товар: 4700000480364 [14:32:46]line Напиток энерг Nitro экзотик 0.45 ж/б [14:32:46]line 1.000 * 94.16 [14:32:46]line = 94.16 [14:32:46]line НДС 12% НСП 1% [14:32:46]line > о реализуемом товаре [14:32:46]line Товар: 4011100091993 [14:32:46]line Шок Батончик Милки Вей 26г [14:32:46]line 1.000 * 34.69 [14:32:46]line = 34.69 [14:32:46]line НДС 12% НСП 1% [14:32:46]line > о реализуемом товаре [14:32:46]line Товар: 4660085515163 [14:32:46]line Шок Батончик Сникерс супер 95/80г [14:32:46]line 1.000 * 89.20 [14:32:46]line = 89.20 [14:32:46]line НДС 12% НСП 1% [14:32:46]line > о реализуемом товаре [14:32:46]line Товар: 4870022003312 [14:32:46]line Gorilla эн нап манго-кокос 0,45 ж/б [14:32:46]line 1.000 * 98.12 [14:32:46]line = 98.12 [14:32:46]line НДС 12% НСП 1% [14:32:46]line > о реализуемом товаре [14:32:46]line Товар: 4680988568943 [14:32:46]line Жид/ст ПН апельсин летняя 4,5л [14:32:46]line 1.000 * 163.54 [14:32:46]line = 163.54 [14:32:46]line НДС 12% НСП 1% [14:32:46]line > о реализуемом товаре [14:32:46]line Товар: 4000512994909 [14:32:46]line рЁьхырф Ёюыыш ЁухЁ шэш [14:32:46]line 1.000 * 43.61 [14:32:46]line = 43.61 [14:32:46]line НДС 12% НСП 1% [14:32:46]line > о реализуемом товаре [14:32:46]line ИТОГО: 602.61 [14:32:46]line НСП 1% : 5.34 [14:32:46]line НДС 12% : 63.99 [14:32:46]line Наличными: 0.00 [14:32:46]line Безнал.: 602.61 [14:32:46]line Место: АЗС № 86 "Партнер Нефть" [14:32:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:32:46]line СНО: Общий режим [14:32:46]line Чек 79 24.10.2024 14:32 [14:32:46]line Смена: 547 ФФД: 1.0 [14:32:46]line ЗНМ: 0300000154 [14:32:46]line РНМ: 0000000000091619 [14:32:46]line Версия ККМ: 001 [14:32:46]line Платежная система: Mbank [14:32:46]line ФМ: 0000000000874676 [14:32:46]line ФД: 63465 [14:32:46]line ФПД: 10453846583972 [14:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143249&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63465&fm=10453846583972&tin=02508201610067®Number=0000000000091619&sum=60261 [14:32:46]line 0 [14:32:46]written 0, free lines is 4095 [14:32:46]Connected sock=9 [14:32:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 1B 04 00 00 50 0F 13 04 5C E1 5A 03 01 00 03 00 07 04 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 1E 00 00 00 00 13 04 06 00 F9 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 C8 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 8D 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 22 00 00 00 00 13 04 06 00 D8 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 E2 3F 00 00 00 00 13 04 06 00 E2 3F 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 30 30 30 35 31 32 39 39 34 39 30 39 06 04 29 00 D1 80 D0 81 D1 8C D1 85 D1 8B D1 80 D1 84 20 D0 81 D1 8E D1 8B D1 8B D1 88 20 D0 81 D1 83 D1 85 D0 81 20 D1 88 D1 8D D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 09 11 00 00 00 00 13 04 06 00 09 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 91 5A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E9 F7 00 00 35 04 06 00 09 81 F9 CF EA A4 F9 40 09 BC 31 E2 36 16 [14:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 07 C1 47 00 97 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 E9 F7 00 00 F4 03 04 00 86 04 1A 67 B6 04 01 00 00 02 94 0B 6D 89 B6 A1 EB [14:32:46]CommunicateWithHost err = 0 [14:32:46]CheckOFDResponse [14:32:46]1017 (14) - 77093643461234 [14:32:46]1041 (16) - 0000000000874676 [14:32:46]1040 (4) - 63465 [14:32:46]1012 (4) - 24.10.2024 08:25 [14:32:46]1206 (1) - 0 [14:32:46]OFD Sender: Remove packet 63465 [14:32:46]ProducePacketName [14:32:46]name=ofd_packets/00063465 [14:32:46]NVStorageDeleteData [14:32:47]Write to MH i2c: 01 00 00 66 25 8B [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: 01 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: 01 07 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: 01 07 00 66 25 00 00 00 00 00 33 0B D0 [14:32:47]RasterBufferAndPrint [14:32:47]line [14:32:47]line [14:32:47]line [14:32:47]line [14:32:47]line [14:32:47]written 0, free lines is 2880 [14:32:47]MH_Cut [14:32:47]Write to MH i2c: D1 01 00 6D 25 01 64 [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: D1 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: D1 01 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: D1 01 00 6D 25 00 63 [14:32:47]Write to MH i2c: 01 00 00 6E 25 93 [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]OFD Sender: No OFD packet to send [14:32:48]*** Cut start [14:32:48]*** Partial cut [14:32:48]*** CUTSNS_PIN = 1 [14:32:48]*** CUTSNS_PIN = 0 [14:32:48]*** Brake cut motor [14:32:48]Read from MH i2c: 01 [14:32:48]MH_I2C_Read... [14:32:48]*** Stop cut motor [14:32:48]*** Cut end [14:32:48]Read from MH i2c: 01 07 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 07 00 6E 25 00 00 00 00 00 FF 0F A8 [14:32:48]process_action close_receipt done [14:32:48]requested_data is exist [14:32:48]produce_requested_data [14:32:48]requested_item fm.sn is exist - process it [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 11 00 00 [14:32:48]Write to MH i2c: E2 08 00 6F 25 80 11 00 00 00 00 00 00 0E [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 17 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 17 00 6F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 67 [14:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:32:48]wFMCommunicate OK [14:32:48]requested_item fd.num is exist - process it [14:32:48]SAM_PROTO_GetFieldsCounters [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 13 00 00 [14:32:48]Write to MH i2c: E2 08 00 70 25 80 13 00 00 00 00 00 00 11 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 62 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 62 00 70 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 E9 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [14:32:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 E9 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:49]wFMCommunicate OK [14:32:49]SAM_PROTO_GetFieldsCounters done [14:32:49]requested_item shift.num is exist - process it [14:32:49]requested_item shift.opened is exist - process it [14:32:49]req_shift_opened [14:32:49]FM_GetShiftState [14:32:49]SAM_PROTO_GetShiftState [14:32:49]wFMCommunicate request_size=4 [14:32:49]MH_SAM_APDU [14:32:49]CAPDU: 80 13 01 00 [14:32:49]Write to MH i2c: E2 08 00 71 25 80 13 01 00 00 00 00 00 13 [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:49]Read from MH i2c: E2 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 0E 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 0E 00 71 25 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 F4 [14:32:49]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:32:49]wFMCommunicate OK [14:32:49]SAM_PROTO_GetShiftState done [14:32:49]FM_GetShiftState done [14:32:49]req_shift_opened done [14:32:49]requested_item shift.open_date is exist - process it [14:32:49]req_shift_open_date [14:32:49]req_shift_open_date done [14:32:49]produce_requested_data done [14:32:49]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63465,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [14:32:49]process_action_free close_receipt [14:32:49]json_value_free [14:32:49]json_value_free done [14:32:49]process_json_proto returns [14:32:49]Send response to host [14:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63465,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [14:32:49]free response buf [14:32:49]execute_script done [14:32:49]execute_script returns [14:32:49]free content buf [14:32:49]Sock 7.Close socket [14:32:49]Sock 7.Thread stoped [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:38]int [14:37:38]Write to MH i2c: 01 00 00 72 25 97 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 [14:37:38]MH_I2C_Read... [14:37:38]*** FLAG_PRN_PAP1 set [14:37:38]*** FLAG_PRN_PAP1 reset [14:37:38]Read from MH i2c: 01 07 00 72 25 00 00 00 00 00 FF 0F AC [14:37:38]state=0 [14:37:38]int [14:37:38]Write to MH i2c: 01 00 00 73 25 98 [14:37:38]*** FLAG_PRN_PAP1 set [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: 01 07 00 73 25 00 01 00 00 00 FF 0F AE [14:37:38]state=0 [14:37:38]No paper [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:55]int [14:37:55]Write to MH i2c: 01 00 00 74 25 99 [14:37:55]*** FLAG_PRN_PAP1 reset [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 07 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 07 00 74 25 00 00 00 00 00 FF 0F AE [14:37:55]state=0 [14:37:55]int [14:37:55]Write to MH i2c: 01 00 00 75 25 9A [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 07 00 [14:37:55]MH_I2C_Read... [14:37:55]*** FLAG_PRN_PAP1 set [14:37:55]*** FLAG_PRN_PAP1 reset [14:37:55]Read from MH i2c: 01 07 00 75 25 00 00 00 00 00 FF 0F AF [14:37:55]state=0 [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]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:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40: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]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]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:26]accept exits with 10 [14:55:26]New connection [14:55:26]New thread 3066633572 created [14:55:26]Thread 3066490212 joined [14:55:26]Waiting for new connection... [14:55:26] Sock 10.Parse request [14:55:26]Sock 10.Check first char [14:55:26]Sock 10.First char is OK [14:55:26]request: POST /json_proto HTTP/1.0 [14:55:26]Method: POST [14:55:26]URL: /json_proto [14:55:26]Method is POST - this is cgi request [14:55:26]url: /json_proto [14:55:26]query_string will be loaded in cgi processing [14:55:26]execute_cgi json_proto POST (null) [14:55:26]execute_cgi path=json_proto method=POST [14:55:26]POST find Content-Length [14:55:26]Host: 172.17.42.132:8080 [14:55:26]Content-Length: 649 [14:55:26]Content-Type: application/json [14:55:26] [14:55:26]POST finish read [14:55:26]Found Content-Length = 649 [14:55:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47772", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:26]execute_script... [14:55:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47772", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:26]POST & json_proto [14:55:26]process_json_proto [14:55:26]json parsed OK: [14:55:26]protocol is kg_v1.0 [14:55:26]action value=close_receipt [14:55:26]process_action close_receipt [14:55:26]cmd_close_receipt [14:55:26]MH_GetDate [14:55:26]Write to MH i2c: F0 00 00 76 25 8A [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: F0 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: F0 09 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: F0 09 00 76 25 00 E4 5F 1A 67 4C DF 56 66 3E [14:55:26]GetLastDocTimeStamp 1729780369 [14:55:26]current date 1729781732 [14:55:26]FM_GetShiftState [14:55:26]SAM_PROTO_GetShiftState [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 13 01 00 [14:55:26]Write to MH i2c: E2 08 00 77 25 80 13 01 00 00 00 00 00 19 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 0E 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 0E 00 77 25 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 FA [14:55:26]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:55:26]wFMCommunicate OK [14:55:26]SAM_PROTO_GetShiftState done [14:55:26]FM_GetShiftState done [14:55:26]opened in 1729728964 [14:55:26]opened+sec_in_day 1729815364 [14:55:26]quantity*price = 10500 [14:55:26]sum+1 = 10501 [14:55:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 80 24.10.2024 14:55 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63466 ФПД: 6320296805513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145532&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63466&fm=6320296805513&tin=02508201610067®Number=0000000000091619&sum=10500 0 [14:55:27]StoreToDocumentArchive [14:55:27]shift 547 fd 63466 [14:55:27]save to /storage/0547/doc_00063466 [14:55:27]save last doc name /storage/0547/doc_00063466 to /storage/kkm_last_doc_name [14:55:27]save OK [14:55:27]Clear old archive folders... [14:55:27]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:55:27]tlvbuf is 00B5D410 [14:55:27]SAM_PROTO_ClearQueue [14:55:27]wFMCommunicate request_size=4 [14:55:27]MH_SAM_APDU [14:55:27]CAPDU: 80 09 00 00 [14:55:27]Write to MH i2c: E2 08 00 84 25 80 09 00 00 00 00 00 00 1B [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:27]Read from MH i2c: E2 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 03 00 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 03 00 84 25 00 90 00 1D [14:55:27]RAPDU: 90 00 [14:55:27]wFMCommunicate OK [14:55:27]SAM_PROTO_ClearQueue done [14:55:27]KKMCreateOFDPacket [14:55:27]OFDProtocolAddRootSTLVToBuf [14:55:27]FM_MakeSignedData [14:55:27]FM_MakeSignedData [14:55:27]SAM_PROTO_SignData [14:55:27]wFMCommunicate request_size=4 [14:55:27]MH_SAM_APDU [14:55:27]CAPDU: 80 0D 01 02 [14:55:27]Write to MH i2c: E2 08 00 85 25 80 0D 01 02 00 00 00 00 23 [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:27]Read from MH i2c: E2 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 03 00 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 03 00 85 25 00 90 00 1E [14:55:27]RAPDU: 90 00 [14:55:27]wFMCommunicate OK [14:55:27]wFMCommunicate request_size=255 [14:55:27]MH_SAM_APDU [14:55:27]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E4 5F 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [14:55:27]Write to MH i2c: E2 02 01 86 25 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E4 5F 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 25 [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:27]Read from MH i2c: E2 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 03 00 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 03 00 86 25 00 90 00 1F [14:55:27]RAPDU: 90 00 [14:55:27]wFMCommunicate OK [14:55:27]wFMCommunicate request_size=41 [14:55:27]MH_SAM_APDU [14:55:27]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EA F7 00 00 35 04 06 00 05 BF 8F 0B C4 89 [14:55:27]Write to MH i2c: E2 2C 00 87 25 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EA F7 00 00 35 04 06 00 05 BF 8F 0B C4 89 00 00 87 [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:27]Read from MH i2c: E2 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 03 00 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 03 00 87 25 00 90 00 20 [14:55:27]RAPDU: 90 00 [14:55:27]wFMCommunicate OK [14:55:27]wFMCommunicate request_size=4 [14:55:27]MH_SAM_APDU [14:55:27]CAPDU: 80 0D 03 02 [14:55:27]Write to MH i2c: E2 08 00 88 25 80 0D 03 02 00 00 00 00 28 [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:27]Read from MH i2c: E2 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 0B 00 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: E2 0B 00 88 25 00 15 E5 AF A4 2E B2 08 DB 90 00 39 [14:55:27]RAPDU: 15 E5 AF A4 2E B2 08 DB 90 00 [14:55:27]wFMCommunicate OK [14:55:27]SAM_PROTO_SignData done [14:55:27]FM_MakeSignedData done [14:55:27]CreateOFDProtocolMessage [14:55:27]wFMCommunicate request_size=4 [14:55:27]MH_SAM_APDU [14:55:27]CAPDU: 80 11 00 00 [14:55:27]Write to MH i2c: E2 08 00 89 25 80 11 00 00 00 00 00 00 28 [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:28]Read from MH i2c: E2 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: E2 17 00 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: E2 17 00 89 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 81 [14:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:55:28]wFMCommunicate OK [14:55:28]CreateOFDProtocolMessage done [14:55:28]OFDSenderStorePacket 63466 [14:55:28]StoreOFDPacket docnum=63466 [14:55:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 AE 3B 26 01 AB 31 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E4 5F 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EA F7 00 00 35 04 06 00 05 BF 8F 0B C4 89 15 E5 AF A4 2E B2 08 DB [14:55:28]CheckFolder [14:55:28]dirname=/storage/ofd_packets [14:55:28]CheckFolder done [14:55:28]ProducePacketName [14:55:28]name=ofd_packets/00063466 [14:55:28]NVStorageSaveData ofd_packets/00063466 [14:55:28]File name is /storage/ofd_packets/00063466 [14:55:28]Write 332 bytes [14:55:28]NVStorageSaveData done [14:55:28]OFDSenderStorePacket done [14:55:28]KKMCreateOFDPacket done [14:55:28]NVStorageSaveData kkm_last_timestamp [14:55:28]File name is /storage/kkm_last_timestamp [14:55:28]Write 4 bytes [14:55:28]NVStorageSaveData done [14:55:28]ExternCall_PrintAddStr [14:55:28]wPrintStart [14:55:28]Write to MH i2c: 01 00 00 8A 25 AF [14:55:28]Write i2c OK [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: 01 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: 01 07 00 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: 01 07 00 8A 25 00 00 00 00 00 FF 0F C4 [14:55:28]RasterBufferAndPrint [14:55:28]line Счет N : (3)47772 [14:55:28]line ИНН: 02508201610067 [14:55:28]line Контрольно-Кассовый Чек [14:55:28]line ПРОДАЖА [14:55:28]line Товар: 2000034730018 [14:55:28]line Кофе Американо (GABB TRADE) [14:55:28]line 1.000 * 105.00 [14:55:28]line = 105.00 [14:55:28]line НДС 12% НСП 1% [14:55:28]line > о реализуемом товаре [14:55:28]line ИТОГО: 105.00 [14:55:28]line НСП 1% : 0.93 [14:55:28]line НДС 12% : 11.15 [14:55:28]line Наличными: 105.00 [14:55:28]line Безнал.: 0.00 [14:55:28]line Место: АЗС № 86 "Партнер Нефть" [14:55:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:55:28]line СНО: Общий режим [14:55:28]line Чек 80 24.10.2024 14:55 [14:55:28]line Смена: 547 ФФД: 1.0 [14:55:28]line ЗНМ: 0300000154 [14:55:28]line РНМ: 0000000000091619 [14:55:28]line Версия ККМ: 001 [14:55:28]line ФМ: 0000000000874676 [14:55:28]line ФД: 63466 [14:55:28]line ФПД: 6320296805513 [14:55:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145532&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63466&fm=6320296805513&tin=02508201610067®Number=0000000000091619&sum=10500 [14:55:28]OFD Sender: Processing packet 63466 [packets to send 232, broken 231] [14:55:28]ProducePacketName [14:55:28]name=ofd_packets/00063466 [14:55:28]OFD Sender: To server: pG, [14:55:28]CommunicateWithHost lk.salyk.kg:30040 [14:55:28]ConnectInit lk.salyk.kg [14:55:28]line 0 [14:55:28]written 0, free lines is 4095 [14:55:28]Connected sock=9 [14:55:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 AE 3B 26 01 AB 31 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E4 5F 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EA F7 00 00 35 04 06 00 05 BF 8F 0B C4 89 15 E5 AF A4 2E B2 08 DB [14:55:28]Write to MH i2c: 01 00 00 B3 25 D8 [14:55:28]Write i2c OK [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: 01 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: 01 07 00 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: 01 07 00 B3 25 00 00 00 00 00 FC 0C E7 [14:55:28]RasterBufferAndPrint [14:55:28]line [14:55:28]line [14:55:28]line [14:55:28]line [14:55:28]line [14:55:28]written 0, free lines is 3333 [14:55:28]MH_Cut [14:55:28]Write to MH i2c: D1 01 00 BA 25 01 B1 [14:55:28]Write i2c OK [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: D1 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: D1 01 00 [14:55:28]MH_I2C_Read... [14:55:28]Read from MH i2c: D1 01 00 BA 25 00 B0 [14:55:28]Write to MH i2c: 01 00 00 BB 25 E0 [14:55:28]Write i2c OK [14:55:28]MH_I2C_Read... [14:55:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 72 A0 47 00 99 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EA F7 00 00 F4 03 04 00 D8 09 1A 67 B6 04 01 00 00 C0 60 FA 61 3A 04 28 98 [14:55:29]CommunicateWithHost err = 0 [14:55:29]CheckOFDResponse [14:55:29]1017 (14) - 77093643461234 [14:55:29]1041 (16) - 0000000000874676 [14:55:29]1040 (4) - 63466 [14:55:29]1012 (4) - 24.10.2024 08:48 [14:55:29]1206 (1) - 0 [14:55:29]OFD Sender: Remove packet 63466 [14:55:29]ProducePacketName [14:55:29]name=ofd_packets/00063466 [14:55:29]NVStorageDeleteData [14:55:29]*** Cut start [14:55:29]*** Partial cut [14:55:29]*** CUTSNS_PIN = 1 [14:55:29]OFD Sender: No OFD packet to send [14:55:29]*** CUTSNS_PIN = 0 [14:55:29]*** Brake cut motor [14:55:30]Read from MH i2c: 01 [14:55:30]MH_I2C_Read... [14:55:30]*** Stop cut motor [14:55:30]*** Cut end [14:55:30]Read from MH i2c: 01 07 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: 01 07 00 BB 25 00 00 00 00 00 FF 0F F5 [14:55:30]process_action close_receipt done [14:55:30]requested_data is exist [14:55:30]produce_requested_data [14:55:30]requested_item fm.sn is exist - process it [14:55:30]wFMCommunicate request_size=4 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 11 00 00 [14:55:30]Write to MH i2c: E2 08 00 BC 25 80 11 00 00 00 00 00 00 5B [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 17 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 17 00 BC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B4 [14:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:55:30]wFMCommunicate OK [14:55:30]requested_item fd.num is exist - process it [14:55:30]SAM_PROTO_GetFieldsCounters [14:55:30]wFMCommunicate request_size=4 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 13 00 00 [14:55:30]Write to MH i2c: E2 08 00 BD 25 80 13 00 00 00 00 00 00 5E [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 62 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 62 00 BD 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EA F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [14:55:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EA F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:30]wFMCommunicate OK [14:55:30]SAM_PROTO_GetFieldsCounters done [14:55:30]requested_item shift.num is exist - process it [14:55:30]requested_item shift.opened is exist - process it [14:55:30]req_shift_opened [14:55:30]FM_GetShiftState [14:55:30]SAM_PROTO_GetShiftState [14:55:30]wFMCommunicate request_size=4 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 13 01 00 [14:55:30]Write to MH i2c: E2 08 00 BE 25 80 13 01 00 00 00 00 00 60 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 0E 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 0E 00 BE 25 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 41 [14:55:30]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:55:30]wFMCommunicate OK [14:55:30]SAM_PROTO_GetShiftState done [14:55:30]FM_GetShiftState done [14:55:30]req_shift_opened done [14:55:30]requested_item shift.open_date is exist - process it [14:55:30]req_shift_open_date [14:55:30]req_shift_open_date done [14:55:30]produce_requested_data done [14:55:30]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63466,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [14:55:30]process_action_free close_receipt [14:55:30]json_value_free [14:55:30]json_value_free done [14:55:30]process_json_proto returns [14:55:30]Send response to host [14:55:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63466,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [14:55:30]free response buf [14:55:30]execute_script done [14:55:30]execute_script returns [14:55:30]free content buf [14:55:30]Sock 10.Close socket [14:55:30]Sock 10.Thread stoped [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:00]accept exits with 7 [14:59:00]New connection [14:59:00]New thread 3066490212 created [14:59:00]Thread 3066633572 joined [14:59:00]Waiting for new connection... [14:59:00] Sock 7.Parse request [14:59:00]Sock 7.Check first char [14:59:00]Sock 7.First char is OK [14:59:00]request: POST /json_proto HTTP/1.0 [14:59:00]Method: POST [14:59:00]URL: /json_proto [14:59:00]Method is POST - this is cgi request [14:59:00]url: /json_proto [14:59:00]query_string will be loaded in cgi processing [14:59:00]execute_cgi json_proto POST (null) [14:59:00]execute_cgi path=json_proto method=POST [14:59:00]POST find Content-Length [14:59:00]Host: 172.17.42.132:8080 [14:59:00]Content-Length: 859 [14:59:00]Content-Type: application/json [14:59:00] [14:59:00]POST finish read [14:59:00]Found Content-Length = 859 [14:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47773", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:00]execute_script... [14: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)47773", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:00]POST & json_proto [14:59:00]process_json_proto [14:59:00]json parsed OK: [14:59:00]protocol is kg_v1.0 [14:59:00]action value=close_receipt [14:59:00]process_action close_receipt [14:59:00]cmd_close_receipt [14:59:00]MH_GetDate [14:59:00]Write to MH i2c: F0 00 00 BF 25 D3 [14:59:00]Write i2c OK [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: F0 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: F0 09 00 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: F0 09 00 BF 25 00 BA 60 1A 67 4C DF 56 66 5E [14:59:00]GetLastDocTimeStamp 1729781732 [14:59:00]current date 1729781946 [14:59:00]FM_GetShiftState [14:59:00]SAM_PROTO_GetShiftState [14:59:00]wFMCommunicate request_size=4 [14:59:00]MH_SAM_APDU [14:59:00]CAPDU: 80 13 01 00 [14:59:00]Write to MH i2c: E2 08 00 C0 25 80 13 01 00 00 00 00 00 62 [14:59:00]Write i2c OK [14:59:00]MH_I2C_Read... [14:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:00]Read from MH i2c: E2 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: E2 0E 00 [14:59:00]MH_I2C_Read... [14:59:00]Read from MH i2c: E2 0E 00 C0 25 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 43 [14:59:00]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:59:00]wFMCommunicate OK [14:59:00]SAM_PROTO_GetShiftState done [14:59:00]FM_GetShiftState done [14:59:00]opened in 1729728964 [14:59:00]opened+sec_in_day 1729815364 [14:59:00]quantity*price = 15900 [14:59:00]sum+1 = 15901 [14:59:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 318.00 НСП 1% : 2.82 НДС 12% : 33.76 Наличными: 318.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 81 24.10.2024 14:59 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63467 ФПД: 33626764607523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145906&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63467&fm=33626764607523&tin=02508201610067®Number=0000000000091619&sum=31800 0 [14:59:01]StoreToDocumentArchive [14:59:01]shift 547 fd 63467 [14:59:01]save to /storage/0547/doc_00063467 [14:59:01]save last doc name /storage/0547/doc_00063467 to /storage/kkm_last_doc_name [14:59:01]save OK [14:59:01]Clear old archive folders... [14:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=378 [14:59:01]tlvbuf is 00B5CF50 [14:59:01]SAM_PROTO_ClearQueue [14:59:01]wFMCommunicate request_size=4 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 09 00 00 [14:59:01]Write to MH i2c: E2 08 00 CD 25 80 09 00 00 00 00 00 00 64 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 CD 25 00 90 00 66 [14:59:01]RAPDU: 90 00 [14:59:01]wFMCommunicate OK [14:59:01]SAM_PROTO_ClearQueue done [14:59:01]KKMCreateOFDPacket [14:59:01]OFDProtocolAddRootSTLVToBuf [14:59:01]FM_MakeSignedData [14:59:01]FM_MakeSignedData [14:59:01]SAM_PROTO_SignData [14:59:01]wFMCommunicate request_size=4 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 0D 01 02 [14:59:01]Write to MH i2c: E2 08 00 CE 25 80 0D 01 02 00 00 00 00 6C [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:01]Read from MH i2c: E2 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 [14:59:01]MH_I2C_Read... [14:59:01]Read from MH i2c: E2 03 00 CE 25 00 90 00 67 [14:59:01]RAPDU: 90 00 [14:59:01]wFMCommunicate OK [14:59:01]wFMCommunicate request_size=255 [14:59:01]MH_SAM_APDU [14:59:01]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 [14:59:01]Write to MH i2c: E2 02 01 CF 25 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 00 00 47 [14:59:01]Write i2c OK [14:59:01]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 03 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 03 00 CF 25 00 90 00 68 [14:59:02]RAPDU: 90 00 [14:59:02]wFMCommunicate OK [14:59:02]wFMCommunicate request_size=137 [14:59:02]MH_SAM_APDU [14:59:02]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0D 00 00 00 00 07 04 06 00 38 7C 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 BA 60 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EB F7 00 00 35 04 06 00 1E 95 57 5C 00 23 [14:59:02]Write to MH i2c: E2 8C 00 D0 25 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0D 00 00 00 00 07 04 06 00 38 7C 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 BA 60 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EB F7 00 00 35 04 06 00 1E 95 57 5C 00 23 00 00 18 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 03 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 03 00 D0 25 00 90 00 69 [14:59:02]RAPDU: 90 00 [14:59:02]wFMCommunicate OK [14:59:02]wFMCommunicate request_size=4 [14:59:02]MH_SAM_APDU [14:59:02]CAPDU: 80 0D 03 02 [14:59:02]Write to MH i2c: E2 08 00 D1 25 80 0D 03 02 00 00 00 00 71 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 0B 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 0B 00 D1 25 00 55 74 72 FD 6D 7D DD 69 90 00 DA [14:59:02]RAPDU: 55 74 72 FD 6D 7D DD 69 90 00 [14:59:02]wFMCommunicate OK [14:59:02]SAM_PROTO_SignData done [14:59:02]FM_MakeSignedData done [14:59:02]CreateOFDProtocolMessage [14:59:02]wFMCommunicate request_size=4 [14:59:02]MH_SAM_APDU [14:59:02]CAPDU: 80 11 00 00 [14:59:02]Write to MH i2c: E2 08 00 D2 25 80 11 00 00 00 00 00 00 71 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:02]Read from MH i2c: E2 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 17 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: E2 17 00 D2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CA [14:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:59:02]wFMCommunicate OK [14:59:02]CreateOFDProtocolMessage done [14:59:02]OFDSenderStorePacket 63467 [14:59:02]StoreOFDPacket docnum=63467 [14:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8E 01 00 00 C1 2F 86 01 DE 4B 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0D 00 00 00 00 07 04 06 00 38 7C 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 BA 60 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EB F7 00 00 35 04 06 00 1E 95 57 5C 00 23 55 74 72 FD 6D 7D DD 69 [14:59:02]CheckFolder [14:59:02]dirname=/storage/ofd_packets [14:59:02]CheckFolder done [14:59:02]ProducePacketName [14:59:02]name=ofd_packets/00063467 [14:59:02]NVStorageSaveData ofd_packets/00063467 [14:59:02]File name is /storage/ofd_packets/00063467 [14:59:02]Write 428 bytes [14:59:02]NVStorageSaveData done [14:59:02]OFDSenderStorePacket done [14:59:02]KKMCreateOFDPacket done [14:59:02]NVStorageSaveData kkm_last_timestamp [14:59:02]File name is /storage/kkm_last_timestamp [14:59:02]Write 4 bytes [14:59:02]NVStorageSaveData done [14:59:02]ExternCall_PrintAddStr [14:59:02]wPrintStart [14:59:02]Write to MH i2c: 01 00 00 D3 25 F8 [14:59:02]Write i2c OK [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 07 00 [14:59:02]MH_I2C_Read... [14:59:02]Read from MH i2c: 01 07 00 D3 25 00 00 00 00 00 FF 0F 0D [14:59:02]RasterBufferAndPrint [14:59:02]line Счет N : (3)47773 [14:59:02]line ИНН: 02508201610067 [14:59:02]line Контрольно-Кассовый Чек [14:59:02]line ПРОДАЖА [14:59:02]line Товар: 4640030091669 [14:59:02]line Сигареты ESSE Exchange S [14:59:02]line 1.000 * 159.00 [14:59:02]line = 159.00 [14:59:02]line НДС 12% НСП 1% [14:59:02]line > о реализуемом товаре [14:59:02]line Товар: 4640030091645 [14:59:02]line Сигареты ESSE Exchange M [14:59:02]line 1.000 * 159.00 [14:59:02]line = 159.00 [14:59:02]line НДС 12% НСП 1% [14:59:02]line > о реализуемом товаре [14:59:02]line ИТОГО: 318.00 [14:59:02]line НСП 1% : 2.82 [14:59:02]line НДС 12% : 33.76 [14:59:02]line Наличными: 318.00 [14:59:02]line Безнал.: 0.00 [14:59:02]line Место: АЗС № 86 "Партнер Нефть" [14:59:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:59:02]line СНО: Общий режим [14:59:02]line Чек 81 24.10.2024 14:59 [14:59:02]line Смена: 547 ФФД: 1.0 [14:59:02]line ЗНМ: 0300000154 [14:59:02]line РНМ: 0000000000091619 [14:59:02]line Версия ККМ: 001 [14:59:02]line ФМ: 0000000000874676 [14:59:02]line ФД: 63467 [14:59:02]line ФПД: 33626764607523 [14:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145906&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63467&fm=33626764607523&tin=02508201610067®Number=0000000000091619&sum=31800 [14:59:02]line 0 [14:59:02]OFD Sender: Processing packet 63467 [packets to send 232, broken 231] [14:59:02]ProducePacketName [14:59:02]name=ofd_packets/00063467 [14:59:02]OFD Sender: To server: pG, [14:59:02]CommunicateWithHost lk.salyk.kg:30040 [14:59:02]ConnectInit lk.salyk.kg [14:59:02]written 0, free lines is 4095 [14:59:02]Connected sock=10 [14:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8E 01 00 00 C1 2F 86 01 DE 4B 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0D 00 00 00 00 07 04 06 00 38 7C 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 BA 60 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EB F7 00 00 35 04 06 00 1E 95 57 5C 00 23 55 74 72 FD 6D 7D DD 69 [14:59:03]Write to MH i2c: 01 00 00 01 26 27 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: 01 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: 01 07 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: 01 07 00 01 26 00 00 00 00 00 CA 0C 04 [14:59:03]RasterBufferAndPrint [14:59:03]line [14:59:03]line [14:59:03]line [14:59:03]line [14:59:03]line [14:59:03]written 0, free lines is 3280 [14:59:03]MH_Cut [14:59:03]Write to MH i2c: D1 01 00 08 26 01 00 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: D1 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: D1 01 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: D1 01 00 08 26 00 FF [14:59:03]Write to MH i2c: 01 00 00 09 26 2F [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CA ED 47 00 4D 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EB F7 00 00 F4 03 04 00 AF 0A 1A 67 B6 04 01 00 00 E7 67 F1 1C A0 D4 08 3A [14:59:03]CommunicateWithHost err = 0 [14:59:03]CheckOFDResponse [14:59:03]1017 (14) - 77093643461234 [14:59:03]1041 (16) - 0000000000874676 [14:59:03]1040 (4) - 63467 [14:59:03]1012 (4) - 24.10.2024 08:51 [14:59:03]1206 (1) - 0 [14:59:03]OFD Sender: Remove packet 63467 [14:59:03]ProducePacketName [14:59:03]name=ofd_packets/00063467 [14:59:03]NVStorageDeleteData [14:59:03]OFD Sender: No OFD packet to send [14:59:03]*** Cut start [14:59:03]*** Partial cut [14:59:03]*** CUTSNS_PIN = 1 [14:59:03]*** CUTSNS_PIN = 0 [14:59:04]*** Brake cut motor [14:59:04]Read from MH i2c: 01 [14:59:04]MH_I2C_Read... [14:59:04]*** Stop cut motor [14:59:04]*** Cut end [14:59:04]Read from MH i2c: 01 07 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: 01 07 00 09 26 00 00 00 00 00 FF 0F 44 [14:59:04]process_action close_receipt done [14:59:04]requested_data is exist [14:59:04]produce_requested_data [14:59:04]requested_item fm.sn is exist - process it [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 11 00 00 [14:59:04]Write to MH i2c: E2 08 00 0A 26 80 11 00 00 00 00 00 00 AA [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 17 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 17 00 0A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 03 [14:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:59:04]wFMCommunicate OK [14:59:04]requested_item fd.num is exist - process it [14:59:04]SAM_PROTO_GetFieldsCounters [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 13 00 00 [14:59:04]Write to MH i2c: E2 08 00 0B 26 80 13 00 00 00 00 00 00 AD [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 62 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 62 00 0B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EB F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [14: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EB F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:04]wFMCommunicate OK [14:59:04]SAM_PROTO_GetFieldsCounters done [14:59:04]requested_item shift.num is exist - process it [14:59:04]requested_item shift.opened is exist - process it [14:59:04]req_shift_opened [14:59:04]FM_GetShiftState [14:59:04]SAM_PROTO_GetShiftState [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 13 01 00 [14:59:04]Write to MH i2c: E2 08 00 0C 26 80 13 01 00 00 00 00 00 AF [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:04]Read from MH i2c: E2 0E 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 0E 00 0C 26 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 90 [14:59:04]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [14:59:04]wFMCommunicate OK [14:59:04]SAM_PROTO_GetShiftState done [14:59:04]FM_GetShiftState done [14:59:04]req_shift_opened done [14:59:04]requested_item shift.open_date is exist - process it [14:59:04]req_shift_open_date [14:59:04]req_shift_open_date done [14:59:04]produce_requested_data done [14:59:04]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63467,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [14:59:04]process_action_free close_receipt [14:59:04]json_value_free [14:59:04]json_value_free done [14:59:04]process_json_proto returns [14:59:04]Send response to host [14:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63467,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [14:59:04]free response buf [14:59:04]execute_script done [14:59:04]execute_script returns [14:59:04]free content buf [14:59:04]Sock 7.Close socket [14:59:04]Sock 7.Thread stoped [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01: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:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]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:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]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:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:18]accept exits with 9 [15:43:18]New connection [15:43:18]New thread 3066633572 created [15:43:18]Thread 3066490212 joined [15:43:18]Waiting for new connection... [15:43:18] Sock 9.Parse request [15:43:18]Sock 9.Check first char [15:43:18]Sock 9.First char is OK [15:43:18]request: POST /json_proto HTTP/1.0 [15:43:18]Method: POST [15:43:18]URL: /json_proto [15:43:18]Method is POST - this is cgi request [15:43:18]url: /json_proto [15:43:18]query_string will be loaded in cgi processing [15:43:18]execute_cgi json_proto POST (null) [15:43:18]execute_cgi path=json_proto method=POST [15:43:18]POST find Content-Length [15:43:18]Host: 172.17.42.132:8080 [15:43:18]Content-Length: 620 [15:43:18]Content-Type: application/json [15:43:18] [15:43:18]POST finish read [15:43:18]Found Content-Length = 620 [15:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47774", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:18]execute_script... [15:43: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)47774", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:18]POST & json_proto [15:43:18]process_json_proto [15:43:18]json parsed OK: [15:43:18]protocol is kg_v1.0 [15:43:18]action value=close_receipt [15:43:18]process_action close_receipt [15:43:18]cmd_close_receipt [15:43:18]MH_GetDate [15:43:18]Write to MH i2c: F0 00 00 0D 26 22 [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: F0 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: F0 09 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: F0 09 00 0D 26 00 1D 6B 1A 67 4C DF 56 66 1B [15:43:18]GetLastDocTimeStamp 1729781946 [15:43:18]current date 1729784605 [15:43:18]FM_GetShiftState [15:43:18]SAM_PROTO_GetShiftState [15:43:18]wFMCommunicate request_size=4 [15:43:18]MH_SAM_APDU [15:43:18]CAPDU: 80 13 01 00 [15:43:18]Write to MH i2c: E2 08 00 0E 26 80 13 01 00 00 00 00 00 B1 [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:18]Read from MH i2c: E2 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 0E 26 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 92 [15:43:18]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [15:43:18]wFMCommunicate OK [15:43:18]SAM_PROTO_GetShiftState done [15:43:18]FM_GetShiftState done [15:43:18]opened in 1729728964 [15:43:18]opened+sec_in_day 1729815364 [15:43:18]quantity*price = 14400 [15:43:18]sum+1 = 14401 [15:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 82 24.10.2024 15:43 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63468 ФПД: 25516959725291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154325&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63468&fm=25516959725291&tin=02508201610067®Number=0000000000091619&sum=14400 0 [15:43:20]StoreToDocumentArchive [15:43:20]shift 547 fd 63468 [15:43:20]save to /storage/0547/doc_00063468 [15:43:20]save last doc name /storage/0547/doc_00063468 to /storage/kkm_last_doc_name [15:43:20]save OK [15:43:20]Clear old archive folders... [15:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:43:20]tlvbuf is 00AFDA80 [15:43:20]SAM_PROTO_ClearQueue [15:43:20]wFMCommunicate request_size=4 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 09 00 00 [15:43:20]Write to MH i2c: E2 08 00 1B 26 80 09 00 00 00 00 00 00 B3 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 1B 26 00 90 00 B5 [15:43:20]RAPDU: 90 00 [15:43:20]wFMCommunicate OK [15:43:20]SAM_PROTO_ClearQueue done [15:43:20]KKMCreateOFDPacket [15:43:20]OFDProtocolAddRootSTLVToBuf [15:43:20]FM_MakeSignedData [15:43:20]FM_MakeSignedData [15:43:20]SAM_PROTO_SignData [15:43:20]wFMCommunicate request_size=4 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 0D 01 02 [15:43:20]Write to MH i2c: E2 08 00 1C 26 80 0D 01 02 00 00 00 00 BB [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 1C 26 00 90 00 B6 [15:43:20]RAPDU: 90 00 [15:43:20]wFMCommunicate OK [15:43:20]wFMCommunicate request_size=255 [15:43:20]MH_SAM_APDU [15:43:20]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1D 6B 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [15:43:20]Write to MH i2c: E2 02 01 1D 26 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1D 6B 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 A6 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 1D 26 00 90 00 B7 [15:43:20]RAPDU: 90 00 [15:43:20]wFMCommunicate OK [15:43:20]wFMCommunicate request_size=32 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 EC F7 00 00 35 04 06 00 17 35 21 51 F6 EB [15:43:20]Write to MH i2c: E2 23 00 1E 26 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 EC F7 00 00 35 04 06 00 17 35 21 51 F6 EB 00 00 A3 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 03 00 1E 26 00 90 00 B8 [15:43:20]RAPDU: 90 00 [15:43:20]wFMCommunicate OK [15:43:20]wFMCommunicate request_size=4 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 0D 03 02 [15:43:20]Write to MH i2c: E2 08 00 1F 26 80 0D 03 02 00 00 00 00 C0 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 0B 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 0B 00 1F 26 00 42 1D 23 0A 9A 86 83 38 90 00 28 [15:43:20]RAPDU: 42 1D 23 0A 9A 86 83 38 90 00 [15:43:20]wFMCommunicate OK [15:43:20]SAM_PROTO_SignData done [15:43:20]FM_MakeSignedData done [15:43:20]CreateOFDProtocolMessage [15:43:20]wFMCommunicate request_size=4 [15:43:20]MH_SAM_APDU [15:43:20]CAPDU: 80 11 00 00 [15:43:20]Write to MH i2c: E2 08 00 20 26 80 11 00 00 00 00 00 00 C0 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:20]Read from MH i2c: E2 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 17 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: E2 17 00 20 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 19 [15:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:43:20]wFMCommunicate OK [15:43:20]CreateOFDProtocolMessage done [15:43:20]OFDSenderStorePacket 63468 [15:43:20]StoreOFDPacket docnum=63468 [15:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 FA BF 1D 01 75 58 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1D 6B 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EC F7 00 00 35 04 06 00 17 35 21 51 F6 EB 42 1D 23 0A 9A 86 83 38 [15:43:20]CheckFolder [15:43:20]dirname=/storage/ofd_packets [15:43:20]CheckFolder done [15:43:20]ProducePacketName [15:43:20]name=ofd_packets/00063468 [15:43:20]NVStorageSaveData ofd_packets/00063468 [15:43:20]File name is /storage/ofd_packets/00063468 [15:43:20]Write 323 bytes [15:43:20]NVStorageSaveData done [15:43:20]OFDSenderStorePacket done [15:43:20]KKMCreateOFDPacket done [15:43:20]NVStorageSaveData kkm_last_timestamp [15:43:20]File name is /storage/kkm_last_timestamp [15:43:20]Write 4 bytes [15:43:20]NVStorageSaveData done [15:43:20]ExternCall_PrintAddStr [15:43:20]wPrintStart [15:43:20]Write to MH i2c: 01 00 00 21 26 47 [15:43:20]Write i2c OK [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 [15:43:20]MH_I2C_Read... [15:43:20]Read from MH i2c: 01 07 00 21 26 00 00 00 00 00 FF 0F 5C [15:43:20]RasterBufferAndPrint [15:43:20]line Счет N : (3)47774 [15:43:20]line ИНН: 02508201610067 [15:43:20]line Контрольно-Кассовый Чек [15:43:20]line ПРОДАЖА [15:43:20]line Товар: 48743570 [15:43:20]line Сигареты Winston XStyle Blue [15:43:20]line 1.000 * 144.00 [15:43:20]line = 144.00 [15:43:20]line НДС 12% НСП 1% [15:43:20]line > о реализуемом товаре [15:43:20]line ИТОГО: 144.00 [15:43:20]line НСП 1% : 1.27 [15:43:20]line НДС 12% : 15.29 [15:43:20]line Наличными: 144.00 [15:43:20]line Безнал.: 0.00 [15:43:20]line Место: АЗС № 86 "Партнер Нефть" [15:43:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:43:20]line СНО: Общий режим [15:43:20]line Чек 82 24.10.2024 15:43 [15:43:20]line Смена: 547 ФФД: 1.0 [15:43:20]line ЗНМ: 0300000154 [15:43:20]line РНМ: 0000000000091619 [15:43:20]line Версия ККМ: 001 [15:43:20]line ФМ: 0000000000874676 [15:43:20]line ФД: 63468 [15:43:20]line ФПД: 25516959725291 [15:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154325&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63468&fm=25516959725291&tin=02508201610067®Number=0000000000091619&sum=14400 [15:43:20]OFD Sender: Processing packet 63468 [packets to send 232, broken 231] [15:43:20]ProducePacketName [15:43:20]name=ofd_packets/00063468 [15:43:20]OFD Sender: To server: pG, [15:43:20]CommunicateWithHost lk.salyk.kg:30040 [15:43:20]ConnectInit lk.salyk.kg [15:43:20]line 0 [15:43:20]written 0, free lines is 4095 [15:43:21]Connected sock=10 [15:43:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 FA BF 1D 01 75 58 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1D 6B 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EC F7 00 00 35 04 06 00 17 35 21 51 F6 EB 42 1D 23 0A 9A 86 83 38 [15:43:21]Write to MH i2c: 01 00 00 49 26 6F [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 07 00 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: 01 07 00 49 26 00 00 00 00 00 05 0D 88 [15:43:21]RasterBufferAndPrint [15:43:21]line [15:43:21]line [15:43:21]line [15:43:21]line [15:43:21]line [15:43:21]written 0, free lines is 3339 [15:43:21]MH_Cut [15:43:21]Write to MH i2c: D1 01 00 50 26 01 48 [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: D1 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: D1 01 00 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: D1 01 00 50 26 00 47 [15:43:21]Write to MH i2c: 01 00 00 51 26 77 [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 8A 3D 47 00 EE 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EC F7 00 00 F4 03 04 00 11 15 1A 67 B6 04 01 00 00 04 EF A7 35 8F A4 A6 2E [15:43:21]CommunicateWithHost err = 0 [15:43:21]CheckOFDResponse [15:43:21]1017 (14) - 77093643461234 [15:43:21]1041 (16) - 0000000000874676 [15:43:21]1040 (4) - 63468 [15:43:21]1012 (4) - 24.10.2024 09:36 [15:43:21]1206 (1) - 0 [15:43:21]OFD Sender: Remove packet 63468 [15:43:21]ProducePacketName [15:43:21]name=ofd_packets/00063468 [15:43:21]NVStorageDeleteData [15:43:22]*** Cut start [15:43:22]*** Partial cut [15:43:22]*** CUTSNS_PIN = 1 [15:43:22]OFD Sender: No OFD packet to send [15:43:22]*** CUTSNS_PIN = 0 [15:43:22]*** Brake cut motor [15:43:22]Read from MH i2c: 01 [15:43:22]MH_I2C_Read... [15:43:22]*** Stop cut motor [15:43:22]*** Cut end [15:43:22]Read from MH i2c: 01 07 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: 01 07 00 51 26 00 00 00 00 00 FF 0F 8C [15:43:22]process_action close_receipt done [15:43:22]requested_data is exist [15:43:22]produce_requested_data [15:43:22]requested_item fm.sn is exist - process it [15:43:22]wFMCommunicate request_size=4 [15:43:22]MH_SAM_APDU [15:43:22]CAPDU: 80 11 00 00 [15:43:22]Write to MH i2c: E2 08 00 52 26 80 11 00 00 00 00 00 00 F2 [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:22]Read from MH i2c: E2 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 17 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 17 00 52 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4B [15:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:43:22]wFMCommunicate OK [15:43:22]requested_item fd.num is exist - process it [15:43:22]SAM_PROTO_GetFieldsCounters [15:43:22]wFMCommunicate request_size=4 [15:43:22]MH_SAM_APDU [15:43:22]CAPDU: 80 13 00 00 [15:43:22]Write to MH i2c: E2 08 00 53 26 80 13 00 00 00 00 00 00 F5 [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:22]Read from MH i2c: E2 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 62 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 62 00 53 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EC F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [15:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EC F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:22]wFMCommunicate OK [15:43:22]SAM_PROTO_GetFieldsCounters done [15:43:22]requested_item shift.num is exist - process it [15:43:22]requested_item shift.opened is exist - process it [15:43:22]req_shift_opened [15:43:22]FM_GetShiftState [15:43:22]SAM_PROTO_GetShiftState [15:43:22]wFMCommunicate request_size=4 [15:43:22]MH_SAM_APDU [15:43:22]CAPDU: 80 13 01 00 [15:43:22]Write to MH i2c: E2 08 00 54 26 80 13 01 00 00 00 00 00 F7 [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:22]Read from MH i2c: E2 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 0E 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 0E 00 54 26 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 D8 [15:43:22]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [15:43:22]wFMCommunicate OK [15:43:22]SAM_PROTO_GetShiftState done [15:43:22]FM_GetShiftState done [15:43:22]req_shift_opened done [15:43:22]requested_item shift.open_date is exist - process it [15:43:22]req_shift_open_date [15:43:22]req_shift_open_date done [15:43:22]produce_requested_data done [15:43:22]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63468,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [15:43:22]process_action_free close_receipt [15:43:22]json_value_free [15:43:22]json_value_free done [15:43:22]process_json_proto returns [15:43:22]Send response to host [15:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63468,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [15:43:22]free response buf [15:43:22]execute_script done [15:43:22]execute_script returns [15:43:22]free content buf [15:43:22]Sock 9.Close socket [15:43:22]Sock 9.Thread stoped [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:34]accept exits with 7 [15:45:34]New connection [15:45:34]New thread 3066490212 created [15:45:34]Thread 3066633572 joined [15:45:34]Waiting for new connection... [15:45:34] Sock 7.Parse request [15:45:34]Sock 7.Check first char [15:45:34]Sock 7.First char is OK [15:45:34]request: POST /json_proto HTTP/1.0 [15:45:34]Method: POST [15:45:34]URL: /json_proto [15:45:34]Method is POST - this is cgi request [15:45:34]url: /json_proto [15:45:34]query_string will be loaded in cgi processing [15:45:34]execute_cgi json_proto POST (null) [15:45:34]execute_cgi path=json_proto method=POST [15:45:34]POST find Content-Length [15:45:34]Host: 172.17.42.132:8080 [15:45:34]Content-Length: 873 [15:45:34]Content-Type: application/json [15:45:34] [15:45:34]POST finish read [15:45:34]Found Content-Length = 873 [15:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47775", "tax_sys" : 0, "items" : [ { "code": "5099873001950", "name": "\u0412\u043E\u0434\u043A\u0430 Finlandia \u043F\u043E\u043B\u044F\u0440\u043D\u0430\u044F \u043A\u043B\u044E\u043A\u0432\u0430 0,5\u043B", "price" : 1308.32, "quantity" : 2.000, "sum" : 2616.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2616.64 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:34]execute_script... [15:45: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)47775", "tax_sys" : 0, "items" : [ { "code": "5099873001950", "name": "\u0412\u043E\u0434\u043A\u0430 Finlandia \u043F\u043E\u043B\u044F\u0440\u043D\u0430\u044F \u043A\u043B\u044E\u043A\u0432\u0430 0,5\u043B", "price" : 1308.32, "quantity" : 2.000, "sum" : 2616.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2616.64 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:34]POST & json_proto [15:45:34]process_json_proto [15:45:34]json parsed OK: [15:45:34]protocol is kg_v1.0 [15:45:34]action value=close_receipt [15:45:34]process_action close_receipt [15:45:34]cmd_close_receipt [15:45:34]MH_GetDate [15:45:34]Write to MH i2c: F0 00 00 55 26 6A [15:45:34]Write i2c OK [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: F0 [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: F0 09 00 [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: F0 09 00 55 26 00 A5 6B 1A 67 4C DF 56 66 EB [15:45:34]GetLastDocTimeStamp 1729784605 [15:45:34]current date 1729784741 [15:45:34]FM_GetShiftState [15:45:34]SAM_PROTO_GetShiftState [15:45:34]wFMCommunicate request_size=4 [15:45:34]MH_SAM_APDU [15:45:34]CAPDU: 80 13 01 00 [15:45:34]Write to MH i2c: E2 08 00 56 26 80 13 01 00 00 00 00 00 F9 [15:45:34]Write i2c OK [15:45:34]MH_I2C_Read... [15:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:34]Read from MH i2c: E2 [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: E2 0E 00 [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: E2 0E 00 56 26 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 DA [15:45:34]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [15:45:34]wFMCommunicate OK [15:45:34]SAM_PROTO_GetShiftState done [15:45:34]FM_GetShiftState done [15:45:34]opened in 1729728964 [15:45:34]opened+sec_in_day 1729815364 [15:45:34]quantity*price = 261664 [15:45:34]sum+1 = 261665 [15:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2616.64 НСП 1% : 23.16 НДС 12% : 277.87 Наличными: 0.00 Безнал.: 2616.64 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 83 24.10.2024 15:45 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63469 ФПД: 24006249524640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154541&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63469&fm=24006249524640&tin=02508201610067®Number=0000000000091619&sum=261664 0 [15:45:36]StoreToDocumentArchive [15:45:36]shift 547 fd 63469 [15:45:36]save to /storage/0547/doc_00063469 [15:45:36]save last doc name /storage/0547/doc_00063469 to /storage/kkm_last_doc_name [15:45:36]save OK [15:45:36]Clear old archive folders... [15:45:36]ProcessDocumentItem done err = 0, tmpTLVsize=298 [15:45:36]tlvbuf is 00BC6290 [15:45:36]SAM_PROTO_ClearQueue [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 09 00 00 [15:45:36]Write to MH i2c: E2 08 00 63 26 80 09 00 00 00 00 00 00 FB [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 63 26 00 90 00 FD [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]SAM_PROTO_ClearQueue done [15:45:36]KKMCreateOFDPacket [15:45:36]OFDProtocolAddRootSTLVToBuf [15:45:36]FM_MakeSignedData [15:45:36]FM_MakeSignedData [15:45:36]SAM_PROTO_SignData [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 01 02 [15:45:36]Write to MH i2c: E2 08 00 64 26 80 0D 01 02 00 00 00 00 03 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 64 26 00 90 00 FE [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]wFMCommunicate request_size=255 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 30 39 39 38 37 33 30 30 31 39 35 30 06 04 38 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 69 6E 6C 61 6E 64 69 61 20 D0 BF D0 BE D0 BB D1 8F D1 80 D0 BD D0 B0 D1 8F 20 D0 BA D0 BB D1 8E D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 FF 01 00 00 00 13 04 06 00 20 FE 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FE 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 6C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 FE 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A5 6B 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [15:45:36]Write to MH i2c: E2 02 01 65 26 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 30 39 39 38 37 33 30 30 31 39 35 30 06 04 38 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 69 6E 6C 61 6E 64 69 61 20 D0 BF D0 BE D0 BB D1 8F D1 80 D0 BD D0 B0 D1 8F 20 D0 BA D0 BB D1 8E D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 FF 01 00 00 00 13 04 06 00 20 FE 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FE 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 6C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 FE 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A5 6B 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 45 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 65 26 00 90 00 FF [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]wFMCommunicate request_size=57 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 ED F7 00 00 35 04 06 00 15 D5 63 F9 AD A0 [15:45:36]Write to MH i2c: E2 3C 00 66 26 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 ED F7 00 00 35 04 06 00 15 D5 63 F9 AD A0 00 00 41 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 66 26 00 90 00 00 [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 03 02 [15:45:36]Write to MH i2c: E2 08 00 67 26 80 0D 03 02 00 00 00 00 08 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 0B 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 0B 00 67 26 00 97 1F D2 B9 A3 45 20 F5 90 00 47 [15:45:36]RAPDU: 97 1F D2 B9 A3 45 20 F5 90 00 [15:45:36]wFMCommunicate OK [15:45:36]SAM_PROTO_SignData done [15:45:36]FM_MakeSignedData done [15:45:36]CreateOFDProtocolMessage [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 11 00 00 [15:45:36]Write to MH i2c: E2 08 00 68 26 80 11 00 00 00 00 00 00 08 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 17 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 17 00 68 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 61 [15:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:45:36]wFMCommunicate OK [15:45:36]CreateOFDProtocolMessage done [15:45:36]OFDSenderStorePacket 63469 [15:45:36]StoreOFDPacket docnum=63469 [15:45:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3E 01 00 00 12 37 36 01 A1 BE 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 30 39 39 38 37 33 30 30 31 39 35 30 06 04 38 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 69 6E 6C 61 6E 64 69 61 20 D0 BF D0 BE D0 BB D1 8F D1 80 D0 BD D0 B0 D1 8F 20 D0 BA D0 BB D1 8E D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 FF 01 00 00 00 13 04 06 00 20 FE 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FE 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 6C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 FE 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A5 6B 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 ED F7 00 00 35 04 06 00 15 D5 63 F9 AD A0 97 1F D2 B9 A3 45 20 F5 [15:45:36]CheckFolder [15:45:36]dirname=/storage/ofd_packets [15:45:36]CheckFolder done [15:45:36]ProducePacketName [15:45:36]name=ofd_packets/00063469 [15:45:36]NVStorageSaveData ofd_packets/00063469 [15:45:36]File name is /storage/ofd_packets/00063469 [15:45:36]Write 348 bytes [15:45:36]NVStorageSaveData done [15:45:36]OFDSenderStorePacket done [15:45:36]KKMCreateOFDPacket done [15:45:36]NVStorageSaveData kkm_last_timestamp [15:45:36]File name is /storage/kkm_last_timestamp [15:45:36]Write 4 bytes [15:45:36]NVStorageSaveData done [15:45:36]ExternCall_PrintAddStr [15:45:36]wPrintStart [15:45:36]Write to MH i2c: 01 00 00 69 26 8F [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: 01 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: 01 07 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: 01 07 00 69 26 00 00 00 00 00 FF 0F A4 [15:45:36]RasterBufferAndPrint [15:45:36]line Счет N : (3)47775 [15:45:36]line ИНН: 02508201610067 [15:45:36]line Контрольно-Кассовый Чек [15:45:36]line ПРОДАЖА [15:45:36]line Товар: 5099873001950 [15:45:36]line Водка Finlandia полярная клюква 0,5л [15:45:36]line 2.000 * 1308.32 [15:45:36]line = 2616.64 [15:45:36]line НДС 12% НСП 1% [15:45:36]line > о реализуемом товаре [15:45:36]line ИТОГО: 2616.64 [15:45:36]line НСП 1% : 23.16 [15:45:36]line НДС 12% : 277.87 [15:45:36]line Наличными: 0.00 [15:45:36]line Безнал.: 2616.64 [15:45:36]line Место: АЗС № 86 "Партнер Нефть" [15:45:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:45:36]line СНО: Общий режим [15:45:36]line Чек 83 24.10.2024 15:45 [15:45:36]line Смена: 547 ФФД: 1.0 [15:45:36]line ЗНМ: 0300000154 [15:45:36]line РНМ: 0000000000091619 [15:45:36]line Версия ККМ: 001 [15:45:36]line Платежная система: Бакай Банк [15:45:36]line ФМ: 0000000000874676 [15:45:36]line ФД: 63469 [15:45:36]line ФПД: 24006249524640 [15:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154541&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63469&fm=24006249524640&tin=02508201610067®Number=0000000000091619&sum=261664 [15:45:37]line 0 [15:45:37]OFD Sender: Processing packet 63469 [packets to send 232, broken 231] [15:45:37]ProducePacketName [15:45:37]name=ofd_packets/00063469 [15:45:37]OFD Sender: To server: pG, [15:45:37]CommunicateWithHost lk.salyk.kg:30040 [15:45:37]ConnectInit lk.salyk.kg [15:45:37]written 0, free lines is 4095 [15:45:37]Connected sock=10 [15:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3E 01 00 00 12 37 36 01 A1 BE 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 30 39 39 38 37 33 30 30 31 39 35 30 06 04 38 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 46 69 6E 6C 61 6E 64 69 61 20 D0 BF D0 BE D0 BB D1 8F D1 80 D0 BD D0 B0 D1 8F 20 D0 BA D0 BB D1 8E D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 FF 01 00 00 00 13 04 06 00 20 FE 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FE 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 6C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 FE 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A5 6B 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 ED F7 00 00 35 04 06 00 15 D5 63 F9 AD A0 97 1F D2 B9 A3 45 20 F5 [15:45:37]Write to MH i2c: 01 00 00 94 26 BA [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 ED 0C BA [15:45:37]RasterBufferAndPrint [15:45:37]line [15:45:37]line [15:45:37]line [15:45:37]line [15:45:37]line [15:45:37]written 0, free lines is 3315 [15:45:37]MH_Cut [15:45:37]Write to MH i2c: D1 01 00 9B 26 01 93 [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: D1 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: D1 01 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: D1 01 00 9B 26 00 92 [15:45:37]Write to MH i2c: 01 00 00 9C 26 C2 [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 A0 EB 47 00 87 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 ED F7 00 00 F4 03 04 00 99 15 1A 67 B6 04 01 00 00 C7 6F F2 47 76 0A 08 B9 [15:45:37]CommunicateWithHost err = 0 [15:45:37]CheckOFDResponse [15:45:37]1017 (14) - 77093643461234 [15:45:37]1041 (16) - 0000000000874676 [15:45:37]1040 (4) - 63469 [15:45:37]1012 (4) - 24.10.2024 09:38 [15:45:37]1206 (1) - 0 [15:45:37]OFD Sender: Remove packet 63469 [15:45:37]ProducePacketName [15:45:37]name=ofd_packets/00063469 [15:45:37]NVStorageDeleteData [15:45:38]OFD Sender: No OFD packet to send [15:45:38]*** Cut start [15:45:38]*** Partial cut [15:45:38]*** CUTSNS_PIN = 1 [15:45:38]*** CUTSNS_PIN = 0 [15:45:38]*** Brake cut motor [15:45:38]Read from MH i2c: 01 [15:45:38]MH_I2C_Read... [15:45:38]*** Stop cut motor [15:45:38]*** Cut end [15:45:38]Read from MH i2c: 01 07 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: 01 07 00 9C 26 00 00 00 00 00 FF 0F D7 [15:45:38]process_action close_receipt done [15:45:38]requested_data is exist [15:45:38]produce_requested_data [15:45:38]requested_item fm.sn is exist - process it [15:45:38]wFMCommunicate request_size=4 [15:45:38]MH_SAM_APDU [15:45:38]CAPDU: 80 11 00 00 [15:45:38]Write to MH i2c: E2 08 00 9D 26 80 11 00 00 00 00 00 00 3D [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:38]Read from MH i2c: E2 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 17 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 17 00 9D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 96 [15:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:45:38]wFMCommunicate OK [15:45:38]requested_item fd.num is exist - process it [15:45:38]SAM_PROTO_GetFieldsCounters [15:45:38]wFMCommunicate request_size=4 [15:45:38]MH_SAM_APDU [15:45:38]CAPDU: 80 13 00 00 [15:45:38]Write to MH i2c: E2 08 00 9E 26 80 13 00 00 00 00 00 00 40 [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:38]Read from MH i2c: E2 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 62 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 62 00 9E 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 ED F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [15:45:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 ED F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:38]wFMCommunicate OK [15:45:38]SAM_PROTO_GetFieldsCounters done [15:45:38]requested_item shift.num is exist - process it [15:45:38]requested_item shift.opened is exist - process it [15:45:38]req_shift_opened [15:45:38]FM_GetShiftState [15:45:38]SAM_PROTO_GetShiftState [15:45:38]wFMCommunicate request_size=4 [15:45:38]MH_SAM_APDU [15:45:38]CAPDU: 80 13 01 00 [15:45:38]Write to MH i2c: E2 08 00 9F 26 80 13 01 00 00 00 00 00 42 [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 0E 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 0E 00 9F 26 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 23 [15:45:39]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [15:45:39]wFMCommunicate OK [15:45:39]SAM_PROTO_GetShiftState done [15:45:39]FM_GetShiftState done [15:45:39]req_shift_opened done [15:45:39]requested_item shift.open_date is exist - process it [15:45:39]req_shift_open_date [15:45:39]req_shift_open_date done [15:45:39]produce_requested_data done [15:45:39]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63469,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [15:45:39]process_action_free close_receipt [15:45:39]json_value_free [15:45:39]json_value_free done [15:45:39]process_json_proto returns [15:45:39]Send response to host [15:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63469,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [15:45:39]free response buf [15:45:39]execute_script done [15:45:39]execute_script returns [15:45:39]free content buf [15:45:39]Sock 7.Close socket [15:45:39]Sock 7.Thread stoped [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:14]accept exits with 9 [16:10:14]New connection [16:10:14]New thread 3066633572 created [16:10:14]Thread 3066490212 joined [16:10:14]Waiting for new connection... [16:10:14] Sock 9.Parse request [16:10:14]Sock 9.Check first char [16:10:14]Sock 9.First char is OK [16:10:14]request: POST /json_proto HTTP/1.0 [16:10:14]Method: POST [16:10:14]URL: /json_proto [16:10:14]Method is POST - this is cgi request [16:10:14]url: /json_proto [16:10:14]query_string will be loaded in cgi processing [16:10:14]execute_cgi json_proto POST (null) [16:10:14]execute_cgi path=json_proto method=POST [16:10:14]POST find Content-Length [16:10:14]Host: 172.17.42.132:8080 [16:10:14]Content-Length: 629 [16:10:14]Content-Type: application/json [16:10:14] [16:10:14]POST finish read [16:10:14]Found Content-Length = 629 [16:10:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47776", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:14]execute_script... [16:10: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)47776", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:14]POST & json_proto [16:10:14]process_json_proto [16:10:14]json parsed OK: [16:10:14]protocol is kg_v1.0 [16:10:14]action value=close_receipt [16:10:14]process_action close_receipt [16:10:14]cmd_close_receipt [16:10:14]MH_GetDate [16:10:14]Write to MH i2c: F0 00 00 A0 26 B5 [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: F0 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: F0 09 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: F0 09 00 A0 26 00 6D 71 1A 67 4C DF 56 66 04 [16:10:14]GetLastDocTimeStamp 1729784741 [16:10:14]current date 1729786221 [16:10:14]FM_GetShiftState [16:10:14]SAM_PROTO_GetShiftState [16:10:14]wFMCommunicate request_size=4 [16:10:14]MH_SAM_APDU [16:10:14]CAPDU: 80 13 01 00 [16:10:14]Write to MH i2c: E2 08 00 A1 26 80 13 01 00 00 00 00 00 44 [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:14]Read from MH i2c: E2 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 0E 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 0E 00 A1 26 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 25 [16:10:14]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:10:14]wFMCommunicate OK [16:10:14]SAM_PROTO_GetShiftState done [16:10:14]FM_GetShiftState done [16:10:14]opened in 1729728964 [16:10:14]opened+sec_in_day 1729815364 [16:10:14]quantity*price = 5000 [16:10:14]sum+1 = 5001 [16:10:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 84 24.10.2024 16:10 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63470 ФПД: 133333429858954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161021&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63470&fm=133333429858954&tin=02508201610067®Number=0000000000091619&sum=5000 0 [16:10:15]StoreToDocumentArchive [16:10:15]shift 547 fd 63470 [16:10:15]save to /storage/0547/doc_00063470 [16:10:15]save last doc name /storage/0547/doc_00063470 to /storage/kkm_last_doc_name [16:10:15]save OK [16:10:15]Clear old archive folders... [16:10:15]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:10:15]tlvbuf is 00B779A0 [16:10:15]SAM_PROTO_ClearQueue [16:10:15]wFMCommunicate request_size=4 [16:10:15]MH_SAM_APDU [16:10:15]CAPDU: 80 09 00 00 [16:10:15]Write to MH i2c: E2 08 00 AE 26 80 09 00 00 00 00 00 00 46 [16:10:15]Write i2c OK [16:10:15]MH_I2C_Read... [16:10:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 03 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 03 00 AE 26 00 90 00 48 [16:10:16]RAPDU: 90 00 [16:10:16]wFMCommunicate OK [16:10:16]SAM_PROTO_ClearQueue done [16:10:16]KKMCreateOFDPacket [16:10:16]OFDProtocolAddRootSTLVToBuf [16:10:16]FM_MakeSignedData [16:10:16]FM_MakeSignedData [16:10:16]SAM_PROTO_SignData [16:10:16]wFMCommunicate request_size=4 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 0D 01 02 [16:10:16]Write to MH i2c: E2 08 00 AF 26 80 0D 01 02 00 00 00 00 4E [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 03 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 03 00 AF 26 00 90 00 49 [16:10:16]RAPDU: 90 00 [16:10:16]wFMCommunicate OK [16:10:16]wFMCommunicate request_size=255 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 6D 71 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [16:10:16]Write to MH i2c: E2 02 01 B0 26 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 6D 71 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 3E [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 03 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 03 00 B0 26 00 90 00 4A [16:10:16]RAPDU: 90 00 [16:10:16]wFMCommunicate OK [16:10:16]wFMCommunicate request_size=28 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 0D 02 02 17 37 34 36 37 36 10 04 04 00 EE F7 00 00 35 04 06 00 79 44 1B B9 32 8A [16:10:16]Write to MH i2c: E2 1F 00 B1 26 80 0D 02 02 17 00 37 34 36 37 36 10 04 04 00 EE F7 00 00 35 04 06 00 79 44 1B B9 32 8A 00 00 16 [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:16]Read from MH i2c: E2 03 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 03 00 B1 26 00 90 00 4B [16:10:16]RAPDU: 90 00 [16:10:16]wFMCommunicate OK [16:10:16]wFMCommunicate request_size=4 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 0D 03 02 [16:10:16]Write to MH i2c: E2 08 00 B2 26 80 0D 03 02 00 00 00 00 53 [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 0B 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 0B 00 B2 26 00 BC 2D 34 8D EB 48 41 D8 90 00 4A [16:10:16]RAPDU: BC 2D 34 8D EB 48 41 D8 90 00 [16:10:16]wFMCommunicate OK [16:10:16]SAM_PROTO_SignData done [16:10:16]FM_MakeSignedData done [16:10:16]CreateOFDProtocolMessage [16:10:16]wFMCommunicate request_size=4 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 11 00 00 [16:10:16]Write to MH i2c: E2 08 00 B3 26 80 11 00 00 00 00 00 00 53 [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 17 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 17 00 B3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AC [16:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:10:16]wFMCommunicate OK [16:10:16]CreateOFDProtocolMessage done [16:10:16]OFDSenderStorePacket 63470 [16:10:16]StoreOFDPacket docnum=63470 [16:10:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 2C 49 19 01 E4 52 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 6D 71 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EE F7 00 00 35 04 06 00 79 44 1B B9 32 8A BC 2D 34 8D EB 48 41 D8 [16:10:16]CheckFolder [16:10:16]dirname=/storage/ofd_packets [16:10:16]CheckFolder done [16:10:16]ProducePacketName [16:10:16]name=ofd_packets/00063470 [16:10:16]NVStorageSaveData ofd_packets/00063470 [16:10:16]File name is /storage/ofd_packets/00063470 [16:10:16]Write 319 bytes [16:10:16]NVStorageSaveData done [16:10:16]OFDSenderStorePacket done [16:10:16]KKMCreateOFDPacket done [16:10:16]NVStorageSaveData kkm_last_timestamp [16:10:16]File name is /storage/kkm_last_timestamp [16:10:16]Write 4 bytes [16:10:16]NVStorageSaveData done [16:10:16]ExternCall_PrintAddStr [16:10:16]wPrintStart [16:10:16]Write to MH i2c: 01 00 00 B4 26 DA [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 07 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 07 00 B4 26 00 00 00 00 00 FF 0F EF [16:10:16]RasterBufferAndPrint [16:10:16]line Счет N : (3)47776 [16:10:16]line ИНН: 02508201610067 [16:10:16]line Контрольно-Кассовый Чек [16:10:16]line ПРОДАЖА [16:10:16]line Товар: 4700000160358 [16:10:16]line Вода Легенда 1л [16:10:16]line 1.000 * 50.00 [16:10:16]line = 50.00 [16:10:16]line НДС 12% НСП 1% [16:10:16]line > о реализуемом товаре [16:10:16]line ИТОГО: 50.00 [16:10:16]line НСП 1% : 0.44 [16:10:16]line НДС 12% : 5.31 [16:10:16]line Наличными: 50.00 [16:10:16]line Безнал.: 0.00 [16:10:16]line Место: АЗС № 86 "Партнер Нефть" [16:10:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:10:16]line СНО: Общий режим [16:10:16]line Чек 84 24.10.2024 16:10 [16:10:16]line Смена: 547 ФФД: 1.0 [16:10:16]line ЗНМ: 0300000154 [16:10:16]line РНМ: 0000000000091619 [16:10:16]line Версия ККМ: 001 [16:10:16]line ФМ: 0000000000874676 [16:10:16]line ФД: 63470 [16:10:16]line ФПД: 133333429858954 [16:10:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161021&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63470&fm=133333429858954&tin=02508201610067®Number=0000000000091619&sum=5000 [16:10:16]OFD Sender: Processing packet 63470 [packets to send 232, broken 231] [16:10:16]ProducePacketName [16:10:16]name=ofd_packets/00063470 [16:10:16]OFD Sender: To server: pG, [16:10:16]CommunicateWithHost lk.salyk.kg:30040 [16:10:16]ConnectInit lk.salyk.kg [16:10:16]line 0 [16:10:16]written 0, free lines is 4095 [16:10:17]Connected sock=10 [16:10:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 2C 49 19 01 E4 52 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 6D 71 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EE F7 00 00 35 04 06 00 79 44 1B B9 32 8A BC 2D 34 8D EB 48 41 D8 [16:10:17]Write to MH i2c: 01 00 00 DC 26 02 [16:10:17]Write i2c OK [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: 01 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: 01 07 00 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: 01 07 00 DC 26 00 00 00 00 00 0D 0D 23 [16:10:17]RasterBufferAndPrint [16:10:17]line [16:10:17]line [16:10:17]line [16:10:17]line [16:10:17]line [16:10:17]written 0, free lines is 3347 [16:10:17]MH_Cut [16:10:17]Write to MH i2c: D1 01 00 E3 26 01 DB [16:10:17]Write i2c OK [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: D1 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: D1 01 00 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: D1 01 00 E3 26 00 DA [16:10:17]Write to MH i2c: 01 00 00 E4 26 0A [16:10:17]Write i2c OK [16:10:17]MH_I2C_Read... [16:10:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 79 F1 47 00 C4 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EE F7 00 00 F4 03 04 00 61 1B 1A 67 B6 04 01 00 00 01 95 F8 59 CE 66 21 53 [16:10:17]CommunicateWithHost err = 0 [16:10:17]CheckOFDResponse [16:10:17]1017 (14) - 77093643461234 [16:10:17]1041 (16) - 0000000000874676 [16:10:17]1040 (4) - 63470 [16:10:17]1012 (4) - 24.10.2024 10:03 [16:10:17]1206 (1) - 0 [16:10:17]OFD Sender: Remove packet 63470 [16:10:17]ProducePacketName [16:10:17]name=ofd_packets/00063470 [16:10:17]NVStorageDeleteData [16:10:17]*** Cut start [16:10:17]*** Partial cut [16:10:17]*** CUTSNS_PIN = 1 [16:10:17]*** CUTSNS_PIN = 0 [16:10:18]OFD Sender: No OFD packet to send [16:10:18]*** Brake cut motor [16:10:18]Read from MH i2c: 01 [16:10:18]MH_I2C_Read... [16:10:18]*** Stop cut motor [16:10:18]*** Cut end [16:10:18]Read from MH i2c: 01 07 00 [16:10:18]MH_I2C_Read... [16:10:18]Read from MH i2c: 01 07 00 E4 26 00 00 00 00 00 FF 0F 1F [16:10:18]process_action close_receipt done [16:10:18]requested_data is exist [16:10:18]produce_requested_data [16:10:18]requested_item fm.sn is exist - process it [16:10:18]wFMCommunicate request_size=4 [16:10:18]MH_SAM_APDU [16:10:18]CAPDU: 80 11 00 00 [16:10:18]Write to MH i2c: E2 08 00 E5 26 80 11 00 00 00 00 00 00 85 [16:10:18]Write i2c OK [16:10:18]MH_I2C_Read... [16:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:18]Read from MH i2c: E2 [16:10:18]MH_I2C_Read... [16:10:18]Read from MH i2c: E2 17 00 [16:10:18]MH_I2C_Read... [16:10:18]Read from MH i2c: E2 17 00 E5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DE [16:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:10:18]wFMCommunicate OK [16:10:18]requested_item fd.num is exist - process it [16:10:18]SAM_PROTO_GetFieldsCounters [16:10:18]wFMCommunicate request_size=4 [16:10:18]MH_SAM_APDU [16:10:18]CAPDU: 80 13 00 00 [16:10:18]Write to MH i2c: E2 08 00 E6 26 80 13 00 00 00 00 00 00 88 [16:10:18]Write i2c OK [16:10:18]MH_I2C_Read... [16:10:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:18]Read from MH i2c: E2 [16:10:18]MH_I2C_Read... [16:10:18]Read from MH i2c: E2 62 00 [16:10:18]MH_I2C_Read... [16:10:18]Read from MH i2c: E2 62 00 E6 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EE F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [16:10: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EE F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:18]wFMCommunicate OK [16:10:18]SAM_PROTO_GetFieldsCounters done [16:10:18]requested_item shift.num is exist - process it [16:10:18]requested_item shift.opened is exist - process it [16:10:18]req_shift_opened [16:10:18]FM_GetShiftState [16:10:18]SAM_PROTO_GetShiftState [16:10:18]wFMCommunicate request_size=4 [16:10:18]MH_SAM_APDU [16:10:18]CAPDU: 80 13 01 00 [16:10:18]Write to MH i2c: E2 08 00 E7 26 80 13 01 00 00 00 00 00 8A [16:10:18]Write i2c OK [16:10:18]MH_I2C_Read... [16:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:18]Read from MH i2c: E2 [16:10:18]MH_I2C_Read... [16:10:18]Read from MH i2c: E2 0E 00 [16:10:18]MH_I2C_Read... [16:10:18]Read from MH i2c: E2 0E 00 E7 26 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 6B [16:10:18]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:10:18]wFMCommunicate OK [16:10:18]SAM_PROTO_GetShiftState done [16:10:18]FM_GetShiftState done [16:10:18]req_shift_opened done [16:10:18]requested_item shift.open_date is exist - process it [16:10:18]req_shift_open_date [16:10:18]req_shift_open_date done [16:10:18]produce_requested_data done [16:10:18]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63470,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [16:10:18]process_action_free close_receipt [16:10:18]json_value_free [16:10:18]json_value_free done [16:10:18]process_json_proto returns [16:10:18]Send response to host [16:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63470,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [16:10:18]free response buf [16:10:18]execute_script done [16:10:18]execute_script returns [16:10:18]free content buf [16:10:18]Sock 9.Close socket [16:10:18]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:21]accept exits with 7 [16:16:21]New connection [16:16:21]New thread 3066490212 created [16:16:21]Thread 3066633572 joined [16:16:21]Waiting for new connection... [16:16:21] Sock 7.Parse request [16:16:21]Sock 7.Check first char [16:16:21]Sock 7.First char is OK [16:16:21]request: POST /json_proto HTTP/1.0 [16:16:21]Method: POST [16:16:21]URL: /json_proto [16:16:21]Method is POST - this is cgi request [16:16:21]url: /json_proto [16:16:21]query_string will be loaded in cgi processing [16:16:21]execute_cgi json_proto POST (null) [16:16:21]execute_cgi path=json_proto method=POST [16:16:21]POST find Content-Length [16:16:21]Host: 172.17.42.132:8080 [16:16:21]Content-Length: 759 [16:16:21]Content-Type: application/json [16:16:21] [16:16:21]POST finish read [16:16:21]Found Content-Length = 759 [16:16:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47777", "tax_sys" : 0, "items" : [ { "code": "4660013330790", "name": "\u0428\u043E\u043A \u043F\u0435\u0447\u0435\u043D\u044C\u0435 \u0441\u044D\u043D\u0434\u0432\u0438\u0447 \u043F\u043B\u043E\u043C\u0431\u0438\u0440 \u0432\u0430\u043D\u0438\u043B\u044C\u043D\u044B\u0439", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:21]execute_script... [16:16:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47777", "tax_sys" : 0, "items" : [ { "code": "4660013330790", "name": "\u0428\u043E\u043A \u043F\u0435\u0447\u0435\u043D\u044C\u0435 \u0441\u044D\u043D\u0434\u0432\u0438\u0447 \u043F\u043B\u043E\u043C\u0431\u0438\u0440 \u0432\u0430\u043D\u0438\u043B\u044C\u043D\u044B\u0439", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:21]POST & json_proto [16:16:21]process_json_proto [16:16:21]json parsed OK: [16:16:21]protocol is kg_v1.0 [16:16:21]action value=close_receipt [16:16:21]process_action close_receipt [16:16:21]cmd_close_receipt [16:16:21]MH_GetDate [16:16:21]Write to MH i2c: F0 00 00 E8 26 FD [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: F0 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: F0 09 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: F0 09 00 E8 26 00 DC 72 1A 67 4C DF 56 66 BC [16:16:21]GetLastDocTimeStamp 1729786221 [16:16:21]current date 1729786588 [16:16:21]FM_GetShiftState [16:16:21]SAM_PROTO_GetShiftState [16:16:21]wFMCommunicate request_size=4 [16:16:21]MH_SAM_APDU [16:16:21]CAPDU: 80 13 01 00 [16:16:21]Write to MH i2c: E2 08 00 E9 26 80 13 01 00 00 00 00 00 8C [16:16:21]Write i2c OK [16:16:21]MH_I2C_Read... [16:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:21]Read from MH i2c: E2 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 0E 00 [16:16:21]MH_I2C_Read... [16:16:21]Read from MH i2c: E2 0E 00 E9 26 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 6D [16:16:21]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:16:21]wFMCommunicate OK [16:16:21]SAM_PROTO_GetShiftState done [16:16:21]FM_GetShiftState done [16:16:21]opened in 1729728964 [16:16:21]opened+sec_in_day 1729815364 [16:16:21]quantity*price = 20000 [16:16:21]sum+1 = 20001 [16:16:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 85 24.10.2024 16:16 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63471 ФПД: 58800377959187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161628&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63471&fm=58800377959187&tin=02508201610067®Number=0000000000091619&sum=20000 0 [16:16:22]StoreToDocumentArchive [16:16:22]shift 547 fd 63471 [16:16:22]save to /storage/0547/doc_00063471 [16:16:22]save last doc name /storage/0547/doc_00063471 to /storage/kkm_last_doc_name [16:16:22]save OK [16:16:22]Clear old archive folders... [16:16:22]ProcessDocumentItem done err = 0, tmpTLVsize=312 [16:16:22]tlvbuf is 00B44690 [16:16:22]SAM_PROTO_ClearQueue [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 09 00 00 [16:16:22]Write to MH i2c: E2 08 00 F6 26 80 09 00 00 00 00 00 00 8E [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:22]Read from MH i2c: E2 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 03 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 03 00 F6 26 00 90 00 90 [16:16:22]RAPDU: 90 00 [16:16:22]wFMCommunicate OK [16:16:22]SAM_PROTO_ClearQueue done [16:16:22]KKMCreateOFDPacket [16:16:22]OFDProtocolAddRootSTLVToBuf [16:16:22]FM_MakeSignedData [16:16:22]FM_MakeSignedData [16:16:22]SAM_PROTO_SignData [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 0D 01 02 [16:16:22]Write to MH i2c: E2 08 00 F7 26 80 0D 01 02 00 00 00 00 96 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:22]Read from MH i2c: E2 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 03 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 03 00 F7 26 00 90 00 91 [16:16:22]RAPDU: 90 00 [16:16:22]wFMCommunicate OK [16:16:22]wFMCommunicate request_size=255 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 DC 72 1A 67 0E 04 04 00 23 [16:16:22]Write to MH i2c: E2 02 01 F8 26 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 DC 72 1A 67 0E 04 04 00 23 00 00 25 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 F8 26 00 90 00 92 [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]wFMCommunicate request_size=71 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 0D 02 02 42 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EF F7 00 00 35 04 06 00 35 7A 87 A4 13 13 [16:16:23]Write to MH i2c: E2 4A 00 F9 26 80 0D 02 02 42 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EF F7 00 00 35 04 06 00 35 7A 87 A4 13 13 00 00 A1 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 F9 26 00 90 00 93 [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 0D 03 02 [16:16:23]Write to MH i2c: E2 08 00 FA 26 80 0D 03 02 00 00 00 00 9B [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 0B 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 0B 00 FA 26 00 06 09 42 E3 5D 9F 88 0B 90 00 5F [16:16:23]RAPDU: 06 09 42 E3 5D 9F 88 0B 90 00 [16:16:23]wFMCommunicate OK [16:16:23]SAM_PROTO_SignData done [16:16:23]FM_MakeSignedData done [16:16:23]CreateOFDProtocolMessage [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 11 00 00 [16:16:23]Write to MH i2c: E2 08 00 FB 26 80 11 00 00 00 00 00 00 9B [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 17 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 17 00 FB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F4 [16:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:16:23]wFMCommunicate OK [16:16:23]CreateOFDProtocolMessage done [16:16:23]OFDSenderStorePacket 63471 [16:16:23]StoreOFDPacket docnum=63471 [16:16:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4C 01 00 00 A6 A4 44 01 36 CD 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 DC 72 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EF F7 00 00 35 04 06 00 35 7A 87 A4 13 13 06 09 42 E3 5D 9F 88 0B [16:16:23]CheckFolder [16:16:23]dirname=/storage/ofd_packets [16:16:23]CheckFolder done [16:16:23]ProducePacketName [16:16:23]name=ofd_packets/00063471 [16:16:23]NVStorageSaveData ofd_packets/00063471 [16:16:23]File name is /storage/ofd_packets/00063471 [16:16:23]Write 362 bytes [16:16:23]NVStorageSaveData done [16:16:23]OFDSenderStorePacket done [16:16:23]KKMCreateOFDPacket done [16:16:23]NVStorageSaveData kkm_last_timestamp [16:16:23]File name is /storage/kkm_last_timestamp [16:16:23]Write 4 bytes [16:16:23]NVStorageSaveData done [16:16:23]ExternCall_PrintAddStr [16:16:23]wPrintStart [16:16:23]Write to MH i2c: 01 00 00 FC 26 22 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: 01 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: 01 07 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: 01 07 00 FC 26 00 00 00 00 00 FF 0F 37 [16:16:23]RasterBufferAndPrint [16:16:23]line Счет N : (3)47777 [16:16:23]line ИНН: 02508201610067 [16:16:23]line Контрольно-Кассовый Чек [16:16:23]line ПРОДАЖА [16:16:23]line Товар: 4660013330790 [16:16:23]line Шок печенье сэндвич пломбир ванильный [16:16:23]line 2.000 * 100.00 [16:16:23]line = 200.00 [16:16:23]line НДС 12% НСП 1% [16:16:23]line > о реализуемом товаре [16:16:23]line ИТОГО: 200.00 [16:16:23]line НСП 1% : 1.77 [16:16:23]line НДС 12% : 21.24 [16:16:23]line Наличными: 200.00 [16:16:23]line Безнал.: 0.00 [16:16:23]line Место: АЗС № 86 "Партнер Нефть" [16:16:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:16:23]line СНО: Общий режим [16:16:23]line Чек 85 24.10.2024 16:16 [16:16:23]line Смена: 547 ФФД: 1.0 [16:16:23]line ЗНМ: 0300000154 [16:16:23]line РНМ: 0000000000091619 [16:16:23]line Версия ККМ: 001 [16:16:23]line ФМ: 0000000000874676 [16:16:23]line ФД: 63471 [16:16:23]line ФПД: 58800377959187 [16:16:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161628&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63471&fm=58800377959187&tin=02508201610067®Number=0000000000091619&sum=20000 [16:16:23]line 0 [16:16:23]OFD Sender: Processing packet 63471 [packets to send 232, broken 231] [16:16:23]ProducePacketName [16:16:23]name=ofd_packets/00063471 [16:16:23]OFD Sender: To server: pG, [16:16:23]CommunicateWithHost lk.salyk.kg:30040 [16:16:23]ConnectInit lk.salyk.kg [16:16:23]written 0, free lines is 4095 [16:16:23]Connected sock=10 [16:16:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4C 01 00 00 A6 A4 44 01 36 CD 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 30 37 39 30 06 04 46 00 D0 A8 D0 BE D0 BA 20 D0 BF D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D1 81 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D0 BF D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 B2 D0 B0 D0 BD D0 B8 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 DC 72 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 EF F7 00 00 35 04 06 00 35 7A 87 A4 13 13 06 09 42 E3 5D 9F 88 0B [16:16:24]Write to MH i2c: 01 00 00 25 27 4C [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: 01 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: 01 07 00 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: 01 07 00 25 27 00 00 00 00 00 F4 0C 53 [16:16:24]RasterBufferAndPrint [16:16:24]line [16:16:24]line [16:16:24]line [16:16:24]line [16:16:24]line [16:16:24]written 0, free lines is 3326 [16:16:24]MH_Cut [16:16:24]Write to MH i2c: D1 01 00 2C 27 01 25 [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: D1 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: D1 01 00 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: D1 01 00 2C 27 00 24 [16:16:24]Write to MH i2c: 01 00 00 2D 27 54 [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 26 3E 47 00 6E 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 34 36 37 36 10 04 04 00 EF F7 00 00 F4 03 04 00 D0 1C 1A 67 B6 04 01 00 00 26 6D F6 D2 83 C3 4F EA [16:16:24]CommunicateWithHost err = 0 [16:16:24]CheckOFDResponse [16:16:24]1017 (14) - 77093643461234 [16:16:24]1041 (16) - 0000000000874676 [16:16:24]1040 (4) - 63471 [16:16:24]1012 (4) - 24.10.2024 10:09 [16:16:24]1206 (1) - 0 [16:16:24]OFD Sender: Remove packet 63471 [16:16:24]ProducePacketName [16:16:24]name=ofd_packets/00063471 [16:16:24]NVStorageDeleteData [16:16:24]OFD Sender: No OFD packet to send [16:16:24]*** Cut start [16:16:24]*** Partial cut [16:16:24]*** CUTSNS_PIN = 1 [16:16:24]*** CUTSNS_PIN = 0 [16:16:25]*** Brake cut motor [16:16:25]Read from MH i2c: 01 [16:16:25]MH_I2C_Read... [16:16:25]*** Stop cut motor [16:16:25]*** Cut end [16:16:25]Read from MH i2c: 01 07 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: 01 07 00 2D 27 00 00 00 00 00 FF 0F 69 [16:16:25]process_action close_receipt done [16:16:25]requested_data is exist [16:16:25]produce_requested_data [16:16:25]requested_item fm.sn is exist - process it [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 11 00 00 [16:16:25]Write to MH i2c: E2 08 00 2E 27 80 11 00 00 00 00 00 00 CF [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 17 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 17 00 2E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 28 [16:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:16:25]wFMCommunicate OK [16:16:25]requested_item fd.num is exist - process it [16:16:25]SAM_PROTO_GetFieldsCounters [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 13 00 00 [16:16:25]Write to MH i2c: E2 08 00 2F 27 80 13 00 00 00 00 00 00 D2 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 62 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 62 00 2F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EF F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [16:16:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 EF F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:25]wFMCommunicate OK [16:16:25]SAM_PROTO_GetFieldsCounters done [16:16:25]requested_item shift.num is exist - process it [16:16:25]requested_item shift.opened is exist - process it [16:16:25]req_shift_opened [16:16:25]FM_GetShiftState [16:16:25]SAM_PROTO_GetShiftState [16:16:25]wFMCommunicate request_size=4 [16:16:25]MH_SAM_APDU [16:16:25]CAPDU: 80 13 01 00 [16:16:25]Write to MH i2c: E2 08 00 30 27 80 13 01 00 00 00 00 00 D4 [16:16:25]Write i2c OK [16:16:25]MH_I2C_Read... [16:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:25]Read from MH i2c: E2 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 0E 00 [16:16:25]MH_I2C_Read... [16:16:25]Read from MH i2c: E2 0E 00 30 27 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 B5 [16:16:25]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:16:25]wFMCommunicate OK [16:16:25]SAM_PROTO_GetShiftState done [16:16:25]FM_GetShiftState done [16:16:25]req_shift_opened done [16:16:25]requested_item shift.open_date is exist - process it [16:16:25]req_shift_open_date [16:16:25]req_shift_open_date done [16:16:25]produce_requested_data done [16:16:25]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63471,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [16:16:25]process_action_free close_receipt [16:16:25]json_value_free [16:16:25]json_value_free done [16:16:25]process_json_proto returns [16:16:25]Send response to host [16:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63471,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [16:16:25]free response buf [16:16:25]execute_script done [16:16:25]execute_script returns [16:16:25]free content buf [16:16:25]Sock 7.Close socket [16:16:25]Sock 7.Thread stoped [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:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]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:27]accept exits with 9 [16:25:27]New connection [16:25:27]New thread 3066633572 created [16:25:27]Thread 3066490212 joined [16:25:27]Waiting for new connection... [16:25:27] Sock 9.Parse request [16:25:27]Sock 9.Check first char [16:25:27]Sock 9.First char is OK [16:25:27]request: POST /json_proto HTTP/1.0 [16:25:27]Method: POST [16:25:27]URL: /json_proto [16:25:27]Method is POST - this is cgi request [16:25:27]url: /json_proto [16:25:27]query_string will be loaded in cgi processing [16:25:27]execute_cgi json_proto POST (null) [16:25:27]execute_cgi path=json_proto method=POST [16:25:27]POST find Content-Length [16:25:27]Host: 172.17.42.132:8080 [16:25:27]Content-Length: 1172 [16:25:27]Content-Type: application/json [16:25:27] [16:25:27]POST finish read [16:25:27]Found Content-Length = 1172 [16:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47778", "tax_sys" : 0, "items" : [ { "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 4.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 2.000, "sum" : 294.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 774.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:27]execute_script... [16:25: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)47778", "tax_sys" : 0, "items" : [ { "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 4.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 2.000, "sum" : 294.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 774.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:27]POST & json_proto [16:25:27]process_json_proto [16:25:27]json parsed OK: [16:25:27]protocol is kg_v1.0 [16:25:27]action value=close_receipt [16:25:27]process_action close_receipt [16:25:27]cmd_close_receipt [16:25:27]MH_GetDate [16:25:27]Write to MH i2c: F0 00 00 31 27 47 [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: F0 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: F0 09 00 [16:25:27]MH_I2C_Read... [16:25:27]Read from MH i2c: F0 09 00 31 27 00 FE 74 1A 67 4C DF 56 66 2A [16:25:27]GetLastDocTimeStamp 1729786588 [16:25:27]current date 1729787134 [16:25:27]FM_GetShiftState [16:25:27]SAM_PROTO_GetShiftState [16:25:27]wFMCommunicate request_size=4 [16:25:27]MH_SAM_APDU [16:25:27]CAPDU: 80 13 01 00 [16:25:27]Write to MH i2c: E2 08 00 32 27 80 13 01 00 00 00 00 00 D6 [16:25:27]Write i2c OK [16:25:27]MH_I2C_Read... [16:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:28]Read from MH i2c: E2 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 0E 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 0E 00 32 27 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 B7 [16:25:28]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:25:28]wFMCommunicate OK [16:25:28]SAM_PROTO_GetShiftState done [16:25:28]FM_GetShiftState done [16:25:28]opened in 1729728964 [16:25:28]opened+sec_in_day 1729815364 [16:25:28]quantity*price = 14000 [16:25:28]sum+1 = 14001 [16:25:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 4.000 * 85.00 = 340.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744683 Сигареты Winston XStyle Caster+ 2.000 * 147.00 = 294.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 774.00 НСП 1% : 6.85 НДС 12% : 82.20 Наличными: 774.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 86 24.10.2024 16:25 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63472 ФПД: 54063178566000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162534&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63472&fm=54063178566000&tin=02508201610067®Number=0000000000091619&sum=77400 0 [16:25:29]StoreToDocumentArchive [16:25:29]shift 547 fd 63472 [16:25:29]save to /storage/0547/doc_00063472 [16:25:29]save last doc name /storage/0547/doc_00063472 to /storage/kkm_last_doc_name [16:25:29]save OK [16:25:29]Clear old archive folders... [16:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=498 [16:25:29]tlvbuf is 00C03B00 [16:25:29]SAM_PROTO_ClearQueue [16:25:29]wFMCommunicate request_size=4 [16:25:29]MH_SAM_APDU [16:25:29]CAPDU: 80 09 00 00 [16:25:29]Write to MH i2c: E2 08 00 3F 27 80 09 00 00 00 00 00 00 D8 [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:29]Read from MH i2c: E2 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [16:25:29]RAPDU: 90 00 [16:25:29]wFMCommunicate OK [16:25:29]SAM_PROTO_ClearQueue done [16:25:29]KKMCreateOFDPacket [16:25:29]OFDProtocolAddRootSTLVToBuf [16:25:29]FM_MakeSignedData [16:25:29]FM_MakeSignedData [16:25:29]SAM_PROTO_SignData [16:25:29]wFMCommunicate request_size=4 [16:25:29]MH_SAM_APDU [16:25:29]CAPDU: 80 0D 01 02 [16:25:29]Write to MH i2c: E2 08 00 40 27 80 0D 01 02 00 00 00 00 E0 [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:29]Read from MH i2c: E2 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 40 27 00 90 00 DB [16:25:29]RAPDU: 90 00 [16:25:29]wFMCommunicate OK [16:25:29]wFMCommunicate request_size=255 [16:25:29]MH_SAM_APDU [16:25:29]CAPDU: 80 0D 02 02 FA 03 00 F2 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 [16:25:29]Write to MH i2c: E2 02 01 41 27 80 0D 02 02 FA 00 03 00 F2 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 00 6A [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:29]Read from MH i2c: E2 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 41 27 00 90 00 DC [16:25:29]RAPDU: 90 00 [16:25:29]wFMCommunicate OK [16:25:29]wFMCommunicate request_size=255 [16:25:29]MH_SAM_APDU [16:25:29]CAPDU: 80 0D 02 02 FA 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 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 20 00 00 00 00 07 04 06 00 58 2E 01 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 FE 74 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F0 F7 00 00 35 04 06 00 31 2B 90 8D [16:25:29]Write to MH i2c: E2 02 01 42 27 80 0D 02 02 FA 00 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 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 20 00 00 00 00 07 04 06 00 58 2E 01 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 FE 74 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F0 F7 00 00 35 04 06 00 31 2B 90 8D 00 00 96 [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 42 27 00 90 00 DD [16:25:30]RAPDU: 90 00 [16:25:30]wFMCommunicate OK [16:25:30]wFMCommunicate request_size=7 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 0D 02 02 02 C9 70 [16:25:30]Write to MH i2c: E2 0A 00 43 27 80 0D 02 02 02 00 C9 70 00 00 21 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 03 00 43 27 00 90 00 DE [16:25:30]RAPDU: 90 00 [16:25:30]wFMCommunicate OK [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 0D 03 02 [16:25:30]Write to MH i2c: E2 08 00 44 27 80 0D 03 02 00 00 00 00 E6 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0B 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 0B 00 44 27 00 A3 FE 7E 87 89 C3 35 B1 90 00 BF [16:25:30]RAPDU: A3 FE 7E 87 89 C3 35 B1 90 00 [16:25:30]wFMCommunicate OK [16:25:30]SAM_PROTO_SignData done [16:25:30]FM_MakeSignedData done [16:25:30]CreateOFDProtocolMessage [16:25:30]wFMCommunicate request_size=4 [16:25:30]MH_SAM_APDU [16:25:30]CAPDU: 80 11 00 00 [16:25:30]Write to MH i2c: E2 08 00 45 27 80 11 00 00 00 00 00 00 E6 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 17 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 17 00 45 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3F [16:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:25:30]wFMCommunicate OK [16:25:30]CreateOFDProtocolMessage done [16:25:30]OFDSenderStorePacket 63472 [16:25:30]StoreOFDPacket docnum=63472 [16:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 06 02 00 00 FA 84 FE 01 1E 54 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 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 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 20 00 00 00 00 07 04 06 00 58 2E 01 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 FE 74 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F0 F7 00 00 35 04 06 00 31 2B 90 8D C9 70 A3 FE 7E 87 89 C3 35 B1 [16:25:30]CheckFolder [16:25:30]dirname=/storage/ofd_packets [16:25:30]CheckFolder done [16:25:30]ProducePacketName [16:25:30]name=ofd_packets/00063472 [16:25:30]NVStorageSaveData ofd_packets/00063472 [16:25:30]File name is /storage/ofd_packets/00063472 [16:25:30]Write 548 bytes [16:25:30]NVStorageSaveData done [16:25:30]OFDSenderStorePacket done [16:25:30]KKMCreateOFDPacket done [16:25:30]NVStorageSaveData kkm_last_timestamp [16:25:30]File name is /storage/kkm_last_timestamp [16:25:30]Write 4 bytes [16:25:30]NVStorageSaveData done [16:25:30]ExternCall_PrintAddStr [16:25:30]wPrintStart [16:25:30]Write to MH i2c: 01 00 00 46 27 6D [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 46 27 00 00 00 00 00 FF 0F 82 [16:25:30]RasterBufferAndPrint [16:25:30]line Счет N : (3)47778 [16:25:30]line ИНН: 02508201610067 [16:25:30]line Контрольно-Кассовый Чек [16:25:30]line ПРОДАЖА [16:25:30]line Товар: 4607065000868 [16:25:30]line Шок M&M`s с шоколадом 45г [16:25:30]line 2.000 * 70.00 [16:25:30]line = 140.00 [16:25:30]line НДС 12% НСП 1% [16:25:30]line > о реализуемом товаре [16:25:30]line Товар: 5449000000996 [16:25:30]line Напиток Кока-Кола 0,33л [16:25:30]line 4.000 * 85.00 [16:25:30]line = 340.00 [16:25:30]line НДС 12% НСП 1% [16:25:30]line > о реализуемом товаре [16:25:30]line Товар: 48744683 [16:25:30]line Сигареты Winston XStyle Caster+ [16:25:30]line 2.000 * 147.00 [16:25:30]line = 294.00 [16:25:30]line НДС 12% НСП 1% [16:25:30]line > о реализуемом товаре [16:25:30]line ИТОГО: 774.00 [16:25:30]line НСП 1% : 6.85 [16:25:30]line НДС 12% : 82.20 [16:25:30]line Наличными: 774.00 [16:25:30]line Безнал.: 0.00 [16:25:30]line Место: АЗС № 86 "Партнер Нефть" [16:25:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:25:30]line СНО: Общий режим [16:25:30]line Чек 86 24.10.2024 16:25 [16:25:30]line Смена: 547 ФФД: 1.0 [16:25:30]line ЗНМ: 0300000154 [16:25:30]line РНМ: 0000000000091619 [16:25:30]line Версия ККМ: 001 [16:25:30]line ФМ: 0000000000874676 [16:25:30]line ФД: 63472 [16:25:30]line ФПД: 54063178566000 [16:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162534&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63472&fm=54063178566000&tin=02508201610067®Number=0000000000091619&sum=77400 [16:25:30]line 0 [16:25:30]written 0, free lines is 4095 [16:25:30]OFD Sender: Processing packet 63472 [packets to send 232, broken 231] [16:25:30]ProducePacketName [16:25:30]name=ofd_packets/00063472 [16:25:30]OFD Sender: To server: pG, [16:25:30]CommunicateWithHost lk.salyk.kg:30040 [16:25:30]ConnectInit lk.salyk.kg [16:25:30]Connected sock=10 [16:25:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 06 02 00 00 FA 84 FE 01 1E 54 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 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 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 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 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 2E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 20 00 00 00 00 07 04 06 00 58 2E 01 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 FE 74 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F0 F7 00 00 35 04 06 00 31 2B 90 8D C9 70 A3 FE 7E 87 89 C3 35 B1 [16:25:30]Write to MH i2c: 01 00 00 7B 27 A2 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 7B 27 00 00 00 00 00 7A 0C 2F [16:25:30]RasterBufferAndPrint [16:25:30]line [16:25:30]line [16:25:30]line [16:25:30]line [16:25:30]line [16:25:30]written 0, free lines is 3204 [16:25:30]MH_Cut [16:25:30]Write to MH i2c: D1 01 00 82 27 01 7B [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: D1 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: D1 01 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: D1 01 00 82 27 00 7A [16:25:30]Write to MH i2c: 01 00 00 83 27 AA [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CA 48 47 00 39 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F0 F7 00 00 F4 03 04 00 F2 1E 1A 67 B6 04 01 00 00 0C 5E 2F CF E4 C5 2A 39 [16:25:30]CommunicateWithHost err = 0 [16:25:30]CheckOFDResponse [16:25:30]1017 (14) - 77093643461234 [16:25:30]1041 (16) - 0000000000874676 [16:25:30]1040 (4) - 63472 [16:25:30]1012 (4) - 24.10.2024 10:18 [16:25:30]1206 (1) - 0 [16:25:30]OFD Sender: Remove packet 63472 [16:25:30]ProducePacketName [16:25:30]name=ofd_packets/00063472 [16:25:30]NVStorageDeleteData [16:25:31]OFD Sender: No OFD packet to send [16:25:31]*** Cut start [16:25:31]*** Partial cut [16:25:31]*** CUTSNS_PIN = 1 [16:25:31]*** CUTSNS_PIN = 0 [16:25:31]*** Brake cut motor [16:25:32]Read from MH i2c: 01 [16:25:32]MH_I2C_Read... [16:25:32]*** Stop cut motor [16:25:32]*** Cut end [16:25:32]Read from MH i2c: 01 07 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 07 00 83 27 00 00 00 00 00 FF 0F BF [16:25:32]process_action close_receipt done [16:25:32]requested_data is exist [16:25:32]produce_requested_data [16:25:32]requested_item fm.sn is exist - process it [16:25:32]wFMCommunicate request_size=4 [16:25:32]MH_SAM_APDU [16:25:32]CAPDU: 80 11 00 00 [16:25:32]Write to MH i2c: E2 08 00 84 27 80 11 00 00 00 00 00 00 25 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:32]Read from MH i2c: E2 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 17 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 17 00 84 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7E [16:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:25:32]wFMCommunicate OK [16:25:32]requested_item fd.num is exist - process it [16:25:32]SAM_PROTO_GetFieldsCounters [16:25:32]wFMCommunicate request_size=4 [16:25:32]MH_SAM_APDU [16:25:32]CAPDU: 80 13 00 00 [16:25:32]Write to MH i2c: E2 08 00 85 27 80 13 00 00 00 00 00 00 28 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:32]Read from MH i2c: E2 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 62 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 62 00 85 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F0 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F0 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:32]wFMCommunicate OK [16:25:32]SAM_PROTO_GetFieldsCounters done [16:25:32]requested_item shift.num is exist - process it [16:25:32]requested_item shift.opened is exist - process it [16:25:32]req_shift_opened [16:25:32]FM_GetShiftState [16:25:32]SAM_PROTO_GetShiftState [16:25:32]wFMCommunicate request_size=4 [16:25:32]MH_SAM_APDU [16:25:32]CAPDU: 80 13 01 00 [16:25:32]Write to MH i2c: E2 08 00 86 27 80 13 01 00 00 00 00 00 2A [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:32]Read from MH i2c: E2 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 0E 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 0E 00 86 27 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 0B [16:25:32]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:25:32]wFMCommunicate OK [16:25:32]SAM_PROTO_GetShiftState done [16:25:32]FM_GetShiftState done [16:25:32]req_shift_opened done [16:25:32]requested_item shift.open_date is exist - process it [16:25:32]req_shift_open_date [16:25:32]req_shift_open_date done [16:25:32]produce_requested_data done [16:25:32]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63472,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [16:25:32]process_action_free close_receipt [16:25:32]json_value_free [16:25:32]json_value_free done [16:25:32]process_json_proto returns [16:25:32]Send response to host [16:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63472,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [16:25:32]free response buf [16:25:32]execute_script done [16:25:32]execute_script returns [16:25:32]free content buf [16:25:32]Sock 9.Close socket [16:25:32]Sock 9.Thread stoped [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32: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:55]accept exits with 7 [16:33:55]New connection [16:33:55]New thread 3066490212 created [16:33:55]Thread 3066633572 joined [16:33:55]Waiting for new connection... [16:33:55] Sock 7.Parse request [16:33:55]Sock 7.Check first char [16:33:55]Sock 7.First char is OK [16:33:55]request: POST /json_proto HTTP/1.0 [16:33:55]Method: POST [16:33:55]URL: /json_proto [16:33:55]Method is POST - this is cgi request [16:33:55]url: /json_proto [16:33:55]query_string will be loaded in cgi processing [16:33:55]execute_cgi json_proto POST (null) [16:33:55]execute_cgi path=json_proto method=POST [16:33:55]POST find Content-Length [16:33:55]Host: 172.17.42.132:8080 [16:33:55]Content-Length: 1796 [16:33:55]Content-Type: application/json [16:33:55] [16:33:55]POST finish read [16:33:55]Found Content-Length = 1796 [16:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47779", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 9.91, "quantity" : 1.000, "sum" : 9.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150844", "name": "\u0412\u043E\u0434\u043A\u0430 \u041C\u0430\u0430\u043D\u0430\u0439 40% 0,7 \u043B", "price" : 688.85, "quantity" : 1.000, "sum" : 688.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 103.08, "quantity" : 1.000, "sum" : 103.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030090075", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 157.59, "quantity" : 1.000, "sum" : 157.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 157.59, "quantity" : 1.000, "sum" : 157.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: Mbank", "payments": [ { "type": 1, "sum" : 1117.02 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:55]execute_script... [16:33:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47779", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 9.91, "quantity" : 1.000, "sum" : 9.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003150844", "name": "\u0412\u043E\u0434\u043A\u0430 \u041C\u0430\u0430\u043D\u0430\u0439 40% 0,7 \u043B", "price" : 688.85, "quantity" : 1.000, "sum" : 688.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 103.08, "quantity" : 1.000, "sum" : 103.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030090075", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 157.59, "quantity" : 1.000, "sum" : 157.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 157.59, "quantity" : 1.000, "sum" : 157.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: Mbank", "payments": [ { "type": 1, "sum" : 1117.02 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:55]POST & json_proto [16:33:55]process_json_proto [16:33:55]json parsed OK: [16:33:55]protocol is kg_v1.0 [16:33:55]action value=close_receipt [16:33:55]process_action close_receipt [16:33:55]cmd_close_receipt [16:33:55]MH_GetDate [16:33:55]Write to MH i2c: F0 00 00 87 27 9D [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: F0 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: F0 09 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: F0 09 00 87 27 00 FA 76 1A 67 4C DF 56 66 7E [16:33:55]GetLastDocTimeStamp 1729787134 [16:33:55]current date 1729787642 [16:33:55]FM_GetShiftState [16:33:55]SAM_PROTO_GetShiftState [16:33:55]wFMCommunicate request_size=4 [16:33:55]MH_SAM_APDU [16:33:55]CAPDU: 80 13 01 00 [16:33:55]Write to MH i2c: E2 08 00 88 27 80 13 01 00 00 00 00 00 2C [16:33:55]Write i2c OK [16:33:55]MH_I2C_Read... [16:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:55]Read from MH i2c: E2 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0E 00 [16:33:55]MH_I2C_Read... [16:33:55]Read from MH i2c: E2 0E 00 88 27 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 0D [16:33:55]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:33:55]wFMCommunicate OK [16:33:55]SAM_PROTO_GetShiftState done [16:33:55]FM_GetShiftState done [16:33:55]opened in 1729728964 [16:33:55]opened+sec_in_day 1729815364 [16:33:55]quantity*price = 991 [16:33:55]sum+1 = 992 [16:33:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003150844 Водка Маанай 40% 0,7 л 1.000 * 688.85 = 688.85 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522015 Напиток Maxi Чай Грушевый 1,2л 1.000 * 103.08 = 103.08 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030090075 Сигареты Esse Blue 1.000 * 157.59 = 157.59 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 157.59 = 157.59 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1117.02 НСП 1% : 9.88 НДС 12% : 118.61 Наличными: 0.00 Безнал.: 1117.02 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 87 24.10.2024 16:34 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63473 ФПД: 25833799489869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163402&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63473&fm=25833799489869&tin=02508201610067®Number=0000000000091619&sum=111702 0 [16:33:56]StoreToDocumentArchive [16:33:56]shift 547 fd 63473 [16:33:56]save to /storage/0547/doc_00063473 [16:33:56]save last doc name /storage/0547/doc_00063473 to /storage/kkm_last_doc_name [16:33:56]save OK [16:33:56]Clear old archive folders... [16:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=709 [16:33:56]tlvbuf is B6F0A230 [16:33:56]SAM_PROTO_ClearQueue [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 09 00 00 [16:33:56]Write to MH i2c: E2 08 00 95 27 80 09 00 00 00 00 00 00 2E [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 95 27 00 90 00 30 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_ClearQueue done [16:33:56]KKMCreateOFDPacket [16:33:56]OFDProtocolAddRootSTLVToBuf [16:33:56]FM_MakeSignedData [16:33:56]FM_MakeSignedData [16:33:56]SAM_PROTO_SignData [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 0D 01 02 [16:33:56]Write to MH i2c: E2 08 00 96 27 80 0D 01 02 00 00 00 00 36 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 03 00 96 27 00 90 00 31 [16:33:56]RAPDU: 90 00 [16:33:56]wFMCommunicate OK [16:33:56]wFMCommunicate request_size=255 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 0D 02 02 FA 03 00 C5 02 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DF 03 00 00 00 00 13 04 06 00 DF 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 34 34 06 04 22 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9C D0 B0 D0 B0 D0 BD D0 B0 D0 B9 20 34 30 25 20 30 2C 37 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 15 0D 01 00 00 00 13 04 06 00 15 0D 01 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 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 [16:33:56]Write to MH i2c: E2 02 01 97 27 80 0D 02 02 FA 00 03 00 C5 02 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DF 03 00 00 00 00 13 04 06 00 DF 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 34 34 06 04 22 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9C D0 B0 D0 B0 D0 BD D0 B0 D0 B9 20 34 30 25 20 30 2C 37 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 15 0D 01 00 00 00 13 04 06 00 15 0D 01 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 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 00 00 E9 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 97 27 00 90 00 32 [16:33:57]RAPDU: 90 00 [16:33:57]wFMCommunicate OK [16:33:57]wFMCommunicate request_size=255 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 0D 02 02 FA D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 28 00 00 00 00 13 04 06 00 44 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 [16:33:57]Write to MH i2c: E2 02 01 98 27 80 0D 02 02 FA 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 28 00 00 00 00 13 04 06 00 44 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 00 00 E8 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]OFD Sender: No OFD packet to send [16:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 98 27 00 90 00 33 [16:33:57]RAPDU: 90 00 [16:33:57]wFMCommunicate OK [16:33:57]wFMCommunicate request_size=218 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 0D 02 02 D5 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 B4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 B4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FA 76 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F1 F7 00 00 35 04 06 00 17 7E E6 71 19 4D [16:33:57]Write to MH i2c: E2 DD 00 99 27 80 0D 02 02 D5 00 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 B4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 B4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FA 76 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F1 F7 00 00 35 04 06 00 17 7E E6 71 19 4D 00 00 3B [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 99 27 00 90 00 34 [16:33:57]RAPDU: 90 00 [16:33:57]wFMCommunicate OK [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 0D 03 02 [16:33:57]Write to MH i2c: E2 08 00 9A 27 80 0D 03 02 00 00 00 00 3C [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 0B 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 0B 00 9A 27 00 7B 49 38 FB 13 45 DD 09 90 00 72 [16:33:57]RAPDU: 7B 49 38 FB 13 45 DD 09 90 00 [16:33:57]wFMCommunicate OK [16:33:57]SAM_PROTO_SignData done [16:33:57]FM_MakeSignedData done [16:33:57]CreateOFDProtocolMessage [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 11 00 00 [16:33:57]Write to MH i2c: E2 08 00 9B 27 80 11 00 00 00 00 00 00 3C [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 17 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 17 00 9B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 95 [16:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:33:57]wFMCommunicate OK [16:33:57]CreateOFDProtocolMessage done [16:33:57]OFDSenderStorePacket 63473 [16:33:57]StoreOFDPacket docnum=63473 [16:33:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 D9 02 00 00 D0 42 D1 02 3B B0 5A 03 01 00 03 00 C5 02 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DF 03 00 00 00 00 13 04 06 00 DF 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 34 34 06 04 22 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9C D0 B0 D0 B0 D0 BD D0 B0 D0 B9 20 34 30 25 20 30 2C 37 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 15 0D 01 00 00 00 13 04 06 00 15 0D 01 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 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 28 00 00 00 00 13 04 06 00 44 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 B4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 B4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FA 76 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F1 F7 00 00 35 04 06 00 17 7E E6 71 19 4D 7B 49 38 FB 13 45 DD 09 [16:33:57]CheckFolder [16:33:57]dirname=/storage/ofd_packets [16:33:57]CheckFolder done [16:33:57]ProducePacketName [16:33:57]name=ofd_packets/00063473 [16:33:57]NVStorageSaveData ofd_packets/00063473 [16:33:57]File name is /storage/ofd_packets/00063473 [16:33:57]Write 759 bytes [16:33:57]NVStorageSaveData done [16:33:57]OFDSenderStorePacket done [16:33:57]KKMCreateOFDPacket done [16:33:57]NVStorageSaveData kkm_last_timestamp [16:33:57]File name is /storage/kkm_last_timestamp [16:33:57]Write 4 bytes [16:33:57]NVStorageSaveData done [16:33:57]ExternCall_PrintAddStr [16:33:57]wPrintStart [16:33:57]Write to MH i2c: 01 00 00 9C 27 C3 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 07 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: 01 07 00 9C 27 00 00 00 00 00 FF 0F D8 [16:33:57]RasterBufferAndPrint [16:33:57]line Счет N : (3)47779 [16:33:57]line ИНН: 02508201610067 [16:33:57]line Контрольно-Кассовый Чек [16:33:57]line ПРОДАЖА [16:33:57]line Товар: 46226617 [16:33:57]line Mentos ПВ Нежная Мята 6*100*2г [16:33:57]line 1.000 * 9.91 [16:33:57]line = 9.91 [16:33:57]line НДС 12% НСП 1% [16:33:57]line > о реализуемом товаре [16:33:57]line Товар: 4700003150844 [16:33:57]line Водка Маанай 40% 0,7 л [16:33:57]line 1.000 * 688.85 [16:33:57]line = 688.85 [16:33:57]line НДС 12% НСП 1% [16:33:57]line > о реализуемом товаре [16:33:57]line Товар: 4870202522015 [16:33:57]line Напиток Maxi Чай Грушевый 1,2л [16:33:57]line 1.000 * 103.08 [16:33:57]line = 103.08 [16:33:57]line НДС 12% НСП 1% [16:33:57]line > о реализуемом товаре [16:33:57]line Товар: 4640030090075 [16:33:57]line Сигареты Esse Blue [16:33:57]line 1.000 * 157.59 [16:33:57]line = 157.59 [16:33:57]line НДС 12% НСП 1% [16:33:57]line > о реализуемом товаре [16:33:57]line Товар: 4640030091645 [16:33:57]line Сигареты ESSE Exchange M [16:33:57]line 1.000 * 157.59 [16:33:57]line = 157.59 [16:33:57]line НДС 12% НСП 1% [16:33:57]line > о реализуемом товаре [16:33:57]line ИТОГО: 1117.02 [16:33:57]line НСП 1% : 9.88 [16:33:57]line НДС 12% : 118.61 [16:33:57]line Наличными: 0.00 [16:33:57]line Безнал.: 1117.02 [16:33:57]line Место: АЗС № 86 "Партнер Нефть" [16:33:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:33:57]line СНО: Общий режим [16:33:57]line Чек 87 24.10.2024 16:34 [16:33:57]line Смена: 547 ФФД: 1.0 [16:33:57]line ЗНМ: 0300000154 [16:33:57]line РНМ: 0000000000091619 [16:33:57]line Версия ККМ: 001 [16:33:57]line Платежная система: Mbank [16:33:57]line ФМ: 0000000000874676 [16:33:57]line ФД: 63473 [16:33:57]line ФПД: 25833799489869 [16:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163402&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63473&fm=25833799489869&tin=02508201610067®Number=0000000000091619&sum=111702 [16:33:57]line 0 [16:33:57]written 0, free lines is 4095 [16:33:58]OFD Sender: Processing packet 63473 [packets to send 232, broken 231] [16:33:58]ProducePacketName [16:33:58]name=ofd_packets/00063473 [16:33:58]OFD Sender: To server: pG, [16:33:58]CommunicateWithHost lk.salyk.kg:30040 [16:33:58]ConnectInit lk.salyk.kg [16:33:58]Connected sock=10 [16:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 D9 02 00 00 D0 42 D1 02 3B B0 5A 03 01 00 03 00 C5 02 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DF 03 00 00 00 00 13 04 06 00 DF 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 34 34 06 04 22 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9C D0 B0 D0 B0 D0 BD D0 B0 D0 B9 20 34 30 25 20 30 2C 37 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 15 0D 01 00 00 00 13 04 06 00 15 0D 01 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 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 28 00 00 00 00 13 04 06 00 44 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 B4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 B4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FA 76 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F1 F7 00 00 35 04 06 00 17 7E E6 71 19 4D 7B 49 38 FB 13 45 DD 09 [16:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 C8 61 47 00 B1 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 34 36 37 36 10 04 04 00 F1 F7 00 00 F4 03 04 00 EE 20 1A 67 B6 04 01 00 00 2D 04 C0 91 9A 2A 87 10 [16:33:58]CommunicateWithHost err = 0 [16:33:58]CheckOFDResponse [16:33:58]1017 (14) - 77093643461234 [16:33:58]1041 (16) - 0000000000874676 [16:33:58]1040 (4) - 63473 [16:33:58]1012 (4) - 24.10.2024 10:26 [16:33:58]1206 (1) - 0 [16:33:58]OFD Sender: Remove packet 63473 [16:33:58]ProducePacketName [16:33:58]name=ofd_packets/00063473 [16:33:58]NVStorageDeleteData [16:33:58]Write to MH i2c: 01 00 00 DF 27 06 [16:33:58]Write i2c OK [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: 01 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: 01 07 00 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: 01 07 00 DF 27 00 00 00 00 00 DD 0B F5 [16:33:58]RasterBufferAndPrint [16:33:58]line [16:33:58]line [16:33:58]line [16:33:58]line [16:33:58]line [16:33:58]written 0, free lines is 3047 [16:33:58]MH_Cut [16:33:58]Write to MH i2c: D1 01 00 E6 27 01 DF [16:33:58]Write i2c OK [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: D1 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: D1 01 00 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: D1 01 00 E6 27 00 DE [16:33:58]Write to MH i2c: 01 00 00 E7 27 0E [16:33:58]Write i2c OK [16:33:58]MH_I2C_Read... [16:33:59]OFD Sender: No OFD packet to send [16:33:59]*** Cut start [16:33:59]*** Partial cut [16:33:59]*** CUTSNS_PIN = 1 [16:33:59]*** CUTSNS_PIN = 0 [16:33:59]*** Brake cut motor [16:34:00]Read from MH i2c: 01 [16:34:00]MH_I2C_Read... [16:34:00]*** Stop cut motor [16:34:00]*** Cut end [16:34:00]Read from MH i2c: 01 07 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 07 00 E7 27 00 00 00 00 00 FF 0F 23 [16:34:00]process_action close_receipt done [16:34:00]requested_data is exist [16:34:00]produce_requested_data [16:34:00]requested_item fm.sn is exist - process it [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 11 00 00 [16:34:00]Write to MH i2c: E2 08 00 E8 27 80 11 00 00 00 00 00 00 89 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 17 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 17 00 E8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E2 [16:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:34:00]wFMCommunicate OK [16:34:00]requested_item fd.num is exist - process it [16:34:00]SAM_PROTO_GetFieldsCounters [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 13 00 00 [16:34:00]Write to MH i2c: E2 08 00 E9 27 80 13 00 00 00 00 00 00 8C [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 62 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 62 00 E9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F1 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [16:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F1 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:00]wFMCommunicate OK [16:34:00]SAM_PROTO_GetFieldsCounters done [16:34:00]requested_item shift.num is exist - process it [16:34:00]requested_item shift.opened is exist - process it [16:34:00]req_shift_opened [16:34:00]FM_GetShiftState [16:34:00]SAM_PROTO_GetShiftState [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 13 01 00 [16:34:00]Write to MH i2c: E2 08 00 EA 27 80 13 01 00 00 00 00 00 8E [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0E 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0E 00 EA 27 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 6F [16:34:00]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:34:00]wFMCommunicate OK [16:34:00]SAM_PROTO_GetShiftState done [16:34:00]FM_GetShiftState done [16:34:00]req_shift_opened done [16:34:00]requested_item shift.open_date is exist - process it [16:34:00]req_shift_open_date [16:34:00]req_shift_open_date done [16:34:00]produce_requested_data done [16:34:00]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63473,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [16:34:00]process_action_free close_receipt [16:34:00]json_value_free [16:34:00]json_value_free done [16:34:00]process_json_proto returns [16:34:00]Send response to host [16:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63473,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [16:34:00]free response buf [16:34:00]execute_script done [16:34:00]execute_script returns [16:34:00]free content buf [16:34:00]Sock 7.Close socket [16:34:00]Sock 7.Thread stoped [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:53]accept exits with 9 [16:39:53]New connection [16:39:53]New thread 3066633572 created [16:39:53]Thread 3066490212 joined [16:39:53]Waiting for new connection... [16:39:53] Sock 9.Parse request [16:39:53]Sock 9.Check first char [16:39:53]Sock 9.First char is OK [16:39:53]request: POST /json_proto HTTP/1.0 [16:39:53]Method: POST [16:39:53]URL: /json_proto [16:39:53]Method is POST - this is cgi request [16:39:53]url: /json_proto [16:39:53]query_string will be loaded in cgi processing [16:39:53]execute_cgi json_proto POST (null) [16:39:53]execute_cgi path=json_proto method=POST [16:39:53]POST find Content-Length [16:39:53]Host: 172.17.42.132:8080 [16:39:53]Content-Length: 622 [16:39:53]Content-Type: application/json [16:39:53] [16:39:53]POST finish read [16:39:53]Found Content-Length = 622 [16:39:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47780", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:53]execute_script... [16:39:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47780", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:53]POST & json_proto [16:39:53]process_json_proto [16:39:53]json parsed OK: [16:39:53]protocol is kg_v1.0 [16:39:53]action value=close_receipt [16:39:53]process_action close_receipt [16:39:53]cmd_close_receipt [16:39:53]MH_GetDate [16:39:53]Write to MH i2c: F0 00 00 EB 27 01 [16:39:53]Write i2c OK [16:39:53]MH_I2C_Read... [16:39:53]Read from MH i2c: F0 [16:39:53]MH_I2C_Read... [16:39:53]Read from MH i2c: F0 09 00 [16:39:53]MH_I2C_Read... [16:39:53]Read from MH i2c: F0 09 00 EB 27 00 60 78 1A 67 4C DF 56 66 4A [16:39:53]GetLastDocTimeStamp 1729787642 [16:39:53]current date 1729788000 [16:39:53]FM_GetShiftState [16:39:53]SAM_PROTO_GetShiftState [16:39:53]wFMCommunicate request_size=4 [16:39:53]MH_SAM_APDU [16:39:53]CAPDU: 80 13 01 00 [16:39:53]Write to MH i2c: E2 08 00 EC 27 80 13 01 00 00 00 00 00 90 [16:39:53]Write i2c OK [16:39:53]MH_I2C_Read... [16:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:53]Read from MH i2c: E2 [16:39:53]MH_I2C_Read... [16:39:53]Read from MH i2c: E2 0E 00 [16:39:53]MH_I2C_Read... [16:39:53]Read from MH i2c: E2 0E 00 EC 27 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 71 [16:39:53]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:39:53]wFMCommunicate OK [16:39:53]SAM_PROTO_GetShiftState done [16:39:53]FM_GetShiftState done [16:39:53]opened in 1729728964 [16:39:53]opened+sec_in_day 1729815364 [16:39:53]quantity*price = 14400 [16:39:53]sum+1 = 14401 [16:39:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 88 24.10.2024 16:40 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63474 ФПД: 162759655612516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164000&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63474&fm=162759655612516&tin=02508201610067®Number=0000000000091619&sum=14400 0 [16:39:54]StoreToDocumentArchive [16:39:54]shift 547 fd 63474 [16:39:54]save to /storage/0547/doc_00063474 [16:39:54]save last doc name /storage/0547/doc_00063474 to /storage/kkm_last_doc_name [16:39:54]save OK [16:39:54]Clear old archive folders... [16:39:54]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:39:54]tlvbuf is B6F0ACB0 [16:39:54]SAM_PROTO_ClearQueue [16:39:54]wFMCommunicate request_size=4 [16:39:54]MH_SAM_APDU [16:39:54]CAPDU: 80 09 00 00 [16:39:54]Write to MH i2c: E2 08 00 F9 27 80 09 00 00 00 00 00 00 92 [16:39:54]Write i2c OK [16:39:54]MH_I2C_Read... [16:39:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:54]Read from MH i2c: E2 [16:39:54]MH_I2C_Read... [16:39:54]Read from MH i2c: E2 03 00 [16:39:54]MH_I2C_Read... [16:39:54]Read from MH i2c: E2 03 00 F9 27 00 90 00 94 [16:39:54]RAPDU: 90 00 [16:39:54]wFMCommunicate OK [16:39:54]SAM_PROTO_ClearQueue done [16:39:54]KKMCreateOFDPacket [16:39:54]OFDProtocolAddRootSTLVToBuf [16:39:54]FM_MakeSignedData [16:39:54]FM_MakeSignedData [16:39:54]SAM_PROTO_SignData [16:39:54]wFMCommunicate request_size=4 [16:39:54]MH_SAM_APDU [16:39:54]CAPDU: 80 0D 01 02 [16:39:54]Write to MH i2c: E2 08 00 FA 27 80 0D 01 02 00 00 00 00 9A [16:39:54]Write i2c OK [16:39:54]MH_I2C_Read... [16:39:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:54]Read from MH i2c: E2 [16:39:54]MH_I2C_Read... [16:39:54]Read from MH i2c: E2 03 00 [16:39:54]MH_I2C_Read... [16:39:54]Read from MH i2c: E2 03 00 FA 27 00 90 00 95 [16:39:54]RAPDU: 90 00 [16:39:54]wFMCommunicate OK [16:39:54]wFMCommunicate request_size=255 [16:39:54]MH_SAM_APDU [16:39:54]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 60 78 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [16:39:54]Write to MH i2c: E2 02 01 FB 27 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 60 78 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 00 00 76 [16:39:54]Write i2c OK [16:39:54]MH_I2C_Read... [16:39:54]OFD Sender: No OFD packet to send [16:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:54]Read from MH i2c: E2 [16:39:54]MH_I2C_Read... [16:39:54]Read from MH i2c: E2 03 00 [16:39:54]MH_I2C_Read... [16:39:54]Read from MH i2c: E2 03 00 FB 27 00 90 00 96 [16:39:54]RAPDU: 90 00 [16:39:54]wFMCommunicate OK [16:39:54]wFMCommunicate request_size=34 [16:39:54]MH_SAM_APDU [16:39:54]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F2 F7 00 00 35 04 06 00 94 07 6F 74 E0 64 [16:39:54]Write to MH i2c: E2 25 00 FC 27 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F2 F7 00 00 35 04 06 00 94 07 6F 74 E0 64 00 00 0F [16:39:54]Write i2c OK [16:39:54]MH_I2C_Read... [16:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:55]Read from MH i2c: E2 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: E2 03 00 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: E2 03 00 FC 27 00 90 00 97 [16:39:55]RAPDU: 90 00 [16:39:55]wFMCommunicate OK [16:39:55]wFMCommunicate request_size=4 [16:39:55]MH_SAM_APDU [16:39:55]CAPDU: 80 0D 03 02 [16:39:55]Write to MH i2c: E2 08 00 FD 27 80 0D 03 02 00 00 00 00 9F [16:39:55]Write i2c OK [16:39:55]MH_I2C_Read... [16:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:55]Read from MH i2c: E2 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: E2 0B 00 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: E2 0B 00 FD 27 00 A6 4D 49 F4 79 5A 2A 0E 90 00 DB [16:39:55]RAPDU: A6 4D 49 F4 79 5A 2A 0E 90 00 [16:39:55]wFMCommunicate OK [16:39:55]SAM_PROTO_SignData done [16:39:55]FM_MakeSignedData done [16:39:55]CreateOFDProtocolMessage [16:39:55]wFMCommunicate request_size=4 [16:39:55]MH_SAM_APDU [16:39:55]CAPDU: 80 11 00 00 [16:39:55]Write to MH i2c: E2 08 00 FE 27 80 11 00 00 00 00 00 00 9F [16:39:55]Write i2c OK [16:39:55]MH_I2C_Read... [16:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:55]Read from MH i2c: E2 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: E2 17 00 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: E2 17 00 FE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F8 [16:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:39:55]wFMCommunicate OK [16:39:55]CreateOFDProtocolMessage done [16:39:55]OFDSenderStorePacket 63474 [16:39:55]StoreOFDPacket docnum=63474 [16:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 D1 18 1F 01 E9 09 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 60 78 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F2 F7 00 00 35 04 06 00 94 07 6F 74 E0 64 A6 4D 49 F4 79 5A 2A 0E [16:39:55]CheckFolder [16:39:55]dirname=/storage/ofd_packets [16:39:55]CheckFolder done [16:39:55]ProducePacketName [16:39:55]name=ofd_packets/00063474 [16:39:55]NVStorageSaveData ofd_packets/00063474 [16:39:55]File name is /storage/ofd_packets/00063474 [16:39:55]Write 325 bytes [16:39:55]NVStorageSaveData done [16:39:55]OFDSenderStorePacket done [16:39:55]KKMCreateOFDPacket done [16:39:55]NVStorageSaveData kkm_last_timestamp [16:39:55]File name is /storage/kkm_last_timestamp [16:39:55]Write 4 bytes [16:39:55]NVStorageSaveData done [16:39:55]ExternCall_PrintAddStr [16:39:55]wPrintStart [16:39:55]Write to MH i2c: 01 00 00 FF 27 26 [16:39:55]Write i2c OK [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: 01 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: 01 07 00 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: 01 07 00 FF 27 00 00 00 00 00 FF 0F 3B [16:39:55]RasterBufferAndPrint [16:39:55]line Счет N : (3)47780 [16:39:55]line ИНН: 02508201610067 [16:39:55]line Контрольно-Кассовый Чек [16:39:55]line ПРОДАЖА [16:39:55]line Товар: 48743587 [16:39:55]line Сигареты Winston XStyle Silver [16:39:55]line 1.000 * 144.00 [16:39:55]line = 144.00 [16:39:55]line НДС 12% НСП 1% [16:39:55]line > о реализуемом товаре [16:39:55]line ИТОГО: 144.00 [16:39:55]line НСП 1% : 1.27 [16:39:55]line НДС 12% : 15.29 [16:39:55]line Наличными: 144.00 [16:39:55]line Безнал.: 0.00 [16:39:55]line Место: АЗС № 86 "Партнер Нефть" [16:39:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:39:55]line СНО: Общий режим [16:39:55]line Чек 88 24.10.2024 16:40 [16:39:55]line Смена: 547 ФФД: 1.0 [16:39:55]line ЗНМ: 0300000154 [16:39:55]line РНМ: 0000000000091619 [16:39:55]line Версия ККМ: 001 [16:39:55]line ФМ: 0000000000874676 [16:39:55]line ФД: 63474 [16:39:55]line ФПД: 162759655612516 [16:39:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164000&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63474&fm=162759655612516&tin=02508201610067®Number=0000000000091619&sum=14400 [16:39:55]line 0 [16:39:55]OFD Sender: Processing packet 63474 [packets to send 232, broken 231] [16:39:55]ProducePacketName [16:39:55]name=ofd_packets/00063474 [16:39:55]OFD Sender: To server: pG, [16:39:55]CommunicateWithHost lk.salyk.kg:30040 [16:39:55]ConnectInit lk.salyk.kg [16:39:55]written 0, free lines is 4095 [16:39:55]Connected sock=10 [16:39:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 D1 18 1F 01 E9 09 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 60 78 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F2 F7 00 00 35 04 06 00 94 07 6F 74 E0 64 A6 4D 49 F4 79 5A 2A 0E [16:39:55]Write to MH i2c: 01 00 00 28 28 50 [16:39:55]Write i2c OK [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: 01 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: 01 07 00 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: 01 07 00 28 28 00 00 00 00 00 00 0D 64 [16:39:55]RasterBufferAndPrint [16:39:55]line [16:39:55]line [16:39:55]line [16:39:55]line [16:39:55]line [16:39:55]written 0, free lines is 3334 [16:39:55]MH_Cut [16:39:55]Write to MH i2c: D1 01 00 2F 28 01 29 [16:39:55]Write i2c OK [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: D1 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: D1 01 00 [16:39:55]MH_I2C_Read... [16:39:55]Read from MH i2c: D1 01 00 2F 28 00 28 [16:39:55]Write to MH i2c: 01 00 00 30 28 58 [16:39:55]Write i2c OK [16:39:55]MH_I2C_Read... [16:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 78 5A 47 00 4C A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F2 F7 00 00 F4 03 04 00 54 22 1A 67 B6 04 01 00 00 FA 2C 0F FE 31 33 17 AC [16:39:56]CommunicateWithHost err = 0 [16:39:56]CheckOFDResponse [16:39:56]1017 (14) - 77093643461234 [16:39:56]1041 (16) - 0000000000874676 [16:39:56]1040 (4) - 63474 [16:39:56]1012 (4) - 24.10.2024 10:32 [16:39:56]1206 (1) - 0 [16:39:56]OFD Sender: Remove packet 63474 [16:39:56]ProducePacketName [16:39:56]name=ofd_packets/00063474 [16:39:56]NVStorageDeleteData [16:39:56]*** Cut start [16:39:56]*** Partial cut [16:39:56]*** CUTSNS_PIN = 1 [16:39:56]OFD Sender: No OFD packet to send [16:39:56]*** CUTSNS_PIN = 0 [16:39:56]*** Brake cut motor [16:39:57]Read from MH i2c: 01 [16:39:57]MH_I2C_Read... [16:39:57]*** Stop cut motor [16:39:57]*** Cut end [16:39:57]Read from MH i2c: 01 07 00 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: 01 07 00 30 28 00 00 00 00 00 FF 0F 6D [16:39:57]process_action close_receipt done [16:39:57]requested_data is exist [16:39:57]produce_requested_data [16:39:57]requested_item fm.sn is exist - process it [16:39:57]wFMCommunicate request_size=4 [16:39:57]MH_SAM_APDU [16:39:57]CAPDU: 80 11 00 00 [16:39:57]Write to MH i2c: E2 08 00 31 28 80 11 00 00 00 00 00 00 D3 [16:39:57]Write i2c OK [16:39:57]MH_I2C_Read... [16:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:57]Read from MH i2c: E2 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: E2 17 00 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: E2 17 00 31 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 2C [16:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:39:57]wFMCommunicate OK [16:39:57]requested_item fd.num is exist - process it [16:39:57]SAM_PROTO_GetFieldsCounters [16:39:57]wFMCommunicate request_size=4 [16:39:57]MH_SAM_APDU [16:39:57]CAPDU: 80 13 00 00 [16:39:57]Write to MH i2c: E2 08 00 32 28 80 13 00 00 00 00 00 00 D6 [16:39:57]Write i2c OK [16:39:57]MH_I2C_Read... [16:39:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:57]Read from MH i2c: E2 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: E2 62 00 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: E2 62 00 32 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F2 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [16:39:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F2 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:57]wFMCommunicate OK [16:39:57]SAM_PROTO_GetFieldsCounters done [16:39:57]requested_item shift.num is exist - process it [16:39:57]requested_item shift.opened is exist - process it [16:39:57]req_shift_opened [16:39:57]FM_GetShiftState [16:39:57]SAM_PROTO_GetShiftState [16:39:57]wFMCommunicate request_size=4 [16:39:57]MH_SAM_APDU [16:39:57]CAPDU: 80 13 01 00 [16:39:57]Write to MH i2c: E2 08 00 33 28 80 13 01 00 00 00 00 00 D8 [16:39:57]Write i2c OK [16:39:57]MH_I2C_Read... [16:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:57]Read from MH i2c: E2 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: E2 0E 00 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: E2 0E 00 33 28 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 B9 [16:39:57]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:39:57]wFMCommunicate OK [16:39:57]SAM_PROTO_GetShiftState done [16:39:57]FM_GetShiftState done [16:39:57]req_shift_opened done [16:39:57]requested_item shift.open_date is exist - process it [16:39:57]req_shift_open_date [16:39:57]req_shift_open_date done [16:39:57]produce_requested_data done [16:39:57]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63474,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [16:39:57]process_action_free close_receipt [16:39:57]json_value_free [16:39:57]json_value_free done [16:39:57]process_json_proto returns [16:39:57]Send response to host [16:39:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63474,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [16:39:57]free response buf [16:39:57]execute_script done [16:39:57]execute_script returns [16:39:57]free content buf [16:39:57]Sock 9.Close socket [16:39:57]Sock 9.Thread stoped [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:29]accept exits with 7 [16:48:29]New connection [16:48:29]New thread 3066490212 created [16:48:29]Thread 3066633572 joined [16:48:29]Waiting for new connection... [16:48:29] Sock 7.Parse request [16:48:29]Sock 7.Check first char [16:48:29]Sock 7.First char is OK [16:48:29]request: POST /json_proto HTTP/1.0 [16:48:29]Method: POST [16:48:29]URL: /json_proto [16:48:29]Method is POST - this is cgi request [16:48:29]url: /json_proto [16:48:29]query_string will be loaded in cgi processing [16:48:29]execute_cgi json_proto POST (null) [16:48:29]execute_cgi path=json_proto method=POST [16:48:29]POST find Content-Length [16:48:29]Host: 172.17.42.132:8080 [16:48:29]Content-Length: 620 [16:48:29]Content-Type: application/json [16:48:29] [16:48:29]POST finish read [16:48:29]Found Content-Length = 620 [16:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47781", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:29]execute_script... [16:48:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47781", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:29]POST & json_proto [16:48:29]process_json_proto [16:48:29]json parsed OK: [16:48:29]protocol is kg_v1.0 [16:48:29]action value=close_receipt [16:48:29]process_action close_receipt [16:48:29]cmd_close_receipt [16:48:29]MH_GetDate [16:48:29]Write to MH i2c: F0 00 00 34 28 4B [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: F0 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: F0 09 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: F0 09 00 34 28 00 64 7A 1A 67 4C DF 56 66 9A [16:48:29]GetLastDocTimeStamp 1729788000 [16:48:29]current date 1729788516 [16:48:29]FM_GetShiftState [16:48:29]SAM_PROTO_GetShiftState [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 13 01 00 [16:48:29]Write to MH i2c: E2 08 00 35 28 80 13 01 00 00 00 00 00 DA [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 0E 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 0E 00 35 28 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 BB [16:48:29]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:48:29]wFMCommunicate OK [16:48:29]SAM_PROTO_GetShiftState done [16:48:29]FM_GetShiftState done [16:48:29]opened in 1729728964 [16:48:29]opened+sec_in_day 1729815364 [16:48:29]quantity*price = 14400 [16:48:29]sum+1 = 14401 [16:48:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 89 24.10.2024 16:48 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63475 ФПД: 47287040255735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164836&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63475&fm=47287040255735&tin=02508201610067®Number=0000000000091619&sum=14400 0 [16:48:30]StoreToDocumentArchive [16:48:30]shift 547 fd 63475 [16:48:30]save to /storage/0547/doc_00063475 [16:48:30]save last doc name /storage/0547/doc_00063475 to /storage/kkm_last_doc_name [16:48:30]save OK [16:48:30]Clear old archive folders... [16:48:30]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:48:30]tlvbuf is 00C03A00 [16:48:30]SAM_PROTO_ClearQueue [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 09 00 00 [16:48:30]Write to MH i2c: E2 08 00 42 28 80 09 00 00 00 00 00 00 DC [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 03 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 03 00 42 28 00 90 00 DE [16:48:30]RAPDU: 90 00 [16:48:30]wFMCommunicate OK [16:48:30]SAM_PROTO_ClearQueue done [16:48:30]KKMCreateOFDPacket [16:48:30]OFDProtocolAddRootSTLVToBuf [16:48:30]FM_MakeSignedData [16:48:30]FM_MakeSignedData [16:48:30]SAM_PROTO_SignData [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 0D 01 02 [16:48:30]Write to MH i2c: E2 08 00 43 28 80 0D 01 02 00 00 00 00 E4 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 03 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 03 00 43 28 00 90 00 DF [16:48:30]RAPDU: 90 00 [16:48:30]wFMCommunicate OK [16:48:30]wFMCommunicate request_size=255 [16:48:30]MH_SAM_APDU [16:48: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 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 64 7A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [16:48:30]Write to MH i2c: E2 02 01 44 28 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 64 7A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 2C [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 03 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 03 00 44 28 00 90 00 E0 [16:48:31]RAPDU: 90 00 [16:48:31]wFMCommunicate OK [16:48:31]wFMCommunicate request_size=32 [16:48:31]MH_SAM_APDU [16:48:31]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 F3 F7 00 00 35 04 06 00 2B 01 DF 3C A6 F7 [16:48:31]Write to MH i2c: E2 23 00 45 28 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 F3 F7 00 00 35 04 06 00 2B 01 DF 3C A6 F7 00 00 18 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 03 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 03 00 45 28 00 90 00 E1 [16:48:31]RAPDU: 90 00 [16:48:31]wFMCommunicate OK [16:48:31]wFMCommunicate request_size=4 [16:48:31]MH_SAM_APDU [16:48:31]CAPDU: 80 0D 03 02 [16:48:31]Write to MH i2c: E2 08 00 46 28 80 0D 03 02 00 00 00 00 E9 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 0B 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 0B 00 46 28 00 1D 3E EF C8 7A 5E D1 27 90 00 CC [16:48:31]RAPDU: 1D 3E EF C8 7A 5E D1 27 90 00 [16:48:31]wFMCommunicate OK [16:48:31]SAM_PROTO_SignData done [16:48:31]FM_MakeSignedData done [16:48:31]CreateOFDProtocolMessage [16:48:31]wFMCommunicate request_size=4 [16:48:31]MH_SAM_APDU [16:48:31]CAPDU: 80 11 00 00 [16:48:31]Write to MH i2c: E2 08 00 47 28 80 11 00 00 00 00 00 00 E9 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 17 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 17 00 47 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 42 [16:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:48:31]wFMCommunicate OK [16:48:31]CreateOFDProtocolMessage done [16:48:31]OFDSenderStorePacket 63475 [16:48:31]StoreOFDPacket docnum=63475 [16:48:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 5C 45 1D 01 45 FE 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 64 7A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F3 F7 00 00 35 04 06 00 2B 01 DF 3C A6 F7 1D 3E EF C8 7A 5E D1 27 [16:48:31]CheckFolder [16:48:31]dirname=/storage/ofd_packets [16:48:31]CheckFolder done [16:48:31]ProducePacketName [16:48:31]name=ofd_packets/00063475 [16:48:31]NVStorageSaveData ofd_packets/00063475 [16:48:31]File name is /storage/ofd_packets/00063475 [16:48:31]Write 323 bytes [16:48:31]NVStorageSaveData done [16:48:31]OFDSenderStorePacket done [16:48:31]KKMCreateOFDPacket done [16:48:31]NVStorageSaveData kkm_last_timestamp [16:48:31]File name is /storage/kkm_last_timestamp [16:48:31]Write 4 bytes [16:48:31]NVStorageSaveData done [16:48:31]ExternCall_PrintAddStr [16:48:31]wPrintStart [16:48:31]Write to MH i2c: 01 00 00 48 28 70 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: 01 07 00 48 28 00 00 00 00 00 FF 0F 85 [16:48:31]RasterBufferAndPrint [16:48:31]line Счет N : (3)47781 [16:48:31]line ИНН: 02508201610067 [16:48:31]line Контрольно-Кассовый Чек [16:48:31]line ПРОДАЖА [16:48:31]line Товар: 48743570 [16:48:31]line Сигареты Winston XStyle Blue [16:48:31]line 1.000 * 144.00 [16:48:31]line = 144.00 [16:48:31]line НДС 12% НСП 1% [16:48:31]line > о реализуемом товаре [16:48:31]line ИТОГО: 144.00 [16:48:31]line НСП 1% : 1.27 [16:48:31]line НДС 12% : 15.29 [16:48:31]line Наличными: 144.00 [16:48:31]line Безнал.: 0.00 [16:48:31]line Место: АЗС № 86 "Партнер Нефть" [16:48:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:48:31]line СНО: Общий режим [16:48:31]line Чек 89 24.10.2024 16:48 [16:48:31]line Смена: 547 ФФД: 1.0 [16:48:31]line ЗНМ: 0300000154 [16:48:31]line РНМ: 0000000000091619 [16:48:31]line Версия ККМ: 001 [16:48:31]line ФМ: 0000000000874676 [16:48:31]line ФД: 63475 [16:48:31]line ФПД: 47287040255735 [16:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164836&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63475&fm=47287040255735&tin=02508201610067®Number=0000000000091619&sum=14400 [16:48:31]OFD Sender: Processing packet 63475 [packets to send 232, broken 231] [16:48:31]ProducePacketName [16:48:31]name=ofd_packets/00063475 [16:48:31]OFD Sender: To server: pG, [16:48:31]CommunicateWithHost lk.salyk.kg:30040 [16:48:31]ConnectInit lk.salyk.kg [16:48:31]line 0 [16:48:31]written 0, free lines is 4095 [16:48:31]Connected sock=9 [16:48:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 5C 45 1D 01 45 FE 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 64 7A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F3 F7 00 00 35 04 06 00 2B 01 DF 3C A6 F7 1D 3E EF C8 7A 5E D1 27 [16:48:32]Write to MH i2c: 01 00 00 70 28 98 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: 01 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: 01 07 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: 01 07 00 70 28 00 00 00 00 00 09 0D B5 [16:48:32]RasterBufferAndPrint [16:48:32]line [16:48:32]line [16:48:32]line [16:48:32]line [16:48:32]line [16:48:32]written 0, free lines is 3346 [16:48:32]MH_Cut [16:48:32]Write to MH i2c: D1 01 00 77 28 01 71 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: D1 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: D1 01 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: D1 01 00 77 28 00 70 [16:48:32]Write to MH i2c: 01 00 00 78 28 A0 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 BB DB 47 00 C3 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F3 F7 00 00 F4 03 04 00 58 24 1A 67 B6 04 01 00 00 EA 65 2F 59 DB 58 2E 04 [16:48:32]CommunicateWithHost err = 0 [16:48:32]CheckOFDResponse [16:48:32]1017 (14) - 77093643461234 [16:48:32]1041 (16) - 0000000000874676 [16:48:32]1040 (4) - 63475 [16:48:32]1012 (4) - 24.10.2024 10:41 [16:48:32]1206 (1) - 0 [16:48:32]OFD Sender: Remove packet 63475 [16:48:32]ProducePacketName [16:48:32]name=ofd_packets/00063475 [16:48:32]NVStorageDeleteData [16:48:32]OFD Sender: No OFD packet to send [16:48:32]*** Cut start [16:48:32]*** Partial cut [16:48:32]*** CUTSNS_PIN = 1 [16:48:32]*** CUTSNS_PIN = 0 [16:48:32]*** Brake cut motor [16:48:33]Read from MH i2c: 01 [16:48:33]MH_I2C_Read... [16:48:33]*** Stop cut motor [16:48:33]*** Cut end [16:48:33]Read from MH i2c: 01 07 00 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 07 00 78 28 00 00 00 00 00 FF 0F B5 [16:48:33]process_action close_receipt done [16:48:33]requested_data is exist [16:48:33]produce_requested_data [16:48:33]requested_item fm.sn is exist - process it [16:48:33]wFMCommunicate request_size=4 [16:48:33]MH_SAM_APDU [16:48:33]CAPDU: 80 11 00 00 [16:48:33]Write to MH i2c: E2 08 00 79 28 80 11 00 00 00 00 00 00 1B [16:48:33]Write i2c OK [16:48:33]MH_I2C_Read... [16:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:33]Read from MH i2c: E2 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: E2 17 00 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: E2 17 00 79 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 74 [16:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:48:33]wFMCommunicate OK [16:48:33]requested_item fd.num is exist - process it [16:48:33]SAM_PROTO_GetFieldsCounters [16:48:33]wFMCommunicate request_size=4 [16:48:33]MH_SAM_APDU [16:48:33]CAPDU: 80 13 00 00 [16:48:33]Write to MH i2c: E2 08 00 7A 28 80 13 00 00 00 00 00 00 1E [16:48:33]Write i2c OK [16:48:33]MH_I2C_Read... [16:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:33]Read from MH i2c: E2 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: E2 62 00 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: E2 62 00 7A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F3 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [16:48:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F3 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:33]wFMCommunicate OK [16:48:33]SAM_PROTO_GetFieldsCounters done [16:48:33]requested_item shift.num is exist - process it [16:48:33]requested_item shift.opened is exist - process it [16:48:33]req_shift_opened [16:48:33]FM_GetShiftState [16:48:33]SAM_PROTO_GetShiftState [16:48:33]wFMCommunicate request_size=4 [16:48:33]MH_SAM_APDU [16:48:33]CAPDU: 80 13 01 00 [16:48:33]Write to MH i2c: E2 08 00 7B 28 80 13 01 00 00 00 00 00 20 [16:48:33]Write i2c OK [16:48:33]MH_I2C_Read... [16:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:33]Read from MH i2c: E2 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: E2 0E 00 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: E2 0E 00 7B 28 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 01 [16:48:33]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [16:48:33]wFMCommunicate OK [16:48:33]SAM_PROTO_GetShiftState done [16:48:33]FM_GetShiftState done [16:48:33]req_shift_opened done [16:48:33]requested_item shift.open_date is exist - process it [16:48:33]req_shift_open_date [16:48:33]req_shift_open_date done [16:48:33]produce_requested_data done [16:48:33]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63475,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [16:48:33]process_action_free close_receipt [16:48:33]json_value_free [16:48:33]json_value_free done [16:48:33]process_json_proto returns [16:48:33]Send response to host [16:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63475,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [16:48:33]free response buf [16:48:33]execute_script done [16:48:33]execute_script returns [16:48:33]free content buf [16:48:33]Sock 7.Close socket [16:48:33]Sock 7.Thread stoped [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:25]ConnectInit Can't connect to host [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:39]accept exits with 10 [17:05:39]New connection [17:05:39]New thread 3066633572 created [17:05:39]Thread 3066490212 joined [17:05:39]Waiting for new connection... [17:05:39] Sock 10.Parse request [17:05:39]Sock 10.Check first char [17:05:39]Sock 10.First char is OK [17:05:39]request: POST /json_proto HTTP/1.0 [17:05:39]Method: POST [17:05:39]URL: /json_proto [17:05:39]Method is POST - this is cgi request [17:05:39]url: /json_proto [17:05:39]query_string will be loaded in cgi processing [17:05:39]execute_cgi json_proto POST (null) [17:05:39]execute_cgi path=json_proto method=POST [17:05:39]POST find Content-Length [17:05:39]Host: 172.17.42.132:8080 [17:05:39]Content-Length: 854 [17:05:39]Content-Type: application/json [17:05:39] [17:05:39]POST finish read [17:05:39]Found Content-Length = 854 [17:05:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47782", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 59.47, "quantity" : 1.000, "sum" : 59.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 59.47 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:39]execute_script... [17:05: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)47782", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 59.47, "quantity" : 1.000, "sum" : 59.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 59.47 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:39]POST & json_proto [17:05:39]process_json_proto [17:05:39]json parsed OK: [17:05:39]protocol is kg_v1.0 [17:05:39]action value=close_receipt [17:05:39]process_action close_receipt [17:05:39]cmd_close_receipt [17:05:39]MH_GetDate [17:05:39]Write to MH i2c: F0 00 00 7C 28 93 [17:05:39]Write i2c OK [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: F0 [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: F0 09 00 [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: F0 09 00 7C 28 00 6A 7E 1A 67 4C DF 56 66 EC [17:05:39]GetLastDocTimeStamp 1729788516 [17:05:39]current date 1729789546 [17:05:39]FM_GetShiftState [17:05:39]SAM_PROTO_GetShiftState [17:05:39]wFMCommunicate request_size=4 [17:05:39]MH_SAM_APDU [17:05:39]CAPDU: 80 13 01 00 [17:05:39]Write to MH i2c: E2 08 00 7D 28 80 13 01 00 00 00 00 00 22 [17:05:39]Write i2c OK [17:05:39]MH_I2C_Read... [17:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:39]Read from MH i2c: E2 [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: E2 0E 00 [17:05:39]MH_I2C_Read... [17:05:39]Read from MH i2c: E2 0E 00 7D 28 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 03 [17:05:39]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:05:39]wFMCommunicate OK [17:05:39]SAM_PROTO_GetShiftState done [17:05:39]FM_GetShiftState done [17:05:39]opened in 1729728964 [17:05:39]opened+sec_in_day 1729815364 [17:05:39]quantity*price = 5947 [17:05:39]sum+1 = 5948 [17:05:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.47 НСП 1% : 0.53 НДС 12% : 6.31 Наличными: 0.00 Безнал.: 59.47 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 90 24.10.2024 17:05 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63476 ФПД: 265829280918861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170546&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63476&fm=265829280918861&tin=02508201610067®Number=0000000000091619&sum=5947 0 [17:05:40]StoreToDocumentArchive [17:05:40]shift 547 fd 63476 [17:05:40]save to /storage/0547/doc_00063476 [17:05:40]save last doc name /storage/0547/doc_00063476 to /storage/kkm_last_doc_name [17:05:40]save OK [17:05:40]Clear old archive folders... [17:05:40]ProcessDocumentItem done err = 0, tmpTLVsize=303 [17:05:40]tlvbuf is 00C037A0 [17:05:40]SAM_PROTO_ClearQueue [17:05:40]wFMCommunicate request_size=4 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 09 00 00 [17:05:40]Write to MH i2c: E2 08 00 8A 28 80 09 00 00 00 00 00 00 24 [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:40]Read from MH i2c: E2 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 8A 28 00 90 00 26 [17:05:40]RAPDU: 90 00 [17:05:40]wFMCommunicate OK [17:05:40]SAM_PROTO_ClearQueue done [17:05:40]KKMCreateOFDPacket [17:05:40]OFDProtocolAddRootSTLVToBuf [17:05:40]FM_MakeSignedData [17:05:40]FM_MakeSignedData [17:05:40]SAM_PROTO_SignData [17:05:40]wFMCommunicate request_size=4 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 0D 01 02 [17:05:40]Write to MH i2c: E2 08 00 8B 28 80 0D 01 02 00 00 00 00 2C [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:40]Read from MH i2c: E2 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 8B 28 00 90 00 27 [17:05:40]RAPDU: 90 00 [17:05:40]wFMCommunicate OK [17:05:40]wFMCommunicate request_size=255 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3B 17 00 00 00 00 13 04 06 00 3B 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6A 7E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D [17:05:40]Write to MH i2c: E2 02 01 8C 28 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3B 17 00 00 00 00 13 04 06 00 3B 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6A 7E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 00 00 1A [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:40]Read from MH i2c: E2 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 8C 28 00 90 00 28 [17:05:40]RAPDU: 90 00 [17:05:40]wFMCommunicate OK [17:05:40]wFMCommunicate request_size=62 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F4 F7 00 00 35 04 06 00 F1 C5 33 DC 2D 4D [17:05:40]Write to MH i2c: E2 41 00 8D 28 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F4 F7 00 00 35 04 06 00 F1 C5 33 DC 2D 4D 00 00 9B [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:40]Read from MH i2c: E2 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 03 00 8D 28 00 90 00 29 [17:05:40]RAPDU: 90 00 [17:05:40]wFMCommunicate OK [17:05:40]wFMCommunicate request_size=4 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 0D 03 02 [17:05:40]Write to MH i2c: E2 08 00 8E 28 80 0D 03 02 00 00 00 00 31 [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:40]Read from MH i2c: E2 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 0B 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 0B 00 8E 28 00 BE 24 CC 8C 4A 3A 55 27 90 00 6C [17:05:40]RAPDU: BE 24 CC 8C 4A 3A 55 27 90 00 [17:05:40]wFMCommunicate OK [17:05:40]SAM_PROTO_SignData done [17:05:40]FM_MakeSignedData done [17:05:40]CreateOFDProtocolMessage [17:05:40]wFMCommunicate request_size=4 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 11 00 00 [17:05:40]Write to MH i2c: E2 08 00 8F 28 80 11 00 00 00 00 00 00 31 [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:40]Read from MH i2c: E2 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 17 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 17 00 8F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8A [17:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:05:40]wFMCommunicate OK [17:05:40]CreateOFDProtocolMessage done [17:05:40]OFDSenderStorePacket 63476 [17:05:40]StoreOFDPacket docnum=63476 [17:05:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 43 01 00 00 7A 7B 3B 01 5E CF 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3B 17 00 00 00 00 13 04 06 00 3B 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6A 7E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F4 F7 00 00 35 04 06 00 F1 C5 33 DC 2D 4D BE 24 CC 8C 4A 3A 55 27 [17:05:40]CheckFolder [17:05:40]dirname=/storage/ofd_packets [17:05:40]CheckFolder done [17:05:40]ProducePacketName [17:05:40]name=ofd_packets/00063476 [17:05:40]NVStorageSaveData ofd_packets/00063476 [17:05:40]File name is /storage/ofd_packets/00063476 [17:05:40]Write 353 bytes [17:05:40]NVStorageSaveData done [17:05:41]OFDSenderStorePacket done [17:05:41]KKMCreateOFDPacket done [17:05:41]NVStorageSaveData kkm_last_timestamp [17:05:41]File name is /storage/kkm_last_timestamp [17:05:41]Write 4 bytes [17:05:41]NVStorageSaveData done [17:05:41]ExternCall_PrintAddStr [17:05:41]wPrintStart [17:05:41]Write to MH i2c: 01 00 00 90 28 B8 [17:05:41]OFD Sender: Processing packet 63476 [packets to send 232, broken 231] [17:05:41]ProducePacketName [17:05:41]name=ofd_packets/00063476 [17:05:41]OFD Sender: To server: pG, [17:05:41]CommunicateWithHost lk.salyk.kg:30040 [17:05:41]ConnectInit lk.salyk.kg [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: 01 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: 01 07 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: 01 07 00 90 28 00 00 00 00 00 FF 0F CD [17:05:41]RasterBufferAndPrint [17:05:41]line Счет N : (3)47782 [17:05:41]line ИНН: 02508201610067 [17:05:41]line Контрольно-Кассовый Чек [17:05:41]line ПРОДАЖА [17:05:41]line Товар: 4700000160792 [17:05:41]line Снек Курут классический (круглый) [17:05:41]line 1.000 * 59.47 [17:05:41]line = 59.47 [17:05:41]line НДС 12% НСП 1% [17:05:41]line > о реализуемом товаре [17:05:41]line ИТОГО: 59.47 [17:05:41]line НСП 1% : 0.53 [17:05:41]line НДС 12% : 6.31 [17:05:41]line Наличными: 0.00 [17:05:41]line Безнал.: 59.47 [17:05:41]line Место: АЗС № 86 "Партнер Нефть" [17:05:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:05:41]line СНО: Общий режим [17:05:41]line Чек 90 24.10.2024 17:05 [17:05:41]line Смена: 547 ФФД: 1.0 [17:05:41]line ЗНМ: 0300000154 [17:05:41]line РНМ: 0000000000091619 [17:05:41]line Версия ККМ: 001 [17:05:41]line Платежная система: Mbank [17:05:41]line ФМ: 0000000000874676 [17:05:41]line ФД: 63476 [17:05:41]line ФПД: 265829280918861 [17:05:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170546&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63476&fm=265829280918861&tin=02508201610067®Number=0000000000091619&sum=5947 [17:05:41]Connected sock=7 [17:05:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 43 01 00 00 7A 7B 3B 01 5E CF 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3B 17 00 00 00 00 13 04 06 00 3B 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6A 7E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F4 F7 00 00 35 04 06 00 F1 C5 33 DC 2D 4D BE 24 CC 8C 4A 3A 55 27 [17:05:41]line 0 [17:05:41]written 0, free lines is 4095 [17:05:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 3C BD 47 00 B7 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F4 F7 00 00 F4 03 04 00 5D 28 1A 67 B6 04 01 00 00 34 7E 43 63 9B 3C F6 02 [17:05:41]CommunicateWithHost err = 0 [17:05:41]CheckOFDResponse [17:05:41]1017 (14) - 77093643461234 [17:05:41]1041 (16) - 0000000000874676 [17:05:41]1040 (4) - 63476 [17:05:41]1012 (4) - 24.10.2024 10:58 [17:05:41]1206 (1) - 0 [17:05:41]OFD Sender: Remove packet 63476 [17:05:41]ProducePacketName [17:05:41]name=ofd_packets/00063476 [17:05:41]NVStorageDeleteData [17:05:41]Write to MH i2c: 01 00 00 BA 28 E2 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: 01 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: 01 07 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: 01 07 00 BA 28 00 00 00 00 00 01 0D F7 [17:05:41]RasterBufferAndPrint [17:05:41]line [17:05:41]line [17:05:41]line [17:05:41]line [17:05:41]line [17:05:41]written 0, free lines is 3338 [17:05:41]MH_Cut [17:05:41]Write to MH i2c: D1 01 00 C1 28 01 BB [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: D1 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: D1 01 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: D1 01 00 C1 28 00 BA [17:05:41]Write to MH i2c: 01 00 00 C2 28 EA [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:42]OFD Sender: No OFD packet to send [17:05:42]*** Cut start [17:05:42]*** Partial cut [17:05:42]*** CUTSNS_PIN = 1 [17:05:42]*** CUTSNS_PIN = 0 [17:05:42]*** Brake cut motor [17:05:43]Read from MH i2c: 01 [17:05:43]MH_I2C_Read... [17:05:43]*** Stop cut motor [17:05:43]*** Cut end [17:05:43]Read from MH i2c: 01 07 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: 01 07 00 C2 28 00 00 00 00 00 FF 0F FF [17:05:43]process_action close_receipt done [17:05:43]requested_data is exist [17:05:43]produce_requested_data [17:05:43]requested_item fm.sn is exist - process it [17:05:43]wFMCommunicate request_size=4 [17:05:43]MH_SAM_APDU [17:05:43]CAPDU: 80 11 00 00 [17:05:43]Write to MH i2c: E2 08 00 C3 28 80 11 00 00 00 00 00 00 65 [17:05:43]Write i2c OK [17:05:43]MH_I2C_Read... [17:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:43]Read from MH i2c: E2 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 17 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 17 00 C3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BE [17:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:05:43]wFMCommunicate OK [17:05:43]requested_item fd.num is exist - process it [17:05:43]SAM_PROTO_GetFieldsCounters [17:05:43]wFMCommunicate request_size=4 [17:05:43]MH_SAM_APDU [17:05:43]CAPDU: 80 13 00 00 [17:05:43]Write to MH i2c: E2 08 00 C4 28 80 13 00 00 00 00 00 00 68 [17:05:43]Write i2c OK [17:05:43]MH_I2C_Read... [17:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:43]Read from MH i2c: E2 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 62 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 62 00 C4 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F4 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [17:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F4 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:43]wFMCommunicate OK [17:05:43]SAM_PROTO_GetFieldsCounters done [17:05:43]requested_item shift.num is exist - process it [17:05:43]requested_item shift.opened is exist - process it [17:05:43]req_shift_opened [17:05:43]FM_GetShiftState [17:05:43]SAM_PROTO_GetShiftState [17:05:43]wFMCommunicate request_size=4 [17:05:43]MH_SAM_APDU [17:05:43]CAPDU: 80 13 01 00 [17:05:43]Write to MH i2c: E2 08 00 C5 28 80 13 01 00 00 00 00 00 6A [17:05:43]Write i2c OK [17:05:43]MH_I2C_Read... [17:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:43]Read from MH i2c: E2 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 0E 00 [17:05:43]MH_I2C_Read... [17:05:43]Read from MH i2c: E2 0E 00 C5 28 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 4B [17:05:43]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:05:43]wFMCommunicate OK [17:05:43]SAM_PROTO_GetShiftState done [17:05:43]FM_GetShiftState done [17:05:43]req_shift_opened done [17:05:43]requested_item shift.open_date is exist - process it [17:05:43]req_shift_open_date [17:05:43]req_shift_open_date done [17:05:43]produce_requested_data done [17:05:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63476,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [17:05:43]process_action_free close_receipt [17:05:43]json_value_free [17:05:43]json_value_free done [17:05:43]process_json_proto returns [17:05:43]Send response to host [17:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63476,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [17:05:43]free response buf [17:05:43]execute_script done [17:05:43]execute_script returns [17:05:43]free content buf [17:05:43]Sock 10.Close socket [17:05:43]Sock 10.Thread stoped [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:29]accept exits with 9 [17:06:29]New connection [17:06:29]New thread 3066490212 created [17:06:29]Thread 3066633572 joined [17:06:29]Waiting for new connection... [17:06:29] Sock 9.Parse request [17:06:29]Sock 9.Check first char [17:06:29]Sock 9.First char is OK [17:06:29]request: POST /json_proto HTTP/1.0 [17:06:29]Method: POST [17:06:29]URL: /json_proto [17:06:29]Method is POST - this is cgi request [17:06:29]url: /json_proto [17:06:29]query_string will be loaded in cgi processing [17:06:29]execute_cgi json_proto POST (null) [17:06:29]execute_cgi path=json_proto method=POST [17:06:29]POST find Content-Length [17:06:29]Host: 172.17.42.132:8080 [17:06:29]Content-Length: 879 [17:06:29]Content-Type: application/json [17:06:29] [17:06:29]POST finish read [17:06:29]Found Content-Length = 879 [17:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47783", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:29]execute_script... [17:06: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)47783", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 274.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:29]POST & json_proto [17:06:29]process_json_proto [17:06:29]json parsed OK: [17:06:29]protocol is kg_v1.0 [17:06:29]action value=close_receipt [17:06:29]process_action close_receipt [17:06:29]cmd_close_receipt [17:06:29]MH_GetDate [17:06:29]Write to MH i2c: F0 00 00 C6 28 DD [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: F0 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: F0 09 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: F0 09 00 C6 28 00 9C 7E 1A 67 4C DF 56 66 68 [17:06:29]GetLastDocTimeStamp 1729789546 [17:06:29]current date 1729789596 [17:06:29]FM_GetShiftState [17:06:29]SAM_PROTO_GetShiftState [17:06:29]wFMCommunicate request_size=4 [17:06:29]MH_SAM_APDU [17:06:29]CAPDU: 80 13 01 00 [17:06:29]Write to MH i2c: E2 08 00 C7 28 80 13 01 00 00 00 00 00 6C [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 0E 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 0E 00 C7 28 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 4D [17:06:29]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:06:29]wFMCommunicate OK [17:06:29]SAM_PROTO_GetShiftState done [17:06:29]FM_GetShiftState done [17:06:29]opened in 1729728964 [17:06:29]opened+sec_in_day 1729815364 [17:06:29]quantity*price = 14400 [17:06:29]sum+1 = 14401 [17:06:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400389 Семечки ДЖИНН 140г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 274.00 НСП 1% : 2.42 НДС 12% : 29.09 Наличными: 274.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 91 24.10.2024 17:06 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63477 ФПД: 55040151588252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170636&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63477&fm=55040151588252&tin=02508201610067®Number=0000000000091619&sum=27400 0 [17:06:30]StoreToDocumentArchive [17:06:30]shift 547 fd 63477 [17:06:30]save to /storage/0547/doc_00063477 [17:06:30]save last doc name /storage/0547/doc_00063477 to /storage/kkm_last_doc_name [17:06:30]save OK [17:06:30]Clear old archive folders... [17:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=378 [17:06:30]tlvbuf is 00C03700 [17:06:30]SAM_PROTO_ClearQueue [17:06:30]wFMCommunicate request_size=4 [17:06:30]MH_SAM_APDU [17:06:30]CAPDU: 80 09 00 00 [17:06:30]Write to MH i2c: E2 08 00 D4 28 80 09 00 00 00 00 00 00 6E [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:30]Read from MH i2c: E2 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 03 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 03 00 D4 28 00 90 00 70 [17:06:30]RAPDU: 90 00 [17:06:30]wFMCommunicate OK [17:06:30]SAM_PROTO_ClearQueue done [17:06:30]KKMCreateOFDPacket [17:06:30]OFDProtocolAddRootSTLVToBuf [17:06:30]FM_MakeSignedData [17:06:30]FM_MakeSignedData [17:06:30]SAM_PROTO_SignData [17:06:30]wFMCommunicate request_size=4 [17:06:30]MH_SAM_APDU [17:06:30]CAPDU: 80 0D 01 02 [17:06:30]Write to MH i2c: E2 08 00 D5 28 80 0D 01 02 00 00 00 00 76 [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:30]Read from MH i2c: E2 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 03 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 03 00 D5 28 00 90 00 71 [17:06:30]RAPDU: 90 00 [17:06:30]wFMCommunicate OK [17:06:30]wFMCommunicate request_size=255 [17:06:30]MH_SAM_APDU [17:06:30]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 [17:06:30]Write to MH i2c: E2 02 01 D6 28 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 00 00 F1 [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 03 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 03 00 D6 28 00 90 00 72 [17:06:31]RAPDU: 90 00 [17:06:31]wFMCommunicate OK [17:06:31]wFMCommunicate request_size=137 [17:06:31]MH_SAM_APDU [17:06:31]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9C 7E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F5 F7 00 00 35 04 06 00 32 0F 08 AF 0D 9C [17:06:31]Write to MH i2c: E2 8C 00 D7 28 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9C 7E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F5 F7 00 00 35 04 06 00 32 0F 08 AF 0D 9C 00 00 38 [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 03 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 03 00 D7 28 00 90 00 73 [17:06:31]RAPDU: 90 00 [17:06:31]wFMCommunicate OK [17:06:31]wFMCommunicate request_size=4 [17:06:31]MH_SAM_APDU [17:06:31]CAPDU: 80 0D 03 02 [17:06:31]Write to MH i2c: E2 08 00 D8 28 80 0D 03 02 00 00 00 00 7B [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 0B 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 0B 00 D8 28 00 C3 C9 DB 23 63 87 1E 2C 90 00 3A [17:06:31]RAPDU: C3 C9 DB 23 63 87 1E 2C 90 00 [17:06:31]wFMCommunicate OK [17:06:31]SAM_PROTO_SignData done [17:06:31]FM_MakeSignedData done [17:06:31]CreateOFDProtocolMessage [17:06:31]wFMCommunicate request_size=4 [17:06:31]MH_SAM_APDU [17:06:31]CAPDU: 80 11 00 00 [17:06:31]Write to MH i2c: E2 08 00 D9 28 80 11 00 00 00 00 00 00 7B [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 17 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 17 00 D9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D4 [17:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:06:31]wFMCommunicate OK [17:06:31]CreateOFDProtocolMessage done [17:06:31]OFDSenderStorePacket 63477 [17:06:31]StoreOFDPacket docnum=63477 [17:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8E 01 00 00 5A 5F 86 01 B7 C1 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9C 7E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F5 F7 00 00 35 04 06 00 32 0F 08 AF 0D 9C C3 C9 DB 23 63 87 1E 2C [17:06:31]CheckFolder [17:06:31]dirname=/storage/ofd_packets [17:06:31]CheckFolder done [17:06:31]ProducePacketName [17:06:31]name=ofd_packets/00063477 [17:06:31]NVStorageSaveData ofd_packets/00063477 [17:06:31]File name is /storage/ofd_packets/00063477 [17:06:31]Write 428 bytes [17:06:31]NVStorageSaveData done [17:06:31]OFDSenderStorePacket done [17:06:31]KKMCreateOFDPacket done [17:06:31]NVStorageSaveData kkm_last_timestamp [17:06:31]File name is /storage/kkm_last_timestamp [17:06:31]Write 4 bytes [17:06:31]NVStorageSaveData done [17:06:31]ExternCall_PrintAddStr [17:06:31]wPrintStart [17:06:31]Write to MH i2c: 01 00 00 DA 28 02 [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: 01 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: 01 07 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: 01 07 00 DA 28 00 00 00 00 00 FF 0F 17 [17:06:31]RasterBufferAndPrint [17:06:31]line Счет N : (3)47783 [17:06:31]line ИНН: 02508201610067 [17:06:31]line Контрольно-Кассовый Чек [17:06:31]line ПРОДАЖА [17:06:31]line Товар: 48743587 [17:06:31]line Сигареты Winston XStyle Silver [17:06:31]line 1.000 * 144.00 [17:06:31]line = 144.00 [17:06:31]line НДС 12% НСП 1% [17:06:31]line > о реализуемом товаре [17:06:31]line Товар: 4630007400389 [17:06:31]line Семечки ДЖИНН 140г [17:06:31]line 1.000 * 130.00 [17:06:31]line = 130.00 [17:06:31]line НДС 12% НСП 1% [17:06:31]line > о реализуемом товаре [17:06:31]line ИТОГО: 274.00 [17:06:31]line НСП 1% : 2.42 [17:06:31]line НДС 12% : 29.09 [17:06:31]line Наличными: 274.00 [17:06:31]line Безнал.: 0.00 [17:06:31]line Место: АЗС № 86 "Партнер Нефть" [17:06:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:06:31]line СНО: Общий режим [17:06:31]line Чек 91 24.10.2024 17:06 [17:06:31]line Смена: 547 ФФД: 1.0 [17:06:31]line ЗНМ: 0300000154 [17:06:31]line РНМ: 0000000000091619 [17:06:31]line Версия ККМ: 001 [17:06:31]line ФМ: 0000000000874676 [17:06:31]line ФД: 63477 [17:06:31]line ФПД: 55040151588252 [17:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170636&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63477&fm=55040151588252&tin=02508201610067®Number=0000000000091619&sum=27400 [17:06:31]line 0 [17:06:31]OFD Sender: Processing packet 63477 [packets to send 232, broken 231] [17:06:31]ProducePacketName [17:06:31]name=ofd_packets/00063477 [17:06:31]OFD Sender: To server: pG, [17:06:31]CommunicateWithHost lk.salyk.kg:30040 [17:06:31]ConnectInit lk.salyk.kg [17:06:31]written 0, free lines is 4095 [17:06:32]Connected sock=7 [17:06:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8E 01 00 00 5A 5F 86 01 B7 C1 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0B 00 00 00 00 07 04 06 00 08 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9C 7E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F5 F7 00 00 35 04 06 00 32 0F 08 AF 0D 9C C3 C9 DB 23 63 87 1E 2C [17:06:32]Write to MH i2c: 01 00 00 09 29 32 [17:06:32]Write i2c OK [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: 01 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: 01 07 00 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: 01 07 00 09 29 00 00 00 00 00 A8 0C ED [17:06:32]RasterBufferAndPrint [17:06:32]line [17:06:32]line [17:06:32]line [17:06:32]line [17:06:32]line [17:06:32]written 0, free lines is 3249 [17:06:32]MH_Cut [17:06:32]Write to MH i2c: D1 01 00 10 29 01 0B [17:06:32]Write i2c OK [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: D1 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: D1 01 00 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: D1 01 00 10 29 00 0A [17:06:32]Write to MH i2c: 01 00 00 11 29 3A [17:06:32]Write i2c OK [17:06:32]MH_I2C_Read... [17:06:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 03 8D 47 00 93 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F5 F7 00 00 F4 03 04 00 90 28 1A 67 B6 04 01 00 00 EA 91 10 A9 8A 6D CF D5 [17:06:32]CommunicateWithHost err = 0 [17:06:32]CheckOFDResponse [17:06:32]1017 (14) - 77093643461234 [17:06:32]1041 (16) - 0000000000874676 [17:06:32]1040 (4) - 63477 [17:06:32]1012 (4) - 24.10.2024 10:59 [17:06:32]1206 (1) - 0 [17:06:32]OFD Sender: Remove packet 63477 [17:06:32]ProducePacketName [17:06:32]name=ofd_packets/00063477 [17:06:32]NVStorageDeleteData [17:06:32]OFD Sender: No OFD packet to send [17:06:32]*** Cut start [17:06:33]*** Partial cut [17:06:33]*** CUTSNS_PIN = 1 [17:06:33]*** CUTSNS_PIN = 0 [17:06:33]*** Brake cut motor [17:06:33]Read from MH i2c: 01 [17:06:33]MH_I2C_Read... [17:06:33]*** Stop cut motor [17:06:33]*** Cut end [17:06:33]Read from MH i2c: 01 07 00 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: 01 07 00 11 29 00 00 00 00 00 FF 0F 4F [17:06:33]process_action close_receipt done [17:06:33]requested_data is exist [17:06:33]produce_requested_data [17:06:33]requested_item fm.sn is exist - process it [17:06:33]wFMCommunicate request_size=4 [17:06:33]MH_SAM_APDU [17:06:33]CAPDU: 80 11 00 00 [17:06:33]Write to MH i2c: E2 08 00 12 29 80 11 00 00 00 00 00 00 B5 [17:06:33]Write i2c OK [17:06:33]MH_I2C_Read... [17:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:33]Read from MH i2c: E2 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: E2 17 00 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: E2 17 00 12 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0E [17:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:06:33]wFMCommunicate OK [17:06:33]requested_item fd.num is exist - process it [17:06:33]SAM_PROTO_GetFieldsCounters [17:06:33]wFMCommunicate request_size=4 [17:06:33]MH_SAM_APDU [17:06:33]CAPDU: 80 13 00 00 [17:06:33]Write to MH i2c: E2 08 00 13 29 80 13 00 00 00 00 00 00 B8 [17:06:33]Write i2c OK [17:06:33]MH_I2C_Read... [17:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:33]Read from MH i2c: E2 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: E2 62 00 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: E2 62 00 13 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F5 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [17:06:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F5 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:33]wFMCommunicate OK [17:06:33]SAM_PROTO_GetFieldsCounters done [17:06:33]requested_item shift.num is exist - process it [17:06:33]requested_item shift.opened is exist - process it [17:06:33]req_shift_opened [17:06:33]FM_GetShiftState [17:06:33]SAM_PROTO_GetShiftState [17:06:33]wFMCommunicate request_size=4 [17:06:33]MH_SAM_APDU [17:06:33]CAPDU: 80 13 01 00 [17:06:33]Write to MH i2c: E2 08 00 14 29 80 13 01 00 00 00 00 00 BA [17:06:33]Write i2c OK [17:06:33]MH_I2C_Read... [17:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:33]Read from MH i2c: E2 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: E2 0E 00 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: E2 0E 00 14 29 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 9B [17:06:33]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:06:33]wFMCommunicate OK [17:06:33]SAM_PROTO_GetShiftState done [17:06:33]FM_GetShiftState done [17:06:33]req_shift_opened done [17:06:33]requested_item shift.open_date is exist - process it [17:06:33]req_shift_open_date [17:06:33]req_shift_open_date done [17:06:33]produce_requested_data done [17:06:33]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63477,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [17:06:33]process_action_free close_receipt [17:06:33]json_value_free [17:06:33]json_value_free done [17:06:33]process_json_proto returns [17:06:33]Send response to host [17:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63477,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [17:06:33]free response buf [17:06:33]execute_script done [17:06:33]execute_script returns [17:06:33]free content buf [17:06:33]Sock 9.Close socket [17:06:33]Sock 9.Thread stoped [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:50]accept exits with 10 [17:13:50]New connection [17:13:50]New thread 3066633572 created [17:13:50]Thread 3066490212 joined [17:13:50]Waiting for new connection... [17:13:50] Sock 10.Parse request [17:13:50]Sock 10.Check first char [17:13:50]Sock 10.First char is OK [17:13:50]request: POST /json_proto HTTP/1.0 [17:13:50]Method: POST [17:13:50]URL: /json_proto [17:13:50]Method is POST - this is cgi request [17:13:50]url: /json_proto [17:13:50]query_string will be loaded in cgi processing [17:13:50]execute_cgi json_proto POST (null) [17:13:50]execute_cgi path=json_proto method=POST [17:13:50]POST find Content-Length [17:13:50]Host: 172.17.42.132:8080 [17:13:50]Content-Length: 756 [17:13:50]Content-Type: application/json [17:13:50] [17:13:50]POST finish read [17:13:50]Found Content-Length = 756 [17:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47784", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 49.56, "quantity" : 1.000, "sum" : 49.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 49.56 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:50]execute_script... [17:13: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)47784", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 49.56, "quantity" : 1.000, "sum" : 49.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 49.56 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:50]POST & json_proto [17:13:50]process_json_proto [17:13:50]json parsed OK: [17:13:50]protocol is kg_v1.0 [17:13:50]action value=close_receipt [17:13:50]process_action close_receipt [17:13:50]cmd_close_receipt [17:13:50]MH_GetDate [17:13:50]Write to MH i2c: F0 00 00 15 29 2D [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: F0 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: F0 09 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: F0 09 00 15 29 00 55 80 1A 67 4C DF 56 66 73 [17:13:50]GetLastDocTimeStamp 1729789596 [17:13:50]current date 1729790037 [17:13:50]FM_GetShiftState [17:13:50]SAM_PROTO_GetShiftState [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 13 01 00 [17:13:50]Write to MH i2c: E2 08 00 16 29 80 13 01 00 00 00 00 00 BC [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0E 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 0E 00 16 29 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 9D [17:13:50]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_GetShiftState done [17:13:50]FM_GetShiftState done [17:13:50]opened in 1729728964 [17:13:50]opened+sec_in_day 1729815364 [17:13:50]quantity*price = 4956 [17:13:50]sum+1 = 4957 [17:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.56 НСП 1% : 0.44 НДС 12% : 5.26 Наличными: 0.00 Безнал.: 49.56 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 92 24.10.2024 17:13 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63478 ФПД: 158129770084964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171357&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63478&fm=158129770084964&tin=02508201610067®Number=0000000000091619&sum=4956 0 [17:13:51]StoreToDocumentArchive [17:13:51]shift 547 fd 63478 [17:13:51]save to /storage/0547/doc_00063478 [17:13:51]save last doc name /storage/0547/doc_00063478 to /storage/kkm_last_doc_name [17:13:51]save OK [17:13:51]Clear old archive folders... [17:13:51]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:13:51]tlvbuf is 00BC6600 [17:13:51]SAM_PROTO_ClearQueue [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 09 00 00 [17:13:51]Write to MH i2c: E2 08 00 23 29 80 09 00 00 00 00 00 00 BE [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 23 29 00 90 00 C0 [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_ClearQueue done [17:13:51]KKMCreateOFDPacket [17:13:51]OFDProtocolAddRootSTLVToBuf [17:13:51]FM_MakeSignedData [17:13:51]FM_MakeSignedData [17:13:51]SAM_PROTO_SignData [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 01 02 [17:13:51]Write to MH i2c: E2 08 00 24 29 80 0D 01 02 00 00 00 00 C6 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 24 29 00 90 00 C1 [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=255 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 55 80 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [17:13:51]Write to MH i2c: E2 02 01 25 29 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 55 80 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 00 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 25 29 00 90 00 C2 [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=28 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 02 02 17 37 34 36 37 36 10 04 04 00 F6 F7 00 00 35 04 06 00 8F D1 74 C6 3A 64 [17:13:51]Write to MH i2c: E2 1F 00 26 29 80 0D 02 02 17 00 37 34 36 37 36 10 04 04 00 F6 F7 00 00 35 04 06 00 8F D1 74 C6 3A 64 00 00 81 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 26 29 00 90 00 C3 [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 03 02 [17:13:51]Write to MH i2c: E2 08 00 27 29 80 0D 03 02 00 00 00 00 CB [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0B 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0B 00 27 29 00 60 E2 55 E8 AD 95 0E DE 90 00 79 [17:13:51]RAPDU: 60 E2 55 E8 AD 95 0E DE 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_SignData done [17:13:51]FM_MakeSignedData done [17:13:51]CreateOFDProtocolMessage [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 11 00 00 [17:13:51]Write to MH i2c: E2 08 00 28 29 80 11 00 00 00 00 00 00 CB [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 17 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 17 00 28 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 24 [17:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:13:52]wFMCommunicate OK [17:13:52]CreateOFDProtocolMessage done [17:13:52]OFDSenderStorePacket 63478 [17:13:52]StoreOFDPacket docnum=63478 [17:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 04 DA 19 01 4D A0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 55 80 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F6 F7 00 00 35 04 06 00 8F D1 74 C6 3A 64 60 E2 55 E8 AD 95 0E DE [17:13:52]CheckFolder [17:13:52]dirname=/storage/ofd_packets [17:13:52]CheckFolder done [17:13:52]ProducePacketName [17:13:52]name=ofd_packets/00063478 [17:13:52]NVStorageSaveData ofd_packets/00063478 [17:13:52]File name is /storage/ofd_packets/00063478 [17:13:52]Write 319 bytes [17:13:52]NVStorageSaveData done [17:13:52]OFDSenderStorePacket done [17:13:52]KKMCreateOFDPacket done [17:13:52]NVStorageSaveData kkm_last_timestamp [17:13:52]File name is /storage/kkm_last_timestamp [17:13:52]Write 4 bytes [17:13:52]NVStorageSaveData done [17:13:52]ExternCall_PrintAddStr [17:13:52]wPrintStart [17:13:52]Write to MH i2c: 01 00 00 29 29 52 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 29 29 00 00 00 00 00 FF 0F 67 [17:13:52]RasterBufferAndPrint [17:13:52]line Счет N : (3)47784 [17:13:52]line ИНН: 02508201610067 [17:13:52]line Контрольно-Кассовый Чек [17:13:52]line ПРОДАЖА [17:13:52]line Товар: 4700000160358 [17:13:52]line Вода Легенда 1л [17:13:52]line 1.000 * 49.56 [17:13:52]line = 49.56 [17:13:52]line НДС 12% НСП 1% [17:13:52]line > о реализуемом товаре [17:13:52]line ИТОГО: 49.56 [17:13:52]line НСП 1% : 0.44 [17:13:52]line НДС 12% : 5.26 [17:13:52]line Наличными: 0.00 [17:13:52]line Безнал.: 49.56 [17:13:52]line Место: АЗС № 86 "Партнер Нефть" [17:13:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:13:52]line СНО: Общий режим [17:13:52]line Чек 92 24.10.2024 17:13 [17:13:52]line Смена: 547 ФФД: 1.0 [17:13:52]line ЗНМ: 0300000154 [17:13:52]line РНМ: 0000000000091619 [17:13:52]line Версия ККМ: 001 [17:13:52]line Платежная система: Mbank [17:13:52]line ФМ: 0000000000874676 [17:13:52]line ФД: 63478 [17:13:52]line ФПД: 158129770084964 [17:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171357&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63478&fm=158129770084964&tin=02508201610067®Number=0000000000091619&sum=4956 [17:13:52]line 0 [17:13:52]OFD Sender: Processing packet 63478 [packets to send 232, broken 231] [17:13:52]ProducePacketName [17:13:52]name=ofd_packets/00063478 [17:13:52]OFD Sender: To server: pG, [17:13:52]CommunicateWithHost lk.salyk.kg:30040 [17:13:52]ConnectInit lk.salyk.kg [17:13:52]written 0, free lines is 4095 [17:13:52]Connected sock=9 [17:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 04 DA 19 01 4D A0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 55 80 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F6 F7 00 00 35 04 06 00 8F D1 74 C6 3A 64 60 E2 55 E8 AD 95 0E DE [17:13:52]Write to MH i2c: 01 00 00 52 29 7B [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 52 29 00 00 00 00 00 0D 0D 9C [17:13:52]RasterBufferAndPrint [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]written 0, free lines is 3348 [17:13:52]MH_Cut [17:13:52]Write to MH i2c: D1 01 00 59 29 01 54 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: D1 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: D1 01 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: D1 01 00 59 29 00 53 [17:13:52]Write to MH i2c: 01 00 00 5A 29 83 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 07 89 47 00 15 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F6 F7 00 00 F4 03 04 00 49 2A 1A 67 B6 04 01 00 00 A4 B2 B5 71 F3 7C 78 0C [17:13:53]CommunicateWithHost err = 0 [17:13:53]CheckOFDResponse [17:13:53]1017 (14) - 77093643461234 [17:13:53]1041 (16) - 0000000000874676 [17:13:53]1040 (4) - 63478 [17:13:53]1012 (4) - 24.10.2024 11:06 [17:13:53]1206 (1) - 0 [17:13:53]OFD Sender: Remove packet 63478 [17:13:53]ProducePacketName [17:13:53]name=ofd_packets/00063478 [17:13:53]NVStorageDeleteData [17:13:53]*** Cut start [17:13:53]*** Partial cut [17:13:53]*** CUTSNS_PIN = 1 [17:13:53]OFD Sender: No OFD packet to send [17:13:53]*** CUTSNS_PIN = 0 [17:13:53]*** Brake cut motor [17:13:54]Read from MH i2c: 01 [17:13:54]MH_I2C_Read... [17:13:54]*** Stop cut motor [17:13:54]*** Cut end [17:13:54]Read from MH i2c: 01 07 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 5A 29 00 00 00 00 00 FF 0F 98 [17:13:54]process_action close_receipt done [17:13:54]requested_data is exist [17:13:54]produce_requested_data [17:13:54]requested_item fm.sn is exist - process it [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 11 00 00 [17:13:54]Write to MH i2c: E2 08 00 5B 29 80 11 00 00 00 00 00 00 FE [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 17 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 17 00 5B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 57 [17:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:13:54]wFMCommunicate OK [17:13:54]requested_item fd.num is exist - process it [17:13:54]SAM_PROTO_GetFieldsCounters [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 13 00 00 [17:13:54]Write to MH i2c: E2 08 00 5C 29 80 13 00 00 00 00 00 00 01 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 62 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 62 00 5C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F6 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [17:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F6 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_GetFieldsCounters done [17:13:54]requested_item shift.num is exist - process it [17:13:54]requested_item shift.opened is exist - process it [17:13:54]req_shift_opened [17:13:54]FM_GetShiftState [17:13:54]SAM_PROTO_GetShiftState [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 13 01 00 [17:13:54]Write to MH i2c: E2 08 00 5D 29 80 13 01 00 00 00 00 00 03 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 5D 29 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 E4 [17:13:54]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_GetShiftState done [17:13:54]FM_GetShiftState done [17:13:54]req_shift_opened done [17:13:54]requested_item shift.open_date is exist - process it [17:13:54]req_shift_open_date [17:13:54]req_shift_open_date done [17:13:54]produce_requested_data done [17:13:54]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63478,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [17:13:54]process_action_free close_receipt [17:13:54]json_value_free [17:13:54]json_value_free done [17:13:54]process_json_proto returns [17:13:54]Send response to host [17:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63478,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [17:13:54]free response buf [17:13:54]execute_script done [17:13:54]execute_script returns [17:13:54]free content buf [17:13:54]Sock 10.Close socket [17:13:54]Sock 10.Thread stoped [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:53]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26: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:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:18]accept exits with 7 [17:31:18]New connection [17:31:18]New thread 3066490212 created [17:31:18]Thread 3066633572 joined [17:31:18]Waiting for new connection... [17:31:18] Sock 7.Parse request [17:31:18]Sock 7.Check first char [17:31:18]Sock 7.First char is OK [17:31:18]request: POST /json_proto HTTP/1.0 [17:31:18]Method: POST [17:31:18]URL: /json_proto [17:31:18]Method is POST - this is cgi request [17:31:18]url: /json_proto [17:31:18]query_string will be loaded in cgi processing [17:31:18]execute_cgi json_proto POST (null) [17:31:18]execute_cgi path=json_proto method=POST [17:31:18]POST find Content-Length [17:31:18]Host: 172.17.42.132:8080 [17:31:18]Content-Length: 666 [17:31:18]Content-Type: application/json [17:31:18] [17:31:18]POST finish read [17:31:18]Found Content-Length = 666 [17:31:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47785", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:18]execute_script... [17:31: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)47785", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:18]POST & json_proto [17:31:18]process_json_proto [17:31:18]json parsed OK: [17:31:18]protocol is kg_v1.0 [17:31:18]action value=close_receipt [17:31:18]process_action close_receipt [17:31:18]cmd_close_receipt [17:31:18]MH_GetDate [17:31:18]Write to MH i2c: F0 00 00 5E 29 76 [17:31:18]Write i2c OK [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: F0 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: F0 09 00 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: F0 09 00 5E 29 00 6C 84 1A 67 4C DF 56 66 D7 [17:31:18]GetLastDocTimeStamp 1729790037 [17:31:18]current date 1729791084 [17:31:18]FM_GetShiftState [17:31:18]SAM_PROTO_GetShiftState [17:31:18]wFMCommunicate request_size=4 [17:31:18]MH_SAM_APDU [17:31:18]CAPDU: 80 13 01 00 [17:31:18]Write to MH i2c: E2 08 00 5F 29 80 13 01 00 00 00 00 00 05 [17:31:18]Write i2c OK [17:31:18]MH_I2C_Read... [17:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:18]Read from MH i2c: E2 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: E2 0E 00 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: E2 0E 00 5F 29 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 E6 [17:31:18]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:31:18]wFMCommunicate OK [17:31:18]SAM_PROTO_GetShiftState done [17:31:18]FM_GetShiftState done [17:31:18]opened in 1729728964 [17:31:18]opened+sec_in_day 1729815364 [17:31:18]quantity*price = 20000 [17:31:18]sum+1 = 20001 [17:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 93 24.10.2024 17:31 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63479 ФПД: 40259911895211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173125&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63479&fm=40259911895211&tin=02508201610067®Number=0000000000091619&sum=20000 0 [17:31:19]StoreToDocumentArchive [17:31:19]shift 547 fd 63479 [17:31:19]save to /storage/0547/doc_00063479 [17:31:19]save last doc name /storage/0547/doc_00063479 to /storage/kkm_last_doc_name [17:31:19]save OK [17:31:19]Clear old archive folders... [17:31:19]ProcessDocumentItem done err = 0, tmpTLVsize=283 [17:31:19]tlvbuf is B6D5A530 [17:31:19]SAM_PROTO_ClearQueue [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 09 00 00 [17:31:19]Write to MH i2c: E2 08 00 6C 29 80 09 00 00 00 00 00 00 07 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 6C 29 00 90 00 09 [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]SAM_PROTO_ClearQueue done [17:31:19]KKMCreateOFDPacket [17:31:19]OFDProtocolAddRootSTLVToBuf [17:31:19]FM_MakeSignedData [17:31:19]FM_MakeSignedData [17:31:19]SAM_PROTO_SignData [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 01 02 [17:31:19]Write to MH i2c: E2 08 00 6D 29 80 0D 01 02 00 00 00 00 0F [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 6D 29 00 90 00 0A [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]wFMCommunicate request_size=255 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 6D 84 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 [17:31:19]Write to MH i2c: E2 02 01 6E 29 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 6D 84 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 00 00 72 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 6E 29 00 90 00 0B [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]wFMCommunicate request_size=42 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F7 F7 00 00 35 04 06 00 24 9D BD BF 48 AB [17:31:19]Write to MH i2c: E2 2D 00 6F 29 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F7 F7 00 00 35 04 06 00 24 9D BD BF 48 AB 00 00 0B [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 6F 29 00 90 00 0C [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 03 02 [17:31:19]Write to MH i2c: E2 08 00 70 29 80 0D 03 02 00 00 00 00 14 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0B 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0B 00 70 29 00 CE C5 11 B0 DF 0A FA 9D 90 00 E9 [17:31:19]RAPDU: CE C5 11 B0 DF 0A FA 9D 90 00 [17:31:19]wFMCommunicate OK [17:31:19]SAM_PROTO_SignData done [17:31:19]FM_MakeSignedData done [17:31:19]CreateOFDProtocolMessage [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 11 00 00 [17:31:19]Write to MH i2c: E2 08 00 71 29 80 11 00 00 00 00 00 00 14 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 17 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 17 00 71 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6D [17:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:31:19]wFMCommunicate OK [17:31:19]CreateOFDProtocolMessage done [17:31:19]OFDSenderStorePacket 63479 [17:31:19]StoreOFDPacket docnum=63479 [17:31:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2F 01 00 00 A8 8D 27 01 EB 62 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 6D 84 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F7 F7 00 00 35 04 06 00 24 9D BD BF 48 AB CE C5 11 B0 DF 0A FA 9D [17:31:19]CheckFolder [17:31:19]dirname=/storage/ofd_packets [17:31:19]CheckFolder done [17:31:19]ProducePacketName [17:31:19]name=ofd_packets/00063479 [17:31:19]NVStorageSaveData ofd_packets/00063479 [17:31:19]File name is /storage/ofd_packets/00063479 [17:31:19]Write 333 bytes [17:31:19]NVStorageSaveData done [17:31:19]OFDSenderStorePacket done [17:31:19]KKMCreateOFDPacket done [17:31:19]NVStorageSaveData kkm_last_timestamp [17:31:19]File name is /storage/kkm_last_timestamp [17:31:19]Write 4 bytes [17:31:19]NVStorageSaveData done [17:31:19]ExternCall_PrintAddStr [17:31:19]wPrintStart [17:31:19]Write to MH i2c: 01 00 00 72 29 9B [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: 01 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: 01 07 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: 01 07 00 72 29 00 00 00 00 00 FF 0F B0 [17:31:19]RasterBufferAndPrint [17:31:19]line Счет N : (3)47785 [17:31:19]line ИНН: 02508201610067 [17:31:19]line Контрольно-Кассовый Чек [17:31:19]line ПРОДАЖА [17:31:19]line Товар: 4700002085444 [17:31:19]line Водка Белое золото 0,24л [17:31:19]line 1.000 * 200.00 [17:31:19]line = 200.00 [17:31:19]line НДС 12% НСП 1% [17:31:19]line > о реализуемом товаре [17:31:19]line ИТОГО: 200.00 [17:31:19]line НСП 1% : 1.77 [17:31:19]line НДС 12% : 21.24 [17:31:19]line Наличными: 200.00 [17:31:19]line Безнал.: 0.00 [17:31:19]line Место: АЗС № 86 "Партнер Нефть" [17:31:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:31:19]line СНО: Общий режим [17:31:19]line Чек 93 24.10.2024 17:31 [17:31:19]line Смена: 547 ФФД: 1.0 [17:31:19]line ЗНМ: 0300000154 [17:31:19]line РНМ: 0000000000091619 [17:31:19]line Версия ККМ: 001 [17:31:19]line ФМ: 0000000000874676 [17:31:19]line ФД: 63479 [17:31:19]line ФПД: 40259911895211 [17:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173125&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63479&fm=40259911895211&tin=02508201610067®Number=0000000000091619&sum=20000 [17:31:20]line 0 [17:31:20]OFD Sender: Processing packet 63479 [packets to send 232, broken 231] [17:31:20]ProducePacketName [17:31:20]name=ofd_packets/00063479 [17:31:20]OFD Sender: To server: pG, [17:31:20]CommunicateWithHost lk.salyk.kg:30040 [17:31:20]ConnectInit lk.salyk.kg [17:31:20]written 0, free lines is 4095 [17:31:20]Connected sock=6 [17:31:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2F 01 00 00 A8 8D 27 01 EB 62 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 6D 84 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F7 F7 00 00 35 04 06 00 24 9D BD BF 48 AB CE C5 11 B0 DF 0A FA 9D [17:31:20]Write to MH i2c: 01 00 00 9A 29 C3 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: 01 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: 01 07 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: 01 07 00 9A 29 00 00 00 00 00 1E 0D F5 [17:31:20]RasterBufferAndPrint [17:31:20]line [17:31:20]line [17:31:20]line [17:31:20]line [17:31:20]line [17:31:20]written 0, free lines is 3364 [17:31:20]MH_Cut [17:31:20]Write to MH i2c: D1 01 00 A1 29 01 9C [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: D1 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: D1 01 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: D1 01 00 A1 29 00 9B [17:31:20]Write to MH i2c: 01 00 00 A2 29 CB [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 0F F0 47 00 95 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F7 F7 00 00 F4 03 04 00 60 2E 1A 67 B6 04 01 00 00 09 19 F6 2F E0 F8 B0 67 [17:31:20]CommunicateWithHost err = 0 [17:31:20]CheckOFDResponse [17:31:20]1017 (14) - 77093643461234 [17:31:20]1041 (16) - 0000000000874676 [17:31:20]1040 (4) - 63479 [17:31:20]1012 (4) - 24.10.2024 11:24 [17:31:20]1206 (1) - 0 [17:31:20]OFD Sender: Remove packet 63479 [17:31:20]ProducePacketName [17:31:20]name=ofd_packets/00063479 [17:31:20]NVStorageDeleteData [17:31:21]*** Cut start [17:31:21]*** Partial cut [17:31:21]*** CUTSNS_PIN = 1 [17:31:21]OFD Sender: No OFD packet to send [17:31:21]*** CUTSNS_PIN = 0 [17:31:21]*** Brake cut motor [17:31:21]Read from MH i2c: 01 [17:31:21]MH_I2C_Read... [17:31:21]*** Stop cut motor [17:31:21]*** Cut end [17:31:21]Read from MH i2c: 01 07 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 07 00 A2 29 00 00 00 00 00 FF 0F E0 [17:31:21]process_action close_receipt done [17:31:21]requested_data is exist [17:31:21]produce_requested_data [17:31:21]requested_item fm.sn is exist - process it [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 11 00 00 [17:31:21]Write to MH i2c: E2 08 00 A3 29 80 11 00 00 00 00 00 00 46 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 A3 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9F [17:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:31:21]wFMCommunicate OK [17:31:21]requested_item fd.num is exist - process it [17:31:21]SAM_PROTO_GetFieldsCounters [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 13 00 00 [17:31:21]Write to MH i2c: E2 08 00 A4 29 80 13 00 00 00 00 00 00 49 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 62 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 62 00 A4 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F7 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [17:31:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F7 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:22]wFMCommunicate OK [17:31:22]SAM_PROTO_GetFieldsCounters done [17:31:22]requested_item shift.num is exist - process it [17:31:22]requested_item shift.opened is exist - process it [17:31:22]req_shift_opened [17:31:22]FM_GetShiftState [17:31:22]SAM_PROTO_GetShiftState [17:31:22]wFMCommunicate request_size=4 [17:31:22]MH_SAM_APDU [17:31:22]CAPDU: 80 13 01 00 [17:31:22]Write to MH i2c: E2 08 00 A5 29 80 13 01 00 00 00 00 00 4B [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 0E 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 0E 00 A5 29 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 2C [17:31:22]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:31:22]wFMCommunicate OK [17:31:22]SAM_PROTO_GetShiftState done [17:31:22]FM_GetShiftState done [17:31:22]req_shift_opened done [17:31:22]requested_item shift.open_date is exist - process it [17:31:22]req_shift_open_date [17:31:22]req_shift_open_date done [17:31:22]produce_requested_data done [17:31:22]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63479,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [17:31:22]process_action_free close_receipt [17:31:22]json_value_free [17:31:22]json_value_free done [17:31:22]process_json_proto returns [17:31:22]Send response to host [17:31:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63479,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [17:31:22]free response buf [17:31:22]execute_script done [17:31:22]execute_script returns [17:31:22]free content buf [17:31:22]Sock 7.Close socket [17:31:22]Sock 7.Thread stoped [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]accept exits with 9 [17:53:38]New connection [17:53:38]New thread 3066633572 created [17:53:38]Thread 3066490212 joined [17:53:38]Waiting for new connection... [17:53:38] Sock 9.Parse request [17:53:38]Sock 9.Check first char [17:53:38]Sock 9.First char is OK [17:53:38]request: POST /json_proto HTTP/1.0 [17:53:38]Method: POST [17:53:38]URL: /json_proto [17:53:38]Method is POST - this is cgi request [17:53:38]url: /json_proto [17:53:38]query_string will be loaded in cgi processing [17:53:38]execute_cgi json_proto POST (null) [17:53:38]execute_cgi path=json_proto method=POST [17:53:38]POST find Content-Length [17:53:38]Host: 172.17.42.132:8080 [17:53:38]Content-Length: 710 [17:53:38]Content-Type: application/json [17:53:38] [17:53:38]POST finish read [17:53:38]Found Content-Length = 710 [17:53:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47786", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:38]execute_script... [17:53: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)47786", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:38]POST & json_proto [17:53:38]process_json_proto [17:53:38]json parsed OK: [17:53:38]protocol is kg_v1.0 [17:53:38]action value=close_receipt [17:53:38]process_action close_receipt [17:53:38]cmd_close_receipt [17:53:38]MH_GetDate [17:53:38]Write to MH i2c: F0 00 00 A6 29 BE [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: F0 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: F0 09 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: F0 09 00 A6 29 00 A9 89 1A 67 4C DF 56 66 61 [17:53:38]GetLastDocTimeStamp 1729791085 [17:53:38]current date 1729792425 [17:53:38]FM_GetShiftState [17:53:38]SAM_PROTO_GetShiftState [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 13 01 00 [17:53:38]Write to MH i2c: E2 08 00 A7 29 80 13 01 00 00 00 00 00 4D [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0E 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0E 00 A7 29 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 2E [17:53:38]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:53:38]wFMCommunicate OK [17:53:38]SAM_PROTO_GetShiftState done [17:53:38]FM_GetShiftState done [17:53:38]opened in 1729728964 [17:53:38]opened+sec_in_day 1729815364 [17:53:38]quantity*price = 8400 [17:53:38]sum+1 = 8401 [17:53:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 84.00 НСП 1% : 0.74 НДС 12% : 8.92 Наличными: 84.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 94 24.10.2024 17:53 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63480 ФПД: 61940500240645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175345&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63480&fm=61940500240645&tin=02508201610067®Number=0000000000091619&sum=8400 0 [17:53:39]StoreToDocumentArchive [17:53:39]shift 547 fd 63480 [17:53:39]save to /storage/0547/doc_00063480 [17:53:39]save last doc name /storage/0547/doc_00063480 to /storage/kkm_last_doc_name [17:53:39]save OK [17:53:39]Clear old archive folders... [17:53:39]ProcessDocumentItem done err = 0, tmpTLVsize=302 [17:53:39]tlvbuf is 00BDB980 [17:53:39]SAM_PROTO_ClearQueue [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 09 00 00 [17:53:39]Write to MH i2c: E2 08 00 B4 29 80 09 00 00 00 00 00 00 4F [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 B4 29 00 90 00 51 [17:53:39]RAPDU: 90 00 [17:53:39]wFMCommunicate OK [17:53:39]SAM_PROTO_ClearQueue done [17:53:39]KKMCreateOFDPacket [17:53:39]OFDProtocolAddRootSTLVToBuf [17:53:39]FM_MakeSignedData [17:53:39]FM_MakeSignedData [17:53:39]SAM_PROTO_SignData [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 0D 01 02 [17:53:39]Write to MH i2c: E2 08 00 B5 29 80 0D 01 02 00 00 00 00 57 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 B5 29 00 90 00 52 [17:53:39]RAPDU: 90 00 [17:53:39]wFMCommunicate OK [17:53:39]wFMCommunicate request_size=255 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A9 89 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 [17:53:39]Write to MH i2c: E2 02 01 B6 29 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A9 89 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 00 00 2B [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 B6 29 00 90 00 53 [17:53:39]RAPDU: 90 00 [17:53:39]wFMCommunicate OK [17:53:39]wFMCommunicate request_size=61 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F8 F7 00 00 35 04 06 00 38 55 A5 83 99 05 [17:53:39]Write to MH i2c: E2 40 00 B7 29 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F8 F7 00 00 35 04 06 00 38 55 A5 83 99 05 00 00 D8 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 03 00 B7 29 00 90 00 54 [17:53:39]RAPDU: 90 00 [17:53:39]wFMCommunicate OK [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 0D 03 02 [17:53:39]Write to MH i2c: E2 08 00 B8 29 80 0D 03 02 00 00 00 00 5C [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 0B 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 0B 00 B8 29 00 28 70 A5 7F DC 36 C2 5B 90 00 48 [17:53:39]RAPDU: 28 70 A5 7F DC 36 C2 5B 90 00 [17:53:39]wFMCommunicate OK [17:53:39]SAM_PROTO_SignData done [17:53:39]FM_MakeSignedData done [17:53:39]CreateOFDProtocolMessage [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 11 00 00 [17:53:39]Write to MH i2c: E2 08 00 B9 29 80 11 00 00 00 00 00 00 5C [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 17 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 17 00 B9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B5 [17:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:53:39]wFMCommunicate OK [17:53:39]CreateOFDProtocolMessage done [17:53:39]OFDSenderStorePacket 63480 [17:53:39]StoreOFDPacket docnum=63480 [17:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 42 01 00 00 EB 48 3A 01 93 31 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A9 89 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F8 F7 00 00 35 04 06 00 38 55 A5 83 99 05 28 70 A5 7F DC 36 C2 5B [17:53:39]CheckFolder [17:53:39]dirname=/storage/ofd_packets [17:53:39]CheckFolder done [17:53:39]ProducePacketName [17:53:39]name=ofd_packets/00063480 [17:53:39]NVStorageSaveData ofd_packets/00063480 [17:53:39]File name is /storage/ofd_packets/00063480 [17:53:39]Write 352 bytes [17:53:39]NVStorageSaveData done [17:53:39]OFDSenderStorePacket done [17:53:39]KKMCreateOFDPacket done [17:53:39]NVStorageSaveData kkm_last_timestamp [17:53:39]File name is /storage/kkm_last_timestamp [17:53:39]Write 4 bytes [17:53:39]NVStorageSaveData done [17:53:39]ExternCall_PrintAddStr [17:53:39]wPrintStart [17:53:39]Write to MH i2c: 01 00 00 BA 29 E3 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: 01 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: 01 07 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: 01 07 00 BA 29 00 00 00 00 00 FF 0F F8 [17:53:39]RasterBufferAndPrint [17:53:39]line Счет N : (3)47786 [17:53:39]line ИНН: 02508201610067 [17:53:39]line Контрольно-Кассовый Чек [17:53:39]line ПРОДАЖА [17:53:39]line Товар: 4870001571030 [17:53:39]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [17:53:39]line 1.000 * 84.00 [17:53:39]line = 84.00 [17:53:39]line НДС 12% НСП 1% [17:53:39]line > о реализуемом товаре [17:53:39]line ИТОГО: 84.00 [17:53:39]line НСП 1% : 0.74 [17:53:39]line НДС 12% : 8.92 [17:53:39]line Наличными: 84.00 [17:53:39]line Безнал.: 0.00 [17:53:39]line Место: АЗС № 86 "Партнер Нефть" [17:53:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:53:39]line СНО: Общий режим [17:53:39]line Чек 94 24.10.2024 17:53 [17:53:39]line Смена: 547 ФФД: 1.0 [17:53:39]line ЗНМ: 0300000154 [17:53:39]line РНМ: 0000000000091619 [17:53:39]line Версия ККМ: 001 [17:53:39]line ФМ: 0000000000874676 [17:53:39]line ФД: 63480 [17:53:39]line ФПД: 61940500240645 [17:53:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175345&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63480&fm=61940500240645&tin=02508201610067®Number=0000000000091619&sum=8400 [17:53:40]line 0 [17:53:40]OFD Sender: Processing packet 63480 [packets to send 232, broken 231] [17:53:40]ProducePacketName [17:53:40]name=ofd_packets/00063480 [17:53:40]OFD Sender: To server: pG, [17:53:40]CommunicateWithHost lk.salyk.kg:30040 [17:53:40]ConnectInit lk.salyk.kg [17:53:40]written 0, free lines is 4095 [17:53:40]Connected sock=7 [17:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 42 01 00 00 EB 48 3A 01 93 31 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A9 89 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F8 F7 00 00 35 04 06 00 38 55 A5 83 99 05 28 70 A5 7F DC 36 C2 5B [17:53:40]Write to MH i2c: 01 00 00 E3 29 0C [17:53:40]Write i2c OK [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: 01 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: 01 07 00 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: 01 07 00 E3 29 00 00 00 00 00 04 0D 24 [17:53:40]RasterBufferAndPrint [17:53:40]line [17:53:40]line [17:53:40]line [17:53:40]line [17:53:40]line [17:53:40]written 0, free lines is 3341 [17:53:40]MH_Cut [17:53:40]Write to MH i2c: D1 01 00 EA 29 01 E5 [17:53:40]Write i2c OK [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: D1 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: D1 01 00 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: D1 01 00 EA 29 00 E4 [17:53:40]Write to MH i2c: 01 00 00 EB 29 14 [17:53:40]Write i2c OK [17:53:40]MH_I2C_Read... [17:53:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 69 93 47 00 4C 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 34 36 37 36 10 04 04 00 F8 F7 00 00 F4 03 04 00 9C 33 1A 67 B6 04 01 00 00 60 17 9B E1 94 5F 2B 13 [17:53:40]CommunicateWithHost err = 0 [17:53:40]CheckOFDResponse [17:53:40]1017 (14) - 77093643461234 [17:53:40]1041 (16) - 0000000000874676 [17:53:40]1040 (4) - 63480 [17:53:40]1012 (4) - 24.10.2024 11:46 [17:53:40]1206 (1) - 0 [17:53:40]OFD Sender: Remove packet 63480 [17:53:40]ProducePacketName [17:53:40]name=ofd_packets/00063480 [17:53:40]NVStorageDeleteData [17:53:41]*** Cut start [17:53:41]*** Partial cut [17:53:41]*** CUTSNS_PIN = 1 [17:53:41]OFD Sender: No OFD packet to send [17:53:41]*** CUTSNS_PIN = 0 [17:53:41]*** Brake cut motor [17:53:41]Read from MH i2c: 01 [17:53:41]MH_I2C_Read... [17:53:41]*** Stop cut motor [17:53:41]*** Cut end [17:53:41]Read from MH i2c: 01 07 00 [17:53:41]MH_I2C_Read... [17:53:41]Read from MH i2c: 01 07 00 EB 29 00 00 00 00 00 FF 0F 29 [17:53:41]process_action close_receipt done [17:53:41]requested_data is exist [17:53:41]produce_requested_data [17:53:41]requested_item fm.sn is exist - process it [17:53:41]wFMCommunicate request_size=4 [17:53:41]MH_SAM_APDU [17:53:41]CAPDU: 80 11 00 00 [17:53:41]Write to MH i2c: E2 08 00 EC 29 80 11 00 00 00 00 00 00 8F [17:53:41]Write i2c OK [17:53:41]MH_I2C_Read... [17:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:41]Read from MH i2c: E2 [17:53:41]MH_I2C_Read... [17:53:41]Read from MH i2c: E2 17 00 [17:53:41]MH_I2C_Read... [17:53:41]Read from MH i2c: E2 17 00 EC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E8 [17:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:53:41]wFMCommunicate OK [17:53:41]requested_item fd.num is exist - process it [17:53:41]SAM_PROTO_GetFieldsCounters [17:53:41]wFMCommunicate request_size=4 [17:53:41]MH_SAM_APDU [17:53:41]CAPDU: 80 13 00 00 [17:53:41]Write to MH i2c: E2 08 00 ED 29 80 13 00 00 00 00 00 00 92 [17:53:41]Write i2c OK [17:53:41]MH_I2C_Read... [17:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 62 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 62 00 ED 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F8 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [17:53:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F8 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:42]wFMCommunicate OK [17:53:42]SAM_PROTO_GetFieldsCounters done [17:53:42]requested_item shift.num is exist - process it [17:53:42]requested_item shift.opened is exist - process it [17:53:42]req_shift_opened [17:53:42]FM_GetShiftState [17:53:42]SAM_PROTO_GetShiftState [17:53:42]wFMCommunicate request_size=4 [17:53:42]MH_SAM_APDU [17:53:42]CAPDU: 80 13 01 00 [17:53:42]Write to MH i2c: E2 08 00 EE 29 80 13 01 00 00 00 00 00 94 [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 0E 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 0E 00 EE 29 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 75 [17:53:42]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [17:53:42]wFMCommunicate OK [17:53:42]SAM_PROTO_GetShiftState done [17:53:42]FM_GetShiftState done [17:53:42]req_shift_opened done [17:53:42]requested_item shift.open_date is exist - process it [17:53:42]req_shift_open_date [17:53:42]req_shift_open_date done [17:53:42]produce_requested_data done [17:53:42]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63480,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [17:53:42]process_action_free close_receipt [17:53:42]json_value_free [17:53:42]json_value_free done [17:53:42]process_json_proto returns [17:53:42]Send response to host [17:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63480,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [17:53:42]free response buf [17:53:42]execute_script done [17:53:42]execute_script returns [17:53:42]free content buf [17:53:42]Sock 9.Close socket [17:53:42]Sock 9.Thread stoped [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:05]ConnectInit Can't connect to host [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:52]accept exits with 10 [18:25:52]New connection [18:25:52]New thread 3066490212 created [18:25:52]Thread 3066633572 joined [18:25:52]Waiting for new connection... [18:25:52] Sock 10.Parse request [18:25:52]Sock 10.Check first char [18:25:52]Sock 10.First char is OK [18:25:52]request: POST /json_proto HTTP/1.0 [18:25:52]Method: POST [18:25:52]URL: /json_proto [18:25:52]Method is POST - this is cgi request [18:25:52]url: /json_proto [18:25:52]query_string will be loaded in cgi processing [18:25:52]execute_cgi json_proto POST (null) [18:25:52]execute_cgi path=json_proto method=POST [18:25:52]POST find Content-Length [18:25:52]Host: 172.17.42.132:8080 [18:25:52]Content-Length: 834 [18:25:52]Content-Type: application/json [18:25:52] [18:25:52]POST finish read [18:25:52]Found Content-Length = 834 [18:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47787", "tax_sys" : 0, "items" : [ { "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" : 127.86, "quantity" : 1.000, "sum" : 127.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 127.86 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:52]execute_script... [18:25: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)47787", "tax_sys" : 0, "items" : [ { "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" : 127.86, "quantity" : 1.000, "sum" : 127.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 127.86 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:52]POST & json_proto [18:25:52]process_json_proto [18:25:52]json parsed OK: [18:25:52]protocol is kg_v1.0 [18:25:52]action value=close_receipt [18:25:52]process_action close_receipt [18:25:52]cmd_close_receipt [18:25:52]MH_GetDate [18:25:52]Write to MH i2c: F0 00 00 EF 29 07 [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: F0 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: F0 09 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: F0 09 00 EF 29 00 37 91 1A 67 4C DF 56 66 40 [18:25:52]GetLastDocTimeStamp 1729792425 [18:25:52]current date 1729794359 [18:25:52]FM_GetShiftState [18:25:52]SAM_PROTO_GetShiftState [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 13 01 00 [18:25:52]Write to MH i2c: E2 08 00 F0 29 80 13 01 00 00 00 00 00 96 [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 0E 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 0E 00 F0 29 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 77 [18:25:52]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:25:52]wFMCommunicate OK [18:25:52]SAM_PROTO_GetShiftState done [18:25:52]FM_GetShiftState done [18:25:52]opened in 1729728964 [18:25:52]opened+sec_in_day 1729815364 [18:25:52]quantity*price = 12786 [18:25:52]sum+1 = 12787 [18:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 127.86 НСП 1% : 1.13 НДС 12% : 13.58 Наличными: 0.00 Безнал.: 127.86 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 95 24.10.2024 18:25 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63481 ФПД: 35355877910327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182559&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63481&fm=35355877910327&tin=02508201610067®Number=0000000000091619&sum=12786 0 [18:25:53]StoreToDocumentArchive [18:25:53]shift 547 fd 63481 [18:25:53]save to /storage/0547/doc_00063481 [18:25:53]save last doc name /storage/0547/doc_00063481 to /storage/kkm_last_doc_name [18:25:53]save OK [18:25:53]Clear old archive folders... [18:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=296 [18:25:53]tlvbuf is 00B77A60 [18:25:53]SAM_PROTO_ClearQueue [18:25:53]wFMCommunicate request_size=4 [18:25:53]MH_SAM_APDU [18:25:53]CAPDU: 80 09 00 00 [18:25:53]Write to MH i2c: E2 08 00 FD 29 80 09 00 00 00 00 00 00 98 [18:25:53]Write i2c OK [18:25:53]MH_I2C_Read... [18:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:53]Read from MH i2c: E2 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: E2 03 00 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: E2 03 00 FD 29 00 90 00 9A [18:25:53]RAPDU: 90 00 [18:25:53]wFMCommunicate OK [18:25:53]SAM_PROTO_ClearQueue done [18:25:53]KKMCreateOFDPacket [18:25:53]OFDProtocolAddRootSTLVToBuf [18:25:53]FM_MakeSignedData [18:25:53]FM_MakeSignedData [18:25:53]SAM_PROTO_SignData [18:25:53]wFMCommunicate request_size=4 [18:25:53]MH_SAM_APDU [18:25:53]CAPDU: 80 0D 01 02 [18:25:53]Write to MH i2c: E2 08 00 FE 29 80 0D 01 02 00 00 00 00 A0 [18:25:53]Write i2c OK [18:25:53]MH_I2C_Read... [18:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 03 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 03 00 FE 29 00 90 00 9B [18:25:54]RAPDU: 90 00 [18:25:54]wFMCommunicate OK [18:25:54]wFMCommunicate request_size=255 [18:25:54]MH_SAM_APDU [18:25:54]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 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 F2 31 00 00 00 00 13 04 06 00 F2 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 31 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 37 91 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [18:25:54]Write to MH i2c: E2 02 01 FF 29 80 0D 02 02 FA 00 03 00 28 01 1E 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 F2 31 00 00 00 00 13 04 06 00 F2 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 31 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 37 91 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 30 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 03 00 [18:25:54]MH_I2C_Read... [18:25:54]OFD Sender: No OFD packet to send [18:25:54]Read from MH i2c: E2 03 00 FF 29 00 90 00 9C [18:25:54]RAPDU: 90 00 [18:25:54]wFMCommunicate OK [18:25:54]wFMCommunicate request_size=55 [18:25:54]MH_SAM_APDU [18:25:54]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F9 F7 00 00 35 04 06 00 20 27 EE 8B 27 37 [18:25:54]Write to MH i2c: E2 3A 00 00 2A 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F9 F7 00 00 35 04 06 00 20 27 EE 8B 27 37 00 00 12 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 03 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 03 00 00 2A 00 90 00 9E [18:25:54]RAPDU: 90 00 [18:25:54]wFMCommunicate OK [18:25:54]wFMCommunicate request_size=4 [18:25:54]MH_SAM_APDU [18:25:54]CAPDU: 80 0D 03 02 [18:25:54]Write to MH i2c: E2 08 00 01 2A 80 0D 03 02 00 00 00 00 A6 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 0B 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 0B 00 01 2A 00 A1 BD 42 21 46 5D 1A 34 90 00 59 [18:25:54]RAPDU: A1 BD 42 21 46 5D 1A 34 90 00 [18:25:54]wFMCommunicate OK [18:25:54]SAM_PROTO_SignData done [18:25:54]FM_MakeSignedData done [18:25:54]CreateOFDProtocolMessage [18:25:54]wFMCommunicate request_size=4 [18:25:54]MH_SAM_APDU [18:25:54]CAPDU: 80 11 00 00 [18:25:54]Write to MH i2c: E2 08 00 02 2A 80 11 00 00 00 00 00 00 A6 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 17 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 17 00 02 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FF [18:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:25:54]wFMCommunicate OK [18:25:54]CreateOFDProtocolMessage done [18:25:54]OFDSenderStorePacket 63481 [18:25:54]StoreOFDPacket docnum=63481 [18:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3C 01 00 00 7A FB 34 01 B9 65 5A 03 01 00 03 00 28 01 1E 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 F2 31 00 00 00 00 13 04 06 00 F2 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 31 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 37 91 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F9 F7 00 00 35 04 06 00 20 27 EE 8B 27 37 A1 BD 42 21 46 5D 1A 34 [18:25:54]CheckFolder [18:25:54]dirname=/storage/ofd_packets [18:25:54]CheckFolder done [18:25:54]ProducePacketName [18:25:54]name=ofd_packets/00063481 [18:25:54]NVStorageSaveData ofd_packets/00063481 [18:25:54]File name is /storage/ofd_packets/00063481 [18:25:54]Write 346 bytes [18:25:54]NVStorageSaveData done [18:25:54]OFDSenderStorePacket done [18:25:54]KKMCreateOFDPacket done [18:25:54]NVStorageSaveData kkm_last_timestamp [18:25:54]File name is /storage/kkm_last_timestamp [18:25:54]Write 4 bytes [18:25:54]NVStorageSaveData done [18:25:54]ExternCall_PrintAddStr [18:25:54]wPrintStart [18:25:54]Write to MH i2c: 01 00 00 03 2A 2D [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 07 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: 01 07 00 03 2A 00 00 00 00 00 FF 0F 42 [18:25:54]RasterBufferAndPrint [18:25:54]line Счет N : (3)47787 [18:25:54]line ИНН: 02508201610067 [18:25:54]line Контрольно-Кассовый Чек [18:25:54]line ПРОДАЖА [18:25:54]line Товар: 4607015235401 [18:25:54]line Пряники Яшкино шоколадные 350г [18:25:54]line 1.000 * 127.86 [18:25:54]line = 127.86 [18:25:54]line НДС 12% НСП 1% [18:25:54]line > о реализуемом товаре [18:25:54]line ИТОГО: 127.86 [18:25:54]line НСП 1% : 1.13 [18:25:54]line НДС 12% : 13.58 [18:25:54]line Наличными: 0.00 [18:25:54]line Безнал.: 127.86 [18:25:54]line Место: АЗС № 86 "Партнер Нефть" [18:25:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:25:54]line СНО: Общий режим [18:25:54]line Чек 95 24.10.2024 18:25 [18:25:54]line Смена: 547 ФФД: 1.0 [18:25:54]line ЗНМ: 0300000154 [18:25:54]line РНМ: 0000000000091619 [18:25:54]line Версия ККМ: 001 [18:25:54]line Платежная система: Mbank [18:25:54]line ФМ: 0000000000874676 [18:25:54]line ФД: 63481 [18:25:54]line ФПД: 35355877910327 [18:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182559&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63481&fm=35355877910327&tin=02508201610067®Number=0000000000091619&sum=12786 [18:25:54]OFD Sender: Processing packet 63481 [packets to send 232, broken 231] [18:25:54]ProducePacketName [18:25:54]name=ofd_packets/00063481 [18:25:54]OFD Sender: To server: pG, [18:25:54]CommunicateWithHost lk.salyk.kg:30040 [18:25:54]ConnectInit lk.salyk.kg [18:25:54]line 0 [18:25:54]written 0, free lines is 4095 [18:25:55]Write to MH i2c: 01 00 00 2D 2A 57 [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 07 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 07 00 2D 2A 00 00 00 00 00 F2 0C 5C [18:25:55]RasterBufferAndPrint [18:25:55]line [18:25:55]line [18:25:55]line [18:25:55]line [18:25:55]line [18:25:55]written 0, free lines is 3320 [18:25:55]MH_Cut [18:25:55]Write to MH i2c: D1 01 00 34 2A 01 30 [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: D1 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: D1 01 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: D1 01 00 34 2A 00 2F [18:25:55]Write to MH i2c: 01 00 00 35 2A 5F [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]Connected sock=9 [18:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3C 01 00 00 7A FB 34 01 B9 65 5A 03 01 00 03 00 28 01 1E 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 F2 31 00 00 00 00 13 04 06 00 F2 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 31 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 37 91 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F9 F7 00 00 35 04 06 00 20 27 EE 8B 27 37 A1 BD 42 21 46 5D 1A 34 [18:25:55]*** Cut start [18:25:55]*** Partial cut [18:25:55]*** CUTSNS_PIN = 1 [18:25:56]*** CUTSNS_PIN = 0 [18:25:56]*** Brake cut motor [18:25:56]Read from MH i2c: 01 [18:25:56]MH_I2C_Read... [18:25:56]*** Stop cut motor [18:25:56]*** Cut end [18:25:56]Read from MH i2c: 01 07 00 [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: 01 07 00 35 2A 00 00 00 00 00 FF 0F 74 [18:25:56]process_action close_receipt done [18:25:56]requested_data is exist [18:25:56]produce_requested_data [18:25:56]requested_item fm.sn is exist - process it [18:25:56]wFMCommunicate request_size=4 [18:25:56]MH_SAM_APDU [18:25:56]CAPDU: 80 11 00 00 [18:25:56]Write to MH i2c: E2 08 00 36 2A 80 11 00 00 00 00 00 00 DA [18:25:56]Write i2c OK [18:25:56]MH_I2C_Read... [18:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:56]Read from MH i2c: E2 [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: E2 17 00 [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: E2 17 00 36 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 33 [18:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:25:56]wFMCommunicate OK [18:25:56]requested_item fd.num is exist - process it [18:25:56]SAM_PROTO_GetFieldsCounters [18:25:56]wFMCommunicate request_size=4 [18:25:56]MH_SAM_APDU [18:25:56]CAPDU: 80 13 00 00 [18:25:56]Write to MH i2c: E2 08 00 37 2A 80 13 00 00 00 00 00 00 DD [18:25:56]Write i2c OK [18:25:56]MH_I2C_Read... [18:25:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:56]Read from MH i2c: E2 [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: E2 62 00 [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: E2 62 00 37 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F9 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [18:25:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 F9 F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:56]wFMCommunicate OK [18:25:56]SAM_PROTO_GetFieldsCounters done [18:25:56]requested_item shift.num is exist - process it [18:25:56]requested_item shift.opened is exist - process it [18:25:56]req_shift_opened [18:25:56]FM_GetShiftState [18:25:56]SAM_PROTO_GetShiftState [18:25:56]wFMCommunicate request_size=4 [18:25:56]MH_SAM_APDU [18:25:56]CAPDU: 80 13 01 00 [18:25:56]Write to MH i2c: E2 08 00 38 2A 80 13 01 00 00 00 00 00 DF [18:25:56]Write i2c OK [18:25:56]MH_I2C_Read... [18:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:56]Read from MH i2c: E2 [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: E2 0E 00 [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: E2 0E 00 38 2A 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 C0 [18:25:56]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:25:56]wFMCommunicate OK [18:25:56]SAM_PROTO_GetShiftState done [18:25:56]FM_GetShiftState done [18:25:56]req_shift_opened done [18:25:56]requested_item shift.open_date is exist - process it [18:25:56]req_shift_open_date [18:25:56]req_shift_open_date done [18:25:56]produce_requested_data done [18:25:56]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63481,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [18:25:56]process_action_free close_receipt [18:25:56]json_value_free [18:25:56]json_value_free done [18:25:56]process_json_proto returns [18:25:56]Send response to host [18:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63481,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [18:25:56]free response buf [18:25:56]execute_script done [18:25:56]execute_script returns [18:25:56]free content buf [18:25:56]Sock 10.Close socket [18:25:56]Sock 10.Thread stoped [18:25:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 AB 40 47 00 90 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 F9 F7 00 00 F4 03 04 00 2C 3B 1A 67 B6 04 01 00 00 16 34 3D 14 AC 0C 2E 4A [18:25:57]CommunicateWithHost err = 0 [18:25:57]CheckOFDResponse [18:25:57]1017 (14) - 77093643461234 [18:25:57]1041 (16) - 0000000000874676 [18:25:57]1040 (4) - 63481 [18:25:57]1012 (4) - 24.10.2024 12:18 [18:25:57]1206 (1) - 0 [18:25:57]OFD Sender: Remove packet 63481 [18:25:57]ProducePacketName [18:25:57]name=ofd_packets/00063481 [18:25:57]NVStorageDeleteData [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:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]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:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:58]accept exits with 7 [18:40:58]New connection [18:40:58]New thread 3066633572 created [18:40:58]Thread 3066490212 joined [18:40:58]Waiting for new connection... [18:40:58] Sock 7.Parse request [18:40:58]Sock 7.Check first char [18:40:58]Sock 7.First char is OK [18:40:58]request: POST /json_proto HTTP/1.0 [18:40:58]Method: POST [18:40:58]URL: /json_proto [18:40:58]Method is POST - this is cgi request [18:40:58]url: /json_proto [18:40:58]query_string will be loaded in cgi processing [18:40:58]execute_cgi json_proto POST (null) [18:40:58]execute_cgi path=json_proto method=POST [18:40:58]POST find Content-Length [18:40:58]Host: 172.17.42.132:8080 [18:40:58]Content-Length: 620 [18:40:58]Content-Type: application/json [18:40:58] [18:40:58]POST finish read [18:40:58]Found Content-Length = 620 [18:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47788", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:58]execute_script... [18:40:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47788", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:58]POST & json_proto [18:40:58]process_json_proto [18:40:58]json parsed OK: [18:40:58]protocol is kg_v1.0 [18:40:58]action value=close_receipt [18:40:58]process_action close_receipt [18:40:58]cmd_close_receipt [18:40:58]MH_GetDate [18:40:58]Write to MH i2c: F0 00 00 39 2A 52 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: F0 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: F0 09 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: F0 09 00 39 2A 00 C1 94 1A 67 4C DF 56 66 18 [18:40:58]GetLastDocTimeStamp 1729794359 [18:40:58]current date 1729795265 [18:40:58]FM_GetShiftState [18:40:58]SAM_PROTO_GetShiftState [18:40:58]wFMCommunicate request_size=4 [18:40:58]MH_SAM_APDU [18:40:58]CAPDU: 80 13 01 00 [18:40:58]Write to MH i2c: E2 08 00 3A 2A 80 13 01 00 00 00 00 00 E1 [18:40:58]Write i2c OK [18:40:58]MH_I2C_Read... [18:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:58]Read from MH i2c: E2 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 0E 00 [18:40:58]MH_I2C_Read... [18:40:58]Read from MH i2c: E2 0E 00 3A 2A 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 C2 [18:40:58]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:40:58]wFMCommunicate OK [18:40:58]SAM_PROTO_GetShiftState done [18:40:58]FM_GetShiftState done [18:40:58]opened in 1729728964 [18:40:58]opened+sec_in_day 1729815364 [18:40:58]quantity*price = 14400 [18:40:58]sum+1 = 14401 [18:40:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 96 24.10.2024 18:41 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63482 ФПД: 219718677488884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184105&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63482&fm=219718677488884&tin=02508201610067®Number=0000000000091619&sum=14400 0 [18:40:59]StoreToDocumentArchive [18:40:59]shift 547 fd 63482 [18:40:59]save to /storage/0547/doc_00063482 [18:40:59]save last doc name /storage/0547/doc_00063482 to /storage/kkm_last_doc_name [18:40:59]save OK [18:40:59]Clear old archive folders... [18:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:40:59]tlvbuf is 00B04840 [18:40:59]SAM_PROTO_ClearQueue [18:40:59]wFMCommunicate request_size=4 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 09 00 00 [18:40:59]Write to MH i2c: E2 08 00 47 2A 80 09 00 00 00 00 00 00 E3 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:59]Read from MH i2c: E2 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: E2 03 00 47 2A 00 90 00 E5 [18:40:59]RAPDU: 90 00 [18:40:59]wFMCommunicate OK [18:40:59]SAM_PROTO_ClearQueue done [18:40:59]KKMCreateOFDPacket [18:40:59]OFDProtocolAddRootSTLVToBuf [18:40:59]FM_MakeSignedData [18:40:59]FM_MakeSignedData [18:40:59]SAM_PROTO_SignData [18:40:59]wFMCommunicate request_size=4 [18:40:59]MH_SAM_APDU [18:40:59]CAPDU: 80 0D 01 02 [18:40:59]Write to MH i2c: E2 08 00 48 2A 80 0D 01 02 00 00 00 00 EB [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 03 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 03 00 48 2A 00 90 00 E6 [18:41:00]RAPDU: 90 00 [18:41:00]wFMCommunicate OK [18:41:00]wFMCommunicate request_size=255 [18:41:00]MH_SAM_APDU [18:41:00]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C1 94 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [18:41:00]Write to MH i2c: E2 02 01 49 2A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C1 94 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 B1 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 03 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 03 00 49 2A 00 90 00 E7 [18:41:00]RAPDU: 90 00 [18:41:00]wFMCommunicate OK [18:41:00]wFMCommunicate request_size=32 [18:41:00]MH_SAM_APDU [18:41:00]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 FA F7 00 00 35 04 06 00 C7 D5 3D B8 E4 F4 [18:41:00]Write to MH i2c: E2 23 00 4A 2A 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 FA F7 00 00 35 04 06 00 C7 D5 3D B8 E4 F4 00 00 AB [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 03 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 03 00 4A 2A 00 90 00 E8 [18:41:00]RAPDU: 90 00 [18:41:00]wFMCommunicate OK [18:41:00]wFMCommunicate request_size=4 [18:41:00]MH_SAM_APDU [18:41:00]CAPDU: 80 0D 03 02 [18:41:00]Write to MH i2c: E2 08 00 4B 2A 80 0D 03 02 00 00 00 00 F0 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 0B 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 0B 00 4B 2A 00 18 B9 69 FC 54 D8 79 83 90 00 4F [18:41:00]RAPDU: 18 B9 69 FC 54 D8 79 83 90 00 [18:41:00]wFMCommunicate OK [18:41:00]SAM_PROTO_SignData done [18:41:00]FM_MakeSignedData done [18:41:00]CreateOFDProtocolMessage [18:41:00]wFMCommunicate request_size=4 [18:41:00]MH_SAM_APDU [18:41:00]CAPDU: 80 11 00 00 [18:41:00]Write to MH i2c: E2 08 00 4C 2A 80 11 00 00 00 00 00 00 F0 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:00]Read from MH i2c: E2 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 17 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: E2 17 00 4C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 49 [18:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:41:00]wFMCommunicate OK [18:41:00]CreateOFDProtocolMessage done [18:41:00]OFDSenderStorePacket 63482 [18:41:00]StoreOFDPacket docnum=63482 [18:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 06 7F 1D 01 F5 1E 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C1 94 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FA F7 00 00 35 04 06 00 C7 D5 3D B8 E4 F4 18 B9 69 FC 54 D8 79 83 [18:41:00]CheckFolder [18:41:00]dirname=/storage/ofd_packets [18:41:00]CheckFolder done [18:41:00]ProducePacketName [18:41:00]name=ofd_packets/00063482 [18:41:00]NVStorageSaveData ofd_packets/00063482 [18:41:00]File name is /storage/ofd_packets/00063482 [18:41:00]Write 323 bytes [18:41:00]NVStorageSaveData done [18:41:00]OFDSenderStorePacket done [18:41:00]KKMCreateOFDPacket done [18:41:00]NVStorageSaveData kkm_last_timestamp [18:41:00]File name is /storage/kkm_last_timestamp [18:41:00]Write 4 bytes [18:41:00]NVStorageSaveData done [18:41:00]ExternCall_PrintAddStr [18:41:00]wPrintStart [18:41:00]Write to MH i2c: 01 00 00 4D 2A 77 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 07 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 07 00 4D 2A 00 00 00 00 00 FF 0F 8C [18:41:00]RasterBufferAndPrint [18:41:00]line Счет N : (3)47788 [18:41:00]line ИНН: 02508201610067 [18:41:00]line Контрольно-Кассовый Чек [18:41:00]line ПРОДАЖА [18:41:00]line Товар: 48743570 [18:41:00]line Сигареты Winston XStyle Blue [18:41:00]line 1.000 * 144.00 [18:41:00]line = 144.00 [18:41:00]line НДС 12% НСП 1% [18:41:00]line > о реализуемом товаре [18:41:00]line ИТОГО: 144.00 [18:41:00]line НСП 1% : 1.27 [18:41:00]line НДС 12% : 15.29 [18:41:00]line Наличными: 144.00 [18:41:00]line Безнал.: 0.00 [18:41:00]line Место: АЗС № 86 "Партнер Нефть" [18:41:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:41:00]line СНО: Общий режим [18:41:00]line Чек 96 24.10.2024 18:41 [18:41:00]line Смена: 547 ФФД: 1.0 [18:41:00]line ЗНМ: 0300000154 [18:41:00]line РНМ: 0000000000091619 [18:41:00]line Версия ККМ: 001 [18:41:00]line ФМ: 0000000000874676 [18:41:00]line ФД: 63482 [18:41:00]line ФПД: 219718677488884 [18:41:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184105&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63482&fm=219718677488884&tin=02508201610067®Number=0000000000091619&sum=14400 [18:41:00]line 0 [18:41:00]written 0, free lines is 4095 [18:41:00]OFD Sender: Processing packet 63482 [packets to send 232, broken 231] [18:41:00]ProducePacketName [18:41:00]name=ofd_packets/00063482 [18:41:00]OFD Sender: To server: pG, [18:41:00]CommunicateWithHost lk.salyk.kg:30040 [18:41:00]ConnectInit lk.salyk.kg [18:41:00]Connected sock=10 [18:41:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 06 7F 1D 01 F5 1E 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C1 94 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FA F7 00 00 35 04 06 00 C7 D5 3D B8 E4 F4 18 B9 69 FC 54 D8 79 83 [18:41:00]Write to MH i2c: 01 00 00 75 2A 9F [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 07 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: 01 07 00 75 2A 00 00 00 00 00 21 0D D4 [18:41:00]RasterBufferAndPrint [18:41:00]line [18:41:00]line [18:41:00]line [18:41:00]line [18:41:00]line [18:41:00]written 0, free lines is 3367 [18:41:00]MH_Cut [18:41:00]Write to MH i2c: D1 01 00 7C 2A 01 78 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: D1 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: D1 01 00 [18:41:00]MH_I2C_Read... [18:41:00]Read from MH i2c: D1 01 00 7C 2A 00 77 [18:41:00]Write to MH i2c: 01 00 00 7D 2A A7 [18:41:00]Write i2c OK [18:41:00]MH_I2C_Read... [18:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 B7 7B 47 00 5F 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FA F7 00 00 F4 03 04 00 B5 3E 1A 67 B6 04 01 00 00 6B 5B 44 4D 95 BA 71 1A [18:41:01]CommunicateWithHost err = 0 [18:41:01]CheckOFDResponse [18:41:01]1017 (14) - 77093643461234 [18:41:01]1041 (16) - 0000000000874676 [18:41:01]1040 (4) - 63482 [18:41:01]1012 (4) - 24.10.2024 12:33 [18:41:01]1206 (1) - 0 [18:41:01]OFD Sender: Remove packet 63482 [18:41:01]ProducePacketName [18:41:01]name=ofd_packets/00063482 [18:41:01]NVStorageDeleteData [18:41:01]*** Cut start [18:41:01]*** Partial cut [18:41:01]*** CUTSNS_PIN = 1 [18:41:01]*** CUTSNS_PIN = 0 [18:41:01]OFD Sender: No OFD packet to send [18:41:01]*** Brake cut motor [18:41:02]Read from MH i2c: 01 [18:41:02]MH_I2C_Read... [18:41:02]*** Stop cut motor [18:41:02]*** Cut end [18:41:02]Read from MH i2c: 01 07 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: 01 07 00 7D 2A 00 00 00 00 00 FF 0F BC [18:41:02]process_action close_receipt done [18:41:02]requested_data is exist [18:41:02]produce_requested_data [18:41:02]requested_item fm.sn is exist - process it [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 11 00 00 [18:41:02]Write to MH i2c: E2 08 00 7E 2A 80 11 00 00 00 00 00 00 22 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 17 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 17 00 7E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7B [18:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:41:02]wFMCommunicate OK [18:41:02]requested_item fd.num is exist - process it [18:41:02]SAM_PROTO_GetFieldsCounters [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 13 00 00 [18:41:02]Write to MH i2c: E2 08 00 7F 2A 80 13 00 00 00 00 00 00 25 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 62 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 62 00 7F 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FA F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [18:41:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FA F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:02]wFMCommunicate OK [18:41:02]SAM_PROTO_GetFieldsCounters done [18:41:02]requested_item shift.num is exist - process it [18:41:02]requested_item shift.opened is exist - process it [18:41:02]req_shift_opened [18:41:02]FM_GetShiftState [18:41:02]SAM_PROTO_GetShiftState [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 13 01 00 [18:41:02]Write to MH i2c: E2 08 00 80 2A 80 13 01 00 00 00 00 00 27 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 0E 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 0E 00 80 2A 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 08 [18:41:02]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:41:02]wFMCommunicate OK [18:41:02]SAM_PROTO_GetShiftState done [18:41:02]FM_GetShiftState done [18:41:02]req_shift_opened done [18:41:02]requested_item shift.open_date is exist - process it [18:41:02]req_shift_open_date [18:41:02]req_shift_open_date done [18:41:02]produce_requested_data done [18:41:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63482,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [18:41:02]process_action_free close_receipt [18:41:02]json_value_free [18:41:02]json_value_free done [18:41:02]process_json_proto returns [18:41:02]Send response to host [18:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63482,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [18:41:02]free response buf [18:41:02]execute_script done [18:41:02]execute_script returns [18:41:02]free content buf [18:41:02]Sock 7.Close socket [18:41:02]Sock 7.Thread stoped [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:54]accept exits with 9 [18:44:54]New connection [18:44:54]New thread 3066490212 created [18:44:54]Thread 3066633572 joined [18:44:54]Waiting for new connection... [18:44:54] Sock 9.Parse request [18:44:54]Sock 9.Check first char [18:44:54]Sock 9.First char is OK [18:44:54]request: POST /json_proto HTTP/1.0 [18:44:54]Method: POST [18:44:54]URL: /json_proto [18:44:54]Method is POST - this is cgi request [18:44:54]url: /json_proto [18:44:54]query_string will be loaded in cgi processing [18:44:54]execute_cgi json_proto POST (null) [18:44:54]execute_cgi path=json_proto method=POST [18:44:54]POST find Content-Length [18:44:54]Host: 172.17.42.132:8080 [18:44:54]Content-Length: 597 [18:44:54]Content-Type: application/json [18:44:54] [18:44:54]POST finish read [18:44:54]Found Content-Length = 597 [18:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47789", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:54]execute_script... [18:44: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)47789", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:54]POST & json_proto [18:44:54]process_json_proto [18:44:54]json parsed OK: [18:44:54]protocol is kg_v1.0 [18:44:54]action value=close_receipt [18:44:54]process_action close_receipt [18:44:54]cmd_close_receipt [18:44:54]MH_GetDate [18:44:54]Write to MH i2c: F0 00 00 81 2A 9A [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: F0 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: F0 09 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: F0 09 00 81 2A 00 AD 95 1A 67 4C DF 56 66 4D [18:44:54]GetLastDocTimeStamp 1729795265 [18:44:54]current date 1729795501 [18:44:54]FM_GetShiftState [18:44:54]SAM_PROTO_GetShiftState [18:44:54]wFMCommunicate request_size=4 [18:44:54]MH_SAM_APDU [18:44:54]CAPDU: 80 13 01 00 [18:44:54]Write to MH i2c: E2 08 00 82 2A 80 13 01 00 00 00 00 00 29 [18:44:54]Write i2c OK [18:44:54]MH_I2C_Read... [18:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:54]Read from MH i2c: E2 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 0E 00 [18:44:54]MH_I2C_Read... [18:44:54]Read from MH i2c: E2 0E 00 82 2A 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 0A [18:44:54]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:44:54]wFMCommunicate OK [18:44:54]SAM_PROTO_GetShiftState done [18:44:54]FM_GetShiftState done [18:44:54]opened in 1729728964 [18:44:54]opened+sec_in_day 1729815364 [18:44:54]quantity*price = 51000 [18:44:54]sum+1 = 51001 [18:44:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.16 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 97 24.10.2024 18:45 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63483 ФПД: 141455329382397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184501&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63483&fm=141455329382397&tin=02508201610067®Number=0000000000091619&sum=51000 0 [18:44:55]StoreToDocumentArchive [18:44:55]shift 547 fd 63483 [18:44:55]save to /storage/0547/doc_00063483 [18:44:55]save last doc name /storage/0547/doc_00063483 to /storage/kkm_last_doc_name [18:44:55]save OK [18:44:55]Clear old archive folders... [18:44:55]ProcessDocumentItem done err = 0, tmpTLVsize=262 [18:44:55]tlvbuf is 00C14440 [18:44:55]SAM_PROTO_ClearQueue [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 09 00 00 [18:44:55]Write to MH i2c: E2 08 00 8F 2A 80 09 00 00 00 00 00 00 2B [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 8F 2A 00 90 00 2D [18:44:55]RAPDU: 90 00 [18:44:55]wFMCommunicate OK [18:44:55]SAM_PROTO_ClearQueue done [18:44:55]KKMCreateOFDPacket [18:44:55]OFDProtocolAddRootSTLVToBuf [18:44:55]FM_MakeSignedData [18:44:55]FM_MakeSignedData [18:44:55]SAM_PROTO_SignData [18:44:55]wFMCommunicate request_size=4 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 0D 01 02 [18:44:55]Write to MH i2c: E2 08 00 90 2A 80 0D 01 02 00 00 00 00 33 [18:44:55]Write i2c OK [18:44:55]MH_I2C_Read... [18:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:55]Read from MH i2c: E2 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 [18:44:55]MH_I2C_Read... [18:44:55]Read from MH i2c: E2 03 00 90 2A 00 90 00 2E [18:44:55]RAPDU: 90 00 [18:44:55]wFMCommunicate OK [18:44:55]wFMCommunicate request_size=255 [18:44:55]MH_SAM_APDU [18:44:55]CAPDU: 80 0D 02 02 FA 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 AD 95 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 [18:44:56]Write to MH i2c: E2 02 01 91 2A 80 0D 02 02 FA 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 AD 95 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 00 00 C1 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:56]Read from MH i2c: E2 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 03 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 03 00 91 2A 00 90 00 2F [18:44:56]RAPDU: 90 00 [18:44:56]wFMCommunicate OK [18:44:56]wFMCommunicate request_size=21 [18:44:56]MH_SAM_APDU [18:44:56]CAPDU: 80 0D 02 02 10 04 00 FB F7 00 00 35 04 06 00 80 A7 22 A8 CF FD [18:44:56]Write to MH i2c: E2 18 00 92 2A 80 0D 02 02 10 00 04 00 FB F7 00 00 35 04 06 00 80 A7 22 A8 CF FD 00 00 48 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:56]Read from MH i2c: E2 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 03 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 03 00 92 2A 00 90 00 30 [18:44:56]RAPDU: 90 00 [18:44:56]wFMCommunicate OK [18:44:56]wFMCommunicate request_size=4 [18:44:56]MH_SAM_APDU [18:44:56]CAPDU: 80 0D 03 02 [18:44:56]Write to MH i2c: E2 08 00 93 2A 80 0D 03 02 00 00 00 00 38 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:56]Read from MH i2c: E2 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 0B 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 0B 00 93 2A 00 42 83 BC 53 41 CE B2 E1 90 00 AF [18:44:56]RAPDU: 42 83 BC 53 41 CE B2 E1 90 00 [18:44:56]wFMCommunicate OK [18:44:56]SAM_PROTO_SignData done [18:44:56]FM_MakeSignedData done [18:44:56]CreateOFDProtocolMessage [18:44:56]wFMCommunicate request_size=4 [18:44:56]MH_SAM_APDU [18:44:56]CAPDU: 80 11 00 00 [18:44:56]Write to MH i2c: E2 08 00 94 2A 80 11 00 00 00 00 00 00 38 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:56]Read from MH i2c: E2 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 17 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 17 00 94 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 91 [18:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:44:56]wFMCommunicate OK [18:44:56]CreateOFDProtocolMessage done [18:44:56]OFDSenderStorePacket 63483 [18:44:56]StoreOFDPacket docnum=63483 [18:44:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 1A 01 00 00 A5 A7 12 01 42 A0 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 AD 95 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FB F7 00 00 35 04 06 00 80 A7 22 A8 CF FD 42 83 BC 53 41 CE B2 E1 [18:44:56]CheckFolder [18:44:56]dirname=/storage/ofd_packets [18:44:56]CheckFolder done [18:44:56]ProducePacketName [18:44:56]name=ofd_packets/00063483 [18:44:56]NVStorageSaveData ofd_packets/00063483 [18:44:56]File name is /storage/ofd_packets/00063483 [18:44:56]Write 312 bytes [18:44:56]NVStorageSaveData done [18:44:56]OFDSenderStorePacket done [18:44:56]KKMCreateOFDPacket done [18:44:56]NVStorageSaveData kkm_last_timestamp [18:44:56]File name is /storage/kkm_last_timestamp [18:44:56]Write 4 bytes [18:44:56]NVStorageSaveData done [18:44:56]ExternCall_PrintAddStr [18:44:56]wPrintStart [18:44:56]Write to MH i2c: 01 00 00 95 2A BF [18:44:56]OFD Sender: Processing packet 63483 [packets to send 232, broken 231] [18:44:56]ProducePacketName [18:44:56]name=ofd_packets/00063483 [18:44:56]OFD Sender: To server: pG, [18:44:56]CommunicateWithHost lk.salyk.kg:30040 [18:44:56]ConnectInit lk.salyk.kg [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: 01 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: 01 07 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: 01 07 00 95 2A 00 00 00 00 00 FF 0F D4 [18:44:56]RasterBufferAndPrint [18:44:56]line Счет N : (3)47789 [18:44:56]line ИНН: 02508201610067 [18:44:56]line Контрольно-Кассовый Чек [18:44:56]line ПРОДАЖА [18:44:56]line Товар: 4700002083327 [18:44:56]line Водка Level 0,5 [18:44:56]line 1.000 * 510.00 [18:44:56]line = 510.00 [18:44:56]line НДС 12% НСП 1% [18:44:56]line > о реализуемом товаре [18:44:56]line ИТОГО: 510.00 [18:44:56]line НСП 1% : 4.51 [18:44:56]line НДС 12% : 54.16 [18:44:56]line Наличными: 510.00 [18:44:56]line Безнал.: 0.00 [18:44:56]line Место: АЗС № 86 "Партнер Нефть" [18:44:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:44:56]line СНО: Общий режим [18:44:56]line Чек 97 24.10.2024 18:45 [18:44:56]line Смена: 547 ФФД: 1.0 [18:44:56]line ЗНМ: 0300000154 [18:44:56]line РНМ: 0000000000091619 [18:44:56]line Версия ККМ: 001 [18:44:56]line ФМ: 0000000000874676 [18:44:56]line ФД: 63483 [18:44:56]line ФПД: 141455329382397 [18:44:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184501&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63483&fm=141455329382397&tin=02508201610067®Number=0000000000091619&sum=51000 [18:44:56]line 0 [18:44:56]written 0, free lines is 4095 [18:44:56]Connected sock=10 [18:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 1A 01 00 00 A5 A7 12 01 42 A0 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 AD 95 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FB F7 00 00 35 04 06 00 80 A7 22 A8 CF FD 42 83 BC 53 41 CE B2 E1 [18:44:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 F9 BB 47 00 C8 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FB F7 00 00 F4 03 04 00 A1 3F 1A 67 B6 04 01 00 00 48 77 FA B2 90 88 D0 5F [18:44:57]CommunicateWithHost err = 0 [18:44:57]CheckOFDResponse [18:44:57]1017 (14) - 77093643461234 [18:44:57]1041 (16) - 0000000000874676 [18:44:57]1040 (4) - 63483 [18:44:57]1012 (4) - 24.10.2024 12:37 [18:44:57]1206 (1) - 0 [18:44:57]OFD Sender: Remove packet 63483 [18:44:57]ProducePacketName [18:44:57]name=ofd_packets/00063483 [18:44:57]NVStorageDeleteData [18:44:57]Write to MH i2c: 01 00 00 BD 2A E7 [18:44:57]Write i2c OK [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: 01 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: 01 07 00 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: 01 07 00 BD 2A 00 00 00 00 00 10 0D 0B [18:44:57]RasterBufferAndPrint [18:44:57]line [18:44:57]line [18:44:57]line [18:44:57]line [18:44:57]line [18:44:57]written 0, free lines is 3353 [18:44:57]MH_Cut [18:44:57]Write to MH i2c: D1 01 00 C4 2A 01 C0 [18:44:57]Write i2c OK [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: D1 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: D1 01 00 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: D1 01 00 C4 2A 00 BF [18:44:57]Write to MH i2c: 01 00 00 C5 2A EF [18:44:57]Write i2c OK [18:44:57]MH_I2C_Read... [18:44:57]OFD Sender: No OFD packet to send [18:44:57]*** Cut start [18:44:57]*** Partial cut [18:44:57]*** CUTSNS_PIN = 1 [18:44:57]*** CUTSNS_PIN = 0 [18:44:58]*** Brake cut motor [18:44:58]Read from MH i2c: 01 [18:44:58]MH_I2C_Read... [18:44:58]*** Stop cut motor [18:44:58]*** Cut end [18:44:58]Read from MH i2c: 01 07 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: 01 07 00 C5 2A 00 00 00 00 00 FF 0F 04 [18:44:58]process_action close_receipt done [18:44:58]requested_data is exist [18:44:58]produce_requested_data [18:44:58]requested_item fm.sn is exist - process it [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 11 00 00 [18:44:58]Write to MH i2c: E2 08 00 C6 2A 80 11 00 00 00 00 00 00 6A [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 17 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 17 00 C6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C3 [18:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:44:58]wFMCommunicate OK [18:44:58]requested_item fd.num is exist - process it [18:44:58]SAM_PROTO_GetFieldsCounters [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 13 00 00 [18:44:58]Write to MH i2c: E2 08 00 C7 2A 80 13 00 00 00 00 00 00 6D [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 62 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 62 00 C7 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FB F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [18:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FB F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:58]wFMCommunicate OK [18:44:58]SAM_PROTO_GetFieldsCounters done [18:44:58]requested_item shift.num is exist - process it [18:44:58]requested_item shift.opened is exist - process it [18:44:58]req_shift_opened [18:44:58]FM_GetShiftState [18:44:58]SAM_PROTO_GetShiftState [18:44:58]wFMCommunicate request_size=4 [18:44:58]MH_SAM_APDU [18:44:58]CAPDU: 80 13 01 00 [18:44:58]Write to MH i2c: E2 08 00 C8 2A 80 13 01 00 00 00 00 00 6F [18:44:58]Write i2c OK [18:44:58]MH_I2C_Read... [18:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:58]Read from MH i2c: E2 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 0E 00 [18:44:58]MH_I2C_Read... [18:44:58]Read from MH i2c: E2 0E 00 C8 2A 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 50 [18:44:58]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:44:58]wFMCommunicate OK [18:44:58]SAM_PROTO_GetShiftState done [18:44:58]FM_GetShiftState done [18:44:58]req_shift_opened done [18:44:58]requested_item shift.open_date is exist - process it [18:44:58]req_shift_open_date [18:44:58]req_shift_open_date done [18:44:58]produce_requested_data done [18:44:58]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63483,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [18:44:58]process_action_free close_receipt [18:44:58]json_value_free [18:44:58]json_value_free done [18:44:58]process_json_proto returns [18:44:58]Send response to host [18:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63483,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [18:44:58]free response buf [18:44:58]execute_script done [18:44:58]execute_script returns [18:44:58]free content buf [18:44:58]Sock 9.Close socket [18:44:58]Sock 9.Thread stoped [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:10]accept exits with 7 [18:51:10]New connection [18:51:10]New thread 3066633572 created [18:51:10]Thread 3066490212 joined [18:51:10]Waiting for new connection... [18:51:10] Sock 7.Parse request [18:51:10]Sock 7.Check first char [18:51:10]Sock 7.First char is OK [18:51:10]request: POST /json_proto HTTP/1.0 [18:51:10]Method: POST [18:51:10]URL: /json_proto [18:51:10]Method is POST - this is cgi request [18:51:10]url: /json_proto [18:51:10]query_string will be loaded in cgi processing [18:51:10]execute_cgi json_proto POST (null) [18:51:10]execute_cgi path=json_proto method=POST [18:51:10]POST find Content-Length [18:51:10]Host: 172.17.42.132:8080 [18:51:10]Content-Length: 639 [18:51:10]Content-Type: application/json [18:51:10] [18:51:10]POST finish read [18:51:10]Found Content-Length = 639 [18:51:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47790", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:10]execute_script... [18:51: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)47790", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:10]POST & json_proto [18:51:10]process_json_proto [18:51:10]json parsed OK: [18:51:10]protocol is kg_v1.0 [18:51:10]action value=close_receipt [18:51:10]process_action close_receipt [18:51:10]cmd_close_receipt [18:51:10]MH_GetDate [18:51:10]Write to MH i2c: F0 00 00 C9 2A E2 [18:51:10]Write i2c OK [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: F0 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: F0 09 00 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: F0 09 00 C9 2A 00 25 97 1A 67 4C DF 56 66 0F [18:51:10]GetLastDocTimeStamp 1729795501 [18:51:10]current date 1729795877 [18:51:10]FM_GetShiftState [18:51:10]SAM_PROTO_GetShiftState [18:51:10]wFMCommunicate request_size=4 [18:51:10]MH_SAM_APDU [18:51:10]CAPDU: 80 13 01 00 [18:51:10]Write to MH i2c: E2 08 00 CA 2A 80 13 01 00 00 00 00 00 71 [18:51:10]Write i2c OK [18:51:10]MH_I2C_Read... [18:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:10]Read from MH i2c: E2 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: E2 0E 00 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: E2 0E 00 CA 2A 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 52 [18:51:10]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:51:10]wFMCommunicate OK [18:51:10]SAM_PROTO_GetShiftState done [18:51:10]FM_GetShiftState done [18:51:10]opened in 1729728964 [18:51:10]opened+sec_in_day 1729815364 [18:51:10]quantity*price = 19900 [18:51:10]sum+1 = 19901 [18:51:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 199.00 НСП 1% : 1.76 НДС 12% : 21.13 Наличными: 199.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 98 24.10.2024 18:51 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63484 ФПД: 254235267824189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185117&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63484&fm=254235267824189&tin=02508201610067®Number=0000000000091619&sum=19900 0 [18:51:11]StoreToDocumentArchive [18:51:11]shift 547 fd 63484 [18:51:11]save to /storage/0547/doc_00063484 [18:51:11]save last doc name /storage/0547/doc_00063484 to /storage/kkm_last_doc_name [18:51:11]save OK [18:51:11]Clear old archive folders... [18:51:11]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:51:11]tlvbuf is 00B04690 [18:51:11]SAM_PROTO_ClearQueue [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 09 00 00 [18:51:11]Write to MH i2c: E2 08 00 D7 2A 80 09 00 00 00 00 00 00 73 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 D7 2A 00 90 00 75 [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]SAM_PROTO_ClearQueue done [18:51:11]KKMCreateOFDPacket [18:51:11]OFDProtocolAddRootSTLVToBuf [18:51:11]FM_MakeSignedData [18:51:11]FM_MakeSignedData [18:51:11]SAM_PROTO_SignData [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 0D 01 02 [18:51:11]Write to MH i2c: E2 08 00 D8 2A 80 0D 01 02 00 00 00 00 7B [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 D8 2A 00 90 00 76 [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]wFMCommunicate request_size=255 [18:51:11]MH_SAM_APDU [18:51:11]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 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 25 97 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [18:51:11]Write to MH i2c: E2 02 01 D9 2A 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 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 25 97 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C5 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:12]Read from MH i2c: E2 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 03 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 03 00 D9 2A 00 90 00 77 [18:51:12]RAPDU: 90 00 [18:51:12]wFMCommunicate OK [18:51:12]wFMCommunicate request_size=31 [18:51:12]MH_SAM_APDU [18:51:12]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 FC F7 00 00 35 04 06 00 E7 39 C2 D3 FA 3D [18:51:12]Write to MH i2c: E2 22 00 DA 2A 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 FC F7 00 00 35 04 06 00 E7 39 C2 D3 FA 3D 00 00 8E [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:12]Read from MH i2c: E2 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 03 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 03 00 DA 2A 00 90 00 78 [18:51:12]RAPDU: 90 00 [18:51:12]wFMCommunicate OK [18:51:12]wFMCommunicate request_size=4 [18:51:12]MH_SAM_APDU [18:51:12]CAPDU: 80 0D 03 02 [18:51:12]Write to MH i2c: E2 08 00 DB 2A 80 0D 03 02 00 00 00 00 80 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:12]Read from MH i2c: E2 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 0B 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 0B 00 DB 2A 00 FC 65 C0 B9 70 24 AE 2A 90 00 C7 [18:51:12]RAPDU: FC 65 C0 B9 70 24 AE 2A 90 00 [18:51:12]wFMCommunicate OK [18:51:12]SAM_PROTO_SignData done [18:51:12]FM_MakeSignedData done [18:51:12]CreateOFDProtocolMessage [18:51:12]wFMCommunicate request_size=4 [18:51:12]MH_SAM_APDU [18:51:12]CAPDU: 80 11 00 00 [18:51:12]Write to MH i2c: E2 08 00 DC 2A 80 11 00 00 00 00 00 00 80 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:12]Read from MH i2c: E2 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 17 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 17 00 DC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D9 [18:51:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:51:12]wFMCommunicate OK [18:51:12]CreateOFDProtocolMessage done [18:51:12]OFDSenderStorePacket 63484 [18:51:12]StoreOFDPacket docnum=63484 [18:51:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 64 62 1C 01 46 95 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 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 25 97 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FC F7 00 00 35 04 06 00 E7 39 C2 D3 FA 3D FC 65 C0 B9 70 24 AE 2A [18:51:12]CheckFolder [18:51:12]dirname=/storage/ofd_packets [18:51:12]CheckFolder done [18:51:12]ProducePacketName [18:51:12]name=ofd_packets/00063484 [18:51:12]NVStorageSaveData ofd_packets/00063484 [18:51:12]File name is /storage/ofd_packets/00063484 [18:51:12]Write 322 bytes [18:51:12]NVStorageSaveData done [18:51:12]OFDSenderStorePacket done [18:51:12]KKMCreateOFDPacket done [18:51:12]NVStorageSaveData kkm_last_timestamp [18:51:12]File name is /storage/kkm_last_timestamp [18:51:12]Write 4 bytes [18:51:12]NVStorageSaveData done [18:51:12]ExternCall_PrintAddStr [18:51:12]wPrintStart [18:51:12]Write to MH i2c: 01 00 00 DD 2A 07 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 DD 2A 00 00 00 00 00 FF 0F 1C [18:51:12]RasterBufferAndPrint [18:51:12]line Счет N : (3)47790 [18:51:12]line ИНН: 02508201610067 [18:51:12]line Контрольно-Кассовый Чек [18:51:12]line ПРОДАЖА [18:51:12]line Товар: 4700000480517 [18:51:12]line Пиво Живое 1л ПЭТ [18:51:12]line 1.000 * 199.00 [18:51:12]line = 199.00 [18:51:12]line НДС 12% НСП 1% [18:51:12]line > о реализуемом товаре [18:51:12]line ИТОГО: 199.00 [18:51:12]line НСП 1% : 1.76 [18:51:12]line НДС 12% : 21.13 [18:51:12]line Наличными: 199.00 [18:51:12]line Безнал.: 0.00 [18:51:12]line Место: АЗС № 86 "Партнер Нефть" [18:51:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:51:12]line СНО: Общий режим [18:51:12]line Чек 98 24.10.2024 18:51 [18:51:12]line Смена: 547 ФФД: 1.0 [18:51:12]line ЗНМ: 0300000154 [18:51:12]line РНМ: 0000000000091619 [18:51:12]line Версия ККМ: 001 [18:51:12]line ФМ: 0000000000874676 [18:51:12]line ФД: 63484 [18:51:12]line ФПД: 254235267824189 [18:51:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185117&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63484&fm=254235267824189&tin=02508201610067®Number=0000000000091619&sum=19900 [18:51:12]OFD Sender: Processing packet 63484 [packets to send 232, broken 231] [18:51:12]ProducePacketName [18:51:12]name=ofd_packets/00063484 [18:51:12]OFD Sender: To server: pG, [18:51:12]CommunicateWithHost lk.salyk.kg:30040 [18:51:12]ConnectInit lk.salyk.kg [18:51:12]line 0 [18:51:12]written 0, free lines is 4095 [18:51:12]Connected sock=11 [18:51:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 64 62 1C 01 46 95 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 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 25 97 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FC F7 00 00 35 04 06 00 E7 39 C2 D3 FA 3D FC 65 C0 B9 70 24 AE 2A [18:51:13]Write to MH i2c: 01 00 00 05 2B 30 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 07 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 07 00 05 2B 00 00 00 00 00 19 0D 5D [18:51:13]RasterBufferAndPrint [18:51:13]line [18:51:13]line [18:51:13]line [18:51:13]line [18:51:13]line [18:51:13]written 0, free lines is 3360 [18:51:13]MH_Cut [18:51:13]Write to MH i2c: D1 01 00 0C 2B 01 09 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: D1 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: D1 01 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: D1 01 00 0C 2B 00 08 [18:51:13]Write to MH i2c: 01 00 00 0D 2B 38 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 87 71 47 00 D1 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FC F7 00 00 F4 03 04 00 19 41 1A 67 B6 04 01 00 00 5B 2D 9C DD AD 06 34 D6 [18:51:13]CommunicateWithHost err = 0 [18:51:13]CheckOFDResponse [18:51:13]1017 (14) - 77093643461234 [18:51:13]1041 (16) - 0000000000874676 [18:51:13]1040 (4) - 63484 [18:51:13]1012 (4) - 24.10.2024 12:44 [18:51:13]1206 (1) - 0 [18:51:13]OFD Sender: Remove packet 63484 [18:51:13]ProducePacketName [18:51:13]name=ofd_packets/00063484 [18:51:13]NVStorageDeleteData [18:51:13]*** Cut start [18:51:13]*** Partial cut [18:51:13]*** CUTSNS_PIN = 1 [18:51:13]*** CUTSNS_PIN = 0 [18:51:13]OFD Sender: No OFD packet to send [18:51:14]*** Brake cut motor [18:51:14]Read from MH i2c: 01 [18:51:14]MH_I2C_Read... [18:51:14]*** Stop cut motor [18:51:14]*** Cut end [18:51:14]Read from MH i2c: 01 07 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 07 00 0D 2B 00 00 00 00 00 FF 0F 4D [18:51:14]process_action close_receipt done [18:51:14]requested_data is exist [18:51:14]produce_requested_data [18:51:14]requested_item fm.sn is exist - process it [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 11 00 00 [18:51:14]Write to MH i2c: E2 08 00 0E 2B 80 11 00 00 00 00 00 00 B3 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 17 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 17 00 0E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0C [18:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:51:14]wFMCommunicate OK [18:51:14]requested_item fd.num is exist - process it [18:51:14]SAM_PROTO_GetFieldsCounters [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 13 00 00 [18:51:14]Write to MH i2c: E2 08 00 0F 2B 80 13 00 00 00 00 00 00 B6 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 62 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 62 00 0F 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FC F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [18:51:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FC F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:14]wFMCommunicate OK [18:51:14]SAM_PROTO_GetFieldsCounters done [18:51:14]requested_item shift.num is exist - process it [18:51:14]requested_item shift.opened is exist - process it [18:51:14]req_shift_opened [18:51:14]FM_GetShiftState [18:51:14]SAM_PROTO_GetShiftState [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 13 01 00 [18:51:14]Write to MH i2c: E2 08 00 10 2B 80 13 01 00 00 00 00 00 B8 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 0E 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 0E 00 10 2B 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 99 [18:51:14]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:51:14]wFMCommunicate OK [18:51:14]SAM_PROTO_GetShiftState done [18:51:14]FM_GetShiftState done [18:51:14]req_shift_opened done [18:51:14]requested_item shift.open_date is exist - process it [18:51:14]req_shift_open_date [18:51:14]req_shift_open_date done [18:51:14]produce_requested_data done [18:51:14]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63484,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [18:51:14]process_action_free close_receipt [18:51:14]json_value_free [18:51:14]json_value_free done [18:51:14]process_json_proto returns [18:51:14]Send response to host [18:51:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63484,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [18:51:14]free response buf [18:51:14]execute_script done [18:51:14]execute_script returns [18:51:14]free content buf [18:51:14]Sock 7.Close socket [18:51:14]Sock 7.Thread stoped [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:36]accept exits with 9 [18:53:36]New connection [18:53:36]New thread 3066490212 created [18:53:36]Thread 3066633572 joined [18:53:36]Waiting for new connection... [18:53:36] Sock 9.Parse request [18:53:36]Sock 9.Check first char [18:53:36]Sock 9.First char is OK [18:53:36]request: POST /json_proto HTTP/1.0 [18:53:36]Method: POST [18:53:36]URL: /json_proto [18:53:36]Method is POST - this is cgi request [18:53:36]url: /json_proto [18:53:36]query_string will be loaded in cgi processing [18:53:36]execute_cgi json_proto POST (null) [18:53:36]execute_cgi path=json_proto method=POST [18:53:36]POST find Content-Length [18:53:36]Host: 172.17.42.132:8080 [18:53:36]Content-Length: 1430 [18:53:36]Content-Type: application/json [18:53:36] [18:53:36]POST finish read [18:53:36]Found Content-Length = 1430 [18:53:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47791", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030017", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 367.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:36]execute_script... [18:53:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47791", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030017", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 367.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:36]POST & json_proto [18:53:36]process_json_proto [18:53:36]json parsed OK: [18:53:36]protocol is kg_v1.0 [18:53:36]action value=close_receipt [18:53:36]process_action close_receipt [18:53:36]cmd_close_receipt [18:53:36]MH_GetDate [18:53:36]Write to MH i2c: F0 00 00 11 2B 2B [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: F0 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: F0 09 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: F0 09 00 11 2B 00 B7 97 1A 67 4C DF 56 66 EA [18:53:36]GetLastDocTimeStamp 1729795877 [18:53:36]current date 1729796023 [18:53:36]FM_GetShiftState [18:53:36]SAM_PROTO_GetShiftState [18:53:36]wFMCommunicate request_size=4 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 13 01 00 [18:53:36]Write to MH i2c: E2 08 00 12 2B 80 13 01 00 00 00 00 00 BA [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 0E 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 0E 00 12 2B 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 9B [18:53:36]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:53:36]wFMCommunicate OK [18:53:36]SAM_PROTO_GetShiftState done [18:53:36]FM_GetShiftState done [18:53:36]opened in 1729728964 [18:53:36]opened+sec_in_day 1729815364 [18:53:36]quantity*price = 9500 [18:53:36]sum+1 = 9501 [18:53:36]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 2.000 * 89.00 = 178.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46141538 Р/ж Orbit Bubblemint 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700026030017 Курут классический 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 367.00 НСП 1% : 3.24 НДС 12% : 38.97 Наличными: 367.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 99 24.10.2024 18:53 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63485 ФПД: 123898282632184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185343&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63485&fm=123898282632184&tin=02508201610067®Number=0000000000091619&sum=36700 0 [18:53:37]StoreToDocumentArchive [18:53:37]shift 547 fd 63485 [18:53:37]save to /storage/0547/doc_00063485 [18:53:37]save last doc name /storage/0547/doc_00063485 to /storage/kkm_last_doc_name [18:53:37]save OK [18:53:37]Clear old archive folders... [18:53:37]ProcessDocumentItem done err = 0, tmpTLVsize=612 [18:53:37]tlvbuf is 00BF3CE0 [18:53:37]SAM_PROTO_ClearQueue [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 09 00 00 [18:53:37]Write to MH i2c: E2 08 00 1F 2B 80 09 00 00 00 00 00 00 BC [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 1F 2B 00 90 00 BE [18:53:37]RAPDU: 90 00 [18:53:37]wFMCommunicate OK [18:53:37]SAM_PROTO_ClearQueue done [18:53:37]KKMCreateOFDPacket [18:53:37]OFDProtocolAddRootSTLVToBuf [18:53:37]FM_MakeSignedData [18:53:37]FM_MakeSignedData [18:53:37]SAM_PROTO_SignData [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 0D 01 02 [18:53:37]Write to MH i2c: E2 08 00 20 2B 80 0D 01 02 00 00 00 00 C4 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 20 2B 00 90 00 BF [18:53:37]RAPDU: 90 00 [18:53:37]wFMCommunicate OK [18:53:37]wFMCommunicate request_size=255 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 0D 02 02 FA 03 00 64 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [18:53:37]Write to MH i2c: E2 02 01 21 2B 80 0D 02 02 FA 00 03 00 64 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 2F [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 21 2B 00 90 00 C0 [18:53:38]RAPDU: 90 00 [18:53:38]wFMCommunicate OK [18:53:38]wFMCommunicate request_size=255 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 0D 02 02 FA 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 [18:53:38]Write to MH i2c: E2 02 01 22 2B 80 0D 02 02 FA 00 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 00 00 D8 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 22 2B 00 90 00 C1 [18:53:38]RAPDU: 90 00 [18:53:38]wFMCommunicate OK [18:53:38]wFMCommunicate request_size=121 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 0D 02 02 74 00 00 00 07 04 06 00 5C 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B7 97 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FD F7 00 00 35 04 06 00 70 AF 51 1F E3 F8 [18:53:38]Write to MH i2c: E2 7C 00 23 2B 80 0D 02 02 74 00 00 00 00 07 04 06 00 5C 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B7 97 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FD F7 00 00 35 04 06 00 70 AF 51 1F E3 F8 00 00 91 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 03 00 23 2B 00 90 00 C2 [18:53:38]RAPDU: 90 00 [18:53:38]wFMCommunicate OK [18:53:38]wFMCommunicate request_size=4 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 0D 03 02 [18:53:38]Write to MH i2c: E2 08 00 24 2B 80 0D 03 02 00 00 00 00 CA [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 0B 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 0B 00 24 2B 00 10 8D A9 65 77 00 3E 29 90 00 54 [18:53:38]RAPDU: 10 8D A9 65 77 00 3E 29 90 00 [18:53:38]wFMCommunicate OK [18:53:38]SAM_PROTO_SignData done [18:53:38]FM_MakeSignedData done [18:53:38]CreateOFDProtocolMessage [18:53:38]wFMCommunicate request_size=4 [18:53:38]MH_SAM_APDU [18:53:38]CAPDU: 80 11 00 00 [18:53:38]Write to MH i2c: E2 08 00 25 2B 80 11 00 00 00 00 00 00 CA [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:38]Read from MH i2c: E2 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 17 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: E2 17 00 25 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 23 [18:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:53:38]wFMCommunicate OK [18:53:38]CreateOFDProtocolMessage done [18:53:38]OFDSenderStorePacket 63485 [18:53:38]StoreOFDPacket docnum=63485 [18:53:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 78 02 00 00 FE CE 70 02 84 8F 5A 03 01 00 03 00 64 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B7 97 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FD F7 00 00 35 04 06 00 70 AF 51 1F E3 F8 10 8D A9 65 77 00 3E 29 [18:53:38]CheckFolder [18:53:38]dirname=/storage/ofd_packets [18:53:38]CheckFolder done [18:53:38]ProducePacketName [18:53:38]name=ofd_packets/00063485 [18:53:38]NVStorageSaveData ofd_packets/00063485 [18:53:38]File name is /storage/ofd_packets/00063485 [18:53:38]Write 662 bytes [18:53:38]NVStorageSaveData done [18:53:38]OFDSenderStorePacket done [18:53:38]KKMCreateOFDPacket done [18:53:38]NVStorageSaveData kkm_last_timestamp [18:53:38]File name is /storage/kkm_last_timestamp [18:53:38]Write 4 bytes [18:53:38]NVStorageSaveData done [18:53:38]ExternCall_PrintAddStr [18:53:38]wPrintStart [18:53:38]Write to MH i2c: 01 00 00 26 2B 51 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 07 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 07 00 26 2B 00 00 00 00 00 FF 0F 66 [18:53:38]RasterBufferAndPrint [18:53:38]line Счет N : (3)47791 [18:53:38]line ИНН: 02508201610067 [18:53:38]line Контрольно-Кассовый Чек [18:53:38]line ПРОДАЖА [18:53:38]line Товар: 4700000480050 [18:53:38]line Напиток Nitro Energy эн green ж/б 0,45л [18:53:38]line 1.000 * 95.00 [18:53:38]line = 95.00 [18:53:38]line НДС 12% НСП 1% [18:53:38]line > о реализуемом товаре [18:53:38]line Товар: 4700040114120 [18:53:38]line Султан чай 1л. чер персик [18:53:38]line 2.000 * 89.00 [18:53:38]line = 178.00 [18:53:38]line НДС 12% НСП 1% [18:53:39]line > о реализуемом товаре [18:53:39]line Товар: 46141538 [18:53:39]line Р/ж Orbit Bubblemint 13,6г [18:53:39]line 1.000 * 45.00 [18:53:39]line = 45.00 [18:53:39]line НДС 12% НСП 1% [18:53:39]line > о реализуемом товаре [18:53:39]line Товар: 4700026030017 [18:53:39]line Курут классический [18:53:39]line 1.000 * 49.00 [18:53:39]line = 49.00 [18:53:39]line НДС 12% НСП 1% [18:53:39]line > о реализуемом товаре [18:53:39]line ИТОГО: 367.00 [18:53:39]line НСП 1% : 3.24 [18:53:39]line НДС 12% : 38.97 [18:53:39]line Наличными: 367.00 [18:53:39]line Безнал.: 0.00 [18:53:39]line Место: АЗС № 86 "Партнер Нефть" [18:53:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:53:39]line СНО: Общий режим [18:53:39]line Чек 99 24.10.2024 18:53 [18:53:39]line Смена: 547 ФФД: 1.0 [18:53:39]line ЗНМ: 0300000154 [18:53:39]line РНМ: 0000000000091619 [18:53:39]line Версия ККМ: 001 [18:53:39]line ФМ: 0000000000874676 [18:53:39]line ФД: 63485 [18:53:39]line ФПД: 123898282632184 [18:53:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185343&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63485&fm=123898282632184&tin=02508201610067®Number=0000000000091619&sum=36700 [18:53:39]line 0 [18:53:39]OFD Sender: Processing packet 63485 [packets to send 232, broken 231] [18:53:39]ProducePacketName [18:53:39]name=ofd_packets/00063485 [18:53:39]OFD Sender: To server: pG, [18:53:39]CommunicateWithHost lk.salyk.kg:30040 [18:53:39]ConnectInit lk.salyk.kg [18:53:39]written 0, free lines is 4095 [18:53:39]Connected sock=10 [18:53:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 78 02 00 00 FE CE 70 02 84 8F 5A 03 01 00 03 00 64 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B7 97 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FD F7 00 00 35 04 06 00 70 AF 51 1F E3 F8 10 8D A9 65 77 00 3E 29 [18:53:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 14 C0 47 00 D1 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FD F7 00 00 F4 03 04 00 AB 41 1A 67 B6 04 01 00 00 26 18 32 4E F4 1C 5D A7 [18:53:39]CommunicateWithHost err = 0 [18:53:39]CheckOFDResponse [18:53:39]1017 (14) - 77093643461234 [18:53:39]1041 (16) - 0000000000874676 [18:53:39]1040 (4) - 63485 [18:53:39]1012 (4) - 24.10.2024 12:46 [18:53:39]1206 (1) - 0 [18:53:39]OFD Sender: Remove packet 63485 [18:53:39]ProducePacketName [18:53:39]name=ofd_packets/00063485 [18:53:39]NVStorageDeleteData [18:53:39]Write to MH i2c: 01 00 00 61 2B 8C [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 07 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 07 00 61 2B 00 00 00 00 00 26 0C C5 [18:53:39]RasterBufferAndPrint [18:53:39]line [18:53:39]line [18:53:39]line [18:53:39]line [18:53:39]line [18:53:39]written 0, free lines is 3120 [18:53:39]MH_Cut [18:53:39]Write to MH i2c: D1 01 00 68 2B 01 65 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: D1 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: D1 01 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: D1 01 00 68 2B 00 64 [18:53:39]Write to MH i2c: 01 00 00 69 2B 94 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:40]OFD Sender: No OFD packet to send [18:53:40]*** Cut start [18:53:40]*** Partial cut [18:53:40]*** CUTSNS_PIN = 1 [18:53:40]*** CUTSNS_PIN = 0 [18:53:40]*** Brake cut motor [18:53:41]Read from MH i2c: 01 [18:53:41]MH_I2C_Read... [18:53:41]*** Stop cut motor [18:53:41]*** Cut end [18:53:41]Read from MH i2c: 01 07 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 07 00 69 2B 00 00 00 00 00 FF 0F A9 [18:53:41]process_action close_receipt done [18:53:41]requested_data is exist [18:53:41]produce_requested_data [18:53:41]requested_item fm.sn is exist - process it [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 11 00 00 [18:53:41]Write to MH i2c: E2 08 00 6A 2B 80 11 00 00 00 00 00 00 0F [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 6A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 68 [18:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:53:41]wFMCommunicate OK [18:53:41]requested_item fd.num is exist - process it [18:53:41]SAM_PROTO_GetFieldsCounters [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 13 00 00 [18:53:41]Write to MH i2c: E2 08 00 6B 2B 80 13 00 00 00 00 00 00 12 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 62 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 62 00 6B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FD F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [18:53:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FD F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:41]wFMCommunicate OK [18:53:41]SAM_PROTO_GetFieldsCounters done [18:53:41]requested_item shift.num is exist - process it [18:53:41]requested_item shift.opened is exist - process it [18:53:41]req_shift_opened [18:53:41]FM_GetShiftState [18:53:41]SAM_PROTO_GetShiftState [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 13 01 00 [18:53:41]Write to MH i2c: E2 08 00 6C 2B 80 13 01 00 00 00 00 00 14 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0E 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0E 00 6C 2B 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 F5 [18:53:41]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [18:53:41]wFMCommunicate OK [18:53:41]SAM_PROTO_GetShiftState done [18:53:41]FM_GetShiftState done [18:53:41]req_shift_opened done [18:53:41]requested_item shift.open_date is exist - process it [18:53:41]req_shift_open_date [18:53:41]req_shift_open_date done [18:53:41]produce_requested_data done [18:53:41]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63485,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [18:53:41]process_action_free close_receipt [18:53:41]json_value_free [18:53:41]json_value_free done [18:53:41]process_json_proto returns [18:53:41]Send response to host [18:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63485,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [18:53:41]free response buf [18:53:41]execute_script done [18:53:41]execute_script returns [18:53:41]free content buf [18:53:41]Sock 9.Close socket [18:53:41]Sock 9.Thread stoped [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:46]accept exits with 7 [19:00:46]New connection [19:00:46]New thread 3066633572 created [19:00:46]Thread 3066490212 joined [19:00:46]Waiting for new connection... [19:00:46] Sock 7.Parse request [19:00:46]Sock 7.Check first char [19:00:46]Sock 7.First char is OK [19:00:46]request: POST /json_proto HTTP/1.0 [19:00:46]Method: POST [19:00:46]URL: /json_proto [19:00:46]Method is POST - this is cgi request [19:00:46]url: /json_proto [19:00:46]query_string will be loaded in cgi processing [19:00:46]execute_cgi json_proto POST (null) [19:00:46]execute_cgi path=json_proto method=POST [19:00:46]POST find Content-Length [19:00:46]Host: 172.17.42.132:8080 [19:00:46]Content-Length: 1020 [19:00:46]Content-Type: application/json [19:00:46] [19:00:46]POST finish read [19:00:46]Found Content-Length = 1020 [19:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47792", "tax_sys" : 0, "items" : [ { "code": "2000038180017", "name": "\u041A\u043E\u0444\u0435 \u041C\u043E\u043A\u043A\u043E\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 247.79 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:46]execute_script... [19:00: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)47792", "tax_sys" : 0, "items" : [ { "code": "2000038180017", "name": "\u041A\u043E\u0444\u0435 \u041C\u043E\u043A\u043A\u043E\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 247.79 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:46]POST & json_proto [19:00:46]process_json_proto [19:00:46]json parsed OK: [19:00:46]protocol is kg_v1.0 [19:00:46]action value=close_receipt [19:00:46]process_action close_receipt [19:00:46]cmd_close_receipt [19:00:46]MH_GetDate [19:00:46]Write to MH i2c: F0 00 00 6D 2B 87 [19:00:46]Write i2c OK [19:00:46]MH_I2C_Read... [19:00:46]Read from MH i2c: F0 [19:00:46]MH_I2C_Read... [19:00:46]Read from MH i2c: F0 09 00 [19:00:46]MH_I2C_Read... [19:00:46]Read from MH i2c: F0 09 00 6D 2B 00 65 99 1A 67 4C DF 56 66 F6 [19:00:46]GetLastDocTimeStamp 1729796023 [19:00:46]current date 1729796453 [19:00:46]FM_GetShiftState [19:00:46]SAM_PROTO_GetShiftState [19:00:46]wFMCommunicate request_size=4 [19:00:46]MH_SAM_APDU [19:00:46]CAPDU: 80 13 01 00 [19:00:46]Write to MH i2c: E2 08 00 6E 2B 80 13 01 00 00 00 00 00 16 [19:00:46]Write i2c OK [19:00:46]MH_I2C_Read... [19:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:46]Read from MH i2c: E2 [19:00:46]MH_I2C_Read... [19:00:46]Read from MH i2c: E2 0E 00 [19:00:46]MH_I2C_Read... [19:00:46]Read from MH i2c: E2 0E 00 6E 2B 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 F7 [19:00:46]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:00:46]wFMCommunicate OK [19:00:46]SAM_PROTO_GetShiftState done [19:00:46]FM_GetShiftState done [19:00:46]opened in 1729728964 [19:00:46]opened+sec_in_day 1729815364 [19:00:46]quantity*price = 11894 [19:00:46]sum+1 = 11895 [19:00:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 128.85 = 128.85 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 247.79 НСП 1% : 2.19 НДС 12% : 26.31 Наличными: 0.00 Безнал.: 247.79 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 100 24.10.2024 19:00 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63486 ФПД: 266268998643281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190054&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63486&fm=266268998643281&tin=02508201610067®Number=0000000000091619&sum=24779 0 [19:00:47]StoreToDocumentArchive [19:00:47]shift 547 fd 63486 [19:00:47]save to /storage/0547/doc_00063486 [19:00:47]save last doc name /storage/0547/doc_00063486 to /storage/kkm_last_doc_name [19:00:47]save OK [19:00:47]Clear old archive folders... [19:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=388 [19:00:47]tlvbuf is 00B8FF40 [19:00:47]SAM_PROTO_ClearQueue [19:00:47]wFMCommunicate request_size=4 [19:00:47]MH_SAM_APDU [19:00:47]CAPDU: 80 09 00 00 [19:00:47]Write to MH i2c: E2 08 00 7B 2B 80 09 00 00 00 00 00 00 18 [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:47]Read from MH i2c: E2 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 7B 2B 00 90 00 1A [19:00:47]RAPDU: 90 00 [19:00:47]wFMCommunicate OK [19:00:47]SAM_PROTO_ClearQueue done [19:00:47]KKMCreateOFDPacket [19:00:47]OFDProtocolAddRootSTLVToBuf [19:00:47]FM_MakeSignedData [19:00:47]FM_MakeSignedData [19:00:47]SAM_PROTO_SignData [19:00:47]wFMCommunicate request_size=4 [19:00:47]MH_SAM_APDU [19:00:47]CAPDU: 80 0D 01 02 [19:00:47]Write to MH i2c: E2 08 00 7C 2B 80 0D 01 02 00 00 00 00 20 [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:47]Read from MH i2c: E2 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 7C 2B 00 90 00 1B [19:00:47]RAPDU: 90 00 [19:00:47]wFMCommunicate OK [19:00:47]wFMCommunicate request_size=255 [19:00:47]MH_SAM_APDU [19:00:47]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [19:00:47]Write to MH i2c: E2 02 01 7D 2B 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 80 [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:48]Read from MH i2c: E2 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: E2 03 00 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: E2 03 00 7D 2B 00 90 00 1C [19:00:48]RAPDU: 90 00 [19:00:48]wFMCommunicate OK [19:00:48]wFMCommunicate request_size=147 [19:00:48]MH_SAM_APDU [19:00:48]CAPDU: 80 0D 02 02 8E F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 66 99 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FE F7 00 00 35 04 06 00 F2 2B 95 14 2E 51 [19:00:48]Write to MH i2c: E2 96 00 7E 2B 80 0D 02 02 8E 00 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 66 99 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FE F7 00 00 35 04 06 00 F2 2B 95 14 2E 51 00 00 0D [19:00:48]Write i2c OK [19:00:48]MH_I2C_Read... [19:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:48]Read from MH i2c: E2 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: E2 03 00 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: E2 03 00 7E 2B 00 90 00 1D [19:00:48]RAPDU: 90 00 [19:00:48]wFMCommunicate OK [19:00:48]wFMCommunicate request_size=4 [19:00:48]MH_SAM_APDU [19:00:48]CAPDU: 80 0D 03 02 [19:00:48]Write to MH i2c: E2 08 00 7F 2B 80 0D 03 02 00 00 00 00 25 [19:00:48]Write i2c OK [19:00:48]MH_I2C_Read... [19:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:48]Read from MH i2c: E2 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: E2 0B 00 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: E2 0B 00 7F 2B 00 C6 FA 20 CE C5 ED D8 6A 90 00 C8 [19:00:48]RAPDU: C6 FA 20 CE C5 ED D8 6A 90 00 [19:00:48]wFMCommunicate OK [19:00:48]SAM_PROTO_SignData done [19:00:48]FM_MakeSignedData done [19:00:48]CreateOFDProtocolMessage [19:00:48]wFMCommunicate request_size=4 [19:00:48]MH_SAM_APDU [19:00:48]CAPDU: 80 11 00 00 [19:00:48]Write to MH i2c: E2 08 00 80 2B 80 11 00 00 00 00 00 00 25 [19:00:48]Write i2c OK [19:00:48]MH_I2C_Read... [19:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:48]Read from MH i2c: E2 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: E2 17 00 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: E2 17 00 80 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7E [19:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:00:48]wFMCommunicate OK [19:00:48]CreateOFDProtocolMessage done [19:00:48]OFDSenderStorePacket 63486 [19:00:48]StoreOFDPacket docnum=63486 [19:00:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 98 01 00 00 63 CD 90 01 FB 43 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 66 99 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FE F7 00 00 35 04 06 00 F2 2B 95 14 2E 51 C6 FA 20 CE C5 ED D8 6A [19:00:48]CheckFolder [19:00:48]dirname=/storage/ofd_packets [19:00:48]CheckFolder done [19:00:48]ProducePacketName [19:00:48]name=ofd_packets/00063486 [19:00:48]NVStorageSaveData ofd_packets/00063486 [19:00:48]File name is /storage/ofd_packets/00063486 [19:00:48]Write 438 bytes [19:00:48]NVStorageSaveData done [19:00:48]OFDSenderStorePacket done [19:00:48]KKMCreateOFDPacket done [19:00:48]NVStorageSaveData kkm_last_timestamp [19:00:48]File name is /storage/kkm_last_timestamp [19:00:48]Write 4 bytes [19:00:48]NVStorageSaveData done [19:00:48]ExternCall_PrintAddStr [19:00:48]wPrintStart [19:00:48]Write to MH i2c: 01 00 00 81 2B AC [19:00:48]Write i2c OK [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: 01 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: 01 07 00 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: 01 07 00 81 2B 00 00 00 00 00 FF 0F C1 [19:00:48]RasterBufferAndPrint [19:00:48]line Счет N : (3)47792 [19:00:48]line ИНН: 02508201610067 [19:00:48]line Контрольно-Кассовый Чек [19:00:48]line ПРОДАЖА [19:00:48]line Товар: 2000038180017 [19:00:48]line Кофе Моккочино (GABB TRADE) [19:00:48]line 1.000 * 118.94 [19:00:48]line = 118.94 [19:00:48]line НДС 12% НСП 1% [19:00:48]line > о реализуемом товаре [19:00:48]line Товар: 2000036230011 [19:00:48]line Кофе Латте XL(GABB TRADE) [19:00:48]line 1.000 * 128.85 [19:00:48]line = 128.85 [19:00:48]line НДС 12% НСП 1% [19:00:48]line > о реализуемом товаре [19:00:48]line ИТОГО: 247.79 [19:00:48]line НСП 1% : 2.19 [19:00:48]line НДС 12% : 26.31 [19:00:48]line Наличными: 0.00 [19:00:48]line Безнал.: 247.79 [19:00:48]line Место: АЗС № 86 "Партнер Нефть" [19:00:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:00:48]line СНО: Общий режим [19:00:48]line Чек 100 24.10.2024 19:00 [19:00:48]line Смена: 547 ФФД: 1.0 [19:00:48]line ЗНМ: 0300000154 [19:00:48]line РНМ: 0000000000091619 [19:00:48]line Версия ККМ: 001 [19:00:48]line Платежная система: Mbank [19:00:48]line ФМ: 0000000000874676 [19:00:48]line ФД: 63486 [19:00:48]line ФПД: 266268998643281 [19:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190054&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63486&fm=266268998643281&tin=02508201610067®Number=0000000000091619&sum=24779 [19:00:48]line 0 [19:00:48]OFD Sender: Processing packet 63486 [packets to send 232, broken 231] [19:00:48]ProducePacketName [19:00:48]name=ofd_packets/00063486 [19:00:48]OFD Sender: To server: pG, [19:00:48]CommunicateWithHost lk.salyk.kg:30040 [19:00:48]ConnectInit lk.salyk.kg [19:00:48]written 0, free lines is 4095 [19:00:49]Connected sock=10 [19:00:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 98 01 00 00 63 CD 90 01 FB 43 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 66 99 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FE F7 00 00 35 04 06 00 F2 2B 95 14 2E 51 C6 FA 20 CE C5 ED D8 6A [19:00:49]Write to MH i2c: 01 00 00 B1 2B DC [19:00:49]Write i2c OK [19:00:49]MH_I2C_Read... [19:00:49]Read from MH i2c: 01 [19:00:49]MH_I2C_Read... [19:00:49]Read from MH i2c: 01 07 00 [19:00:49]MH_I2C_Read... [19:00:49]Read from MH i2c: 01 07 00 B1 2B 00 00 00 00 00 CE 0C BD [19:00:49]RasterBufferAndPrint [19:00:49]line [19:00:49]line [19:00:49]line [19:00:49]line [19:00:49]line [19:00:49]written 0, free lines is 3287 [19:00:49]MH_Cut [19:00:49]Write to MH i2c: D1 01 00 B8 2B 01 B5 [19:00:49]Write i2c OK [19:00:49]MH_I2C_Read... [19:00:49]Read from MH i2c: D1 [19:00:49]MH_I2C_Read... [19:00:49]Read from MH i2c: D1 01 00 [19:00:49]MH_I2C_Read... [19:00:49]Read from MH i2c: D1 01 00 B8 2B 00 B4 [19:00:49]Write to MH i2c: 01 00 00 B9 2B E4 [19:00:49]Write i2c OK [19:00:49]MH_I2C_Read... [19:00:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 F1 6B 47 00 04 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FE F7 00 00 F4 03 04 00 59 43 1A 67 B6 04 01 00 00 5B 4F 6D C0 52 BE 4B BF [19:00:49]CommunicateWithHost err = 0 [19:00:49]CheckOFDResponse [19:00:49]1017 (14) - 77093643461234 [19:00:49]1041 (16) - 0000000000874676 [19:00:49]1040 (4) - 63486 [19:00:49]1012 (4) - 24.10.2024 12:53 [19:00:49]1206 (1) - 0 [19:00:49]OFD Sender: Remove packet 63486 [19:00:49]ProducePacketName [19:00:49]name=ofd_packets/00063486 [19:00:49]NVStorageDeleteData [19:00:49]OFD Sender: No OFD packet to send [19:00:50]*** Cut start [19:00:50]*** Partial cut [19:00:50]*** CUTSNS_PIN = 1 [19:00:50]*** CUTSNS_PIN = 0 [19:00:50]*** Brake cut motor [19:00:50]Read from MH i2c: 01 [19:00:50]MH_I2C_Read... [19:00:50]*** Stop cut motor [19:00:50]*** Cut end [19:00:50]Read from MH i2c: 01 07 00 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: 01 07 00 B9 2B 00 00 00 00 00 FF 0F F9 [19:00:50]process_action close_receipt done [19:00:50]requested_data is exist [19:00:50]produce_requested_data [19:00:50]requested_item fm.sn is exist - process it [19:00:50]wFMCommunicate request_size=4 [19:00:50]MH_SAM_APDU [19:00:50]CAPDU: 80 11 00 00 [19:00:50]Write to MH i2c: E2 08 00 BA 2B 80 11 00 00 00 00 00 00 5F [19:00:50]Write i2c OK [19:00:50]MH_I2C_Read... [19:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:50]Read from MH i2c: E2 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: E2 17 00 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: E2 17 00 BA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B8 [19:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:00:50]wFMCommunicate OK [19:00:50]requested_item fd.num is exist - process it [19:00:50]SAM_PROTO_GetFieldsCounters [19:00:50]wFMCommunicate request_size=4 [19:00:50]MH_SAM_APDU [19:00:50]CAPDU: 80 13 00 00 [19:00:50]Write to MH i2c: E2 08 00 BB 2B 80 13 00 00 00 00 00 00 62 [19:00:50]Write i2c OK [19:00:50]MH_I2C_Read... [19:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:50]Read from MH i2c: E2 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: E2 62 00 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: E2 62 00 BB 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FE F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [19:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FE F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:50]wFMCommunicate OK [19:00:50]SAM_PROTO_GetFieldsCounters done [19:00:50]requested_item shift.num is exist - process it [19:00:50]requested_item shift.opened is exist - process it [19:00:50]req_shift_opened [19:00:50]FM_GetShiftState [19:00:50]SAM_PROTO_GetShiftState [19:00:50]wFMCommunicate request_size=4 [19:00:50]MH_SAM_APDU [19:00:50]CAPDU: 80 13 01 00 [19:00:50]Write to MH i2c: E2 08 00 BC 2B 80 13 01 00 00 00 00 00 64 [19:00:50]Write i2c OK [19:00:50]MH_I2C_Read... [19:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:50]Read from MH i2c: E2 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: E2 0E 00 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: E2 0E 00 BC 2B 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 45 [19:00:50]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:00:50]wFMCommunicate OK [19:00:50]SAM_PROTO_GetShiftState done [19:00:50]FM_GetShiftState done [19:00:50]req_shift_opened done [19:00:50]requested_item shift.open_date is exist - process it [19:00:50]req_shift_open_date [19:00:50]req_shift_open_date done [19:00:50]produce_requested_data done [19:00:50]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63486,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:00:50]process_action_free close_receipt [19:00:50]json_value_free [19:00:50]json_value_free done [19:00:50]process_json_proto returns [19:00:50]Send response to host [19:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63486,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:00:50]free response buf [19:00:50]execute_script done [19:00:50]execute_script returns [19:00:50]free content buf [19:00:50]Sock 7.Close socket [19:00:50]Sock 7.Thread stoped [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:05]accept exits with 9 [19:05:05]New connection [19:05:05]New thread 3066490212 created [19:05:05]Thread 3066633572 joined [19:05:05]Waiting for new connection... [19:05:05] Sock 9.Parse request [19:05:05]Sock 9.Check first char [19:05:05]Sock 9.First char is OK [19:05:05]request: POST /json_proto HTTP/1.0 [19:05:05]Method: POST [19:05:05]URL: /json_proto [19:05:05]Method is POST - this is cgi request [19:05:05]url: /json_proto [19:05:05]query_string will be loaded in cgi processing [19:05:05]execute_cgi json_proto POST (null) [19:05:05]execute_cgi path=json_proto method=POST [19:05:05]POST find Content-Length [19:05:05]Host: 172.17.42.132:8080 [19:05:05]Content-Length: 645 [19:05:05]Content-Type: application/json [19:05:05] [19:05:05]POST finish read [19:05:05]Found Content-Length = 645 [19:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47793", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:05]execute_script... [19:05: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)47793", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:05]POST & json_proto [19:05:05]process_json_proto [19:05:05]json parsed OK: [19:05:05]protocol is kg_v1.0 [19:05:05]action value=close_receipt [19:05:05]process_action close_receipt [19:05:05]cmd_close_receipt [19:05:05]MH_GetDate [19:05:05]Write to MH i2c: F0 00 00 BD 2B D7 [19:05:05]Write i2c OK [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: F0 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: F0 09 00 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: F0 09 00 BD 2B 00 68 9A 1A 67 4C DF 56 66 4A [19:05:05]GetLastDocTimeStamp 1729796454 [19:05:05]current date 1729796712 [19:05:05]FM_GetShiftState [19:05:05]SAM_PROTO_GetShiftState [19:05:05]wFMCommunicate request_size=4 [19:05:05]MH_SAM_APDU [19:05:05]CAPDU: 80 13 01 00 [19:05:05]Write to MH i2c: E2 08 00 BE 2B 80 13 01 00 00 00 00 00 66 [19:05:05]Write i2c OK [19:05:05]MH_I2C_Read... [19:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:05]Read from MH i2c: E2 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: E2 0E 00 [19:05:05]MH_I2C_Read... [19:05:05]Read from MH i2c: E2 0E 00 BE 2B 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 47 [19:05:05]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:05:05]wFMCommunicate OK [19:05:05]SAM_PROTO_GetShiftState done [19:05:05]FM_GetShiftState done [19:05:05]opened in 1729728964 [19:05:05]opened+sec_in_day 1729815364 [19:05:05]quantity*price = 13000 [19:05:05]sum+1 = 13001 [19:05:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 101 24.10.2024 19:05 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63487 ФПД: 265305622917734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190512&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63487&fm=265305622917734&tin=02508201610067®Number=0000000000091619&sum=13000 0 [19:05:06]StoreToDocumentArchive [19:05:06]shift 547 fd 63487 [19:05:06]save to /storage/0547/doc_00063487 [19:05:06]save last doc name /storage/0547/doc_00063487 to /storage/kkm_last_doc_name [19:05:06]save OK [19:05:06]Clear old archive folders... [19:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:05:06]tlvbuf is 00B54A80 [19:05:06]SAM_PROTO_ClearQueue [19:05:06]wFMCommunicate request_size=4 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 09 00 00 [19:05:06]Write to MH i2c: E2 08 00 CB 2B 80 09 00 00 00 00 00 00 68 [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 CB 2B 00 90 00 6A [19:05:06]RAPDU: 90 00 [19:05:06]wFMCommunicate OK [19:05:06]SAM_PROTO_ClearQueue done [19:05:06]KKMCreateOFDPacket [19:05:06]OFDProtocolAddRootSTLVToBuf [19:05:06]FM_MakeSignedData [19:05:06]FM_MakeSignedData [19:05:06]SAM_PROTO_SignData [19:05:06]wFMCommunicate request_size=4 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 0D 01 02 [19:05:06]Write to MH i2c: E2 08 00 CC 2B 80 0D 01 02 00 00 00 00 70 [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:06]Read from MH i2c: E2 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 [19:05:06]MH_I2C_Read... [19:05:06]Read from MH i2c: E2 03 00 CC 2B 00 90 00 6B [19:05:06]RAPDU: 90 00 [19:05:06]wFMCommunicate OK [19:05:06]wFMCommunicate request_size=255 [19:05:06]MH_SAM_APDU [19:05:06]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 68 9A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [19:05:06]Write to MH i2c: E2 02 01 CD 2B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 68 9A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 8D [19:05:06]Write i2c OK [19:05:06]MH_I2C_Read... [19:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:07]Read from MH i2c: E2 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 03 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 03 00 CD 2B 00 90 00 6C [19:05:07]RAPDU: 90 00 [19:05:07]wFMCommunicate OK [19:05:07]wFMCommunicate request_size=41 [19:05:07]MH_SAM_APDU [19:05:07]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FF F7 00 00 35 04 06 00 F1 4B 47 69 32 66 [19:05:07]Write to MH i2c: E2 2C 00 CE 2B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FF F7 00 00 35 04 06 00 F1 4B 47 69 32 66 00 00 C2 [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:07]Read from MH i2c: E2 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 03 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 03 00 CE 2B 00 90 00 6D [19:05:07]RAPDU: 90 00 [19:05:07]wFMCommunicate OK [19:05:07]wFMCommunicate request_size=4 [19:05:07]MH_SAM_APDU [19:05:07]CAPDU: 80 0D 03 02 [19:05:07]Write to MH i2c: E2 08 00 CF 2B 80 0D 03 02 00 00 00 00 75 [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:07]Read from MH i2c: E2 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 0B 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 0B 00 CF 2B 00 A8 07 56 8C 5A 5D A6 B5 90 00 19 [19:05:07]RAPDU: A8 07 56 8C 5A 5D A6 B5 90 00 [19:05:07]wFMCommunicate OK [19:05:07]SAM_PROTO_SignData done [19:05:07]FM_MakeSignedData done [19:05:07]CreateOFDProtocolMessage [19:05:07]wFMCommunicate request_size=4 [19:05:07]MH_SAM_APDU [19:05:07]CAPDU: 80 11 00 00 [19:05:07]Write to MH i2c: E2 08 00 D0 2B 80 11 00 00 00 00 00 00 75 [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:07]Read from MH i2c: E2 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 17 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: E2 17 00 D0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CE [19:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:05:07]wFMCommunicate OK [19:05:07]CreateOFDProtocolMessage done [19:05:07]OFDSenderStorePacket 63487 [19:05:07]StoreOFDPacket docnum=63487 [19:05:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 59 12 26 01 94 ED 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 68 9A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FF F7 00 00 35 04 06 00 F1 4B 47 69 32 66 A8 07 56 8C 5A 5D A6 B5 [19:05:07]CheckFolder [19:05:07]dirname=/storage/ofd_packets [19:05:07]CheckFolder done [19:05:07]ProducePacketName [19:05:07]name=ofd_packets/00063487 [19:05:07]NVStorageSaveData ofd_packets/00063487 [19:05:07]File name is /storage/ofd_packets/00063487 [19:05:07]Write 332 bytes [19:05:07]NVStorageSaveData done [19:05:07]OFDSenderStorePacket done [19:05:07]OFD Sender: Processing packet 63487 [packets to send 232, broken 231] [19:05:07]ProducePacketName [19:05:07]name=ofd_packets/00063487 [19:05:07]OFD Sender: To server: pG, [19:05:07]CommunicateWithHost lk.salyk.kg:30040 [19:05:07]ConnectInit lk.salyk.kg [19:05:07]KKMCreateOFDPacket done [19:05:07]NVStorageSaveData kkm_last_timestamp [19:05:07]File name is /storage/kkm_last_timestamp [19:05:07]Write 4 bytes [19:05:07]NVStorageSaveData done [19:05:07]ExternCall_PrintAddStr [19:05:07]wPrintStart [19:05:07]Write to MH i2c: 01 00 00 D1 2B FC [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: 01 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: 01 07 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: 01 07 00 D1 2B 00 00 00 00 00 FF 0F 11 [19:05:07]RasterBufferAndPrint [19:05:07]line Счет N : (3)47793 [19:05:07]line ИНН: 02508201610067 [19:05:07]line Контрольно-Кассовый Чек [19:05:07]line ПРОДАЖА [19:05:07]line Товар: 2000036220012 [19:05:07]line Кофе Капучино XL(GABB TRADE) [19:05:07]line 1.000 * 130.00 [19:05:07]line = 130.00 [19:05:07]line НДС 12% НСП 1% [19:05:07]line > о реализуемом товаре [19:05:07]line ИТОГО: 130.00 [19:05:07]line НСП 1% : 1.15 [19:05:07]line НДС 12% : 13.80 [19:05:07]line Наличными: 130.00 [19:05:07]line Безнал.: 0.00 [19:05:07]line Место: АЗС № 86 "Партнер Нефть" [19:05:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:05:07]line СНО: Общий режим [19:05:07]line Чек 101 24.10.2024 19:05 [19:05:07]line Смена: 547 ФФД: 1.0 [19:05:07]line ЗНМ: 0300000154 [19:05:07]line РНМ: 0000000000091619 [19:05:07]line Версия ККМ: 001 [19:05:07]line ФМ: 0000000000874676 [19:05:07]line ФД: 63487 [19:05:07]line ФПД: 265305622917734 [19:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190512&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63487&fm=265305622917734&tin=02508201610067®Number=0000000000091619&sum=13000 [19:05:07]line 0 [19:05:07]written 0, free lines is 4095 [19:05:07]Write to MH i2c: 01 00 00 FA 2B 25 [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: 01 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: 01 07 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: 01 07 00 FA 2B 00 00 00 00 00 06 0D 3F [19:05:07]RasterBufferAndPrint [19:05:07]line [19:05:07]line [19:05:07]line [19:05:07]line [19:05:07]line [19:05:07]written 0, free lines is 3340 [19:05:07]MH_Cut [19:05:07]Write to MH i2c: D1 01 00 01 2C 01 FF [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: D1 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: D1 01 00 [19:05:07]MH_I2C_Read... [19:05:07]Read from MH i2c: D1 01 00 01 2C 00 FE [19:05:07]Write to MH i2c: 01 00 00 02 2C 2E [19:05:07]Write i2c OK [19:05:07]MH_I2C_Read... [19:05:08]*** Cut start [19:05:08]*** Partial cut [19:05:08]*** CUTSNS_PIN = 1 [19:05:08]*** CUTSNS_PIN = 0 [19:05:08]*** Brake cut motor [19:05:09]Read from MH i2c: 01 [19:05:09]MH_I2C_Read... [19:05:09]*** Stop cut motor [19:05:09]*** Cut end [19:05:09]Read from MH i2c: 01 07 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: 01 07 00 02 2C 00 00 00 00 00 FF 0F 43 [19:05:09]process_action close_receipt done [19:05:09]requested_data is exist [19:05:09]produce_requested_data [19:05:09]requested_item fm.sn is exist - process it [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 11 00 00 [19:05:09]Write to MH i2c: E2 08 00 03 2C 80 11 00 00 00 00 00 00 A9 [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 17 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 17 00 03 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 02 [19:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:05:09]wFMCommunicate OK [19:05:09]requested_item fd.num is exist - process it [19:05:09]SAM_PROTO_GetFieldsCounters [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 13 00 00 [19:05:09]Write to MH i2c: E2 08 00 04 2C 80 13 00 00 00 00 00 00 AC [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 62 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 62 00 04 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FF F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [19:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 FF F7 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:09]wFMCommunicate OK [19:05:09]SAM_PROTO_GetFieldsCounters done [19:05:09]requested_item shift.num is exist - process it [19:05:09]requested_item shift.opened is exist - process it [19:05:09]req_shift_opened [19:05:09]FM_GetShiftState [19:05:09]SAM_PROTO_GetShiftState [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 13 01 00 [19:05:09]Write to MH i2c: E2 08 00 05 2C 80 13 01 00 00 00 00 00 AE [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 0E 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 0E 00 05 2C 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 8F [19:05:09]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:05:09]wFMCommunicate OK [19:05:09]SAM_PROTO_GetShiftState done [19:05:09]FM_GetShiftState done [19:05:09]req_shift_opened done [19:05:09]requested_item shift.open_date is exist - process it [19:05:09]req_shift_open_date [19:05:09]req_shift_open_date done [19:05:09]produce_requested_data done [19:05:09]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63487,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:05:09]process_action_free close_receipt [19:05:09]json_value_free [19:05:09]json_value_free done [19:05:09]process_json_proto returns [19:05:09]Send response to host [19:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63487,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:05:09]free response buf [19:05:09]execute_script done [19:05:09]execute_script returns [19:05:09]free content buf [19:05:09]Sock 9.Close socket [19:05:09]Sock 9.Thread stoped [19:07:19]ConnectInit Can't connect to host [19:07:19]CommunicateWithHost connect error [19:07:19]CommunicateWithHost err = -1 [19:07:19]OFD Sender: Server communicate error [19:07:24]OFD Sender: Processing packet 63487 [packets to send 232, broken 231] [19:07:24]ProducePacketName [19:07:24]name=ofd_packets/00063487 [19:07:24]OFD Sender: To server: pG, [19:07:24]CommunicateWithHost lk.salyk.kg:30040 [19:07:24]ConnectInit lk.salyk.kg [19:07:25]Connected sock=6 [19:07:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 59 12 26 01 94 ED 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 68 9A 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FF F7 00 00 35 04 06 00 F1 4B 47 69 32 66 A8 07 56 8C 5A 5D A6 B5 [19:07:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 62 A2 47 00 8F 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 FF F7 00 00 F4 03 04 00 E5 44 1A 67 B6 04 01 00 00 50 25 D5 70 5A DD EC 94 [19:07:25]CommunicateWithHost err = 0 [19:07:25]CheckOFDResponse [19:07:25]1017 (14) - 77093643461234 [19:07:25]1041 (16) - 0000000000874676 [19:07:25]1040 (4) - 63487 [19:07:25]1012 (4) - 24.10.2024 13:00 [19:07:25]1206 (1) - 0 [19:07:25]OFD Sender: Remove packet 63487 [19:07:25]ProducePacketName [19:07:25]name=ofd_packets/00063487 [19:07:25]NVStorageDeleteData [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:18:58]accept exits with 7 [19:18:58]New connection [19:18:58]New thread 3066633572 created [19:18:58]Thread 3066490212 joined [19:18:58]Waiting for new connection... [19:18:58] Sock 7.Parse request [19:18:58]Sock 7.Check first char [19:18:58]Sock 7.First char is OK [19:18:58]request: POST /json_proto HTTP/1.0 [19:18:58]Method: POST [19:18:58]URL: /json_proto [19:18:58]Method is POST - this is cgi request [19:18:58]url: /json_proto [19:18:58]query_string will be loaded in cgi processing [19:18:58]execute_cgi json_proto POST (null) [19:18:58]execute_cgi path=json_proto method=POST [19:18:58]POST find Content-Length [19:18:58]Host: 172.17.42.132:8080 [19:18:58]Content-Length: 695 [19:18:58]Content-Type: application/json [19:18:58] [19:18:58]POST finish read [19:18:58]Found Content-Length = 695 [19:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47794", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:58]execute_script... [19:18: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)47794", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:58]POST & json_proto [19:18:58]process_json_proto [19:18:58]json parsed OK: [19:18:58]protocol is kg_v1.0 [19:18:58]action value=close_receipt [19:18:58]process_action close_receipt [19:18:58]cmd_close_receipt [19:18:58]MH_GetDate [19:18:58]Write to MH i2c: F0 00 00 06 2C 21 [19:18:58]Write i2c OK [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: F0 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: F0 09 00 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: F0 09 00 06 2C 00 A9 9D 1A 67 4C DF 56 66 D8 [19:18:58]GetLastDocTimeStamp 1729796712 [19:18:58]current date 1729797545 [19:18:58]FM_GetShiftState [19:18:58]SAM_PROTO_GetShiftState [19:18:58]wFMCommunicate request_size=4 [19:18:58]MH_SAM_APDU [19:18:58]CAPDU: 80 13 01 00 [19:18:58]Write to MH i2c: E2 08 00 07 2C 80 13 01 00 00 00 00 00 B0 [19:18:58]Write i2c OK [19:18:58]MH_I2C_Read... [19:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:58]Read from MH i2c: E2 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: E2 0E 00 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: E2 0E 00 07 2C 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 91 [19:18:58]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:18:58]wFMCommunicate OK [19:18:58]SAM_PROTO_GetShiftState done [19:18:58]FM_GetShiftState done [19:18:58]opened in 1729728964 [19:18:58]opened+sec_in_day 1729815364 [19:18:58]quantity*price = 9500 [19:18:58]sum+1 = 9501 [19:18:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 102 24.10.2024 19:19 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63488 ФПД: 59137889812718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191905&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63488&fm=59137889812718&tin=02508201610067®Number=0000000000091619&sum=9500 0 [19:18:59]StoreToDocumentArchive [19:18:59]shift 547 fd 63488 [19:18:59]save to /storage/0547/doc_00063488 [19:18:59]save last doc name /storage/0547/doc_00063488 to /storage/kkm_last_doc_name [19:18:59]save OK [19:18:59]Clear old archive folders... [19:18:59]ProcessDocumentItem done err = 0, tmpTLVsize=299 [19:18:59]tlvbuf is 00AFDD30 [19:18:59]SAM_PROTO_ClearQueue [19:18:59]wFMCommunicate request_size=4 [19:18:59]MH_SAM_APDU [19:18:59]CAPDU: 80 09 00 00 [19:18:59]Write to MH i2c: E2 08 00 14 2C 80 09 00 00 00 00 00 00 B2 [19:18:59]Write i2c OK [19:18:59]MH_I2C_Read... [19:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:59]Read from MH i2c: E2 [19:18:59]MH_I2C_Read... [19:18:59]Read from MH i2c: E2 03 00 [19:18:59]MH_I2C_Read... [19:18:59]Read from MH i2c: E2 03 00 14 2C 00 90 00 B4 [19:18:59]RAPDU: 90 00 [19:18:59]wFMCommunicate OK [19:18:59]SAM_PROTO_ClearQueue done [19:18:59]KKMCreateOFDPacket [19:18:59]OFDProtocolAddRootSTLVToBuf [19:18:59]FM_MakeSignedData [19:18:59]FM_MakeSignedData [19:18:59]SAM_PROTO_SignData [19:18:59]wFMCommunicate request_size=4 [19:18:59]MH_SAM_APDU [19:18:59]CAPDU: 80 0D 01 02 [19:18:59]Write to MH i2c: E2 08 00 15 2C 80 0D 01 02 00 00 00 00 BA [19:18:59]Write i2c OK [19:18:59]MH_I2C_Read... [19:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:59]Read from MH i2c: E2 [19:18:59]MH_I2C_Read... [19:18:59]Read from MH i2c: E2 03 00 [19:18:59]MH_I2C_Read... [19:18:59]Read from MH i2c: E2 03 00 15 2C 00 90 00 B5 [19:18:59]RAPDU: 90 00 [19:18:59]wFMCommunicate OK [19:18:59]wFMCommunicate request_size=255 [19:18:59]MH_SAM_APDU [19:18:59]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A9 9D 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [19:18:59]Write to MH i2c: E2 02 01 16 2C 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A9 9D 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 3D [19:18:59]Write i2c OK [19:18:59]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 16 2C 00 90 00 B6 [19:19:00]RAPDU: 90 00 [19:19:00]wFMCommunicate OK [19:19:00]wFMCommunicate request_size=58 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 00 F8 00 00 35 04 06 00 35 C9 1C EA 40 EE [19:19:00]Write to MH i2c: E2 3D 00 17 2C 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 00 F8 00 00 35 04 06 00 35 C9 1C EA 40 EE 00 00 DD [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 17 2C 00 90 00 B7 [19:19:00]RAPDU: 90 00 [19:19:00]wFMCommunicate OK [19:19:00]wFMCommunicate request_size=4 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 0D 03 02 [19:19:00]Write to MH i2c: E2 08 00 18 2C 80 0D 03 02 00 00 00 00 BF [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0B 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0B 00 18 2C 00 AD 94 A3 CB 41 41 D6 4E 90 00 15 [19:19:00]RAPDU: AD 94 A3 CB 41 41 D6 4E 90 00 [19:19:00]wFMCommunicate OK [19:19:00]SAM_PROTO_SignData done [19:19:00]FM_MakeSignedData done [19:19:00]CreateOFDProtocolMessage [19:19:00]wFMCommunicate request_size=4 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 11 00 00 [19:19:00]Write to MH i2c: E2 08 00 19 2C 80 11 00 00 00 00 00 00 BF [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 17 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 17 00 19 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 18 [19:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:19:00]wFMCommunicate OK [19:19:00]CreateOFDProtocolMessage done [19:19:00]OFDSenderStorePacket 63488 [19:19:00]StoreOFDPacket docnum=63488 [19:19:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3F 01 00 00 0E 04 37 01 93 52 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A9 9D 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 00 F8 00 00 35 04 06 00 35 C9 1C EA 40 EE AD 94 A3 CB 41 41 D6 4E [19:19:00]CheckFolder [19:19:00]dirname=/storage/ofd_packets [19:19:00]CheckFolder done [19:19:00]ProducePacketName [19:19:00]name=ofd_packets/00063488 [19:19:00]NVStorageSaveData ofd_packets/00063488 [19:19:00]File name is /storage/ofd_packets/00063488 [19:19:00]Write 349 bytes [19:19:00]NVStorageSaveData done [19:19:00]OFDSenderStorePacket done [19:19:00]KKMCreateOFDPacket done [19:19:00]NVStorageSaveData kkm_last_timestamp [19:19:00]File name is /storage/kkm_last_timestamp [19:19:00]Write 4 bytes [19:19:00]NVStorageSaveData done [19:19:00]ExternCall_PrintAddStr [19:19:00]wPrintStart [19:19:00]Write to MH i2c: 01 00 00 1A 2C 46 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: 01 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: 01 07 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: 01 07 00 1A 2C 00 00 00 00 00 FF 0F 5B [19:19:00]RasterBufferAndPrint [19:19:00]line Счет N : (3)47794 [19:19:00]line ИНН: 02508201610067 [19:19:00]line Контрольно-Кассовый Чек [19:19:00]line ПРОДАЖА [19:19:00]line Товар: 4700000480364 [19:19:00]line Напиток энерг Nitro экзотик 0.45 ж/б [19:19:00]line 1.000 * 95.00 [19:19:00]line = 95.00 [19:19:00]line НДС 12% НСП 1% [19:19:00]line > о реализуемом товаре [19:19:00]line ИТОГО: 95.00 [19:19:00]line НСП 1% : 0.84 [19:19:00]line НДС 12% : 10.09 [19:19:00]line Наличными: 95.00 [19:19:00]line Безнал.: 0.00 [19:19:00]line Место: АЗС № 86 "Партнер Нефть" [19:19:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:19:00]line СНО: Общий режим [19:19:00]line Чек 102 24.10.2024 19:19 [19:19:00]line Смена: 547 ФФД: 1.0 [19:19:00]line ЗНМ: 0300000154 [19:19:00]line РНМ: 0000000000091619 [19:19:00]line Версия ККМ: 001 [19:19:00]line ФМ: 0000000000874676 [19:19:00]line ФД: 63488 [19:19:00]line ФПД: 59137889812718 [19:19:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191905&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63488&fm=59137889812718&tin=02508201610067®Number=0000000000091619&sum=9500 [19:19:00]line 0 [19:19:00]OFD Sender: Processing packet 63488 [packets to send 232, broken 231] [19:19:00]ProducePacketName [19:19:00]name=ofd_packets/00063488 [19:19:00]OFD Sender: To server: pG, [19:19:00]CommunicateWithHost lk.salyk.kg:30040 [19:19:00]ConnectInit lk.salyk.kg [19:19:00]written 0, free lines is 4095 [19:19:00]Connected sock=10 [19:19:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3F 01 00 00 0E 04 37 01 93 52 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A9 9D 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 00 F8 00 00 35 04 06 00 35 C9 1C EA 40 EE AD 94 A3 CB 41 41 D6 4E [19:19:01]Write to MH i2c: 01 00 00 43 2C 6F [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: 01 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: 01 07 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: 01 07 00 43 2C 00 00 00 00 00 01 0D 84 [19:19:01]RasterBufferAndPrint [19:19:01]line [19:19:01]line [19:19:01]line [19:19:01]line [19:19:01]line [19:19:01]written 0, free lines is 3335 [19:19:01]MH_Cut [19:19:01]Write to MH i2c: D1 01 00 4A 2C 01 48 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: D1 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: D1 01 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: D1 01 00 4A 2C 00 47 [19:19:01]Write to MH i2c: 01 00 00 4B 2C 77 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 8D A0 47 00 CF 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 00 F8 00 00 F4 03 04 00 9D 47 1A 67 B6 04 01 00 00 F3 85 B5 04 E1 EF 8C 4A [19:19:01]CommunicateWithHost err = 0 [19:19:01]CheckOFDResponse [19:19:01]1017 (14) - 77093643461234 [19:19:01]1041 (16) - 0000000000874676 [19:19:01]1040 (4) - 63488 [19:19:01]1012 (4) - 24.10.2024 13:11 [19:19:01]1206 (1) - 0 [19:19:01]OFD Sender: Remove packet 63488 [19:19:01]ProducePacketName [19:19:01]name=ofd_packets/00063488 [19:19:01]NVStorageDeleteData [19:19:01]OFD Sender: No OFD packet to send [19:19:01]*** Cut start [19:19:01]*** Partial cut [19:19:01]*** CUTSNS_PIN = 1 [19:19:01]*** CUTSNS_PIN = 0 [19:19:02]*** Brake cut motor [19:19:02]Read from MH i2c: 01 [19:19:02]MH_I2C_Read... [19:19:02]*** Stop cut motor [19:19:02]*** Cut end [19:19:02]Read from MH i2c: 01 07 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 07 00 4B 2C 00 00 00 00 00 FF 0F 8C [19:19:02]process_action close_receipt done [19:19:02]requested_data is exist [19:19:02]produce_requested_data [19:19:02]requested_item fm.sn is exist - process it [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 11 00 00 [19:19:02]Write to MH i2c: E2 08 00 4C 2C 80 11 00 00 00 00 00 00 F2 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 17 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 17 00 4C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4B [19:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:19:02]wFMCommunicate OK [19:19:02]requested_item fd.num is exist - process it [19:19:02]SAM_PROTO_GetFieldsCounters [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 13 00 00 [19:19:02]Write to MH i2c: E2 08 00 4D 2C 80 13 00 00 00 00 00 00 F5 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 62 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 62 00 4D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 00 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [19:19:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 00 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_GetFieldsCounters done [19:19:02]requested_item shift.num is exist - process it [19:19:02]requested_item shift.opened is exist - process it [19:19:02]req_shift_opened [19:19:02]FM_GetShiftState [19:19:02]SAM_PROTO_GetShiftState [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 13 01 00 [19:19:02]Write to MH i2c: E2 08 00 4E 2C 80 13 01 00 00 00 00 00 F7 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 4E 2C 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 D8 [19:19:02]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_GetShiftState done [19:19:02]FM_GetShiftState done [19:19:02]req_shift_opened done [19:19:02]requested_item shift.open_date is exist - process it [19:19:02]req_shift_open_date [19:19:02]req_shift_open_date done [19:19:02]produce_requested_data done [19:19:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63488,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:19:02]process_action_free close_receipt [19:19:02]json_value_free [19:19:02]json_value_free done [19:19:02]process_json_proto returns [19:19:02]Send response to host [19:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63488,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:19:02]free response buf [19:19:02]execute_script done [19:19:02]execute_script returns [19:19:02]free content buf [19:19:02]Sock 7.Close socket [19:19:02]Sock 7.Thread stoped [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [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:05]accept exits with 9 [19:22:05]New connection [19:22:05]New thread 3066490212 created [19:22:05]Thread 3066633572 joined [19:22:05]Waiting for new connection... [19:22:05] Sock 9.Parse request [19:22:05]Sock 9.Check first char [19:22:05]Sock 9.First char is OK [19:22:05]request: POST /json_proto HTTP/1.0 [19:22:05]Method: POST [19:22:05]URL: /json_proto [19:22:05]Method is POST - this is cgi request [19:22:05]url: /json_proto [19:22:05]query_string will be loaded in cgi processing [19:22:05]execute_cgi json_proto POST (null) [19:22:05]execute_cgi path=json_proto method=POST [19:22:05]POST find Content-Length [19:22:05]Host: 172.17.42.132:8080 [19:22:05]Content-Length: 1938 [19:22:05]Content-Type: application/json [19:22:05] [19:22:05]POST finish read [19:22:05]Found Content-Length = 1938 [19:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47795", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 2.000, "sum" : 257.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 99.12, "quantity" : 1.000, "sum" : 99.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 59.47, "quantity" : 1.000, "sum" : 59.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 147.68, "quantity" : 1.000, "sum" : 147.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 706.70 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:05]execute_script... [19:22: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)47795", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 2.000, "sum" : 257.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 99.12, "quantity" : 1.000, "sum" : 99.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 59.47, "quantity" : 1.000, "sum" : 59.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 147.68, "quantity" : 1.000, "sum" : 147.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 706.70 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:05]POST & json_proto [19:22:05]process_json_proto [19:22:05]json parsed OK: [19:22:05]protocol is kg_v1.0 [19:22:05]action value=close_receipt [19:22:05]process_action close_receipt [19:22:05]cmd_close_receipt [19:22:05]MH_GetDate [19:22:05]Write to MH i2c: F0 00 00 4F 2C 6A [19:22:05]Write i2c OK [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: F0 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: F0 09 00 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: F0 09 00 4F 2C 00 64 9E 1A 67 4C DF 56 66 DD [19:22:05]GetLastDocTimeStamp 1729797545 [19:22:05]current date 1729797732 [19:22:05]FM_GetShiftState [19:22:05]SAM_PROTO_GetShiftState [19:22:05]wFMCommunicate request_size=4 [19:22:05]MH_SAM_APDU [19:22:05]CAPDU: 80 13 01 00 [19:22:05]Write to MH i2c: E2 08 00 50 2C 80 13 01 00 00 00 00 00 F9 [19:22:05]Write i2c OK [19:22:05]MH_I2C_Read... [19:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:05]Read from MH i2c: E2 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 0E 00 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 0E 00 50 2C 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 DA [19:22:05]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:22:05]wFMCommunicate OK [19:22:05]SAM_PROTO_GetShiftState done [19:22:05]FM_GetShiftState done [19:22:05]opened in 1729728964 [19:22:05]opened+sec_in_day 1729815364 [19:22:05]quantity*price = 25770 [19:22:05]sum+1 = 25771 [19:22:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 99.12 = 99.12 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 59.47 = 59.47 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235333 Пряники Яшкино с вареной сгущенкой 350г 1.000 * 147.68 = 147.68 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 142.73 = 142.73 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 706.70 НСП 1% : 6.26 НДС 12% : 75.05 Наличными: 0.00 Безнал.: 706.70 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 103 24.10.2024 19:22 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63489 ФПД: 36222680291490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192212&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63489&fm=36222680291490&tin=02508201610067®Number=0000000000091619&sum=70670 0 [19:22:06]StoreToDocumentArchive [19:22:06]shift 547 fd 63489 [19:22:06]save to /storage/0547/doc_00063489 [19:22:06]save last doc name /storage/0547/doc_00063489 to /storage/kkm_last_doc_name [19:22:06]save OK [19:22:06]Clear old archive folders... [19:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=756 [19:22:06]tlvbuf is 00AFD930 [19:22:06]SAM_PROTO_ClearQueue [19:22:06]wFMCommunicate request_size=4 [19:22:06]MH_SAM_APDU [19:22:06]CAPDU: 80 09 00 00 [19:22:06]Write to MH i2c: E2 08 00 5D 2C 80 09 00 00 00 00 00 00 FB [19:22:06]Write i2c OK [19:22:06]MH_I2C_Read... [19:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:06]Read from MH i2c: E2 [19:22:06]MH_I2C_Read... [19:22:06]Read from MH i2c: E2 03 00 [19:22:06]MH_I2C_Read... [19:22:06]Read from MH i2c: E2 03 00 5D 2C 00 90 00 FD [19:22:06]RAPDU: 90 00 [19:22:06]wFMCommunicate OK [19:22:06]SAM_PROTO_ClearQueue done [19:22:06]KKMCreateOFDPacket [19:22:06]OFDProtocolAddRootSTLVToBuf [19:22:06]FM_MakeSignedData [19:22:06]FM_MakeSignedData [19:22:06]SAM_PROTO_SignData [19:22:06]wFMCommunicate request_size=4 [19:22:06]MH_SAM_APDU [19:22:06]CAPDU: 80 0D 01 02 [19:22:06]Write to MH i2c: E2 08 00 5E 2C 80 0D 01 02 00 00 00 00 03 [19:22:06]Write i2c OK [19:22:06]MH_I2C_Read... [19:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:06]Read from MH i2c: E2 [19:22:06]MH_I2C_Read... [19:22:06]Read from MH i2c: E2 03 00 [19:22:06]MH_I2C_Read... [19:22:06]Read from MH i2c: E2 03 00 5E 2C 00 90 00 FE [19:22:06]RAPDU: 90 00 [19:22:06]wFMCommunicate OK [19:22:06]wFMCommunicate request_size=255 [19:22:06]MH_SAM_APDU [19:22:06]CAPDU: 80 0D 02 02 FA 03 00 F4 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 26 00 00 00 00 13 04 06 00 B8 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [19:22:06]Write to MH i2c: E2 02 01 5F 2C 80 0D 02 02 FA 00 03 00 F4 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 26 00 00 00 00 13 04 06 00 B8 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 A3 [19:22:07]OFD Sender: No OFD packet to send [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:07]Read from MH i2c: E2 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 5F 2C 00 90 00 FF [19:22:07]RAPDU: 90 00 [19:22:07]wFMCommunicate OK [19:22:07]wFMCommunicate request_size=255 [19:22:07]MH_SAM_APDU [19:22:07]CAPDU: 80 0D 02 02 FA 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3B 17 00 00 00 00 13 04 06 00 3B 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 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 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 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 39 00 00 00 00 13 04 06 00 B0 39 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 [19:22:07]Write to MH i2c: E2 02 01 60 2C 80 0D 02 02 FA 00 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3B 17 00 00 00 00 13 04 06 00 3B 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 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 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 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 39 00 00 00 00 13 04 06 00 B0 39 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 00 00 6F [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:07]Read from MH i2c: E2 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 60 2C 00 90 00 00 [19:22:07]RAPDU: 90 00 [19:22:07]wFMCommunicate OK [19:22:07]wFMCommunicate request_size=255 [19:22:07]MH_SAM_APDU [19:22:07]CAPDU: 80 0D 02 02 FA 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0E 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0E 14 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 64 9E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 01 F8 00 00 [19:22:07]Write to MH i2c: E2 02 01 61 2C 80 0D 02 02 FA 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0E 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0E 14 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 64 9E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 01 F8 00 00 00 00 C8 [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:07]Read from MH i2c: E2 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 61 2C 00 90 00 01 [19:22:07]RAPDU: 90 00 [19:22:07]wFMCommunicate OK [19:22:07]wFMCommunicate request_size=15 [19:22:07]MH_SAM_APDU [19:22:07]CAPDU: 80 0D 02 02 0A 35 04 06 00 20 F1 BF FD D8 A2 [19:22:07]Write to MH i2c: E2 12 00 62 2C 80 0D 02 02 0A 00 35 04 06 00 20 F1 BF FD D8 A2 00 00 A2 [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:07]Read from MH i2c: E2 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 03 00 62 2C 00 90 00 02 [19:22:08]RAPDU: 90 00 [19:22:08]wFMCommunicate OK [19:22:08]wFMCommunicate request_size=4 [19:22:08]MH_SAM_APDU [19:22:08]CAPDU: 80 0D 03 02 [19:22:08]Write to MH i2c: E2 08 00 63 2C 80 0D 03 02 00 00 00 00 0A [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:08]Read from MH i2c: E2 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 0B 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 0B 00 63 2C 00 73 0E E5 5E E0 46 B0 03 90 00 A8 [19:22:08]RAPDU: 73 0E E5 5E E0 46 B0 03 90 00 [19:22:08]wFMCommunicate OK [19:22:08]SAM_PROTO_SignData done [19:22:08]FM_MakeSignedData done [19:22:08]CreateOFDProtocolMessage [19:22:08]wFMCommunicate request_size=4 [19:22:08]MH_SAM_APDU [19:22:08]CAPDU: 80 11 00 00 [19:22:08]Write to MH i2c: E2 08 00 64 2C 80 11 00 00 00 00 00 00 0A [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:08]Read from MH i2c: E2 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 17 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 17 00 64 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 63 [19:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:22:08]wFMCommunicate OK [19:22:08]CreateOFDProtocolMessage done [19:22:08]OFDSenderStorePacket 63489 [19:22:08]StoreOFDPacket docnum=63489 [19:22:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 08 03 00 00 01 A1 00 03 B6 91 5A 03 01 00 03 00 F4 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 26 00 00 00 00 13 04 06 00 B8 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3B 17 00 00 00 00 13 04 06 00 3B 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 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 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 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 39 00 00 00 00 13 04 06 00 B0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0E 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0E 14 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 64 9E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 01 F8 00 00 35 04 06 00 20 F1 BF FD D8 A2 73 0E E5 5E E0 46 B0 03 [19:22:08]CheckFolder [19:22:08]dirname=/storage/ofd_packets [19:22:08]CheckFolder done [19:22:08]ProducePacketName [19:22:08]name=ofd_packets/00063489 [19:22:08]NVStorageSaveData ofd_packets/00063489 [19:22:08]File name is /storage/ofd_packets/00063489 [19:22:08]Write 806 bytes [19:22:08]NVStorageSaveData done [19:22:08]OFDSenderStorePacket done [19:22:08]KKMCreateOFDPacket done [19:22:08]NVStorageSaveData kkm_last_timestamp [19:22:08]File name is /storage/kkm_last_timestamp [19:22:08]Write 4 bytes [19:22:08]NVStorageSaveData done [19:22:08]ExternCall_PrintAddStr [19:22:08]wPrintStart [19:22:08]Write to MH i2c: 01 00 00 65 2C 91 [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: 01 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: 01 07 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: 01 07 00 65 2C 00 00 00 00 00 FF 0F A6 [19:22:08]RasterBufferAndPrint [19:22:08]line Счет N : (3)47795 [19:22:08]line ИНН: 02508201610067 [19:22:08]line Контрольно-Кассовый Чек [19:22:08]line ПРОДАЖА [19:22:08]line Товар: 2000036220012 [19:22:08]line Кофе Капучино XL(GABB TRADE) [19:22:08]line 2.000 * 128.85 [19:22:08]line = 257.70 [19:22:08]line НДС 12% НСП 1% [19:22:08]line > о реализуемом товаре [19:22:08]line Товар: 4870001571528 [19:22:08]line Вода ASU пит н.газ персик ПЭТ 1,0 л [19:22:08]line 1.000 * 99.12 [19:22:08]line = 99.12 [19:22:08]line НДС 12% НСП 1% [19:22:08]line > о реализуемом товаре [19:22:08]line Товар: 4700000160204 [19:22:08]line Вода Легенда 1,5л [19:22:08]line 1.000 * 59.47 [19:22:08]line = 59.47 [19:22:08]line НДС 12% НСП 1% [19:22:08]line > о реализуемом товаре [19:22:08]line Товар: 4607015235333 [19:22:08]line Пряники Яшкино с вареной сгущенкой 350г [19:22:08]line 1.000 * 147.68 [19:22:08]line = 147.68 [19:22:08]line НДС 12% НСП 1% [19:22:08]line > о реализуемом товаре [19:22:08]line Товар: 48743570 [19:22:08]line Сигареты Winston XStyle Blue [19:22:08]line 1.000 * 142.73 [19:22:08]line = 142.73 [19:22:08]line НДС 12% НСП 1% [19:22:08]line > о реализуемом товаре [19:22:08]line ИТОГО: 706.70 [19:22:08]line НСП 1% : 6.26 [19:22:08]line НДС 12% : 75.05 [19:22:08]line Наличными: 0.00 [19:22:08]line Безнал.: 706.70 [19:22:08]line Место: АЗС № 86 "Партнер Нефть" [19:22:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:22:08]line СНО: Общий режим [19:22:08]line Чек 103 24.10.2024 19:22 [19:22:08]line Смена: 547 ФФД: 1.0 [19:22:08]line ЗНМ: 0300000154 [19:22:08]line РНМ: 0000000000091619 [19:22:08]line Версия ККМ: 001 [19:22:08]line Платежная система: Mbank [19:22:08]line ФМ: 0000000000874676 [19:22:08]line ФД: 63489 [19:22:08]line ФПД: 36222680291490 [19:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192212&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63489&fm=36222680291490&tin=02508201610067®Number=0000000000091619&sum=70670 [19:22:08]line 0 [19:22:08]OFD Sender: Processing packet 63489 [packets to send 232, broken 231] [19:22:08]ProducePacketName [19:22:08]name=ofd_packets/00063489 [19:22:08]OFD Sender: To server: pG, [19:22:08]CommunicateWithHost lk.salyk.kg:30040 [19:22:08]ConnectInit lk.salyk.kg [19:22:08]written 0, free lines is 4095 [19:22:09]Connected sock=10 [19:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 08 03 00 00 01 A1 00 03 B6 91 5A 03 01 00 03 00 F4 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 26 00 00 00 00 13 04 06 00 B8 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3B 17 00 00 00 00 13 04 06 00 3B 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 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 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 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 39 00 00 00 00 13 04 06 00 B0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0E 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0E 14 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 64 9E 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 01 F8 00 00 35 04 06 00 20 F1 BF FD D8 A2 73 0E E5 5E E0 46 B0 03 [19:22:09]Write to MH i2c: 01 00 00 A9 2C D5 [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: 01 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: 01 07 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: 01 07 00 A9 2C 00 00 00 00 00 CA 0B B1 [19:22:09]RasterBufferAndPrint [19:22:09]line [19:22:09]line [19:22:09]line [19:22:09]line [19:22:09]line [19:22:09]written 0, free lines is 3030 [19:22:09]MH_Cut [19:22:09]Write to MH i2c: D1 01 00 B0 2C 01 AE [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: D1 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: D1 01 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: D1 01 00 B0 2C 00 AD [19:22:09]Write to MH i2c: 01 00 00 B1 2C DD [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 49 52 47 00 40 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 01 F8 00 00 F4 03 04 00 59 48 1A 67 B6 04 01 00 00 CB 8A 39 D5 82 03 1F 13 [19:22:09]CommunicateWithHost err = 0 [19:22:09]CheckOFDResponse [19:22:09]1017 (14) - 77093643461234 [19:22:09]1041 (16) - 0000000000874676 [19:22:09]1040 (4) - 63489 [19:22:09]1012 (4) - 24.10.2024 13:15 [19:22:09]1206 (1) - 0 [19:22:09]OFD Sender: Remove packet 63489 [19:22:09]ProducePacketName [19:22:09]name=ofd_packets/00063489 [19:22:09]NVStorageDeleteData [19:22:09]OFD Sender: No OFD packet to send [19:22:10]*** Cut start [19:22:10]*** Partial cut [19:22:10]*** CUTSNS_PIN = 1 [19:22:10]*** CUTSNS_PIN = 0 [19:22:10]*** Brake cut motor [19:22:10]Read from MH i2c: 01 [19:22:10]MH_I2C_Read... [19:22:10]*** Stop cut motor [19:22:10]*** Cut end [19:22:10]Read from MH i2c: 01 07 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: 01 07 00 B1 2C 00 00 00 00 00 FF 0F F2 [19:22:10]process_action close_receipt done [19:22:10]requested_data is exist [19:22:10]produce_requested_data [19:22:10]requested_item fm.sn is exist - process it [19:22:10]wFMCommunicate request_size=4 [19:22:10]MH_SAM_APDU [19:22:10]CAPDU: 80 11 00 00 [19:22:10]Write to MH i2c: E2 08 00 B2 2C 80 11 00 00 00 00 00 00 58 [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 17 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 17 00 B2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B1 [19:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:22:10]wFMCommunicate OK [19:22:10]requested_item fd.num is exist - process it [19:22:10]SAM_PROTO_GetFieldsCounters [19:22:10]wFMCommunicate request_size=4 [19:22:10]MH_SAM_APDU [19:22:10]CAPDU: 80 13 00 00 [19:22:10]Write to MH i2c: E2 08 00 B3 2C 80 13 00 00 00 00 00 00 5B [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 62 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 62 00 B3 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 01 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19:22:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 01 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:10]wFMCommunicate OK [19:22:10]SAM_PROTO_GetFieldsCounters done [19:22:10]requested_item shift.num is exist - process it [19:22:10]requested_item shift.opened is exist - process it [19:22:10]req_shift_opened [19:22:10]FM_GetShiftState [19:22:10]SAM_PROTO_GetShiftState [19:22:10]wFMCommunicate request_size=4 [19:22:10]MH_SAM_APDU [19:22:10]CAPDU: 80 13 01 00 [19:22:10]Write to MH i2c: E2 08 00 B4 2C 80 13 01 00 00 00 00 00 5D [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0E 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0E 00 B4 2C 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 3E [19:22:11]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:22:11]wFMCommunicate OK [19:22:11]SAM_PROTO_GetShiftState done [19:22:11]FM_GetShiftState done [19:22:11]req_shift_opened done [19:22:11]requested_item shift.open_date is exist - process it [19:22:11]req_shift_open_date [19:22:11]req_shift_open_date done [19:22:11]produce_requested_data done [19:22:11]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63489,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:22:11]process_action_free close_receipt [19:22:11]json_value_free [19:22:11]json_value_free done [19:22:11]process_json_proto returns [19:22:11]Send response to host [19:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63489,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:22:11]free response buf [19:22:11]execute_script done [19:22:11]execute_script returns [19:22:11]free content buf [19:22:11]Sock 9.Close socket [19:22:11]Sock 9.Thread stoped [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:26:55]accept exits with 7 [19:26:55]New connection [19:26:55]New thread 3066633572 created [19:26:55]Thread 3066490212 joined [19:26:55]Waiting for new connection... [19:26:55] Sock 7.Parse request [19:26:55]Sock 7.Check first char [19:26:55]Sock 7.First char is OK [19:26:55]request: POST /json_proto HTTP/1.0 [19:26:55]Method: POST [19:26:55]URL: /json_proto [19:26:55]Method is POST - this is cgi request [19:26:55]url: /json_proto [19:26:55]query_string will be loaded in cgi processing [19:26:55]execute_cgi json_proto POST (null) [19:26:55]execute_cgi path=json_proto method=POST [19:26:55]POST find Content-Length [19:26:55]Host: 172.17.42.132:8080 [19:26:55]Content-Length: 913 [19:26:55]Content-Type: application/json [19:26:55] [19:26:55]POST finish read [19:26:55]Found Content-Length = 913 [19:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47796", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:55]execute_script... [19:26:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47796", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:55]POST & json_proto [19:26:55]process_json_proto [19:26:55]json parsed OK: [19:26:55]protocol is kg_v1.0 [19:26:55]action value=close_receipt [19:26:55]process_action close_receipt [19:26:55]cmd_close_receipt [19:26:55]MH_GetDate [19:26:55]Write to MH i2c: F0 00 00 B5 2C D0 [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: F0 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: F0 09 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: F0 09 00 B5 2C 00 86 9F 1A 67 4C DF 56 66 66 [19:26:55]GetLastDocTimeStamp 1729797732 [19:26:55]current date 1729798022 [19:26:55]FM_GetShiftState [19:26:55]SAM_PROTO_GetShiftState [19:26:55]wFMCommunicate request_size=4 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 13 01 00 [19:26:55]Write to MH i2c: E2 08 00 B6 2C 80 13 01 00 00 00 00 00 5F [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:55]Read from MH i2c: E2 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 0E 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: E2 0E 00 B6 2C 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 40 [19:26:55]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:26:55]wFMCommunicate OK [19:26:55]SAM_PROTO_GetShiftState done [19:26:55]FM_GetShiftState done [19:26:55]opened in 1729728964 [19:26:55]opened+sec_in_day 1729815364 [19:26:55]quantity*price = 12500 [19:26:55]sum+1 = 12501 [19:26:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 104 24.10.2024 19:27 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63490 ФПД: 128489185746942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192702&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63490&fm=128489185746942&tin=02508201610067®Number=0000000000091619&sum=25500 0 [19:26:56]StoreToDocumentArchive [19:26:56]shift 547 fd 63490 [19:26:56]save to /storage/0547/doc_00063490 [19:26:56]save last doc name /storage/0547/doc_00063490 to /storage/kkm_last_doc_name [19:26:56]save OK [19:26:56]Clear old archive folders... [19:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=396 [19:26:56]tlvbuf is 00B65A70 [19:26:56]SAM_PROTO_ClearQueue [19:26:56]wFMCommunicate request_size=4 [19:26:56]MH_SAM_APDU [19:26:56]CAPDU: 80 09 00 00 [19:26:56]Write to MH i2c: E2 08 00 C3 2C 80 09 00 00 00 00 00 00 61 [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:56]Read from MH i2c: E2 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 03 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 03 00 C3 2C 00 90 00 63 [19:26:56]RAPDU: 90 00 [19:26:56]wFMCommunicate OK [19:26:56]SAM_PROTO_ClearQueue done [19:26:56]KKMCreateOFDPacket [19:26:56]OFDProtocolAddRootSTLVToBuf [19:26:56]FM_MakeSignedData [19:26:56]FM_MakeSignedData [19:26:56]SAM_PROTO_SignData [19:26:56]wFMCommunicate request_size=4 [19:26:56]MH_SAM_APDU [19:26:56]CAPDU: 80 0D 01 02 [19:26:56]Write to MH i2c: E2 08 00 C4 2C 80 0D 01 02 00 00 00 00 69 [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:56]Read from MH i2c: E2 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 03 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 03 00 C4 2C 00 90 00 64 [19:26:56]RAPDU: 90 00 [19:26:56]wFMCommunicate OK [19:26:56]wFMCommunicate request_size=255 [19:26:56]MH_SAM_APDU [19:26:56]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF [19:26:56]Write to MH i2c: E2 02 01 C5 2C 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 00 00 7C [19:26:56]Write i2c OK [19:26:56]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 C5 2C 00 90 00 65 [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=155 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 86 9F 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 02 F8 00 00 35 04 06 00 74 DC 38 46 1F FE [19:26:57]Write to MH i2c: E2 9E 00 C6 2C 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 86 9F 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 02 F8 00 00 35 04 06 00 74 DC 38 46 1F FE 00 00 6F [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 C6 2C 00 90 00 66 [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 03 02 [19:26:57]Write to MH i2c: E2 08 00 C7 2C 80 0D 03 02 00 00 00 00 6E [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 0B 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 0B 00 C7 2C 00 77 AC F4 AD 18 8B FF 1A 90 00 EF [19:26:57]RAPDU: 77 AC F4 AD 18 8B FF 1A 90 00 [19:26:57]wFMCommunicate OK [19:26:57]SAM_PROTO_SignData done [19:26:57]FM_MakeSignedData done [19:26:57]CreateOFDProtocolMessage [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 11 00 00 [19:26:57]Write to MH i2c: E2 08 00 C8 2C 80 11 00 00 00 00 00 00 6E [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 17 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 17 00 C8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C7 [19:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:26:57]wFMCommunicate OK [19:26:57]CreateOFDProtocolMessage done [19:26:57]OFDSenderStorePacket 63490 [19:26:57]StoreOFDPacket docnum=63490 [19:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A0 01 00 00 7F 62 98 01 1B 53 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 86 9F 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 02 F8 00 00 35 04 06 00 74 DC 38 46 1F FE 77 AC F4 AD 18 8B FF 1A [19:26:57]CheckFolder [19:26:57]dirname=/storage/ofd_packets [19:26:57]CheckFolder done [19:26:57]ProducePacketName [19:26:57]name=ofd_packets/00063490 [19:26:57]NVStorageSaveData ofd_packets/00063490 [19:26:57]File name is /storage/ofd_packets/00063490 [19:26:57]Write 446 bytes [19:26:57]NVStorageSaveData done [19:26:57]OFDSenderStorePacket done [19:26:57]KKMCreateOFDPacket done [19:26:57]NVStorageSaveData kkm_last_timestamp [19:26:57]File name is /storage/kkm_last_timestamp [19:26:57]Write 4 bytes [19:26:57]NVStorageSaveData done [19:26:57]ExternCall_PrintAddStr [19:26:57]wPrintStart [19:26:57]Write to MH i2c: 01 00 00 C9 2C F5 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 07 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 07 00 C9 2C 00 00 00 00 00 FF 0F 0A [19:26:57]RasterBufferAndPrint [19:26:57]line Счет N : (3)47796 [19:26:57]line ИНН: 02508201610067 [19:26:57]line Контрольно-Кассовый Чек [19:26:57]line ПРОДАЖА [19:26:57]line Товар: 2000036190018 [19:26:57]line Кофе Американо XL(GABB TRADE) [19:26:57]line 1.000 * 125.00 [19:26:57]line = 125.00 [19:26:57]line НДС 12% НСП 1% [19:26:57]line > о реализуемом товаре [19:26:57]line Товар: 2000036220012 [19:26:57]line Кофе Капучино XL(GABB TRADE) [19:26:57]line 1.000 * 130.00 [19:26:57]line = 130.00 [19:26:57]line НДС 12% НСП 1% [19:26:57]line > о реализуемом товаре [19:26:57]line ИТОГО: 255.00 [19:26:57]line НСП 1% : 2.26 [19:26:57]line НДС 12% : 27.07 [19:26:57]line Наличными: 255.00 [19:26:57]line Безнал.: 0.00 [19:26:57]line Место: АЗС № 86 "Партнер Нефть" [19:26:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:26:57]line СНО: Общий режим [19:26:57]line Чек 104 24.10.2024 19:27 [19:26:57]line Смена: 547 ФФД: 1.0 [19:26:57]line ЗНМ: 0300000154 [19:26:57]line РНМ: 0000000000091619 [19:26:57]line Версия ККМ: 001 [19:26:57]line ФМ: 0000000000874676 [19:26:57]line ФД: 63490 [19:26:57]line ФПД: 128489185746942 [19:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192702&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63490&fm=128489185746942&tin=02508201610067®Number=0000000000091619&sum=25500 [19:26:57]line 0 [19:26:57]OFD Sender: Processing packet 63490 [packets to send 232, broken 231] [19:26:57]ProducePacketName [19:26:57]name=ofd_packets/00063490 [19:26:57]OFD Sender: To server: pG, [19:26:57]CommunicateWithHost lk.salyk.kg:30040 [19:26:57]ConnectInit lk.salyk.kg [19:26:57]written 0, free lines is 4095 [19:26:57]Connected sock=10 [19:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A0 01 00 00 7F 62 98 01 1B 53 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 86 9F 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 02 F8 00 00 35 04 06 00 74 DC 38 46 1F FE 77 AC F4 AD 18 8B FF 1A [19:26:58]Write to MH i2c: 01 00 00 F9 2C 25 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 07 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 07 00 F9 2C 00 00 00 00 00 B7 0C EF [19:26:58]RasterBufferAndPrint [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]written 0, free lines is 3263 [19:26:58]MH_Cut [19:26:58]Write to MH i2c: D1 01 00 00 2D 01 FF [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: D1 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: D1 01 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: D1 01 00 00 2D 00 FE [19:26:58]Write to MH i2c: 01 00 00 01 2D 2E [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 50 28 47 00 83 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 02 F8 00 00 F4 03 04 00 7A 49 1A 67 B6 04 01 00 00 48 8D 59 0C 87 90 58 84 [19:26:58]CommunicateWithHost err = 0 [19:26:58]CheckOFDResponse [19:26:58]1017 (14) - 77093643461234 [19:26:58]1041 (16) - 0000000000874676 [19:26:58]1040 (4) - 63490 [19:26:58]1012 (4) - 24.10.2024 13:19 [19:26:58]1206 (1) - 0 [19:26:58]OFD Sender: Remove packet 63490 [19:26:58]ProducePacketName [19:26:58]name=ofd_packets/00063490 [19:26:58]NVStorageDeleteData [19:26:58]OFD Sender: No OFD packet to send [19:26:58]*** Cut start [19:26:58]*** Partial cut [19:26:58]*** CUTSNS_PIN = 1 [19:26:59]*** CUTSNS_PIN = 0 [19:26:59]*** Brake cut motor [19:26:59]Read from MH i2c: 01 [19:26:59]MH_I2C_Read... [19:26:59]*** Stop cut motor [19:26:59]*** Cut end [19:26:59]Read from MH i2c: 01 07 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: 01 07 00 01 2D 00 00 00 00 00 FF 0F 43 [19:26:59]process_action close_receipt done [19:26:59]requested_data is exist [19:26:59]produce_requested_data [19:26:59]requested_item fm.sn is exist - process it [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 11 00 00 [19:26:59]Write to MH i2c: E2 08 00 02 2D 80 11 00 00 00 00 00 00 A9 [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 17 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 17 00 02 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 02 [19:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:26:59]wFMCommunicate OK [19:26:59]requested_item fd.num is exist - process it [19:26:59]SAM_PROTO_GetFieldsCounters [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 13 00 00 [19:26:59]Write to MH i2c: E2 08 00 03 2D 80 13 00 00 00 00 00 00 AC [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 62 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 62 00 03 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 02 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [19:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 02 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:59]wFMCommunicate OK [19:26:59]SAM_PROTO_GetFieldsCounters done [19:26:59]requested_item shift.num is exist - process it [19:26:59]requested_item shift.opened is exist - process it [19:26:59]req_shift_opened [19:26:59]FM_GetShiftState [19:26:59]SAM_PROTO_GetShiftState [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 13 01 00 [19:26:59]Write to MH i2c: E2 08 00 04 2D 80 13 01 00 00 00 00 00 AE [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 0E 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 0E 00 04 2D 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 8F [19:26:59]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:26:59]wFMCommunicate OK [19:26:59]SAM_PROTO_GetShiftState done [19:26:59]FM_GetShiftState done [19:26:59]req_shift_opened done [19:26:59]requested_item shift.open_date is exist - process it [19:26:59]req_shift_open_date [19:26:59]req_shift_open_date done [19:26:59]produce_requested_data done [19:26:59]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63490,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:26:59]process_action_free close_receipt [19:26:59]json_value_free [19:26:59]json_value_free done [19:26:59]process_json_proto returns [19:26:59]Send response to host [19:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63490,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:26:59]free response buf [19:26:59]execute_script done [19:26:59]execute_script returns [19:26:59]free content buf [19:26:59]Sock 7.Close socket [19:26:59]Sock 7.Thread stoped [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:10]accept exits with 9 [19:34:10]New connection [19:34:10]New thread 3066490212 created [19:34:10]Thread 3066633572 joined [19:34:10]Waiting for new connection... [19:34:10] Sock 9.Parse request [19:34:10]Sock 9.Check first char [19:34:10]Sock 9.First char is OK [19:34:10]request: POST /json_proto HTTP/1.0 [19:34:10]Method: POST [19:34:10]URL: /json_proto [19:34:10]Method is POST - this is cgi request [19:34:10]url: /json_proto [19:34:10]query_string will be loaded in cgi processing [19:34:10]execute_cgi json_proto POST (null) [19:34:10]execute_cgi path=json_proto method=POST [19:34:10]POST find Content-Length [19:34:10]Host: 172.17.42.132:8080 [19:34:10]Content-Length: 620 [19:34:10]Content-Type: application/json [19:34:10] [19:34:10]POST finish read [19:34:10]Found Content-Length = 620 [19:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47797", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:10]execute_script... [19:34: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)47797", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:10]POST & json_proto [19:34:10]process_json_proto [19:34:10]json parsed OK: [19:34:10]protocol is kg_v1.0 [19:34:10]action value=close_receipt [19:34:10]process_action close_receipt [19:34:10]cmd_close_receipt [19:34:10]MH_GetDate [19:34:10]Write to MH i2c: F0 00 00 05 2D 21 [19:34:10]Write i2c OK [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: F0 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: F0 09 00 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: F0 09 00 05 2D 00 39 A1 1A 67 4C DF 56 66 6C [19:34:10]GetLastDocTimeStamp 1729798022 [19:34:10]current date 1729798457 [19:34:10]FM_GetShiftState [19:34:10]SAM_PROTO_GetShiftState [19:34:10]wFMCommunicate request_size=4 [19:34:10]MH_SAM_APDU [19:34:10]CAPDU: 80 13 01 00 [19:34:10]Write to MH i2c: E2 08 00 06 2D 80 13 01 00 00 00 00 00 B0 [19:34:10]Write i2c OK [19:34:10]MH_I2C_Read... [19:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:10]Read from MH i2c: E2 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 0E 00 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 0E 00 06 2D 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 91 [19:34:10]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:34:10]wFMCommunicate OK [19:34:10]SAM_PROTO_GetShiftState done [19:34:10]FM_GetShiftState done [19:34:10]opened in 1729728964 [19:34:10]opened+sec_in_day 1729815364 [19:34:10]quantity*price = 14400 [19:34:10]sum+1 = 14401 [19:34:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 105 24.10.2024 19:34 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63491 ФПД: 156686331444076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193417&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63491&fm=156686331444076&tin=02508201610067®Number=0000000000091619&sum=14400 0 [19:34:11]StoreToDocumentArchive [19:34:11]shift 547 fd 63491 [19:34:11]save to /storage/0547/doc_00063491 [19:34:11]save last doc name /storage/0547/doc_00063491 to /storage/kkm_last_doc_name [19:34:11]save OK [19:34:11]Clear old archive folders... [19:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:34:11]tlvbuf is 00AFD730 [19:34:11]SAM_PROTO_ClearQueue [19:34:11]wFMCommunicate request_size=4 [19:34:11]MH_SAM_APDU [19:34:11]CAPDU: 80 09 00 00 [19:34:11]Write to MH i2c: E2 08 00 13 2D 80 09 00 00 00 00 00 00 B2 [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 13 2D 00 90 00 B4 [19:34:11]RAPDU: 90 00 [19:34:11]wFMCommunicate OK [19:34:11]SAM_PROTO_ClearQueue done [19:34:11]KKMCreateOFDPacket [19:34:11]OFDProtocolAddRootSTLVToBuf [19:34:11]FM_MakeSignedData [19:34:11]FM_MakeSignedData [19:34:11]SAM_PROTO_SignData [19:34:11]wFMCommunicate request_size=4 [19:34:11]MH_SAM_APDU [19:34:11]CAPDU: 80 0D 01 02 [19:34:11]Write to MH i2c: E2 08 00 14 2D 80 0D 01 02 00 00 00 00 BA [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 14 2D 00 90 00 B5 [19:34:11]RAPDU: 90 00 [19:34:11]wFMCommunicate OK [19:34:11]wFMCommunicate request_size=255 [19:34:11]MH_SAM_APDU [19:34: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 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 39 A1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [19:34:11]Write to MH i2c: E2 02 01 15 2D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 39 A1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 FA [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 15 2D 00 90 00 B6 [19:34:11]RAPDU: 90 00 [19:34:11]wFMCommunicate OK [19:34:11]wFMCommunicate request_size=32 [19:34:11]MH_SAM_APDU [19:34:11]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 03 F8 00 00 35 04 06 00 8E 81 61 20 7B 6C [19:34:11]Write to MH i2c: E2 23 00 16 2D 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 03 F8 00 00 35 04 06 00 8E 81 61 20 7B 6C 00 00 92 [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:12]Read from MH i2c: E2 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: E2 03 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: E2 03 00 16 2D 00 90 00 B7 [19:34:12]RAPDU: 90 00 [19:34:12]wFMCommunicate OK [19:34:12]wFMCommunicate request_size=4 [19:34:12]MH_SAM_APDU [19:34:12]CAPDU: 80 0D 03 02 [19:34:12]Write to MH i2c: E2 08 00 17 2D 80 0D 03 02 00 00 00 00 BF [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:12]Read from MH i2c: E2 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: E2 0B 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: E2 0B 00 17 2D 00 D9 F5 AE 93 7E 32 C1 F7 90 00 37 [19:34:12]RAPDU: D9 F5 AE 93 7E 32 C1 F7 90 00 [19:34:12]wFMCommunicate OK [19:34:12]SAM_PROTO_SignData done [19:34:12]FM_MakeSignedData done [19:34:12]CreateOFDProtocolMessage [19:34:12]wFMCommunicate request_size=4 [19:34:12]MH_SAM_APDU [19:34:12]CAPDU: 80 11 00 00 [19:34:12]Write to MH i2c: E2 08 00 18 2D 80 11 00 00 00 00 00 00 BF [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:12]Read from MH i2c: E2 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: E2 17 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: E2 17 00 18 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 18 [19:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:34:12]wFMCommunicate OK [19:34:12]CreateOFDProtocolMessage done [19:34:12]OFDSenderStorePacket 63491 [19:34:12]StoreOFDPacket docnum=63491 [19:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 9E FC 1D 01 7E F3 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 39 A1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 03 F8 00 00 35 04 06 00 8E 81 61 20 7B 6C D9 F5 AE 93 7E 32 C1 F7 [19:34:12]CheckFolder [19:34:12]dirname=/storage/ofd_packets [19:34:12]CheckFolder done [19:34:12]ProducePacketName [19:34:12]name=ofd_packets/00063491 [19:34:12]NVStorageSaveData ofd_packets/00063491 [19:34:12]File name is /storage/ofd_packets/00063491 [19:34:12]Write 323 bytes [19:34:12]NVStorageSaveData done [19:34:12]OFDSenderStorePacket done [19:34:12]KKMCreateOFDPacket done [19:34:12]NVStorageSaveData kkm_last_timestamp [19:34:12]File name is /storage/kkm_last_timestamp [19:34:12]Write 4 bytes [19:34:12]NVStorageSaveData done [19:34:12]ExternCall_PrintAddStr [19:34:12]wPrintStart [19:34:12]Write to MH i2c: 01 00 00 19 2D 46 [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: 01 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: 01 07 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: 01 07 00 19 2D 00 00 00 00 00 FF 0F 5B [19:34:12]RasterBufferAndPrint [19:34:12]line Счет N : (3)47797 [19:34:12]line ИНН: 02508201610067 [19:34:12]line Контрольно-Кассовый Чек [19:34:12]line ПРОДАЖА [19:34:12]line Товар: 48747059 [19:34:12]line Сигареты Winston Legend Blue [19:34:12]line 1.000 * 144.00 [19:34:12]line = 144.00 [19:34:12]line НДС 12% НСП 1% [19:34:12]line > о реализуемом товаре [19:34:12]line ИТОГО: 144.00 [19:34:12]line НСП 1% : 1.27 [19:34:12]line НДС 12% : 15.29 [19:34:12]line Наличными: 144.00 [19:34:12]line Безнал.: 0.00 [19:34:12]line Место: АЗС № 86 "Партнер Нефть" [19:34:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:34:12]line СНО: Общий режим [19:34:12]line Чек 105 24.10.2024 19:34 [19:34:12]line Смена: 547 ФФД: 1.0 [19:34:12]line ЗНМ: 0300000154 [19:34:12]line РНМ: 0000000000091619 [19:34:12]line Версия ККМ: 001 [19:34:12]line ФМ: 0000000000874676 [19:34:12]line ФД: 63491 [19:34:12]line ФПД: 156686331444076 [19:34:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193417&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63491&fm=156686331444076&tin=02508201610067®Number=0000000000091619&sum=14400 [19:34:12]line 0 [19:34:12]written 0, free lines is 4095 [19:34:12]OFD Sender: Processing packet 63491 [packets to send 232, broken 231] [19:34:12]ProducePacketName [19:34:12]name=ofd_packets/00063491 [19:34:12]OFD Sender: To server: pG, [19:34:12]CommunicateWithHost lk.salyk.kg:30040 [19:34:12]ConnectInit lk.salyk.kg [19:34:12]Connected sock=10 [19:34:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 9E FC 1D 01 7E F3 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 39 A1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 03 F8 00 00 35 04 06 00 8E 81 61 20 7B 6C D9 F5 AE 93 7E 32 C1 F7 [19:34:12]Write to MH i2c: 01 00 00 42 2D 6F [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: 01 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: 01 07 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: 01 07 00 42 2D 00 00 00 00 00 01 0D 84 [19:34:12]RasterBufferAndPrint [19:34:12]line [19:34:12]line [19:34:12]line [19:34:12]line [19:34:12]line [19:34:12]written 0, free lines is 3335 [19:34:12]MH_Cut [19:34:12]Write to MH i2c: D1 01 00 49 2D 01 48 [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: D1 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: D1 01 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: D1 01 00 49 2D 00 47 [19:34:12]Write to MH i2c: 01 00 00 4A 2D 77 [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 D6 B5 47 00 CB CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 03 F8 00 00 F4 03 04 00 2D 4B 1A 67 B6 04 01 00 00 28 4B B4 13 C7 9C 9F D1 [19:34:12]CommunicateWithHost err = 0 [19:34:12]CheckOFDResponse [19:34:12]1017 (14) - 77093643461234 [19:34:12]1041 (16) - 0000000000874676 [19:34:12]1040 (4) - 63491 [19:34:12]1012 (4) - 24.10.2024 13:27 [19:34:12]1206 (1) - 0 [19:34:12]OFD Sender: Remove packet 63491 [19:34:12]ProducePacketName [19:34:12]name=ofd_packets/00063491 [19:34:12]NVStorageDeleteData [19:34:13]*** Cut start [19:34:13]*** Partial cut [19:34:13]*** CUTSNS_PIN = 1 [19:34:13]*** CUTSNS_PIN = 0 [19:34:13]OFD Sender: No OFD packet to send [19:34:13]*** Brake cut motor [19:34:13]Read from MH i2c: 01 [19:34:13]MH_I2C_Read... [19:34:13]*** Stop cut motor [19:34:13]*** Cut end [19:34:13]Read from MH i2c: 01 07 00 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: 01 07 00 4A 2D 00 00 00 00 00 FF 0F 8C [19:34:13]process_action close_receipt done [19:34:13]requested_data is exist [19:34:13]produce_requested_data [19:34:13]requested_item fm.sn is exist - process it [19:34:13]wFMCommunicate request_size=4 [19:34:13]MH_SAM_APDU [19:34:13]CAPDU: 80 11 00 00 [19:34:13]Write to MH i2c: E2 08 00 4B 2D 80 11 00 00 00 00 00 00 F2 [19:34:13]Write i2c OK [19:34:13]MH_I2C_Read... [19:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:13]Read from MH i2c: E2 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 17 00 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 17 00 4B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4B [19:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:34:13]wFMCommunicate OK [19:34:13]requested_item fd.num is exist - process it [19:34:13]SAM_PROTO_GetFieldsCounters [19:34:13]wFMCommunicate request_size=4 [19:34:13]MH_SAM_APDU [19:34:13]CAPDU: 80 13 00 00 [19:34:13]Write to MH i2c: E2 08 00 4C 2D 80 13 00 00 00 00 00 00 F5 [19:34:13]Write i2c OK [19:34:13]MH_I2C_Read... [19:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:14]Read from MH i2c: E2 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 62 00 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 62 00 4C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 03 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [19:34:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 03 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:14]wFMCommunicate OK [19:34:14]SAM_PROTO_GetFieldsCounters done [19:34:14]requested_item shift.num is exist - process it [19:34:14]requested_item shift.opened is exist - process it [19:34:14]req_shift_opened [19:34:14]FM_GetShiftState [19:34:14]SAM_PROTO_GetShiftState [19:34:14]wFMCommunicate request_size=4 [19:34:14]MH_SAM_APDU [19:34:14]CAPDU: 80 13 01 00 [19:34:14]Write to MH i2c: E2 08 00 4D 2D 80 13 01 00 00 00 00 00 F7 [19:34:14]Write i2c OK [19:34:14]MH_I2C_Read... [19:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:14]Read from MH i2c: E2 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 0E 00 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 0E 00 4D 2D 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 D8 [19:34:14]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:34:14]wFMCommunicate OK [19:34:14]SAM_PROTO_GetShiftState done [19:34:14]FM_GetShiftState done [19:34:14]req_shift_opened done [19:34:14]requested_item shift.open_date is exist - process it [19:34:14]req_shift_open_date [19:34:14]req_shift_open_date done [19:34:14]produce_requested_data done [19:34:14]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63491,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:34:14]process_action_free close_receipt [19:34:14]json_value_free [19:34:14]json_value_free done [19:34:14]process_json_proto returns [19:34:14]Send response to host [19:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63491,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:34:14]free response buf [19:34:14]execute_script done [19:34:14]execute_script returns [19:34:14]free content buf [19:34:14]Sock 9.Close socket [19:34:14]Sock 9.Thread stoped [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]accept exits with 7 [19:35:38]New connection [19:35:38]New thread 3066633572 created [19:35:38]Thread 3066490212 joined [19:35:38]Waiting for new connection... [19:35:38] Sock 7.Parse request [19:35:38]Sock 7.Check first char [19:35:38]Sock 7.First char is OK [19:35:38]request: POST /json_proto HTTP/1.0 [19:35:38]Method: POST [19:35:38]URL: /json_proto [19:35:38]Method is POST - this is cgi request [19:35:38]url: /json_proto [19:35:38]query_string will be loaded in cgi processing [19:35:38]execute_cgi json_proto POST (null) [19:35:38]execute_cgi path=json_proto method=POST [19:35:38]POST find Content-Length [19:35:38]Host: 172.17.42.132:8080 [19:35:38]Content-Length: 772 [19:35:38]Content-Type: application/json [19:35:38] [19:35:38]POST finish read [19:35:38]Found Content-Length = 772 [19:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47798", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 128.85 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:38]execute_script... [19:35: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)47798", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 128.85 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:38]POST & json_proto [19:35:38]process_json_proto [19:35:38]json parsed OK: [19:35:38]protocol is kg_v1.0 [19:35:38]action value=close_receipt [19:35:38]process_action close_receipt [19:35:38]cmd_close_receipt [19:35:38]MH_GetDate [19:35:38]Write to MH i2c: F0 00 00 4E 2D 6A [19:35:38]Write i2c OK [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 09 00 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: F0 09 00 4E 2D 00 91 A1 1A 67 4C DF 56 66 0D [19:35:38]GetLastDocTimeStamp 1729798457 [19:35:38]current date 1729798545 [19:35:38]FM_GetShiftState [19:35:38]SAM_PROTO_GetShiftState [19:35:38]wFMCommunicate request_size=4 [19:35:38]MH_SAM_APDU [19:35:38]CAPDU: 80 13 01 00 [19:35:38]Write to MH i2c: E2 08 00 4F 2D 80 13 01 00 00 00 00 00 F9 [19:35:38]Write i2c OK [19:35:38]MH_I2C_Read... [19:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:38]Read from MH i2c: E2 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: E2 0E 00 [19:35:38]MH_I2C_Read... [19:35:38]Read from MH i2c: E2 0E 00 4F 2D 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 DA [19:35:38]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:35:38]wFMCommunicate OK [19:35:38]SAM_PROTO_GetShiftState done [19:35:38]FM_GetShiftState done [19:35:38]opened in 1729728964 [19:35:38]opened+sec_in_day 1729815364 [19:35:38]quantity*price = 12885 [19:35:38]sum+1 = 12886 [19:35:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.85 НСП 1% : 1.14 НДС 12% : 13.68 Наличными: 0.00 Безнал.: 128.85 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 106 24.10.2024 19:35 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63492 ФПД: 24805146063654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193545&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63492&fm=24805146063654&tin=02508201610067®Number=0000000000091619&sum=12885 0 [19:35:39]StoreToDocumentArchive [19:35:39]shift 547 fd 63492 [19:35:39]save to /storage/0547/doc_00063492 [19:35:39]save last doc name /storage/0547/doc_00063492 to /storage/kkm_last_doc_name [19:35:39]save OK [19:35:39]Clear old archive folders... [19:35:39]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:35:39]tlvbuf is 00B04520 [19:35:39]SAM_PROTO_ClearQueue [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 09 00 00 [19:35:39]Write to MH i2c: E2 08 00 5C 2D 80 09 00 00 00 00 00 00 FB [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 5C 2D 00 90 00 FD [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]SAM_PROTO_ClearQueue done [19:35:39]KKMCreateOFDPacket [19:35:39]OFDProtocolAddRootSTLVToBuf [19:35:39]FM_MakeSignedData [19:35:39]FM_MakeSignedData [19:35:39]SAM_PROTO_SignData [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 01 02 [19:35:39]Write to MH i2c: E2 08 00 5D 2D 80 0D 01 02 00 00 00 00 03 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 5D 2D 00 90 00 FE [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]wFMCommunicate request_size=255 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 91 A1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [19:35:39]Write to MH i2c: E2 02 01 5E 2D 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 91 A1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 7C [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 03 00 5E 2D 00 90 00 FF [19:35:39]RAPDU: 90 00 [19:35:39]wFMCommunicate OK [19:35:39]wFMCommunicate request_size=41 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 04 F8 00 00 35 04 06 00 16 8F 65 EB 73 26 [19:35:39]Write to MH i2c: E2 2C 00 5F 2D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 04 F8 00 00 35 04 06 00 16 8F 65 EB 73 26 00 00 65 [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 03 00 5F 2D 00 90 00 00 [19:35:40]RAPDU: 90 00 [19:35:40]wFMCommunicate OK [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 0D 03 02 [19:35:40]Write to MH i2c: E2 08 00 60 2D 80 0D 03 02 00 00 00 00 08 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 0B 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 0B 00 60 2D 00 2B 44 08 45 E8 01 F1 3B 90 00 DA [19:35:40]RAPDU: 2B 44 08 45 E8 01 F1 3B 90 00 [19:35:40]wFMCommunicate OK [19:35:40]SAM_PROTO_SignData done [19:35:40]FM_MakeSignedData done [19:35:40]CreateOFDProtocolMessage [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 11 00 00 [19:35:40]Write to MH i2c: E2 08 00 61 2D 80 11 00 00 00 00 00 00 08 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 17 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 17 00 61 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 61 [19:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:35:40]wFMCommunicate OK [19:35:40]CreateOFDProtocolMessage done [19:35:40]OFDSenderStorePacket 63492 [19:35:40]StoreOFDPacket docnum=63492 [19:35:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 3F E4 26 01 C7 CD 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 91 A1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 04 F8 00 00 35 04 06 00 16 8F 65 EB 73 26 2B 44 08 45 E8 01 F1 3B [19:35:40]CheckFolder [19:35:40]dirname=/storage/ofd_packets [19:35:40]CheckFolder done [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00063492 [19:35:40]NVStorageSaveData ofd_packets/00063492 [19:35:40]File name is /storage/ofd_packets/00063492 [19:35:40]Write 332 bytes [19:35:40]NVStorageSaveData done [19:35:40]OFDSenderStorePacket done [19:35:40]KKMCreateOFDPacket done [19:35:40]NVStorageSaveData kkm_last_timestamp [19:35:40]File name is /storage/kkm_last_timestamp [19:35:40]Write 4 bytes [19:35:40]NVStorageSaveData done [19:35:40]ExternCall_PrintAddStr [19:35:40]wPrintStart [19:35:40]Write to MH i2c: 01 00 00 62 2D 8F [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 62 2D 00 00 00 00 00 FF 0F A4 [19:35:40]RasterBufferAndPrint [19:35:40]line Счет N : (3)47798 [19:35:40]line ИНН: 02508201610067 [19:35:40]line Контрольно-Кассовый Чек [19:35:40]line ПРОДАЖА [19:35:40]line Товар: 2000036220012 [19:35:40]line Кофе Капучино XL(GABB TRADE) [19:35:40]line 1.000 * 128.85 [19:35:40]line = 128.85 [19:35:40]line НДС 12% НСП 1% [19:35:40]line > о реализуемом товаре [19:35:40]line ИТОГО: 128.85 [19:35:40]line НСП 1% : 1.14 [19:35:40]line НДС 12% : 13.68 [19:35:40]line Наличными: 0.00 [19:35:40]line Безнал.: 128.85 [19:35:40]line Место: АЗС № 86 "Партнер Нефть" [19:35:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:35:40]line СНО: Общий режим [19:35:40]line Чек 106 24.10.2024 19:35 [19:35:40]line Смена: 547 ФФД: 1.0 [19:35:40]line ЗНМ: 0300000154 [19:35:40]line РНМ: 0000000000091619 [19:35:40]line Версия ККМ: 001 [19:35:40]line Платежная система: Mbank [19:35:40]line ФМ: 0000000000874676 [19:35:40]line ФД: 63492 [19:35:40]line ФПД: 24805146063654 [19:35:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193545&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63492&fm=24805146063654&tin=02508201610067®Number=0000000000091619&sum=12885 [19:35:40]line 0 [19:35:40]OFD Sender: Processing packet 63492 [packets to send 232, broken 231] [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00063492 [19:35:40]OFD Sender: To server: pG, [19:35:40]CommunicateWithHost lk.salyk.kg:30040 [19:35:40]ConnectInit lk.salyk.kg [19:35:40]written 0, free lines is 4095 [19:35:40]Connected sock=9 [19:35:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 3F E4 26 01 C7 CD 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 91 A1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 04 F8 00 00 35 04 06 00 16 8F 65 EB 73 26 2B 44 08 45 E8 01 F1 3B [19:35:40]Write to MH i2c: 01 00 00 8C 2D B9 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: 01 07 00 8C 2D 00 00 00 00 00 09 0D D6 [19:35:40]RasterBufferAndPrint [19:35:40]line [19:35:40]line [19:35:40]line [19:35:40]line [19:35:40]line [19:35:40]written 0, free lines is 3343 [19:35:40]MH_Cut [19:35:40]Write to MH i2c: D1 01 00 93 2D 01 92 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: D1 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: D1 01 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: D1 01 00 93 2D 00 91 [19:35:40]Write to MH i2c: 01 00 00 94 2D C1 [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 9C B8 47 00 6D DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 04 F8 00 00 F4 03 04 00 85 4B 1A 67 B6 04 01 00 00 7B 81 5C CE 1E 38 3D 76 [19:35:40]CommunicateWithHost err = 0 [19:35:40]CheckOFDResponse [19:35:40]1017 (14) - 77093643461234 [19:35:40]1041 (16) - 0000000000874676 [19:35:40]1040 (4) - 63492 [19:35:40]1012 (4) - 24.10.2024 13:28 [19:35:40]1206 (1) - 0 [19:35:40]OFD Sender: Remove packet 63492 [19:35:40]ProducePacketName [19:35:40]name=ofd_packets/00063492 [19:35:40]NVStorageDeleteData [19:35:41]*** Cut start [19:35:41]*** Partial cut [19:35:41]*** CUTSNS_PIN = 1 [19:35:41]OFD Sender: No OFD packet to send [19:35:41]*** CUTSNS_PIN = 0 [19:35:41]*** Brake cut motor [19:35:41]Read from MH i2c: 01 [19:35:41]MH_I2C_Read... [19:35:41]*** Stop cut motor [19:35:41]*** Cut end [19:35:41]Read from MH i2c: 01 07 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 07 00 94 2D 00 00 00 00 00 FF 0F D6 [19:35:41]process_action close_receipt done [19:35:41]requested_data is exist [19:35:41]produce_requested_data [19:35:41]requested_item fm.sn is exist - process it [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 11 00 00 [19:35:41]Write to MH i2c: E2 08 00 95 2D 80 11 00 00 00 00 00 00 3C [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 17 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 17 00 95 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 95 [19:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:35:41]wFMCommunicate OK [19:35:41]requested_item fd.num is exist - process it [19:35:41]SAM_PROTO_GetFieldsCounters [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 13 00 00 [19:35:41]Write to MH i2c: E2 08 00 96 2D 80 13 00 00 00 00 00 00 3F [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 62 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 62 00 96 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 04 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [19:35:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 04 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:42]wFMCommunicate OK [19:35:42]SAM_PROTO_GetFieldsCounters done [19:35:42]requested_item shift.num is exist - process it [19:35:42]requested_item shift.opened is exist - process it [19:35:42]req_shift_opened [19:35:42]FM_GetShiftState [19:35:42]SAM_PROTO_GetShiftState [19:35:42]wFMCommunicate request_size=4 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 13 01 00 [19:35:42]Write to MH i2c: E2 08 00 97 2D 80 13 01 00 00 00 00 00 41 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 0E 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 0E 00 97 2D 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 22 [19:35:42]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:35:42]wFMCommunicate OK [19:35:42]SAM_PROTO_GetShiftState done [19:35:42]FM_GetShiftState done [19:35:42]req_shift_opened done [19:35:42]requested_item shift.open_date is exist - process it [19:35:42]req_shift_open_date [19:35:42]req_shift_open_date done [19:35:42]produce_requested_data done [19:35:42]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63492,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:35:42]process_action_free close_receipt [19:35:42]json_value_free [19:35:42]json_value_free done [19:35:42]process_json_proto returns [19:35:42]Send response to host [19:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63492,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:35:42]free response buf [19:35:42]execute_script done [19:35:42]execute_script returns [19:35:42]free content buf [19:35:42]Sock 7.Close socket [19:35:42]Sock 7.Thread stoped [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:08]accept exits with 10 [19:45:08]New connection [19:45:08]New thread 3066490212 created [19:45:08]Thread 3066633572 joined [19:45:08]Waiting for new connection... [19:45:08] Sock 10.Parse request [19:45:08]Sock 10.Check first char [19:45:08]Sock 10.First char is OK [19:45:08]request: POST /json_proto HTTP/1.0 [19:45:08]Method: POST [19:45:08]URL: /json_proto [19:45:08]Method is POST - this is cgi request [19:45:08]url: /json_proto [19:45:08]query_string will be loaded in cgi processing [19:45:08]execute_cgi json_proto POST (null) [19:45:08]execute_cgi path=json_proto method=POST [19:45:08]POST find Content-Length [19:45:08]Host: 172.17.42.132:8080 [19:45:08]Content-Length: 620 [19:45:08]Content-Type: application/json [19:45:08] [19:45:08]POST finish read [19:45:08]Found Content-Length = 620 [19:45:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47799", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:08]execute_script... [19:45: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)47799", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:08]POST & json_proto [19:45:08]process_json_proto [19:45:08]json parsed OK: [19:45:08]protocol is kg_v1.0 [19:45:08]action value=close_receipt [19:45:08]process_action close_receipt [19:45:08]cmd_close_receipt [19:45:08]MH_GetDate [19:45:08]Write to MH i2c: F0 00 00 98 2D B4 [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: F0 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: F0 09 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: F0 09 00 98 2D 00 CB A3 1A 67 4C DF 56 66 93 [19:45:08]GetLastDocTimeStamp 1729798545 [19:45:08]current date 1729799115 [19:45:08]FM_GetShiftState [19:45:08]SAM_PROTO_GetShiftState [19:45:08]wFMCommunicate request_size=4 [19:45:08]MH_SAM_APDU [19:45:08]CAPDU: 80 13 01 00 [19:45:08]Write to MH i2c: E2 08 00 99 2D 80 13 01 00 00 00 00 00 43 [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:08]Read from MH i2c: E2 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 0E 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 0E 00 99 2D 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 24 [19:45:08]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:45:08]wFMCommunicate OK [19:45:08]SAM_PROTO_GetShiftState done [19:45:08]FM_GetShiftState done [19:45:08]opened in 1729728964 [19:45:08]opened+sec_in_day 1729815364 [19:45:08]quantity*price = 28800 [19:45:08]sum+1 = 28801 [19:45:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 107 24.10.2024 19:45 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63493 ФПД: 168456221866446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194515&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63493&fm=168456221866446&tin=02508201610067®Number=0000000000091619&sum=28800 0 [19:45:09]StoreToDocumentArchive [19:45:09]shift 547 fd 63493 [19:45:09]save to /storage/0547/doc_00063493 [19:45:09]save last doc name /storage/0547/doc_00063493 to /storage/kkm_last_doc_name [19:45:09]save OK [19:45:09]Clear old archive folders... [19:45:09]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:45:09]tlvbuf is 00BA70D0 [19:45:09]SAM_PROTO_ClearQueue [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 09 00 00 [19:45:09]Write to MH i2c: E2 08 00 A6 2D 80 09 00 00 00 00 00 00 45 [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 03 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 03 00 A6 2D 00 90 00 47 [19:45:09]RAPDU: 90 00 [19:45:09]wFMCommunicate OK [19:45:09]SAM_PROTO_ClearQueue done [19:45:09]KKMCreateOFDPacket [19:45:09]OFDProtocolAddRootSTLVToBuf [19:45:09]FM_MakeSignedData [19:45:09]FM_MakeSignedData [19:45:09]SAM_PROTO_SignData [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 0D 01 02 [19:45:09]Write to MH i2c: E2 08 00 A7 2D 80 0D 01 02 00 00 00 00 4D [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 03 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 03 00 A7 2D 00 90 00 48 [19:45:09]RAPDU: 90 00 [19:45:09]wFMCommunicate OK [19:45:09]wFMCommunicate request_size=255 [19:45:09]MH_SAM_APDU [19:45:09]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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CB A3 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [19:45:09]Write to MH i2c: E2 02 01 A8 2D 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CB A3 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 F6 [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 03 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 03 00 A8 2D 00 90 00 49 [19:45:09]RAPDU: 90 00 [19:45:09]wFMCommunicate OK [19:45:09]wFMCommunicate request_size=32 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 05 F8 00 00 35 04 06 00 99 35 C5 43 B9 CE [19:45:09]Write to MH i2c: E2 23 00 A9 2D 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 05 F8 00 00 35 04 06 00 99 35 C5 43 B9 CE 00 00 0D [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 03 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 03 00 A9 2D 00 90 00 4A [19:45:09]RAPDU: 90 00 [19:45:09]wFMCommunicate OK [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 0D 03 02 [19:45:09]Write to MH i2c: E2 08 00 AA 2D 80 0D 03 02 00 00 00 00 52 [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 0B 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 0B 00 AA 2D 00 B9 8D FB 13 A9 C7 91 5D 90 00 05 [19:45:09]RAPDU: B9 8D FB 13 A9 C7 91 5D 90 00 [19:45:09]wFMCommunicate OK [19:45:09]SAM_PROTO_SignData done [19:45:09]FM_MakeSignedData done [19:45:09]CreateOFDProtocolMessage [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 11 00 00 [19:45:09]Write to MH i2c: E2 08 00 AB 2D 80 11 00 00 00 00 00 00 52 [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 17 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 17 00 AB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AB [19:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:45:09]wFMCommunicate OK [19:45:09]CreateOFDProtocolMessage done [19:45:09]OFDSenderStorePacket 63493 [19:45:09]StoreOFDPacket docnum=63493 [19:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 08 FC 1D 01 44 59 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CB A3 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 05 F8 00 00 35 04 06 00 99 35 C5 43 B9 CE B9 8D FB 13 A9 C7 91 5D [19:45:09]CheckFolder [19:45:09]dirname=/storage/ofd_packets [19:45:09]CheckFolder done [19:45:09]ProducePacketName [19:45:09]name=ofd_packets/00063493 [19:45:09]NVStorageSaveData ofd_packets/00063493 [19:45:09]File name is /storage/ofd_packets/00063493 [19:45:09]Write 323 bytes [19:45:09]NVStorageSaveData done [19:45:09]OFDSenderStorePacket done [19:45:09]KKMCreateOFDPacket done [19:45:09]NVStorageSaveData kkm_last_timestamp [19:45:09]File name is /storage/kkm_last_timestamp [19:45:09]Write 4 bytes [19:45:09]NVStorageSaveData done [19:45:09]ExternCall_PrintAddStr [19:45:09]wPrintStart [19:45:09]Write to MH i2c: 01 00 00 AC 2D D9 [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: 01 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: 01 07 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: 01 07 00 AC 2D 00 00 00 00 00 FF 0F EE [19:45:10]RasterBufferAndPrint [19:45:10]line Счет N : (3)47799 [19:45:10]line ИНН: 02508201610067 [19:45:10]line Контрольно-Кассовый Чек [19:45:10]line ПРОДАЖА [19:45:10]line Товар: 48747059 [19:45:10]line Сигареты Winston Legend Blue [19:45:10]line 2.000 * 144.00 [19:45:10]line = 288.00 [19:45:10]line НДС 12% НСП 1% [19:45:10]line > о реализуемом товаре [19:45:10]line ИТОГО: 288.00 [19:45:10]line НСП 1% : 2.55 [19:45:10]line НДС 12% : 30.58 [19:45:10]line Наличными: 288.00 [19:45:10]line Безнал.: 0.00 [19:45:10]line Место: АЗС № 86 "Партнер Нефть" [19:45:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:45:10]line СНО: Общий режим [19:45:10]line Чек 107 24.10.2024 19:45 [19:45:10]line Смена: 547 ФФД: 1.0 [19:45:10]line ЗНМ: 0300000154 [19:45:10]line РНМ: 0000000000091619 [19:45:10]line Версия ККМ: 001 [19:45:10]line ФМ: 0000000000874676 [19:45:10]line ФД: 63493 [19:45:10]line ФПД: 168456221866446 [19:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194515&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63493&fm=168456221866446&tin=02508201610067®Number=0000000000091619&sum=28800 [19:45:10]line 0 [19:45:10]OFD Sender: Processing packet 63493 [packets to send 232, broken 231] [19:45:10]ProducePacketName [19:45:10]name=ofd_packets/00063493 [19:45:10]OFD Sender: To server: pG, [19:45:10]CommunicateWithHost lk.salyk.kg:30040 [19:45:10]ConnectInit lk.salyk.kg [19:45:10]written 0, free lines is 4095 [19:45:10]Connected sock=9 [19:45:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 08 FC 1D 01 44 59 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CB A3 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 05 F8 00 00 35 04 06 00 99 35 C5 43 B9 CE B9 8D FB 13 A9 C7 91 5D [19:45:10]Write to MH i2c: 01 00 00 D5 2D 02 [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: 01 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: 01 07 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: 01 07 00 D5 2D 00 00 00 00 00 F6 0C 0B [19:45:10]RasterBufferAndPrint [19:45:10]line [19:45:10]line [19:45:10]line [19:45:10]line [19:45:10]line [19:45:10]written 0, free lines is 3324 [19:45:10]MH_Cut [19:45:10]Write to MH i2c: D1 01 00 DC 2D 01 DB [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: D1 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: D1 01 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: D1 01 00 DC 2D 00 DA [19:45:10]Write to MH i2c: 01 00 00 DD 2D 0A [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 45 CD 47 00 19 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 05 F8 00 00 F4 03 04 00 BF 4D 1A 67 B6 04 01 00 00 4A 50 B7 5D F9 C3 C6 66 [19:45:11]CommunicateWithHost err = 0 [19:45:11]CheckOFDResponse [19:45:11]1017 (14) - 77093643461234 [19:45:11]1041 (16) - 0000000000874676 [19:45:11]1040 (4) - 63493 [19:45:11]1012 (4) - 24.10.2024 13:38 [19:45:11]1206 (1) - 0 [19:45:11]OFD Sender: Remove packet 63493 [19:45:11]ProducePacketName [19:45:11]name=ofd_packets/00063493 [19:45:11]NVStorageDeleteData [19:45:11]*** Cut start [19:45:11]*** Partial cut [19:45:11]*** CUTSNS_PIN = 1 [19:45:11]*** CUTSNS_PIN = 0 [19:45:11]OFD Sender: No OFD packet to send [19:45:11]*** Brake cut motor [19:45:12]Read from MH i2c: 01 [19:45:12]MH_I2C_Read... [19:45:12]*** Stop cut motor [19:45:12]*** Cut end [19:45:12]Read from MH i2c: 01 07 00 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: 01 07 00 DD 2D 00 00 00 00 00 FF 0F 1F [19:45:12]process_action close_receipt done [19:45:12]requested_data is exist [19:45:12]produce_requested_data [19:45:12]requested_item fm.sn is exist - process it [19:45:12]wFMCommunicate request_size=4 [19:45:12]MH_SAM_APDU [19:45:12]CAPDU: 80 11 00 00 [19:45:12]Write to MH i2c: E2 08 00 DE 2D 80 11 00 00 00 00 00 00 85 [19:45:12]Write i2c OK [19:45:12]MH_I2C_Read... [19:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:12]Read from MH i2c: E2 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 17 00 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 17 00 DE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DE [19:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:45:12]wFMCommunicate OK [19:45:12]requested_item fd.num is exist - process it [19:45:12]SAM_PROTO_GetFieldsCounters [19:45:12]wFMCommunicate request_size=4 [19:45:12]MH_SAM_APDU [19:45:12]CAPDU: 80 13 00 00 [19:45:12]Write to MH i2c: E2 08 00 DF 2D 80 13 00 00 00 00 00 00 88 [19:45:12]Write i2c OK [19:45:12]MH_I2C_Read... [19:45:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:12]Read from MH i2c: E2 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 62 00 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 62 00 DF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 05 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [19:45:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 05 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:12]wFMCommunicate OK [19:45:12]SAM_PROTO_GetFieldsCounters done [19:45:12]requested_item shift.num is exist - process it [19:45:12]requested_item shift.opened is exist - process it [19:45:12]req_shift_opened [19:45:12]FM_GetShiftState [19:45:12]SAM_PROTO_GetShiftState [19:45:12]wFMCommunicate request_size=4 [19:45:12]MH_SAM_APDU [19:45:12]CAPDU: 80 13 01 00 [19:45:12]Write to MH i2c: E2 08 00 E0 2D 80 13 01 00 00 00 00 00 8A [19:45:12]Write i2c OK [19:45:12]MH_I2C_Read... [19:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:12]Read from MH i2c: E2 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 0E 00 [19:45:12]MH_I2C_Read... [19:45:12]Read from MH i2c: E2 0E 00 E0 2D 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 6B [19:45:12]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:45:12]wFMCommunicate OK [19:45:12]SAM_PROTO_GetShiftState done [19:45:12]FM_GetShiftState done [19:45:12]req_shift_opened done [19:45:12]requested_item shift.open_date is exist - process it [19:45:12]req_shift_open_date [19:45:12]req_shift_open_date done [19:45:12]produce_requested_data done [19:45:12]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63493,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:45:12]process_action_free close_receipt [19:45:12]json_value_free [19:45:12]json_value_free done [19:45:12]process_json_proto returns [19:45:12]Send response to host [19:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63493,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:45:12]free response buf [19:45:12]execute_script done [19:45:12]execute_script returns [19:45:12]free content buf [19:45:12]Sock 10.Close socket [19:45:12]Sock 10.Thread stoped [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:04]accept exits with 7 [19:46:04]New connection [19:46:04]New thread 3066633572 created [19:46:04]Thread 3066490212 joined [19:46:04]Waiting for new connection... [19:46:04] Sock 7.Parse request [19:46:04]Sock 7.Check first char [19:46:04]Sock 7.First char is OK [19:46:04]request: POST /json_proto HTTP/1.0 [19:46:04]Method: POST [19:46:04]URL: /json_proto [19:46:04]Method is POST - this is cgi request [19:46:04]url: /json_proto [19:46:04]query_string will be loaded in cgi processing [19:46:04]execute_cgi json_proto POST (null) [19:46:04]execute_cgi path=json_proto method=POST [19:46:04]POST find Content-Length [19:46:04]Host: 172.17.42.132:8080 [19:46:04]Content-Length: 989 [19:46:04]Content-Type: application/json [19:46:04] [19:46:04]POST finish read [19:46:04]Found Content-Length = 989 [19:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47800", "tax_sys" : 0, "items" : [ { "code": "4640030090136", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 157.59, "quantity" : 1.000, "sum" : 157.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 152.64, "quantity" : 1.000, "sum" : 152.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 310.23 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:04]execute_script... [19:46:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47800", "tax_sys" : 0, "items" : [ { "code": "4640030090136", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 157.59, "quantity" : 1.000, "sum" : 157.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 152.64, "quantity" : 1.000, "sum" : 152.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 310.23 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:04]POST & json_proto [19:46:04]process_json_proto [19:46:04]json parsed OK: [19:46:04]protocol is kg_v1.0 [19:46:04]action value=close_receipt [19:46:04]process_action close_receipt [19:46:04]cmd_close_receipt [19:46:04]MH_GetDate [19:46:04]Write to MH i2c: F0 00 00 E1 2D FD [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: F0 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: F0 09 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: F0 09 00 E1 2D 00 03 A4 1A 67 4C DF 56 66 15 [19:46:04]GetLastDocTimeStamp 1729799115 [19:46:04]current date 1729799171 [19:46:04]FM_GetShiftState [19:46:04]SAM_PROTO_GetShiftState [19:46:04]wFMCommunicate request_size=4 [19:46:04]MH_SAM_APDU [19:46:04]CAPDU: 80 13 01 00 [19:46:04]Write to MH i2c: E2 08 00 E2 2D 80 13 01 00 00 00 00 00 8C [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:04]Read from MH i2c: E2 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 0E 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 0E 00 E2 2D 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 6D [19:46:04]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:46:04]wFMCommunicate OK [19:46:04]SAM_PROTO_GetShiftState done [19:46:04]FM_GetShiftState done [19:46:04]opened in 1729728964 [19:46:04]opened+sec_in_day 1729815364 [19:46:04]quantity*price = 15759 [19:46:04]sum+1 = 15760 [19:46:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230607 Сигареты Richmond Bronze Edition 1.000 * 152.64 = 152.64 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.23 НСП 1% : 2.74 НДС 12% : 32.94 Наличными: 0.00 Безнал.: 310.23 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 108 24.10.2024 19:46 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63494 ФПД: 226701125543280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194612&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63494&fm=226701125543280&tin=02508201610067®Number=0000000000091619&sum=31023 0 [19:46:05]StoreToDocumentArchive [19:46:05]shift 547 fd 63494 [19:46:05]save to /storage/0547/doc_00063494 [19:46:05]save last doc name /storage/0547/doc_00063494 to /storage/kkm_last_doc_name [19:46:05]save OK [19:46:05]Clear old archive folders... [19:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=381 [19:46:05]tlvbuf is 00BA7330 [19:46:05]SAM_PROTO_ClearQueue [19:46:05]wFMCommunicate request_size=4 [19:46:05]MH_SAM_APDU [19:46:05]CAPDU: 80 09 00 00 [19:46:05]Write to MH i2c: E2 08 00 EF 2D 80 09 00 00 00 00 00 00 8E [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:05]Read from MH i2c: E2 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 EF 2D 00 90 00 90 [19:46:05]RAPDU: 90 00 [19:46:05]wFMCommunicate OK [19:46:05]SAM_PROTO_ClearQueue done [19:46:05]KKMCreateOFDPacket [19:46:05]OFDProtocolAddRootSTLVToBuf [19:46:05]FM_MakeSignedData [19:46:05]FM_MakeSignedData [19:46:05]SAM_PROTO_SignData [19:46:05]wFMCommunicate request_size=4 [19:46:05]MH_SAM_APDU [19:46:05]CAPDU: 80 0D 01 02 [19:46:05]Write to MH i2c: E2 08 00 F0 2D 80 0D 01 02 00 00 00 00 96 [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:05]Read from MH i2c: E2 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 F0 2D 00 90 00 91 [19:46:05]RAPDU: 90 00 [19:46:05]wFMCommunicate OK [19:46:05]wFMCommunicate request_size=255 [19:46:05]MH_SAM_APDU [19:46:05]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 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 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 3B 00 00 00 00 13 04 06 00 A0 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 [19:46:05]Write to MH i2c: E2 02 01 F1 2D 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 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 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 3B 00 00 00 00 13 04 06 00 A0 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 16 [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:06]Read from MH i2c: E2 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 03 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 03 00 F1 2D 00 90 00 92 [19:46:06]RAPDU: 90 00 [19:46:06]wFMCommunicate OK [19:46:06]wFMCommunicate request_size=140 [19:46:06]MH_SAM_APDU [19:46:06]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 04 A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 06 F8 00 00 35 04 06 00 CE 2E F8 0E E5 70 [19:46:06]Write to MH i2c: E2 8F 00 F2 2D 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 04 A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 06 F8 00 00 35 04 06 00 CE 2E F8 0E E5 70 00 00 7C [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 [19:46:06]MH_I2C_Read... [19:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:06]Read from MH i2c: E2 03 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 03 00 F2 2D 00 90 00 93 [19:46:06]RAPDU: 90 00 [19:46:06]wFMCommunicate OK [19:46:06]wFMCommunicate request_size=4 [19:46:06]MH_SAM_APDU [19:46:06]CAPDU: 80 0D 03 02 [19:46:06]Write to MH i2c: E2 08 00 F3 2D 80 0D 03 02 00 00 00 00 9B [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:06]Read from MH i2c: E2 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 0B 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 0B 00 F3 2D 00 70 E0 80 E0 B4 ED 2E B9 90 00 D4 [19:46:06]RAPDU: 70 E0 80 E0 B4 ED 2E B9 90 00 [19:46:06]wFMCommunicate OK [19:46:06]SAM_PROTO_SignData done [19:46:06]FM_MakeSignedData done [19:46:06]CreateOFDProtocolMessage [19:46:06]wFMCommunicate request_size=4 [19:46:06]MH_SAM_APDU [19:46:06]CAPDU: 80 11 00 00 [19:46:06]Write to MH i2c: E2 08 00 F4 2D 80 11 00 00 00 00 00 00 9B [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:06]Read from MH i2c: E2 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 17 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 17 00 F4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F4 [19:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:46:06]wFMCommunicate OK [19:46:06]CreateOFDProtocolMessage done [19:46:06]OFDSenderStorePacket 63494 [19:46:06]StoreOFDPacket docnum=63494 [19:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 91 01 00 00 D5 99 89 01 5D E8 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 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 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 3B 00 00 00 00 13 04 06 00 A0 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 04 A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 06 F8 00 00 35 04 06 00 CE 2E F8 0E E5 70 70 E0 80 E0 B4 ED 2E B9 [19:46:06]CheckFolder [19:46:06]dirname=/storage/ofd_packets [19:46:06]CheckFolder done [19:46:06]ProducePacketName [19:46:06]name=ofd_packets/00063494 [19:46:06]NVStorageSaveData ofd_packets/00063494 [19:46:06]File name is /storage/ofd_packets/00063494 [19:46:06]Write 431 bytes [19:46:06]NVStorageSaveData done [19:46:06]OFDSenderStorePacket done [19:46:06]KKMCreateOFDPacket done [19:46:06]NVStorageSaveData kkm_last_timestamp [19:46:06]File name is /storage/kkm_last_timestamp [19:46:06]Write 4 bytes [19:46:06]NVStorageSaveData done [19:46:06]ExternCall_PrintAddStr [19:46:06]wPrintStart [19:46:06]Write to MH i2c: 01 00 00 F5 2D 22 [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: 01 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: 01 07 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: 01 07 00 F5 2D 00 00 00 00 00 FF 0F 37 [19:46:06]RasterBufferAndPrint [19:46:06]line Счет N : (3)47800 [19:46:06]line ИНН: 02508201610067 [19:46:06]line Контрольно-Кассовый Чек [19:46:06]line ПРОДАЖА [19:46:06]line Товар: 4640030090136 [19:46:06]line Сигареты ESSE Exchange W [19:46:06]line 1.000 * 157.59 [19:46:06]line = 157.59 [19:46:06]line НДС 12% НСП 1% [19:46:06]line > о реализуемом товаре [19:46:06]line Товар: 46230607 [19:46:06]line Сигареты Richmond Bronze Edition [19:46:06]line 1.000 * 152.64 [19:46:06]line = 152.64 [19:46:06]line НДС 12% НСП 1% [19:46:06]line > о реализуемом товаре [19:46:06]line ИТОГО: 310.23 [19:46:06]line НСП 1% : 2.74 [19:46:06]line НДС 12% : 32.94 [19:46:06]line Наличными: 0.00 [19:46:06]line Безнал.: 310.23 [19:46:06]line Место: АЗС № 86 "Партнер Нефть" [19:46:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:46:06]line СНО: Общий режим [19:46:06]line Чек 108 24.10.2024 19:46 [19:46:06]line Смена: 547 ФФД: 1.0 [19:46:06]line ЗНМ: 0300000154 [19:46:06]line РНМ: 0000000000091619 [19:46:06]line Версия ККМ: 001 [19:46:06]line Платежная система: Mbank [19:46:06]line ФМ: 0000000000874676 [19:46:06]line ФД: 63494 [19:46:06]line ФПД: 226701125543280 [19:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194612&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63494&fm=226701125543280&tin=02508201610067®Number=0000000000091619&sum=31023 [19:46:06]line 0 [19:46:06]OFD Sender: Processing packet 63494 [packets to send 232, broken 231] [19:46:06]ProducePacketName [19:46:06]name=ofd_packets/00063494 [19:46:06]OFD Sender: To server: pG, [19:46:06]CommunicateWithHost lk.salyk.kg:30040 [19:46:06]ConnectInit lk.salyk.kg [19:46:06]written 0, free lines is 4095 [19:46:06]Connected sock=10 [19:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 91 01 00 00 D5 99 89 01 5D E8 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 31 33 36 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 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 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 3B 00 00 00 00 13 04 06 00 A0 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 04 A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 06 F8 00 00 35 04 06 00 CE 2E F8 0E E5 70 70 E0 80 E0 B4 ED 2E B9 [19:46:07]Write to MH i2c: 01 00 00 25 2E 53 [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: 01 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: 01 07 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: 01 07 00 25 2E 00 00 00 00 00 A1 0C 07 [19:46:07]RasterBufferAndPrint [19:46:07]line [19:46:07]line [19:46:07]line [19:46:07]line [19:46:07]line [19:46:07]written 0, free lines is 3242 [19:46:07]MH_Cut [19:46:07]Write to MH i2c: D1 01 00 2C 2E 01 2C [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: D1 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: D1 01 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: D1 01 00 2C 2E 00 2B [19:46:07]Write to MH i2c: 01 00 00 2D 2E 5B [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 00 03 47 00 ED BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 06 F8 00 00 F4 03 04 00 F7 4D 1A 67 B6 04 01 00 00 35 70 2B 8E 0E FF 0D 3A [19:46:07]CommunicateWithHost err = 0 [19:46:07]CheckOFDResponse [19:46:07]1017 (14) - 77093643461234 [19:46:07]1041 (16) - 0000000000874676 [19:46:07]1040 (4) - 63494 [19:46:07]1012 (4) - 24.10.2024 13:39 [19:46:07]1206 (1) - 0 [19:46:07]OFD Sender: Remove packet 63494 [19:46:07]ProducePacketName [19:46:07]name=ofd_packets/00063494 [19:46:07]NVStorageDeleteData [19:46:07]OFD Sender: No OFD packet to send [19:46:07]*** Cut start [19:46:07]*** Partial cut [19:46:07]*** CUTSNS_PIN = 1 [19:46:07]*** CUTSNS_PIN = 0 [19:46:08]*** Brake cut motor [19:46:08]Read from MH i2c: 01 [19:46:08]MH_I2C_Read... [19:46:08]*** Stop cut motor [19:46:08]*** Cut end [19:46:08]Read from MH i2c: 01 07 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 07 00 2D 2E 00 00 00 00 00 FF 0F 70 [19:46:08]process_action close_receipt done [19:46:08]requested_data is exist [19:46:08]produce_requested_data [19:46:08]requested_item fm.sn is exist - process it [19:46:08]wFMCommunicate request_size=4 [19:46:08]MH_SAM_APDU [19:46:08]CAPDU: 80 11 00 00 [19:46:08]Write to MH i2c: E2 08 00 2E 2E 80 11 00 00 00 00 00 00 D6 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 17 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 17 00 2E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 2F [19:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:46:08]wFMCommunicate OK [19:46:08]requested_item fd.num is exist - process it [19:46:08]SAM_PROTO_GetFieldsCounters [19:46:08]wFMCommunicate request_size=4 [19:46:08]MH_SAM_APDU [19:46:08]CAPDU: 80 13 00 00 [19:46:08]Write to MH i2c: E2 08 00 2F 2E 80 13 00 00 00 00 00 00 D9 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 62 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 62 00 2F 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 06 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [19:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 06 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:08]wFMCommunicate OK [19:46:08]SAM_PROTO_GetFieldsCounters done [19:46:08]requested_item shift.num is exist - process it [19:46:08]requested_item shift.opened is exist - process it [19:46:08]req_shift_opened [19:46:08]FM_GetShiftState [19:46:08]SAM_PROTO_GetShiftState [19:46:08]wFMCommunicate request_size=4 [19:46:08]MH_SAM_APDU [19:46:08]CAPDU: 80 13 01 00 [19:46:08]Write to MH i2c: E2 08 00 30 2E 80 13 01 00 00 00 00 00 DB [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 0E 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 0E 00 30 2E 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 BC [19:46:08]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:46:08]wFMCommunicate OK [19:46:08]SAM_PROTO_GetShiftState done [19:46:08]FM_GetShiftState done [19:46:08]req_shift_opened done [19:46:08]requested_item shift.open_date is exist - process it [19:46:08]req_shift_open_date [19:46:08]req_shift_open_date done [19:46:08]produce_requested_data done [19:46:08]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63494,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:46:08]process_action_free close_receipt [19:46:08]json_value_free [19:46:08]json_value_free done [19:46:08]process_json_proto returns [19:46:08]Send response to host [19:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63494,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:46:08]free response buf [19:46:08]execute_script done [19:46:08]execute_script returns [19:46:08]free content buf [19:46:08]Sock 7.Close socket [19:46:08]Sock 7.Thread stoped [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]accept exits with 9 [19:46:52]New connection [19:46:52]New thread 3066490212 created [19:46:52]Thread 3066633572 joined [19:46:52]Waiting for new connection... [19:46:52] Sock 9.Parse request [19:46:52]Sock 9.Check first char [19:46:52]Sock 9.First char is OK [19:46:52]request: POST /json_proto HTTP/1.0 [19:46:52]Method: POST [19:46:52]URL: /json_proto [19:46:52]Method is POST - this is cgi request [19:46:52]url: /json_proto [19:46:52]query_string will be loaded in cgi processing [19:46:52]execute_cgi json_proto POST (null) [19:46:52]execute_cgi path=json_proto method=POST [19:46:52]POST find Content-Length [19:46:52]Host: 172.17.42.132:8080 [19:46:52]Content-Length: 747 [19:46:52]Content-Type: application/json [19:46:52] [19:46:52]POST finish read [19:46:52]Found Content-Length = 747 [19:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47801", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:52]execute_script... [19:46: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)47801", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:52]POST & json_proto [19:46:52]process_json_proto [19:46:52]json parsed OK: [19:46:52]protocol is kg_v1.0 [19:46:52]action value=close_receipt [19:46:52]process_action close_receipt [19:46:52]cmd_close_receipt [19:46:52]MH_GetDate [19:46:52]Write to MH i2c: F0 00 00 31 2E 4E [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: F0 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: F0 09 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: F0 09 00 31 2E 00 33 A4 1A 67 4C DF 56 66 96 [19:46:52]GetLastDocTimeStamp 1729799172 [19:46:52]current date 1729799219 [19:46:52]FM_GetShiftState [19:46:52]SAM_PROTO_GetShiftState [19:46:52]wFMCommunicate request_size=4 [19:46:52]MH_SAM_APDU [19:46:52]CAPDU: 80 13 01 00 [19:46:52]Write to MH i2c: E2 08 00 32 2E 80 13 01 00 00 00 00 00 DD [19:46:52]Write i2c OK [19:46:52]MH_I2C_Read... [19:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:52]Read from MH i2c: E2 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 0E 00 [19:46:52]MH_I2C_Read... [19:46:52]Read from MH i2c: E2 0E 00 32 2E 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 BE [19:46:52]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:46:52]wFMCommunicate OK [19:46:52]SAM_PROTO_GetShiftState done [19:46:52]FM_GetShiftState done [19:46:52]opened in 1729728964 [19:46:52]opened+sec_in_day 1729815364 [19:46:52]quantity*price = 14273 [19:46:52]sum+1 = 14274 [19:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 142.73 НСП 1% : 1.26 НДС 12% : 15.16 Наличными: 0.00 Безнал.: 142.73 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 109 24.10.2024 19:46 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63495 ФПД: 105346743700732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194659&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63495&fm=105346743700732&tin=02508201610067®Number=0000000000091619&sum=14273 0 [19:46:53]StoreToDocumentArchive [19:46:53]shift 547 fd 63495 [19:46:53]save to /storage/0547/doc_00063495 [19:46:53]save last doc name /storage/0547/doc_00063495 to /storage/kkm_last_doc_name [19:46:53]save OK [19:46:53]Clear old archive folders... [19:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:46:53]tlvbuf is 00BCEEC0 [19:46:53]SAM_PROTO_ClearQueue [19:46:53]wFMCommunicate request_size=4 [19:46:53]MH_SAM_APDU [19:46:53]CAPDU: 80 09 00 00 [19:46:53]Write to MH i2c: E2 08 00 3F 2E 80 09 00 00 00 00 00 00 DF [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:53]Read from MH i2c: E2 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 03 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 03 00 3F 2E 00 90 00 E1 [19:46:53]RAPDU: 90 00 [19:46:53]wFMCommunicate OK [19:46:53]SAM_PROTO_ClearQueue done [19:46:53]KKMCreateOFDPacket [19:46:53]OFDProtocolAddRootSTLVToBuf [19:46:53]FM_MakeSignedData [19:46:53]FM_MakeSignedData [19:46:53]SAM_PROTO_SignData [19:46:53]wFMCommunicate request_size=4 [19:46:53]MH_SAM_APDU [19:46:53]CAPDU: 80 0D 01 02 [19:46:53]Write to MH i2c: E2 08 00 40 2E 80 0D 01 02 00 00 00 00 E7 [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:53]Read from MH i2c: E2 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 03 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 03 00 40 2E 00 90 00 E2 [19:46:53]RAPDU: 90 00 [19:46:53]wFMCommunicate OK [19:46:53]wFMCommunicate request_size=255 [19:46:53]MH_SAM_APDU [19:46:53]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 33 A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [19:46:53]Write to MH i2c: E2 02 01 41 2E 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 33 A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 2E [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:53]Read from MH i2c: E2 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 03 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 03 00 41 2E 00 90 00 E3 [19:46:53]RAPDU: 90 00 [19:46:53]wFMCommunicate OK [19:46:53]wFMCommunicate request_size=32 [19:46:53]MH_SAM_APDU [19:46:53]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 07 F8 00 00 35 04 06 00 5F CF F3 3C 8C FC [19:46:53]Write to MH i2c: E2 23 00 42 2E 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 07 F8 00 00 35 04 06 00 5F CF F3 3C 8C FC 00 00 31 [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:53]Read from MH i2c: E2 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 03 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 03 00 42 2E 00 90 00 E4 [19:46:53]RAPDU: 90 00 [19:46:53]wFMCommunicate OK [19:46:53]wFMCommunicate request_size=4 [19:46:53]MH_SAM_APDU [19:46:53]CAPDU: 80 0D 03 02 [19:46:53]Write to MH i2c: E2 08 00 43 2E 80 0D 03 02 00 00 00 00 EC [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:53]Read from MH i2c: E2 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 0B 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 0B 00 43 2E 00 E4 D5 F2 10 01 BA 13 B0 90 00 26 [19:46:53]RAPDU: E4 D5 F2 10 01 BA 13 B0 90 00 [19:46:53]wFMCommunicate OK [19:46:53]SAM_PROTO_SignData done [19:46:53]FM_MakeSignedData done [19:46:53]CreateOFDProtocolMessage [19:46:53]wFMCommunicate request_size=4 [19:46:53]MH_SAM_APDU [19:46:53]CAPDU: 80 11 00 00 [19:46:53]Write to MH i2c: E2 08 00 44 2E 80 11 00 00 00 00 00 00 EC [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:53]Read from MH i2c: E2 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 17 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 17 00 44 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 45 [19:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:46:53]wFMCommunicate OK [19:46:53]CreateOFDProtocolMessage done [19:46:53]OFDSenderStorePacket 63495 [19:46:53]StoreOFDPacket docnum=63495 [19:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 EB FB 1D 01 74 CB 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 33 A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 07 F8 00 00 35 04 06 00 5F CF F3 3C 8C FC E4 D5 F2 10 01 BA 13 B0 [19:46:53]CheckFolder [19:46:53]dirname=/storage/ofd_packets [19:46:53]CheckFolder done [19:46:53]ProducePacketName [19:46:53]name=ofd_packets/00063495 [19:46:53]NVStorageSaveData ofd_packets/00063495 [19:46:53]File name is /storage/ofd_packets/00063495 [19:46:53]Write 323 bytes [19:46:53]NVStorageSaveData done [19:46:53]OFDSenderStorePacket done [19:46:53]KKMCreateOFDPacket done [19:46:53]NVStorageSaveData kkm_last_timestamp [19:46:53]File name is /storage/kkm_last_timestamp [19:46:53]Write 4 bytes [19:46:53]NVStorageSaveData done [19:46:53]ExternCall_PrintAddStr [19:46:53]wPrintStart [19:46:53]Write to MH i2c: 01 00 00 45 2E 73 [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: 01 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: 01 07 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: 01 07 00 45 2E 00 00 00 00 00 FF 0F 88 [19:46:53]RasterBufferAndPrint [19:46:53]line Счет N : (3)47801 [19:46:53]line ИНН: 02508201610067 [19:46:53]line Контрольно-Кассовый Чек [19:46:53]line ПРОДАЖА [19:46:53]line Товар: 48743570 [19:46:53]line Сигареты Winston XStyle Blue [19:46:53]line 1.000 * 142.73 [19:46:53]line = 142.73 [19:46:53]line НДС 12% НСП 1% [19:46:53]line > о реализуемом товаре [19:46:53]line ИТОГО: 142.73 [19:46:53]line НСП 1% : 1.26 [19:46:53]line НДС 12% : 15.16 [19:46:53]line Наличными: 0.00 [19:46:53]line Безнал.: 142.73 [19:46:53]line Место: АЗС № 86 "Партнер Нефть" [19:46:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:46:53]line СНО: Общий режим [19:46:53]line Чек 109 24.10.2024 19:46 [19:46:53]line Смена: 547 ФФД: 1.0 [19:46:53]line ЗНМ: 0300000154 [19:46:53]line РНМ: 0000000000091619 [19:46:53]line Версия ККМ: 001 [19:46:53]line Платежная система: Mbank [19:46:53]line ФМ: 0000000000874676 [19:46:53]line ФД: 63495 [19:46:53]line ФПД: 105346743700732 [19:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194659&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63495&fm=105346743700732&tin=02508201610067®Number=0000000000091619&sum=14273 [19:46:53]line 0 [19:46:53]written 0, free lines is 4095 [19:46:54]OFD Sender: Processing packet 63495 [packets to send 232, broken 231] [19:46:54]ProducePacketName [19:46:54]name=ofd_packets/00063495 [19:46:54]OFD Sender: To server: pG, [19:46:54]CommunicateWithHost lk.salyk.kg:30040 [19:46:54]ConnectInit lk.salyk.kg [19:46:54]Connected sock=10 [19:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 EB FB 1D 01 74 CB 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 33 A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 07 F8 00 00 35 04 06 00 5F CF F3 3C 8C FC E4 D5 F2 10 01 BA 13 B0 [19:46:54]Write to MH i2c: 01 00 00 6E 2E 9C [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: 01 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: 01 07 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: 01 07 00 6E 2E 00 00 00 00 00 06 0D B6 [19:46:54]RasterBufferAndPrint [19:46:54]line [19:46:54]line [19:46:54]line [19:46:54]line [19:46:54]line [19:46:54]written 0, free lines is 3341 [19:46:54]MH_Cut [19:46:54]Write to MH i2c: D1 01 00 75 2E 01 75 [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: D1 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: D1 01 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: D1 01 00 75 2E 00 74 [19:46:54]Write to MH i2c: 01 00 00 76 2E A4 [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 F5 7B 47 00 CA 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 07 F8 00 00 F4 03 04 00 27 4E 1A 67 B6 04 01 00 00 54 21 64 4C 12 EC 47 1F [19:46:54]CommunicateWithHost err = 0 [19:46:54]CheckOFDResponse [19:46:54]1017 (14) - 77093643461234 [19:46:54]1041 (16) - 0000000000874676 [19:46:54]1040 (4) - 63495 [19:46:54]1012 (4) - 24.10.2024 13:39 [19:46:54]1206 (1) - 0 [19:46:54]OFD Sender: Remove packet 63495 [19:46:54]ProducePacketName [19:46:54]name=ofd_packets/00063495 [19:46:54]NVStorageDeleteData [19:46:55]*** Cut start [19:46:55]*** Partial cut [19:46:55]*** CUTSNS_PIN = 1 [19:46:55]*** CUTSNS_PIN = 0 [19:46:55]OFD Sender: No OFD packet to send [19:46:55]*** Brake cut motor [19:46:55]Read from MH i2c: 01 [19:46:55]MH_I2C_Read... [19:46:55]*** Stop cut motor [19:46:55]*** Cut end [19:46:55]Read from MH i2c: 01 07 00 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: 01 07 00 76 2E 00 00 00 00 00 FF 0F B9 [19:46:55]process_action close_receipt done [19:46:55]requested_data is exist [19:46:55]produce_requested_data [19:46:55]requested_item fm.sn is exist - process it [19:46:55]wFMCommunicate request_size=4 [19:46:55]MH_SAM_APDU [19:46:55]CAPDU: 80 11 00 00 [19:46:55]Write to MH i2c: E2 08 00 77 2E 80 11 00 00 00 00 00 00 1F [19:46:55]Write i2c OK [19:46:55]MH_I2C_Read... [19:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:55]Read from MH i2c: E2 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: E2 17 00 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: E2 17 00 77 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 78 [19:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:46:55]wFMCommunicate OK [19:46:55]requested_item fd.num is exist - process it [19:46:55]SAM_PROTO_GetFieldsCounters [19:46:55]wFMCommunicate request_size=4 [19:46:55]MH_SAM_APDU [19:46:55]CAPDU: 80 13 00 00 [19:46:55]Write to MH i2c: E2 08 00 78 2E 80 13 00 00 00 00 00 00 22 [19:46:55]Write i2c OK [19:46:55]MH_I2C_Read... [19:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:55]Read from MH i2c: E2 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: E2 62 00 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: E2 62 00 78 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 07 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [19: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 07 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:55]wFMCommunicate OK [19:46:55]SAM_PROTO_GetFieldsCounters done [19:46:55]requested_item shift.num is exist - process it [19:46:55]requested_item shift.opened is exist - process it [19:46:55]req_shift_opened [19:46:55]FM_GetShiftState [19:46:55]SAM_PROTO_GetShiftState [19:46:55]wFMCommunicate request_size=4 [19:46:55]MH_SAM_APDU [19:46:55]CAPDU: 80 13 01 00 [19:46:55]Write to MH i2c: E2 08 00 79 2E 80 13 01 00 00 00 00 00 24 [19:46:55]Write i2c OK [19:46:55]MH_I2C_Read... [19:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:55]Read from MH i2c: E2 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: E2 0E 00 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: E2 0E 00 79 2E 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 05 [19:46:55]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:46:55]wFMCommunicate OK [19:46:55]SAM_PROTO_GetShiftState done [19:46:55]FM_GetShiftState done [19:46:55]req_shift_opened done [19:46:55]requested_item shift.open_date is exist - process it [19:46:55]req_shift_open_date [19:46:55]req_shift_open_date done [19:46:55]produce_requested_data done [19:46:55]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63495,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:46:55]process_action_free close_receipt [19:46:55]json_value_free [19:46:55]json_value_free done [19:46:55]process_json_proto returns [19:46:55]Send response to host [19:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63495,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:46:55]free response buf [19:46:55]execute_script done [19:46:55]execute_script returns [19:46:55]free content buf [19:46:55]Sock 9.Close socket [19:46:55]Sock 9.Thread stoped [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:09]recv_with_timeout no data received [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48: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]accept exits with 7 [19:48:40]New connection [19:48:40]New thread 3066633572 created [19:48:40]Thread 3066490212 joined [19:48:40]Waiting for new connection... [19:48:40] Sock 7.Parse request [19:48:40]Sock 7.Check first char [19:48:40]Sock 7.First char is OK [19:48:40]request: POST /json_proto HTTP/1.0 [19:48:40]Method: POST [19:48:40]URL: /json_proto [19:48:40]Method is POST - this is cgi request [19:48:40]url: /json_proto [19:48:40]query_string will be loaded in cgi processing [19:48:40]execute_cgi json_proto POST (null) [19:48:40]execute_cgi path=json_proto method=POST [19:48:40]POST find Content-Length [19:48:40]Host: 172.17.42.132:8080 [19:48:40]Content-Length: 646 [19:48:40]Content-Type: application/json [19:48:40] [19:48:40]POST finish read [19:48:40]Found Content-Length = 646 [19:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47802", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:40]execute_script... [19:48: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)47802", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:40]POST & json_proto [19:48:40]process_json_proto [19:48:40]json parsed OK: [19:48:40]protocol is kg_v1.0 [19:48:40]action value=close_receipt [19:48:40]process_action close_receipt [19:48:40]cmd_close_receipt [19:48:40]MH_GetDate [19:48:40]Write to MH i2c: F0 00 00 7A 2E 97 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: F0 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: F0 09 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: F0 09 00 7A 2E 00 9F A4 1A 67 4C DF 56 66 4B [19:48:40]GetLastDocTimeStamp 1729799219 [19:48:40]current date 1729799327 [19:48:40]FM_GetShiftState [19:48:40]SAM_PROTO_GetShiftState [19:48:40]wFMCommunicate request_size=4 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 13 01 00 [19:48:40]Write to MH i2c: E2 08 00 7B 2E 80 13 01 00 00 00 00 00 26 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 0E 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 0E 00 7B 2E 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 07 [19:48:40]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:48:40]wFMCommunicate OK [19:48:40]SAM_PROTO_GetShiftState done [19:48:40]FM_GetShiftState done [19:48:40]opened in 1729728964 [19:48:40]opened+sec_in_day 1729815364 [19:48:40]quantity*price = 13000 [19:48:40]sum+1 = 13001 [19:48:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 110 24.10.2024 19:48 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63496 ФПД: 229447288014996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194847&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63496&fm=229447288014996&tin=02508201610067®Number=0000000000091619&sum=13000 0 [19:48:41]StoreToDocumentArchive [19:48:41]shift 547 fd 63496 [19:48:41]save to /storage/0547/doc_00063496 [19:48:41]save last doc name /storage/0547/doc_00063496 to /storage/kkm_last_doc_name [19:48:41]save OK [19:48:41]Clear old archive folders... [19:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:48:41]tlvbuf is B6E8C8C0 [19:48:41]SAM_PROTO_ClearQueue [19:48:41]wFMCommunicate request_size=4 [19:48:41]MH_SAM_APDU [19:48:41]CAPDU: 80 09 00 00 [19:48:41]Write to MH i2c: E2 08 00 88 2E 80 09 00 00 00 00 00 00 28 [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:41]Read from MH i2c: E2 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 03 00 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 03 00 88 2E 00 90 00 2A [19:48:41]RAPDU: 90 00 [19:48:41]wFMCommunicate OK [19:48:41]SAM_PROTO_ClearQueue done [19:48:41]KKMCreateOFDPacket [19:48:41]OFDProtocolAddRootSTLVToBuf [19:48:41]FM_MakeSignedData [19:48:41]FM_MakeSignedData [19:48:41]SAM_PROTO_SignData [19:48:41]wFMCommunicate request_size=4 [19:48:41]MH_SAM_APDU [19:48:41]CAPDU: 80 0D 01 02 [19:48:41]Write to MH i2c: E2 08 00 89 2E 80 0D 01 02 00 00 00 00 30 [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:41]Read from MH i2c: E2 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 03 00 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 03 00 89 2E 00 90 00 2B [19:48:41]RAPDU: 90 00 [19:48:41]wFMCommunicate OK [19:48:41]wFMCommunicate request_size=255 [19:48:41]MH_SAM_APDU [19:48:41]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9F A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [19:48:41]Write to MH i2c: E2 02 01 8A 2E 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9F A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 26 [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:41]Read from MH i2c: E2 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 03 00 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 03 00 8A 2E 00 90 00 2C [19:48:41]RAPDU: 90 00 [19:48:41]wFMCommunicate OK [19:48:41]wFMCommunicate request_size=31 [19:48:41]MH_SAM_APDU [19:48:41]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 08 F8 00 00 35 04 06 00 D0 AE 5C 18 C8 94 [19:48:41]Write to MH i2c: E2 22 00 8B 2E 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 08 F8 00 00 35 04 06 00 D0 AE 5C 18 C8 94 00 00 B2 [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:41]Read from MH i2c: E2 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 03 00 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 03 00 8B 2E 00 90 00 2D [19:48:41]RAPDU: 90 00 [19:48:41]wFMCommunicate OK [19:48:41]wFMCommunicate request_size=4 [19:48:41]MH_SAM_APDU [19:48:41]CAPDU: 80 0D 03 02 [19:48:41]Write to MH i2c: E2 08 00 8C 2E 80 0D 03 02 00 00 00 00 35 [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:41]Read from MH i2c: E2 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 0B 00 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 0B 00 8C 2E 00 27 B8 5B 9E 2B BC 1D E6 90 00 F8 [19:48:41]RAPDU: 27 B8 5B 9E 2B BC 1D E6 90 00 [19:48:41]wFMCommunicate OK [19:48:41]SAM_PROTO_SignData done [19:48:41]FM_MakeSignedData done [19:48:41]CreateOFDProtocolMessage [19:48:41]wFMCommunicate request_size=4 [19:48:41]MH_SAM_APDU [19:48:41]CAPDU: 80 11 00 00 [19:48:41]Write to MH i2c: E2 08 00 8D 2E 80 11 00 00 00 00 00 00 35 [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:41]Read from MH i2c: E2 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 17 00 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: E2 17 00 8D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8E [19:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:48:41]wFMCommunicate OK [19:48:41]CreateOFDProtocolMessage done [19:48:41]OFDSenderStorePacket 63496 [19:48:41]StoreOFDPacket docnum=63496 [19:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 35 3F 1C 01 D8 5B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9F A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 08 F8 00 00 35 04 06 00 D0 AE 5C 18 C8 94 27 B8 5B 9E 2B BC 1D E6 [19:48:41]CheckFolder [19:48:41]dirname=/storage/ofd_packets [19:48:41]CheckFolder done [19:48:41]ProducePacketName [19:48:41]name=ofd_packets/00063496 [19:48:41]NVStorageSaveData ofd_packets/00063496 [19:48:41]File name is /storage/ofd_packets/00063496 [19:48:41]Write 322 bytes [19:48:41]NVStorageSaveData done [19:48:41]OFDSenderStorePacket done [19:48:41]KKMCreateOFDPacket done [19:48:41]NVStorageSaveData kkm_last_timestamp [19:48:41]File name is /storage/kkm_last_timestamp [19:48:41]Write 4 bytes [19:48:41]NVStorageSaveData done [19:48:41]ExternCall_PrintAddStr [19:48:41]wPrintStart [19:48:41]Write to MH i2c: 01 00 00 8E 2E BC [19:48:41]Write i2c OK [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: 01 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: 01 07 00 [19:48:41]MH_I2C_Read... [19:48:41]Read from MH i2c: 01 07 00 8E 2E 00 00 00 00 00 FF 0F D1 [19:48:41]RasterBufferAndPrint [19:48:41]line Счет N : (3)47802 [19:48:41]line ИНН: 02508201610067 [19:48:41]line Контрольно-Кассовый Чек [19:48:41]line ПРОДАЖА [19:48:41]line Товар: 47011656 [19:48:41]line Водка Пшеничная 0,1л [19:48:41]line 2.000 * 65.00 [19:48:41]line = 130.00 [19:48:41]line НДС 12% НСП 1% [19:48:41]line > о реализуемом товаре [19:48:41]line ИТОГО: 130.00 [19:48:41]line НСП 1% : 1.15 [19:48:41]line НДС 12% : 13.80 [19:48:41]line Наличными: 130.00 [19:48:41]line Безнал.: 0.00 [19:48:41]line Место: АЗС № 86 "Партнер Нефть" [19:48:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:48:41]line СНО: Общий режим [19:48:41]line Чек 110 24.10.2024 19:48 [19:48:41]line Смена: 547 ФФД: 1.0 [19:48:41]line ЗНМ: 0300000154 [19:48:41]line РНМ: 0000000000091619 [19:48:41]line Версия ККМ: 001 [19:48:41]line ФМ: 0000000000874676 [19:48:41]line ФД: 63496 [19:48:41]line ФПД: 229447288014996 [19:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194847&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63496&fm=229447288014996&tin=02508201610067®Number=0000000000091619&sum=13000 [19:48:41]line 0 [19:48:41]written 0, free lines is 4095 [19:48:41]OFD Sender: Processing packet 63496 [packets to send 232, broken 231] [19:48:41]ProducePacketName [19:48:41]name=ofd_packets/00063496 [19:48:41]OFD Sender: To server: pG, [19:48:41]CommunicateWithHost lk.salyk.kg:30040 [19:48:41]ConnectInit lk.salyk.kg [19:48:42]Connected sock=10 [19:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 35 3F 1C 01 D8 5B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9F A4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 08 F8 00 00 35 04 06 00 D0 AE 5C 18 C8 94 27 B8 5B 9E 2B BC 1D E6 [19:48:42]Write to MH i2c: 01 00 00 B6 2E E4 [19:48:42]Write i2c OK [19:48:42]MH_I2C_Read... [19:48:42]Read from MH i2c: 01 [19:48:42]MH_I2C_Read... [19:48:42]Read from MH i2c: 01 07 00 [19:48:42]MH_I2C_Read... [19:48:42]Read from MH i2c: 01 07 00 B6 2E 00 00 00 00 00 0C 0D 04 [19:48:42]RasterBufferAndPrint [19:48:42]line [19:48:42]line [19:48:42]line [19:48:42]line [19:48:42]line [19:48:42]written 0, free lines is 3346 [19:48:42]MH_Cut [19:48:42]Write to MH i2c: D1 01 00 BD 2E 01 BD [19:48:42]Write i2c OK [19:48:42]MH_I2C_Read... [19:48:42]Read from MH i2c: D1 [19:48:42]MH_I2C_Read... [19:48:42]Read from MH i2c: D1 01 00 [19:48:42]MH_I2C_Read... [19:48:42]Read from MH i2c: D1 01 00 BD 2E 00 BC [19:48:42]Write to MH i2c: 01 00 00 BE 2E EC [19:48:42]Write i2c OK [19:48:42]MH_I2C_Read... [19:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 15 37 47 00 F6 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 08 F8 00 00 F4 03 04 00 92 4E 1A 67 B6 04 01 00 00 86 36 88 33 7F 90 17 DB [19:48:42]CommunicateWithHost err = 0 [19:48:42]CheckOFDResponse [19:48:42]1017 (14) - 77093643461234 [19:48:42]1041 (16) - 0000000000874676 [19:48:42]1040 (4) - 63496 [19:48:42]1012 (4) - 24.10.2024 13:41 [19:48:42]1206 (1) - 0 [19:48:42]OFD Sender: Remove packet 63496 [19:48:42]ProducePacketName [19:48:42]name=ofd_packets/00063496 [19:48:42]NVStorageDeleteData [19:48:42]*** Cut start [19:48:42]*** Partial cut [19:48:42]*** CUTSNS_PIN = 1 [19:48:43]*** CUTSNS_PIN = 0 [19:48:43]OFD Sender: No OFD packet to send [19:48:43]*** Brake cut motor [19:48:43]Read from MH i2c: 01 [19:48:43]MH_I2C_Read... [19:48:43]*** Stop cut motor [19:48:43]*** Cut end [19:48:43]Read from MH i2c: 01 07 00 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: 01 07 00 BE 2E 00 00 00 00 00 FF 0F 01 [19:48:43]process_action close_receipt done [19:48:43]requested_data is exist [19:48:43]produce_requested_data [19:48:43]requested_item fm.sn is exist - process it [19:48:43]wFMCommunicate request_size=4 [19:48:43]MH_SAM_APDU [19:48:43]CAPDU: 80 11 00 00 [19:48:43]Write to MH i2c: E2 08 00 BF 2E 80 11 00 00 00 00 00 00 67 [19:48:43]Write i2c OK [19:48:43]MH_I2C_Read... [19:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:43]Read from MH i2c: E2 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 17 00 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 17 00 BF 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C0 [19:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:48:43]wFMCommunicate OK [19:48:43]requested_item fd.num is exist - process it [19:48:43]SAM_PROTO_GetFieldsCounters [19:48:43]wFMCommunicate request_size=4 [19:48:43]MH_SAM_APDU [19:48:43]CAPDU: 80 13 00 00 [19:48:43]Write to MH i2c: E2 08 00 C0 2E 80 13 00 00 00 00 00 00 6A [19:48:43]Write i2c OK [19:48:43]MH_I2C_Read... [19:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:43]Read from MH i2c: E2 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 62 00 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 62 00 C0 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 08 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [19:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 08 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:43]wFMCommunicate OK [19:48:43]SAM_PROTO_GetFieldsCounters done [19:48:43]requested_item shift.num is exist - process it [19:48:43]requested_item shift.opened is exist - process it [19:48:43]req_shift_opened [19:48:43]FM_GetShiftState [19:48:43]SAM_PROTO_GetShiftState [19:48:43]wFMCommunicate request_size=4 [19:48:43]MH_SAM_APDU [19:48:43]CAPDU: 80 13 01 00 [19:48:43]Write to MH i2c: E2 08 00 C1 2E 80 13 01 00 00 00 00 00 6C [19:48:43]Write i2c OK [19:48:43]MH_I2C_Read... [19:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:43]Read from MH i2c: E2 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 0E 00 [19:48:43]MH_I2C_Read... [19:48:43]Read from MH i2c: E2 0E 00 C1 2E 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 4D [19:48:43]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:48:43]wFMCommunicate OK [19:48:43]SAM_PROTO_GetShiftState done [19:48:43]FM_GetShiftState done [19:48:43]req_shift_opened done [19:48:43]requested_item shift.open_date is exist - process it [19:48:43]req_shift_open_date [19:48:43]req_shift_open_date done [19:48:43]produce_requested_data done [19:48:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63496,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:48:43]process_action_free close_receipt [19:48:43]json_value_free [19:48:43]json_value_free done [19:48:43]process_json_proto returns [19:48:43]Send response to host [19:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63496,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:48:43]free response buf [19:48:43]execute_script done [19:48:43]execute_script returns [19:48:43]free content buf [19:48:43]Sock 7.Close socket [19:48:43]Sock 7.Thread stoped [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:50:59]accept exits with 9 [19:50:59]New connection [19:50:59]New thread 3066490212 created [19:50:59]Thread 3066633572 joined [19:50:59]Waiting for new connection... [19:50:59] Sock 9.Parse request [19:50:59]Sock 9.Check first char [19:50:59]Sock 9.First char is OK [19:50:59]request: POST /json_proto HTTP/1.0 [19:50:59]Method: POST [19:50:59]URL: /json_proto [19:50:59]Method is POST - this is cgi request [19:50:59]url: /json_proto [19:50:59]query_string will be loaded in cgi processing [19:50:59]execute_cgi json_proto POST (null) [19:50:59]execute_cgi path=json_proto method=POST [19:50:59]POST find Content-Length [19:50:59]Host: 172.17.42.132:8080 [19:50:59]Content-Length: 818 [19:50:59]Content-Type: application/json [19:50:59] [19:50:59]POST finish read [19:50:59]Found Content-Length = 818 [19:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47803", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 555.04, "quantity" : 1.000, "sum" : 555.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 555.04 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:59]execute_script... [19:50:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47803", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 555.04, "quantity" : 1.000, "sum" : 555.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 555.04 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:59]POST & json_proto [19:50:59]process_json_proto [19:50:59]json parsed OK: [19:50:59]protocol is kg_v1.0 [19:50:59]action value=close_receipt [19:50:59]process_action close_receipt [19:50:59]cmd_close_receipt [19:50:59]MH_GetDate [19:50:59]Write to MH i2c: F0 00 00 C2 2E DF [19:50:59]Write i2c OK [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: F0 [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: F0 09 00 [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: F0 09 00 C2 2E 00 2A A5 1A 67 4C DF 56 66 1F [19:50:59]GetLastDocTimeStamp 1729799327 [19:50:59]current date 1729799466 [19:50:59]FM_GetShiftState [19:50:59]SAM_PROTO_GetShiftState [19:50:59]wFMCommunicate request_size=4 [19:50:59]MH_SAM_APDU [19:50:59]CAPDU: 80 13 01 00 [19:50:59]Write to MH i2c: E2 08 00 C3 2E 80 13 01 00 00 00 00 00 6E [19:50:59]Write i2c OK [19:50:59]MH_I2C_Read... [19:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:59]Read from MH i2c: E2 [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: E2 0E 00 [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: E2 0E 00 C3 2E 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 4F [19:50:59]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:50:59]wFMCommunicate OK [19:50:59]SAM_PROTO_GetShiftState done [19:50:59]FM_GetShiftState done [19:50:59]opened in 1729728964 [19:50:59]opened+sec_in_day 1729815364 [19:50:59]quantity*price = 55504 [19:50:59]sum+1 = 55505 [19:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 555.04 НСП 1% : 4.91 НДС 12% : 58.94 Наличными: 0.00 Безнал.: 555.04 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 111 24.10.2024 19:51 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63497 ФПД: 248828795595720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195106&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63497&fm=248828795595720&tin=02508201610067®Number=0000000000091619&sum=55504 0 [19:50:59]StoreToDocumentArchive [19:50:59]shift 547 fd 63497 [19:50:59]save to /storage/0547/doc_00063497 [19:50:59]save last doc name /storage/0547/doc_00063497 to /storage/kkm_last_doc_name [19:50:59]save OK [19:50:59]Clear old archive folders... [19:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:50:59]tlvbuf is 00B44740 [19:50:59]SAM_PROTO_ClearQueue [19:50:59]wFMCommunicate request_size=4 [19:50:59]MH_SAM_APDU [19:50:59]CAPDU: 80 09 00 00 [19:50:59]Write to MH i2c: E2 08 00 D0 2E 80 09 00 00 00 00 00 00 70 [19:50:59]Write i2c OK [19:50:59]MH_I2C_Read... [19:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:00]Read from MH i2c: E2 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 03 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 03 00 D0 2E 00 90 00 72 [19:51:00]RAPDU: 90 00 [19:51:00]wFMCommunicate OK [19:51:00]SAM_PROTO_ClearQueue done [19:51:00]KKMCreateOFDPacket [19:51:00]OFDProtocolAddRootSTLVToBuf [19:51:00]FM_MakeSignedData [19:51:00]FM_MakeSignedData [19:51:00]SAM_PROTO_SignData [19:51:00]wFMCommunicate request_size=4 [19:51:00]MH_SAM_APDU [19:51:00]CAPDU: 80 0D 01 02 [19:51:00]Write to MH i2c: E2 08 00 D1 2E 80 0D 01 02 00 00 00 00 78 [19:51:00]Write i2c OK [19:51:00]MH_I2C_Read... [19:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:00]Read from MH i2c: E2 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 03 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 03 00 D1 2E 00 90 00 73 [19:51:00]RAPDU: 90 00 [19:51:00]wFMCommunicate OK [19:51:00]wFMCommunicate request_size=255 [19:51:00]MH_SAM_APDU [19:51:00]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 E8 03 00 00 00 00 00 37 04 06 00 D0 D8 00 00 00 00 13 04 06 00 D0 D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2A A5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [19:51:00]Write to MH i2c: E2 02 01 D2 2E 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 E8 03 00 00 00 00 00 37 04 06 00 D0 D8 00 00 00 00 13 04 06 00 D0 D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2A A5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 F4 [19:51:00]Write i2c OK [19:51:00]MH_I2C_Read... [19:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:00]Read from MH i2c: E2 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 03 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 03 00 D2 2E 00 90 00 74 [19:51:00]RAPDU: 90 00 [19:51:00]wFMCommunicate OK [19:51:00]wFMCommunicate request_size=41 [19:51:00]MH_SAM_APDU [19:51:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 09 F8 00 00 35 04 06 00 E2 4E F7 F8 AB C8 [19:51:00]Write to MH i2c: E2 2C 00 D3 2E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 09 F8 00 00 35 04 06 00 E2 4E F7 F8 AB C8 00 00 E3 [19:51:00]Write i2c OK [19:51:00]MH_I2C_Read... [19:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:00]Read from MH i2c: E2 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 03 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 03 00 D3 2E 00 90 00 75 [19:51:00]RAPDU: 90 00 [19:51:00]wFMCommunicate OK [19:51:00]wFMCommunicate request_size=4 [19:51:00]MH_SAM_APDU [19:51:00]CAPDU: 80 0D 03 02 [19:51:00]Write to MH i2c: E2 08 00 D4 2E 80 0D 03 02 00 00 00 00 7D [19:51:00]Write i2c OK [19:51:00]MH_I2C_Read... [19:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:00]Read from MH i2c: E2 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 0B 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 0B 00 D4 2E 00 F4 E3 BC FD 34 A3 BE D9 90 00 7C [19:51:00]RAPDU: F4 E3 BC FD 34 A3 BE D9 90 00 [19:51:00]wFMCommunicate OK [19:51:00]SAM_PROTO_SignData done [19:51:00]FM_MakeSignedData done [19:51:00]CreateOFDProtocolMessage [19:51:00]wFMCommunicate request_size=4 [19:51:00]MH_SAM_APDU [19:51:00]CAPDU: 80 11 00 00 [19:51:00]Write to MH i2c: E2 08 00 D5 2E 80 11 00 00 00 00 00 00 7D [19:51:00]Write i2c OK [19:51:00]MH_I2C_Read... [19:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:00]Read from MH i2c: E2 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 17 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 17 00 D5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D6 [19:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:51:00]wFMCommunicate OK [19:51:00]CreateOFDProtocolMessage done [19:51:00]OFDSenderStorePacket 63497 [19:51:00]StoreOFDPacket docnum=63497 [19:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 3B 57 26 01 A3 9A 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 E8 03 00 00 00 00 00 37 04 06 00 D0 D8 00 00 00 00 13 04 06 00 D0 D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2A A5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 09 F8 00 00 35 04 06 00 E2 4E F7 F8 AB C8 F4 E3 BC FD 34 A3 BE D9 [19:51:00]CheckFolder [19:51:00]dirname=/storage/ofd_packets [19:51:00]CheckFolder done [19:51:00]ProducePacketName [19:51:00]name=ofd_packets/00063497 [19:51:00]NVStorageSaveData ofd_packets/00063497 [19:51:00]File name is /storage/ofd_packets/00063497 [19:51:00]Write 332 bytes [19:51:00]NVStorageSaveData done [19:51:00]OFDSenderStorePacket done [19:51:00]KKMCreateOFDPacket done [19:51:00]NVStorageSaveData kkm_last_timestamp [19:51:00]File name is /storage/kkm_last_timestamp [19:51:00]Write 4 bytes [19:51:00]NVStorageSaveData done [19:51:00]ExternCall_PrintAddStr [19:51:00]wPrintStart [19:51:00]Write to MH i2c: 01 00 00 D6 2E 04 [19:51:00]Write i2c OK [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: 01 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: 01 07 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: 01 07 00 D6 2E 00 00 00 00 00 FF 0F 19 [19:51:00]RasterBufferAndPrint [19:51:00]line Счет N : (3)47803 [19:51:00]line ИНН: 02508201610067 [19:51:00]line Контрольно-Кассовый Чек [19:51:00]line ПРОДАЖА [19:51:00]line Товар: 4700003150936 [19:51:00]line Новая Водка Organic 40% 0,48л [19:51:00]line 1.000 * 555.04 [19:51:00]line = 555.04 [19:51:00]line НДС 12% НСП 1% [19:51:00]line > о реализуемом товаре [19:51:00]line ИТОГО: 555.04 [19:51:00]line НСП 1% : 4.91 [19:51:00]line НДС 12% : 58.94 [19:51:00]line Наличными: 0.00 [19:51:00]line Безнал.: 555.04 [19:51:00]line Место: АЗС № 86 "Партнер Нефть" [19:51:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:51:00]line СНО: Общий режим [19:51:00]line Чек 111 24.10.2024 19:51 [19:51:00]line Смена: 547 ФФД: 1.0 [19:51:00]line ЗНМ: 0300000154 [19:51:00]line РНМ: 0000000000091619 [19:51:00]line Версия ККМ: 001 [19:51:00]line Платежная система: Бакай Банк [19:51:00]line ФМ: 0000000000874676 [19:51:00]line ФД: 63497 [19:51:00]line ФПД: 248828795595720 [19:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195106&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63497&fm=248828795595720&tin=02508201610067®Number=0000000000091619&sum=55504 [19:51:00]line 0 [19:51:00]written 0, free lines is 4095 [19:51:00]OFD Sender: Processing packet 63497 [packets to send 232, broken 231] [19:51:00]ProducePacketName [19:51:00]name=ofd_packets/00063497 [19:51:00]OFD Sender: To server: pG, [19:51:00]CommunicateWithHost lk.salyk.kg:30040 [19:51:00]ConnectInit lk.salyk.kg [19:51:01]Connected sock=10 [19:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 3B 57 26 01 A3 9A 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 E8 03 00 00 00 00 00 37 04 06 00 D0 D8 00 00 00 00 13 04 06 00 D0 D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2A A5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 09 F8 00 00 35 04 06 00 E2 4E F7 F8 AB C8 F4 E3 BC FD 34 A3 BE D9 [19:51:01]Write to MH i2c: 01 00 00 01 2F 30 [19:51:01]Write i2c OK [19:51:01]MH_I2C_Read... [19:51:01]Read from MH i2c: 01 [19:51:01]MH_I2C_Read... [19:51:01]Read from MH i2c: 01 07 00 [19:51:01]MH_I2C_Read... [19:51:01]Read from MH i2c: 01 07 00 01 2F 00 00 00 00 00 E6 0C 29 [19:51:01]RasterBufferAndPrint [19:51:01]line [19:51:01]line [19:51:01]line [19:51:01]line [19:51:01]line [19:51:01]written 0, free lines is 3308 [19:51:01]MH_Cut [19:51:01]Write to MH i2c: D1 01 00 08 2F 01 09 [19:51:01]Write i2c OK [19:51:01]MH_I2C_Read... [19:51:01]Read from MH i2c: D1 [19:51:01]MH_I2C_Read... [19:51:01]Read from MH i2c: D1 01 00 [19:51:01]MH_I2C_Read... [19:51:01]Read from MH i2c: D1 01 00 08 2F 00 08 [19:51:01]Write to MH i2c: 01 00 00 09 2F 38 [19:51:01]Write i2c OK [19:51:01]MH_I2C_Read... [19:51:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 1E 7D 47 00 0C A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 09 F8 00 00 F4 03 04 00 1D 4F 1A 67 B6 04 01 00 00 A7 B3 0B 88 A6 6C 6A E2 [19:51:01]CommunicateWithHost err = 0 [19:51:01]CheckOFDResponse [19:51:01]1017 (14) - 77093643461234 [19:51:01]1041 (16) - 0000000000874676 [19:51:01]1040 (4) - 63497 [19:51:01]1012 (4) - 24.10.2024 13:43 [19:51:01]1206 (1) - 0 [19:51:01]OFD Sender: Remove packet 63497 [19:51:01]ProducePacketName [19:51:01]name=ofd_packets/00063497 [19:51:01]NVStorageDeleteData [19:51:01]*** Cut start [19:51:01]*** Partial cut [19:51:01]*** CUTSNS_PIN = 1 [19:51:01]OFD Sender: No OFD packet to send [19:51:02]*** CUTSNS_PIN = 0 [19:51:02]*** Brake cut motor [19:51:02]Read from MH i2c: 01 [19:51:02]MH_I2C_Read... [19:51:02]*** Stop cut motor [19:51:02]*** Cut end [19:51:02]Read from MH i2c: 01 07 00 [19:51:02]MH_I2C_Read... [19:51:02]Read from MH i2c: 01 07 00 09 2F 00 00 00 00 00 FF 0F 4D [19:51:02]process_action close_receipt done [19:51:02]requested_data is exist [19:51:02]produce_requested_data [19:51:02]requested_item fm.sn is exist - process it [19:51:02]wFMCommunicate request_size=4 [19:51:02]MH_SAM_APDU [19:51:02]CAPDU: 80 11 00 00 [19:51:02]Write to MH i2c: E2 08 00 0A 2F 80 11 00 00 00 00 00 00 B3 [19:51:02]Write i2c OK [19:51:02]MH_I2C_Read... [19:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:02]Read from MH i2c: E2 [19:51:02]MH_I2C_Read... [19:51:02]Read from MH i2c: E2 17 00 [19:51:02]MH_I2C_Read... [19:51:02]Read from MH i2c: E2 17 00 0A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0C [19:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:51:02]wFMCommunicate OK [19:51:02]requested_item fd.num is exist - process it [19:51:02]SAM_PROTO_GetFieldsCounters [19:51:02]wFMCommunicate request_size=4 [19:51:02]MH_SAM_APDU [19:51:02]CAPDU: 80 13 00 00 [19:51:02]Write to MH i2c: E2 08 00 0B 2F 80 13 00 00 00 00 00 00 B6 [19:51:02]Write i2c OK [19:51:02]MH_I2C_Read... [19:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:02]Read from MH i2c: E2 [19:51:02]MH_I2C_Read... [19:51:02]Read from MH i2c: E2 62 00 [19:51:02]MH_I2C_Read... [19:51:02]Read from MH i2c: E2 62 00 0B 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 09 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [19:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 09 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:02]wFMCommunicate OK [19:51:02]SAM_PROTO_GetFieldsCounters done [19:51:02]requested_item shift.num is exist - process it [19:51:02]requested_item shift.opened is exist - process it [19:51:02]req_shift_opened [19:51:02]FM_GetShiftState [19:51:02]SAM_PROTO_GetShiftState [19:51:02]wFMCommunicate request_size=4 [19:51:02]MH_SAM_APDU [19:51:02]CAPDU: 80 13 01 00 [19:51:02]Write to MH i2c: E2 08 00 0C 2F 80 13 01 00 00 00 00 00 B8 [19:51:02]Write i2c OK [19:51:02]MH_I2C_Read... [19:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:02]Read from MH i2c: E2 [19:51:02]MH_I2C_Read... [19:51:02]Read from MH i2c: E2 0E 00 [19:51:02]MH_I2C_Read... [19:51:02]Read from MH i2c: E2 0E 00 0C 2F 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 99 [19:51:02]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:51:02]wFMCommunicate OK [19:51:02]SAM_PROTO_GetShiftState done [19:51:02]FM_GetShiftState done [19:51:02]req_shift_opened done [19:51:02]requested_item shift.open_date is exist - process it [19:51:02]req_shift_open_date [19:51:02]req_shift_open_date done [19:51:02]produce_requested_data done [19:51:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63497,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:51:02]process_action_free close_receipt [19:51:02]json_value_free [19:51:02]json_value_free done [19:51:02]process_json_proto returns [19:51:02]Send response to host [19:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63497,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:51:02]free response buf [19:51:02]execute_script done [19:51:02]execute_script returns [19:51:02]free content buf [19:51:02]Sock 9.Close socket [19:51:02]Sock 9.Thread stoped [19:51:06]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:51]accept exits with 7 [19:53:51]New connection [19:53:51]New thread 3066633572 created [19:53:51]Thread 3066490212 joined [19:53:51]Waiting for new connection... [19:53:51] Sock 7.Parse request [19:53:51]Sock 7.Check first char [19:53:51]Sock 7.First char is OK [19:53:51]request: POST /json_proto HTTP/1.0 [19:53:51]Method: POST [19:53:51]URL: /json_proto [19:53:51]Method is POST - this is cgi request [19:53:51]url: /json_proto [19:53:51]query_string will be loaded in cgi processing [19:53:51]execute_cgi json_proto POST (null) [19:53:51]execute_cgi path=json_proto method=POST [19:53:51]POST find Content-Length [19:53:51]Host: 172.17.42.132:8080 [19:53:51]Content-Length: 748 [19:53:51]Content-Type: application/json [19:53:51] [19:53:51]POST finish read [19:53:51]Found Content-Length = 748 [19:53:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47804", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 158.58, "quantity" : 2.000, "sum" : 317.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 317.16 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:51]execute_script... [19:53:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47804", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 158.58, "quantity" : 2.000, "sum" : 317.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 317.16 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:51]POST & json_proto [19:53:51]process_json_proto [19:53:51]json parsed OK: [19:53:51]protocol is kg_v1.0 [19:53:51]action value=close_receipt [19:53:51]process_action close_receipt [19:53:51]cmd_close_receipt [19:53:51]MH_GetDate [19:53:51]Write to MH i2c: F0 00 00 0D 2F 2B [19:53:51]Write i2c OK [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: F0 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: F0 09 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: F0 09 00 0D 2F 00 D6 A5 1A 67 4C DF 56 66 17 [19:53:51]GetLastDocTimeStamp 1729799466 [19:53:51]current date 1729799638 [19:53:51]FM_GetShiftState [19:53:51]SAM_PROTO_GetShiftState [19:53:51]wFMCommunicate request_size=4 [19:53:51]MH_SAM_APDU [19:53:51]CAPDU: 80 13 01 00 [19:53:51]Write to MH i2c: E2 08 00 0E 2F 80 13 01 00 00 00 00 00 BA [19:53:51]Write i2c OK [19:53:51]MH_I2C_Read... [19:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:51]Read from MH i2c: E2 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 0E 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 0E 00 0E 2F 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 9B [19:53:51]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:53:51]wFMCommunicate OK [19:53:51]SAM_PROTO_GetShiftState done [19:53:51]FM_GetShiftState done [19:53:51]opened in 1729728964 [19:53:51]opened+sec_in_day 1729815364 [19:53:51]quantity*price = 31716 [19:53:51]sum+1 = 31717 [19:53:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 317.16 НСП 1% : 2.81 НДС 12% : 33.68 Наличными: 0.00 Безнал.: 317.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 112 24.10.2024 19:53 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63498 ФПД: 205233156959704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195358&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63498&fm=205233156959704&tin=02508201610067®Number=0000000000091619&sum=31716 0 [19:53:52]StoreToDocumentArchive [19:53:52]shift 547 fd 63498 [19:53:52]save to /storage/0547/doc_00063498 [19:53:52]save last doc name /storage/0547/doc_00063498 to /storage/kkm_last_doc_name [19:53:52]save OK [19:53:52]Clear old archive folders... [19:53:52]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:53:52]tlvbuf is 00C03570 [19:53:52]SAM_PROTO_ClearQueue [19:53:52]wFMCommunicate request_size=4 [19:53:52]MH_SAM_APDU [19:53:52]CAPDU: 80 09 00 00 [19:53:52]Write to MH i2c: E2 08 00 1B 2F 80 09 00 00 00 00 00 00 BC [19:53:52]Write i2c OK [19:53:52]MH_I2C_Read... [19:53:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:52]Read from MH i2c: E2 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 03 00 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 03 00 1B 2F 00 90 00 BE [19:53:52]RAPDU: 90 00 [19:53:52]wFMCommunicate OK [19:53:52]SAM_PROTO_ClearQueue done [19:53:52]KKMCreateOFDPacket [19:53:52]OFDProtocolAddRootSTLVToBuf [19:53:52]FM_MakeSignedData [19:53:52]FM_MakeSignedData [19:53:52]SAM_PROTO_SignData [19:53:52]wFMCommunicate request_size=4 [19:53:52]MH_SAM_APDU [19:53:52]CAPDU: 80 0D 01 02 [19:53:52]Write to MH i2c: E2 08 00 1C 2F 80 0D 01 02 00 00 00 00 C4 [19:53:52]Write i2c OK [19:53:52]MH_I2C_Read... [19:53:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:52]Read from MH i2c: E2 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 03 00 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 03 00 1C 2F 00 90 00 BF [19:53:52]RAPDU: 90 00 [19:53:52]wFMCommunicate OK [19:53:52]wFMCommunicate request_size=255 [19:53:52]MH_SAM_APDU [19:53:52]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 E4 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D6 A5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [19:53:52]Write to MH i2c: E2 02 01 1D 2F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 E4 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D6 A5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 FF [19:53:52]Write i2c OK [19:53:52]MH_I2C_Read... [19:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:52]Read from MH i2c: E2 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 03 00 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 03 00 1D 2F 00 90 00 C0 [19:53:52]RAPDU: 90 00 [19:53:52]wFMCommunicate OK [19:53:52]wFMCommunicate request_size=33 [19:53:52]MH_SAM_APDU [19:53:52]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0A F8 00 00 35 04 06 00 BA A8 91 6A AD D8 [19:53:52]Write to MH i2c: E2 24 00 1E 2F 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0A F8 00 00 35 04 06 00 BA A8 91 6A AD D8 00 00 40 [19:53:52]Write i2c OK [19:53:52]MH_I2C_Read... [19:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:52]Read from MH i2c: E2 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 03 00 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 03 00 1E 2F 00 90 00 C1 [19:53:52]RAPDU: 90 00 [19:53:52]wFMCommunicate OK [19:53:52]wFMCommunicate request_size=4 [19:53:52]MH_SAM_APDU [19:53:52]CAPDU: 80 0D 03 02 [19:53:52]Write to MH i2c: E2 08 00 1F 2F 80 0D 03 02 00 00 00 00 C9 [19:53:52]Write i2c OK [19:53:52]MH_I2C_Read... [19:53:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:52]Read from MH i2c: E2 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 0B 00 [19:53:52]MH_I2C_Read... [19:53:52]Read from MH i2c: E2 0B 00 1F 2F 00 63 50 46 19 AD 00 AE EF 90 00 26 [19:53:52]RAPDU: 63 50 46 19 AD 00 AE EF 90 00 [19:53:52]wFMCommunicate OK [19:53:52]SAM_PROTO_SignData done [19:53:52]FM_MakeSignedData done [19:53:52]CreateOFDProtocolMessage [19:53:52]wFMCommunicate request_size=4 [19:53:52]MH_SAM_APDU [19:53:52]CAPDU: 80 11 00 00 [19:53:52]Write to MH i2c: E2 08 00 20 2F 80 11 00 00 00 00 00 00 C9 [19:53:52]Write i2c OK [19:53:52]MH_I2C_Read... [19:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:53]Read from MH i2c: E2 [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: E2 17 00 [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: E2 17 00 20 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 22 [19:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:53:53]wFMCommunicate OK [19:53:53]CreateOFDProtocolMessage done [19:53:53]OFDSenderStorePacket 63498 [19:53:53]StoreOFDPacket docnum=63498 [19:53:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 E0 5A 1E 01 85 EC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 E4 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D6 A5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0A F8 00 00 35 04 06 00 BA A8 91 6A AD D8 63 50 46 19 AD 00 AE EF [19:53:53]CheckFolder [19:53:53]dirname=/storage/ofd_packets [19:53:53]CheckFolder done [19:53:53]ProducePacketName [19:53:53]name=ofd_packets/00063498 [19:53:53]NVStorageSaveData ofd_packets/00063498 [19:53:53]File name is /storage/ofd_packets/00063498 [19:53:53]Write 324 bytes [19:53:53]NVStorageSaveData done [19:53:53]OFDSenderStorePacket done [19:53:53]KKMCreateOFDPacket done [19:53:53]NVStorageSaveData kkm_last_timestamp [19:53:53]File name is /storage/kkm_last_timestamp [19:53:53]Write 4 bytes [19:53:53]NVStorageSaveData done [19:53:53]ExternCall_PrintAddStr [19:53:53]wPrintStart [19:53:53]Write to MH i2c: 01 00 00 21 2F 50 [19:53:53]Write i2c OK [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: 01 [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: 01 07 00 [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: 01 07 00 21 2F 00 00 00 00 00 FF 0F 65 [19:53:53]RasterBufferAndPrint [19:53:53]line Счет N : (3)47804 [19:53:53]line ИНН: 02508201610067 [19:53:53]line Контрольно-Кассовый Чек [19:53:53]line ПРОДАЖА [19:53:53]line Товар: 48741958 [19:53:53]line Сигареты Parliament Aqua Blue [19:53:53]line 2.000 * 158.58 [19:53:53]line = 317.16 [19:53:53]line НДС 12% НСП 1% [19:53:53]line > о реализуемом товаре [19:53:53]line ИТОГО: 317.16 [19:53:53]line НСП 1% : 2.81 [19:53:53]line НДС 12% : 33.68 [19:53:53]line Наличными: 0.00 [19:53:53]line Безнал.: 317.16 [19:53:53]line Место: АЗС № 86 "Партнер Нефть" [19:53:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:53:53]line СНО: Общий режим [19:53:53]line Чек 112 24.10.2024 19:53 [19:53:53]line Смена: 547 ФФД: 1.0 [19:53:53]line ЗНМ: 0300000154 [19:53:53]line РНМ: 0000000000091619 [19:53:53]line Версия ККМ: 001 [19:53:53]line Платежная система: Mbank [19:53:53]line ФМ: 0000000000874676 [19:53:53]line ФД: 63498 [19:53:53]line ФПД: 205233156959704 [19:53:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195358&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63498&fm=205233156959704&tin=02508201610067®Number=0000000000091619&sum=31716 [19:53:53]OFD Sender: Processing packet 63498 [packets to send 232, broken 231] [19:53:53]ProducePacketName [19:53:53]name=ofd_packets/00063498 [19:53:53]OFD Sender: To server: pG, [19:53:53]CommunicateWithHost lk.salyk.kg:30040 [19:53:53]ConnectInit lk.salyk.kg [19:53:53]line 0 [19:53:53]written 0, free lines is 4095 [19:53:53]Connected sock=11 [19:53:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 E0 5A 1E 01 85 EC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 E4 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D6 A5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0A F8 00 00 35 04 06 00 BA A8 91 6A AD D8 63 50 46 19 AD 00 AE EF [19:53:53]Write to MH i2c: 01 00 00 4B 2F 7A [19:53:53]Write i2c OK [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: 01 [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: 01 07 00 [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: 01 07 00 4B 2F 00 00 00 00 00 F3 0C 80 [19:53:53]RasterBufferAndPrint [19:53:53]line [19:53:53]line [19:53:53]line [19:53:53]line [19:53:53]line [19:53:53]written 0, free lines is 3321 [19:53:53]MH_Cut [19:53:53]Write to MH i2c: D1 01 00 52 2F 01 53 [19:53:53]Write i2c OK [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: D1 [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: D1 01 00 [19:53:53]MH_I2C_Read... [19:53:53]Read from MH i2c: D1 01 00 52 2F 00 52 [19:53:53]Write to MH i2c: 01 00 00 53 2F 82 [19:53:53]Write i2c OK [19:53:53]MH_I2C_Read... [19:53:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 E7 B2 47 00 28 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0A F8 00 00 F4 03 04 00 CA 4F 1A 67 B6 04 01 00 00 E7 55 42 AF 3A 19 1A 5A [19:53:54]CommunicateWithHost err = 0 [19:53:54]CheckOFDResponse [19:53:54]1017 (14) - 77093643461234 [19:53:54]1041 (16) - 0000000000874676 [19:53:54]1040 (4) - 63498 [19:53:54]1012 (4) - 24.10.2024 13:46 [19:53:54]1206 (1) - 0 [19:53:54]OFD Sender: Remove packet 63498 [19:53:54]ProducePacketName [19:53:54]name=ofd_packets/00063498 [19:53:54]NVStorageDeleteData [19:53:54]*** Cut start [19:53:54]*** Partial cut [19:53:54]*** CUTSNS_PIN = 1 [19:53:54]*** CUTSNS_PIN = 0 [19:53:54]OFD Sender: No OFD packet to send [19:53:54]*** Brake cut motor [19:53:55]Read from MH i2c: 01 [19:53:55]MH_I2C_Read... [19:53:55]*** Stop cut motor [19:53:55]*** Cut end [19:53:55]Read from MH i2c: 01 07 00 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: 01 07 00 53 2F 00 00 00 00 00 FF 0F 97 [19:53:55]process_action close_receipt done [19:53:55]requested_data is exist [19:53:55]produce_requested_data [19:53:55]requested_item fm.sn is exist - process it [19:53:55]wFMCommunicate request_size=4 [19:53:55]MH_SAM_APDU [19:53:55]CAPDU: 80 11 00 00 [19:53:55]Write to MH i2c: E2 08 00 54 2F 80 11 00 00 00 00 00 00 FD [19:53:55]Write i2c OK [19:53:55]MH_I2C_Read... [19:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:55]Read from MH i2c: E2 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: E2 17 00 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: E2 17 00 54 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 56 [19:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:53:55]wFMCommunicate OK [19:53:55]requested_item fd.num is exist - process it [19:53:55]SAM_PROTO_GetFieldsCounters [19:53:55]wFMCommunicate request_size=4 [19:53:55]MH_SAM_APDU [19:53:55]CAPDU: 80 13 00 00 [19:53:55]Write to MH i2c: E2 08 00 55 2F 80 13 00 00 00 00 00 00 00 [19:53:55]Write i2c OK [19:53:55]MH_I2C_Read... [19:53:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:55]Read from MH i2c: E2 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: E2 62 00 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: E2 62 00 55 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0A F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [19:53: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0A F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:55]wFMCommunicate OK [19:53:55]SAM_PROTO_GetFieldsCounters done [19:53:55]requested_item shift.num is exist - process it [19:53:55]requested_item shift.opened is exist - process it [19:53:55]req_shift_opened [19:53:55]FM_GetShiftState [19:53:55]SAM_PROTO_GetShiftState [19:53:55]wFMCommunicate request_size=4 [19:53:55]MH_SAM_APDU [19:53:55]CAPDU: 80 13 01 00 [19:53:55]Write to MH i2c: E2 08 00 56 2F 80 13 01 00 00 00 00 00 02 [19:53:55]Write i2c OK [19:53:55]MH_I2C_Read... [19:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:55]Read from MH i2c: E2 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: E2 0E 00 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: E2 0E 00 56 2F 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 E3 [19:53:55]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:53:55]wFMCommunicate OK [19:53:55]SAM_PROTO_GetShiftState done [19:53:55]FM_GetShiftState done [19:53:55]req_shift_opened done [19:53:55]requested_item shift.open_date is exist - process it [19:53:55]req_shift_open_date [19:53:55]req_shift_open_date done [19:53:55]produce_requested_data done [19:53:55]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63498,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:53:55]process_action_free close_receipt [19:53:55]json_value_free [19:53:55]json_value_free done [19:53:55]process_json_proto returns [19:53:55]Send response to host [19:53:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63498,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:53:55]free response buf [19:53:55]execute_script done [19:53:55]execute_script returns [19:53:55]free content buf [19:53:55]Sock 7.Close socket [19:53:55]Sock 7.Thread stoped [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:08]accept exits with 9 [19:59:08]New connection [19:59:08]New thread 3066490212 created [19:59:08]Thread 3066633572 joined [19:59:08]Waiting for new connection... [19:59:08] Sock 9.Parse request [19:59:08]Sock 9.Check first char [19:59:08]Sock 9.First char is OK [19:59:08]request: POST /json_proto HTTP/1.0 [19:59:08]Method: POST [19:59:08]URL: /json_proto [19:59:08]Method is POST - this is cgi request [19:59:08]url: /json_proto [19:59:08]query_string will be loaded in cgi processing [19:59:08]execute_cgi json_proto POST (null) [19:59:08]execute_cgi path=json_proto method=POST [19:59:08]POST find Content-Length [19:59:08]Host: 172.17.42.132:8080 [19:59:08]Content-Length: 645 [19:59:08]Content-Type: application/json [19:59:08] [19:59:08]POST finish read [19:59:08]Found Content-Length = 645 [19:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47805", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 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" ] } } [19:59:08]execute_script... [19:59: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)47805", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 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" ] } } [19:59:08]POST & json_proto [19:59:08]process_json_proto [19:59:08]json parsed OK: [19:59:08]protocol is kg_v1.0 [19:59:08]action value=close_receipt [19:59:08]process_action close_receipt [19:59:08]cmd_close_receipt [19:59:08]MH_GetDate [19:59:08]Write to MH i2c: F0 00 00 57 2F 75 [19:59:08]Write i2c OK [19:59:08]MH_I2C_Read... [19:59:08]Read from MH i2c: F0 [19:59:08]MH_I2C_Read... [19:59:08]Read from MH i2c: F0 09 00 [19:59:08]MH_I2C_Read... [19:59:08]Read from MH i2c: F0 09 00 57 2F 00 13 A7 1A 67 4C DF 56 66 A0 [19:59:08]GetLastDocTimeStamp 1729799638 [19:59:08]current date 1729799955 [19:59:08]FM_GetShiftState [19:59:08]SAM_PROTO_GetShiftState [19:59:08]wFMCommunicate request_size=4 [19:59:08]MH_SAM_APDU [19:59:08]CAPDU: 80 13 01 00 [19:59:08]Write to MH i2c: E2 08 00 58 2F 80 13 01 00 00 00 00 00 04 [19:59:08]Write i2c OK [19:59:08]MH_I2C_Read... [19:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:08]Read from MH i2c: E2 [19:59:08]MH_I2C_Read... [19:59:08]Read from MH i2c: E2 0E 00 [19:59:08]MH_I2C_Read... [19:59:08]Read from MH i2c: E2 0E 00 58 2F 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 E5 [19:59:08]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:59:08]wFMCommunicate OK [19:59:08]SAM_PROTO_GetShiftState done [19:59:08]FM_GetShiftState done [19:59:08]opened in 1729728964 [19:59:08]opened+sec_in_day 1729815364 [19:59:08]quantity*price = 26000 [19:59:08]sum+1 = 26001 [19:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 113 24.10.2024 19:59 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63499 ФПД: 148170224545012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195915&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63499&fm=148170224545012&tin=02508201610067®Number=0000000000091619&sum=26000 0 [19:59:09]StoreToDocumentArchive [19:59:09]shift 547 fd 63499 [19:59:09]save to /storage/0547/doc_00063499 [19:59:09]save last doc name /storage/0547/doc_00063499 to /storage/kkm_last_doc_name [19:59:09]save OK [19:59:09]Clear old archive folders... [19:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:59:09]tlvbuf is B6F0ACE0 [19:59:09]SAM_PROTO_ClearQueue [19:59:09]wFMCommunicate request_size=4 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 09 00 00 [19:59:09]Write to MH i2c: E2 08 00 65 2F 80 09 00 00 00 00 00 00 06 [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 65 2F 00 90 00 08 [19:59:09]RAPDU: 90 00 [19:59:09]wFMCommunicate OK [19:59:09]SAM_PROTO_ClearQueue done [19:59:09]KKMCreateOFDPacket [19:59:09]OFDProtocolAddRootSTLVToBuf [19:59:09]FM_MakeSignedData [19:59:09]FM_MakeSignedData [19:59:09]SAM_PROTO_SignData [19:59:09]wFMCommunicate request_size=4 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 0D 01 02 [19:59:09]Write to MH i2c: E2 08 00 66 2F 80 0D 01 02 00 00 00 00 0E [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 66 2F 00 90 00 09 [19:59:09]RAPDU: 90 00 [19:59:09]wFMCommunicate OK [19:59:09]wFMCommunicate request_size=255 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 13 A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [19:59:09]Write to MH i2c: E2 02 01 67 2F 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 13 A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 A9 [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 67 2F 00 90 00 0A [19:59:09]RAPDU: 90 00 [19:59:09]wFMCommunicate OK [19:59:09]wFMCommunicate request_size=41 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0B F8 00 00 35 04 06 00 86 C2 91 99 AC F4 [19:59:09]Write to MH i2c: E2 2C 00 68 2F 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0B F8 00 00 35 04 06 00 86 C2 91 99 AC F4 00 00 FB [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 03 00 68 2F 00 90 00 0B [19:59:09]RAPDU: 90 00 [19:59:09]wFMCommunicate OK [19:59:09]wFMCommunicate request_size=4 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 0D 03 02 [19:59:09]Write to MH i2c: E2 08 00 69 2F 80 0D 03 02 00 00 00 00 13 [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 0B 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 0B 00 69 2F 00 5B 01 63 46 7A 19 2E BF 90 00 99 [19:59:09]RAPDU: 5B 01 63 46 7A 19 2E BF 90 00 [19:59:09]wFMCommunicate OK [19:59:09]SAM_PROTO_SignData done [19:59:09]FM_MakeSignedData done [19:59:09]CreateOFDProtocolMessage [19:59:09]wFMCommunicate request_size=4 [19:59:09]MH_SAM_APDU [19:59:09]CAPDU: 80 11 00 00 [19:59:09]Write to MH i2c: E2 08 00 6A 2F 80 11 00 00 00 00 00 00 13 [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:09]Read from MH i2c: E2 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 17 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: E2 17 00 6A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6C [19:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:59:09]wFMCommunicate OK [19:59:09]CreateOFDProtocolMessage done [19:59:09]OFDSenderStorePacket 63499 [19:59:09]StoreOFDPacket docnum=63499 [19:59:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 41 81 26 01 1B 98 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 13 A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0B F8 00 00 35 04 06 00 86 C2 91 99 AC F4 5B 01 63 46 7A 19 2E BF [19:59:09]CheckFolder [19:59:09]dirname=/storage/ofd_packets [19:59:09]CheckFolder done [19:59:09]ProducePacketName [19:59:09]name=ofd_packets/00063499 [19:59:09]NVStorageSaveData ofd_packets/00063499 [19:59:09]File name is /storage/ofd_packets/00063499 [19:59:09]Write 332 bytes [19:59:09]NVStorageSaveData done [19:59:09]OFDSenderStorePacket done [19:59:09]KKMCreateOFDPacket done [19:59:09]NVStorageSaveData kkm_last_timestamp [19:59:09]File name is /storage/kkm_last_timestamp [19:59:09]Write 4 bytes [19:59:09]NVStorageSaveData done [19:59:09]ExternCall_PrintAddStr [19:59:09]wPrintStart [19:59:09]Write to MH i2c: 01 00 00 6B 2F 9A [19:59:09]Write i2c OK [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: 01 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: 01 07 00 [19:59:09]MH_I2C_Read... [19:59:09]Read from MH i2c: 01 07 00 6B 2F 00 00 00 00 00 FF 0F AF [19:59:09]RasterBufferAndPrint [19:59:09]line Счет N : (3)47805 [19:59:09]line ИНН: 02508201610067 [19:59:09]line Контрольно-Кассовый Чек [19:59:09]line ПРОДАЖА [19:59:09]line Товар: 2000036220012 [19:59:09]line Кофе Капучино XL(GABB TRADE) [19:59:09]line 2.000 * 130.00 [19:59:09]line = 260.00 [19:59:09]line НДС 12% НСП 1% [19:59:09]line > о реализуемом товаре [19:59:09]line ИТОГО: 260.00 [19:59:09]line НСП 1% : 2.30 [19:59:09]line НДС 12% : 27.61 [19:59:09]line Наличными: 260.00 [19:59:09]line Безнал.: 0.00 [19:59:09]line Место: АЗС № 86 "Партнер Нефть" [19:59:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:59:09]line СНО: Общий режим [19:59:09]line Чек 113 24.10.2024 19:59 [19:59:09]line Смена: 547 ФФД: 1.0 [19:59:09]line ЗНМ: 0300000154 [19:59:09]line РНМ: 0000000000091619 [19:59:09]line Версия ККМ: 001 [19:59:09]line ФМ: 0000000000874676 [19:59:09]line ФД: 63499 [19:59:09]line ФПД: 148170224545012 [19:59:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195915&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63499&fm=148170224545012&tin=02508201610067®Number=0000000000091619&sum=26000 [19:59:09]line 0 [19:59:09]written 0, free lines is 4095 [19:59:09]OFD Sender: Processing packet 63499 [packets to send 232, broken 231] [19:59:09]ProducePacketName [19:59:09]name=ofd_packets/00063499 [19:59:09]OFD Sender: To server: pG, [19:59:09]CommunicateWithHost lk.salyk.kg:30040 [19:59:09]ConnectInit lk.salyk.kg [19:59:10]Connected sock=11 [19:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 41 81 26 01 1B 98 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 13 A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0B F8 00 00 35 04 06 00 86 C2 91 99 AC F4 5B 01 63 46 7A 19 2E BF [19:59:10]Write to MH i2c: 01 00 00 94 2F C3 [19:59:10]Write i2c OK [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: 01 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: 01 07 00 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: 01 07 00 94 2F 00 00 00 00 00 0F 0D E6 [19:59:10]RasterBufferAndPrint [19:59:10]line [19:59:10]line [19:59:10]line [19:59:10]line [19:59:10]line [19:59:10]written 0, free lines is 3349 [19:59:10]MH_Cut [19:59:10]Write to MH i2c: D1 01 00 9B 2F 01 9C [19:59:10]Write i2c OK [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: D1 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: D1 01 00 [19:59:10]MH_I2C_Read... [19:59:10]Read from MH i2c: D1 01 00 9B 2F 00 9B [19:59:10]Write to MH i2c: 01 00 00 9C 2F CB [19:59:10]Write i2c OK [19:59:10]MH_I2C_Read... [19:59:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 86 92 47 00 9D A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0B F8 00 00 F4 03 04 00 06 51 1A 67 B6 04 01 00 00 82 3E 05 65 8C C6 82 63 [19:59:10]CommunicateWithHost err = 0 [19:59:10]CheckOFDResponse [19:59:10]1017 (14) - 77093643461234 [19:59:10]1041 (16) - 0000000000874676 [19:59:10]1040 (4) - 63499 [19:59:10]1012 (4) - 24.10.2024 13:52 [19:59:10]1206 (1) - 0 [19:59:10]OFD Sender: Remove packet 63499 [19:59:10]ProducePacketName [19:59:10]name=ofd_packets/00063499 [19:59:10]NVStorageDeleteData [19:59:11]*** Cut start [19:59:11]*** Partial cut [19:59:11]*** CUTSNS_PIN = 1 [19:59:11]*** CUTSNS_PIN = 0 [19:59:11]OFD Sender: No OFD packet to send [19:59:11]*** Brake cut motor [19:59:11]Read from MH i2c: 01 [19:59:11]MH_I2C_Read... [19:59:11]*** Stop cut motor [19:59:11]*** Cut end [19:59:11]Read from MH i2c: 01 07 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: 01 07 00 9C 2F 00 00 00 00 00 FF 0F E0 [19:59:11]process_action close_receipt done [19:59:11]requested_data is exist [19:59:11]produce_requested_data [19:59:11]requested_item fm.sn is exist - process it [19:59:11]wFMCommunicate request_size=4 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 11 00 00 [19:59:11]Write to MH i2c: E2 08 00 9D 2F 80 11 00 00 00 00 00 00 46 [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:11]Read from MH i2c: E2 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 17 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 17 00 9D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9F [19:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:59:11]wFMCommunicate OK [19:59:11]requested_item fd.num is exist - process it [19:59:11]SAM_PROTO_GetFieldsCounters [19:59:11]wFMCommunicate request_size=4 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 13 00 00 [19:59:11]Write to MH i2c: E2 08 00 9E 2F 80 13 00 00 00 00 00 00 49 [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:11]Read from MH i2c: E2 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 62 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 62 00 9E 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0B F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [19:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0B F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:11]wFMCommunicate OK [19:59:11]SAM_PROTO_GetFieldsCounters done [19:59:11]requested_item shift.num is exist - process it [19:59:11]requested_item shift.opened is exist - process it [19:59:11]req_shift_opened [19:59:11]FM_GetShiftState [19:59:11]SAM_PROTO_GetShiftState [19:59:11]wFMCommunicate request_size=4 [19:59:11]MH_SAM_APDU [19:59:11]CAPDU: 80 13 01 00 [19:59:11]Write to MH i2c: E2 08 00 9F 2F 80 13 01 00 00 00 00 00 4B [19:59:11]Write i2c OK [19:59:11]MH_I2C_Read... [19:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:11]Read from MH i2c: E2 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 0E 00 [19:59:11]MH_I2C_Read... [19:59:11]Read from MH i2c: E2 0E 00 9F 2F 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 2C [19:59:11]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [19:59:11]wFMCommunicate OK [19:59:11]SAM_PROTO_GetShiftState done [19:59:11]FM_GetShiftState done [19:59:11]req_shift_opened done [19:59:11]requested_item shift.open_date is exist - process it [19:59:11]req_shift_open_date [19:59:11]req_shift_open_date done [19:59:11]produce_requested_data done [19:59:11]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63499,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [19:59:11]process_action_free close_receipt [19:59:11]json_value_free [19:59:11]json_value_free done [19:59:11]process_json_proto returns [19:59:11]Send response to host [19:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63499,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [19:59:11]free response buf [19:59:11]execute_script done [19:59:11]execute_script returns [19:59:11]free content buf [19:59:11]Sock 9.Close socket [19:59:11]Sock 9.Thread stoped [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:20]accept exits with 7 [20:00:20]New connection [20:00:20]New thread 3066633572 created [20:00:20]Thread 3066490212 joined [20:00:20]Waiting for new connection... [20:00:20] Sock 7.Parse request [20:00:20]Sock 7.Check first char [20:00:20]Sock 7.First char is OK [20:00:20]request: POST /json_proto HTTP/1.0 [20:00:20]Method: POST [20:00:20]URL: /json_proto [20:00:20]Method is POST - this is cgi request [20:00:20]url: /json_proto [20:00:20]query_string will be loaded in cgi processing [20:00:20]execute_cgi json_proto POST (null) [20:00:20]execute_cgi path=json_proto method=POST [20:00:20]POST find Content-Length [20:00:20]Host: 172.17.42.132:8080 [20:00:20]Content-Length: 621 [20:00:20]Content-Type: application/json [20:00:20] [20:00:20]POST finish read [20:00:20]Found Content-Length = 621 [20:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47806", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.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" ] } } [20:00:20]execute_script... [20:00:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47806", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.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" ] } } [20:00:20]POST & json_proto [20:00:20]process_json_proto [20:00:20]json parsed OK: [20:00:20]protocol is kg_v1.0 [20:00:20]action value=close_receipt [20:00:20]process_action close_receipt [20:00:20]cmd_close_receipt [20:00:20]MH_GetDate [20:00:20]Write to MH i2c: F0 00 00 A0 2F BE [20:00:20]Write i2c OK [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: F0 [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: F0 09 00 [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: F0 09 00 A0 2F 00 5B A7 1A 67 4C DF 56 66 31 [20:00:20]GetLastDocTimeStamp 1729799955 [20:00:20]current date 1729800027 [20:00:20]FM_GetShiftState [20:00:20]SAM_PROTO_GetShiftState [20:00:20]wFMCommunicate request_size=4 [20:00:20]MH_SAM_APDU [20:00:20]CAPDU: 80 13 01 00 [20:00:20]Write to MH i2c: E2 08 00 A1 2F 80 13 01 00 00 00 00 00 4D [20:00:20]Write i2c OK [20:00:20]MH_I2C_Read... [20:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:20]Read from MH i2c: E2 [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: E2 0E 00 [20:00:20]MH_I2C_Read... [20:00:20]Read from MH i2c: E2 0E 00 A1 2F 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 2E [20:00:20]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:00:20]wFMCommunicate OK [20:00:20]SAM_PROTO_GetShiftState done [20:00:20]FM_GetShiftState done [20:00:20]opened in 1729728964 [20:00:20]opened+sec_in_day 1729815364 [20:00:20]quantity*price = 16000 [20:00:20]sum+1 = 16001 [20:00:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 114 24.10.2024 20:00 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63500 ФПД: 236635600430126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200027&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63500&fm=236635600430126&tin=02508201610067®Number=0000000000091619&sum=16000 0 [20:00:21]StoreToDocumentArchive [20:00:21]shift 547 fd 63500 [20:00:21]save to /storage/0547/doc_00063500 [20:00:21]save last doc name /storage/0547/doc_00063500 to /storage/kkm_last_doc_name [20:00:21]save OK [20:00:21]Clear old archive folders... [20:00:21]ProcessDocumentItem done err = 0, tmpTLVsize=274 [20:00:21]tlvbuf is 00AFB900 [20:00:21]SAM_PROTO_ClearQueue [20:00:21]wFMCommunicate request_size=4 [20:00:21]MH_SAM_APDU [20:00:21]CAPDU: 80 09 00 00 [20:00:21]Write to MH i2c: E2 08 00 AE 2F 80 09 00 00 00 00 00 00 4F [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 03 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 03 00 AE 2F 00 90 00 51 [20:00:21]RAPDU: 90 00 [20:00:21]wFMCommunicate OK [20:00:21]SAM_PROTO_ClearQueue done [20:00:21]KKMCreateOFDPacket [20:00:21]OFDProtocolAddRootSTLVToBuf [20:00:21]FM_MakeSignedData [20:00:21]FM_MakeSignedData [20:00:21]SAM_PROTO_SignData [20:00:21]wFMCommunicate request_size=4 [20:00:21]MH_SAM_APDU [20:00:21]CAPDU: 80 0D 01 02 [20:00:21]Write to MH i2c: E2 08 00 AF 2F 80 0D 01 02 00 00 00 00 57 [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 03 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 03 00 AF 2F 00 90 00 52 [20:00:21]RAPDU: 90 00 [20:00:21]wFMCommunicate OK [20:00:21]wFMCommunicate request_size=255 [20:00:21]MH_SAM_APDU [20:00:21]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 72 00 00 00 F4 03 04 00 5B A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [20:00:21]Write to MH i2c: E2 02 01 B0 2F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 72 00 00 00 F4 03 04 00 5B A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 C3 [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 03 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 03 00 B0 2F 00 90 00 53 [20:00:21]RAPDU: 90 00 [20:00:21]wFMCommunicate OK [20:00:21]wFMCommunicate request_size=33 [20:00:21]MH_SAM_APDU [20:00:21]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0C F8 00 00 35 04 06 00 D7 38 04 E7 A4 2E [20:00:21]Write to MH i2c: E2 24 00 B1 2F 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0C F8 00 00 35 04 06 00 D7 38 04 E7 A4 2E 00 00 BF [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 03 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 03 00 B1 2F 00 90 00 54 [20:00:21]RAPDU: 90 00 [20:00:21]wFMCommunicate OK [20:00:21]wFMCommunicate request_size=4 [20:00:21]MH_SAM_APDU [20:00:21]CAPDU: 80 0D 03 02 [20:00:21]Write to MH i2c: E2 08 00 B2 2F 80 0D 03 02 00 00 00 00 5C [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 0B 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 0B 00 B2 2F 00 69 94 06 3D DC 0D 6B FB 90 00 EC [20:00:21]RAPDU: 69 94 06 3D DC 0D 6B FB 90 00 [20:00:21]wFMCommunicate OK [20:00:21]SAM_PROTO_SignData done [20:00:21]FM_MakeSignedData done [20:00:21]CreateOFDProtocolMessage [20:00:21]wFMCommunicate request_size=4 [20:00:21]MH_SAM_APDU [20:00:21]CAPDU: 80 11 00 00 [20:00:21]Write to MH i2c: E2 08 00 B3 2F 80 11 00 00 00 00 00 00 5C [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:21]Read from MH i2c: E2 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 17 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: E2 17 00 B3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B5 [20:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:00:21]wFMCommunicate OK [20:00:21]CreateOFDProtocolMessage done [20:00:21]OFDSenderStorePacket 63500 [20:00:21]StoreOFDPacket docnum=63500 [20:00:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 B0 1E 1E 01 25 09 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 72 00 00 00 F4 03 04 00 5B A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0C F8 00 00 35 04 06 00 D7 38 04 E7 A4 2E 69 94 06 3D DC 0D 6B FB [20:00:21]CheckFolder [20:00:21]dirname=/storage/ofd_packets [20:00:21]CheckFolder done [20:00:21]ProducePacketName [20:00:21]name=ofd_packets/00063500 [20:00:21]NVStorageSaveData ofd_packets/00063500 [20:00:21]File name is /storage/ofd_packets/00063500 [20:00:21]Write 324 bytes [20:00:21]NVStorageSaveData done [20:00:21]OFDSenderStorePacket done [20:00:21]KKMCreateOFDPacket done [20:00:21]NVStorageSaveData kkm_last_timestamp [20:00:21]File name is /storage/kkm_last_timestamp [20:00:21]Write 4 bytes [20:00:21]NVStorageSaveData done [20:00:21]ExternCall_PrintAddStr [20:00:21]wPrintStart [20:00:21]Write to MH i2c: 01 00 00 B4 2F E3 [20:00:21]Write i2c OK [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: 01 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: 01 07 00 [20:00:21]MH_I2C_Read... [20:00:21]Read from MH i2c: 01 07 00 B4 2F 00 00 00 00 00 FF 0F F8 [20:00:21]RasterBufferAndPrint [20:00:21]line Счет N : (3)47806 [20:00:21]line ИНН: 02508201610067 [20:00:21]line Контрольно-Кассовый Чек [20:00:21]line ПРОДАЖА [20:00:21]line Товар: 48741958 [20:00:21]line Сигареты Parliament Aqua Blue [20:00:21]line 1.000 * 160.00 [20:00:21]line = 160.00 [20:00:21]line НДС 12% НСП 1% [20:00:21]line > о реализуемом товаре [20:00:21]line ИТОГО: 160.00 [20:00:21]line НСП 1% : 1.42 [20:00:21]line НДС 12% : 16.99 [20:00:21]line Наличными: 160.00 [20:00:21]line Безнал.: 0.00 [20:00:21]line Место: АЗС № 86 "Партнер Нефть" [20:00:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:00:21]line СНО: Общий режим [20:00:21]line Чек 114 24.10.2024 20:00 [20:00:21]line Смена: 547 ФФД: 1.0 [20:00:21]line ЗНМ: 0300000154 [20:00:21]line РНМ: 0000000000091619 [20:00:21]line Версия ККМ: 001 [20:00:21]line ФМ: 0000000000874676 [20:00:21]line ФД: 63500 [20:00:21]line ФПД: 236635600430126 [20:00:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200027&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63500&fm=236635600430126&tin=02508201610067®Number=0000000000091619&sum=16000 [20:00:21]line 0 [20:00:21]written 0, free lines is 4095 [20:00:21]OFD Sender: Processing packet 63500 [packets to send 232, broken 231] [20:00:21]ProducePacketName [20:00:21]name=ofd_packets/00063500 [20:00:21]OFD Sender: To server: pG, [20:00:21]CommunicateWithHost lk.salyk.kg:30040 [20:00:21]ConnectInit lk.salyk.kg [20:00:22]Connected sock=10 [20:00:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 B0 1E 1E 01 25 09 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 72 00 00 00 F4 03 04 00 5B A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0C F8 00 00 35 04 06 00 D7 38 04 E7 A4 2E 69 94 06 3D DC 0D 6B FB [20:00:22]Write to MH i2c: 01 00 00 DD 2F 0C [20:00:22]Write i2c OK [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: 01 [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: 01 07 00 [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: 01 07 00 DD 2F 00 00 00 00 00 FC 0C 1B [20:00:22]RasterBufferAndPrint [20:00:22]line [20:00:22]line [20:00:22]line [20:00:22]line [20:00:22]line [20:00:22]written 0, free lines is 3330 [20:00:22]MH_Cut [20:00:22]Write to MH i2c: D1 01 00 E4 2F 01 E5 [20:00:22]Write i2c OK [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: D1 [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: D1 01 00 [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: D1 01 00 E4 2F 00 E4 [20:00:22]Write to MH i2c: 01 00 00 E5 2F 14 [20:00:22]Write i2c OK [20:00:22]MH_I2C_Read... [20:00:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 28 72 47 00 90 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0C F8 00 00 F4 03 04 00 4E 51 1A 67 B6 04 01 00 00 38 FA 5D CA 2B B6 E5 60 [20:00:22]CommunicateWithHost err = 0 [20:00:22]CheckOFDResponse [20:00:22]1017 (14) - 77093643461234 [20:00:22]1041 (16) - 0000000000874676 [20:00:22]1040 (4) - 63500 [20:00:22]1012 (4) - 24.10.2024 13:53 [20:00:22]1206 (1) - 0 [20:00:22]OFD Sender: Remove packet 63500 [20:00:22]ProducePacketName [20:00:22]name=ofd_packets/00063500 [20:00:22]NVStorageDeleteData [20:00:22]OFD Sender: No OFD packet to send [20:00:23]*** Cut start [20:00:23]*** Partial cut [20:00:23]*** CUTSNS_PIN = 1 [20:00:23]*** CUTSNS_PIN = 0 [20:00:23]*** Brake cut motor [20:00:23]Read from MH i2c: 01 [20:00:23]MH_I2C_Read... [20:00:23]*** Stop cut motor [20:00:23]*** Cut end [20:00:23]Read from MH i2c: 01 07 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: 01 07 00 E5 2F 00 00 00 00 00 FF 0F 29 [20:00:23]process_action close_receipt done [20:00:23]requested_data is exist [20:00:23]produce_requested_data [20:00:23]requested_item fm.sn is exist - process it [20:00:23]wFMCommunicate request_size=4 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 11 00 00 [20:00:23]Write to MH i2c: E2 08 00 E6 2F 80 11 00 00 00 00 00 00 8F [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 17 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 17 00 E6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E8 [20:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:00:23]wFMCommunicate OK [20:00:23]requested_item fd.num is exist - process it [20:00:23]SAM_PROTO_GetFieldsCounters [20:00:23]wFMCommunicate request_size=4 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 13 00 00 [20:00:23]Write to MH i2c: E2 08 00 E7 2F 80 13 00 00 00 00 00 00 92 [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 62 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 62 00 E7 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0C F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [20:00:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0C F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:23]wFMCommunicate OK [20:00:23]SAM_PROTO_GetFieldsCounters done [20:00:23]requested_item shift.num is exist - process it [20:00:23]requested_item shift.opened is exist - process it [20:00:23]req_shift_opened [20:00:23]FM_GetShiftState [20:00:23]SAM_PROTO_GetShiftState [20:00:23]wFMCommunicate request_size=4 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 13 01 00 [20:00:23]Write to MH i2c: E2 08 00 E8 2F 80 13 01 00 00 00 00 00 94 [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 0E 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 0E 00 E8 2F 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 75 [20:00:23]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:00:23]wFMCommunicate OK [20:00:23]SAM_PROTO_GetShiftState done [20:00:23]FM_GetShiftState done [20:00:23]req_shift_opened done [20:00:23]requested_item shift.open_date is exist - process it [20:00:23]req_shift_open_date [20:00:23]req_shift_open_date done [20:00:23]produce_requested_data done [20:00:23]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63500,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [20:00:23]process_action_free close_receipt [20:00:23]json_value_free [20:00:23]json_value_free done [20:00:23]process_json_proto returns [20:00:23]Send response to host [20:00:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63500,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [20:00:23]free response buf [20:00:23]execute_script done [20:00:23]execute_script returns [20:00:23]free content buf [20:00:23]Sock 7.Close socket [20:00:23]Sock 7.Thread stoped [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:16]accept exits with 9 [20:01:16]New connection [20:01:16]New thread 3066490212 created [20:01:16]Thread 3066633572 joined [20:01:16]Waiting for new connection... [20:01:16] Sock 9.Parse request [20:01:16]Sock 9.Check first char [20:01:16]Sock 9.First char is OK [20:01:16]request: POST /json_proto HTTP/1.0 [20:01:16]Method: POST [20:01:16]URL: /json_proto [20:01:16]Method is POST - this is cgi request [20:01:16]url: /json_proto [20:01:16]query_string will be loaded in cgi processing [20:01:16]execute_cgi json_proto POST (null) [20:01:16]execute_cgi path=json_proto method=POST [20:01:16]POST find Content-Length [20:01:16]Host: 172.17.42.132:8080 [20:01:16]Content-Length: 803 [20:01:16]Content-Type: application/json [20:01:16] [20:01:16]POST finish read [20:01:16]Found Content-Length = 803 [20:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47807", "tax_sys" : 0, "items" : [ { "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 148.67, "quantity" : 1.000, "sum" : 148.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 148.67 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:16]execute_script... [20:01: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)47807", "tax_sys" : 0, "items" : [ { "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 148.67, "quantity" : 1.000, "sum" : 148.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 148.67 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:16]POST & json_proto [20:01:16]process_json_proto [20:01:16]json parsed OK: [20:01:16]protocol is kg_v1.0 [20:01:16]action value=close_receipt [20:01:16]process_action close_receipt [20:01:16]cmd_close_receipt [20:01:16]MH_GetDate [20:01:16]Write to MH i2c: F0 00 00 E9 2F 07 [20:01:16]Write i2c OK [20:01:16]MH_I2C_Read... [20:01:16]Read from MH i2c: F0 [20:01:16]MH_I2C_Read... [20:01:16]Read from MH i2c: F0 09 00 [20:01:16]MH_I2C_Read... [20:01:16]Read from MH i2c: F0 09 00 E9 2F 00 93 A7 1A 67 4C DF 56 66 B2 [20:01:16]GetLastDocTimeStamp 1729800027 [20:01:16]current date 1729800083 [20:01:16]FM_GetShiftState [20:01:16]SAM_PROTO_GetShiftState [20:01:16]wFMCommunicate request_size=4 [20:01:16]MH_SAM_APDU [20:01:16]CAPDU: 80 13 01 00 [20:01:16]Write to MH i2c: E2 08 00 EA 2F 80 13 01 00 00 00 00 00 96 [20:01:16]Write i2c OK [20:01:16]MH_I2C_Read... [20:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:16]Read from MH i2c: E2 [20:01:16]MH_I2C_Read... [20:01:16]Read from MH i2c: E2 0E 00 [20:01:16]MH_I2C_Read... [20:01:16]Read from MH i2c: E2 0E 00 EA 2F 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 77 [20:01:16]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:01:16]wFMCommunicate OK [20:01:16]SAM_PROTO_GetShiftState done [20:01:16]FM_GetShiftState done [20:01:16]opened in 1729728964 [20:01:16]opened+sec_in_day 1729815364 [20:01:16]quantity*price = 14867 [20:01:16]sum+1 = 14868 [20:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 148.67 НСП 1% : 1.32 НДС 12% : 15.79 Наличными: 0.00 Безнал.: 148.67 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 115 24.10.2024 20:01 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63501 ФПД: 241963218860150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200123&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63501&fm=241963218860150&tin=02508201610067®Number=0000000000091619&sum=14867 0 [20:01:17]StoreToDocumentArchive [20:01:17]shift 547 fd 63501 [20:01:17]save to /storage/0547/doc_00063501 [20:01:17]save last doc name /storage/0547/doc_00063501 to /storage/kkm_last_doc_name [20:01:17]save OK [20:01:17]Clear old archive folders... [20:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=271 [20:01:17]tlvbuf is 00AFD6F0 [20:01:17]SAM_PROTO_ClearQueue [20:01:17]wFMCommunicate request_size=4 [20:01:17]MH_SAM_APDU [20:01:17]CAPDU: 80 09 00 00 [20:01:17]Write to MH i2c: E2 08 00 F7 2F 80 09 00 00 00 00 00 00 98 [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:17]Read from MH i2c: E2 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 03 00 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 03 00 F7 2F 00 90 00 9A [20:01:17]RAPDU: 90 00 [20:01:17]wFMCommunicate OK [20:01:17]SAM_PROTO_ClearQueue done [20:01:17]KKMCreateOFDPacket [20:01:17]OFDProtocolAddRootSTLVToBuf [20:01:17]FM_MakeSignedData [20:01:17]FM_MakeSignedData [20:01:17]SAM_PROTO_SignData [20:01:17]wFMCommunicate request_size=4 [20:01:17]MH_SAM_APDU [20:01:17]CAPDU: 80 0D 01 02 [20:01:17]Write to MH i2c: E2 08 00 F8 2F 80 0D 01 02 00 00 00 00 A0 [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:17]Read from MH i2c: E2 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 03 00 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 03 00 F8 2F 00 90 00 9B [20:01:17]RAPDU: 90 00 [20:01:17]wFMCommunicate OK [20:01:17]wFMCommunicate request_size=255 [20:01:17]MH_SAM_APDU [20:01:17]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 93 A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [20:01:17]Write to MH i2c: E2 02 01 F9 2F 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 93 A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 5B [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:17]Read from MH i2c: E2 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 03 00 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 03 00 F9 2F 00 90 00 9C [20:01:17]RAPDU: 90 00 [20:01:17]wFMCommunicate OK [20:01:17]wFMCommunicate request_size=30 [20:01:17]MH_SAM_APDU [20:01:17]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 36 10 04 04 00 0D F8 00 00 35 04 06 00 DC 10 73 B5 78 76 [20:01:17]Write to MH i2c: E2 21 00 FA 2F 80 0D 02 02 19 00 30 38 37 34 36 37 36 10 04 04 00 0D F8 00 00 35 04 06 00 DC 10 73 B5 78 76 00 00 A9 [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:17]Read from MH i2c: E2 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 03 00 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 03 00 FA 2F 00 90 00 9D [20:01:17]RAPDU: 90 00 [20:01:17]wFMCommunicate OK [20:01:17]wFMCommunicate request_size=4 [20:01:17]MH_SAM_APDU [20:01:17]CAPDU: 80 0D 03 02 [20:01:17]Write to MH i2c: E2 08 00 FB 2F 80 0D 03 02 00 00 00 00 A5 [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:17]Read from MH i2c: E2 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 0B 00 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 0B 00 FB 2F 00 17 52 97 B7 34 AF C2 5E 90 00 60 [20:01:17]RAPDU: 17 52 97 B7 34 AF C2 5E 90 00 [20:01:17]wFMCommunicate OK [20:01:17]SAM_PROTO_SignData done [20:01:17]FM_MakeSignedData done [20:01:17]CreateOFDProtocolMessage [20:01:17]wFMCommunicate request_size=4 [20:01:17]MH_SAM_APDU [20:01:17]CAPDU: 80 11 00 00 [20:01:17]Write to MH i2c: E2 08 00 FC 2F 80 11 00 00 00 00 00 00 A5 [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:17]Read from MH i2c: E2 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 17 00 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 17 00 FC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FE [20:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:01:17]wFMCommunicate OK [20:01:17]CreateOFDProtocolMessage done [20:01:17]OFDSenderStorePacket 63501 [20:01:17]StoreOFDPacket docnum=63501 [20:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 23 01 00 00 52 F5 1B 01 3F F4 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 93 A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0D F8 00 00 35 04 06 00 DC 10 73 B5 78 76 17 52 97 B7 34 AF C2 5E [20:01:17]CheckFolder [20:01:17]dirname=/storage/ofd_packets [20:01:17]CheckFolder done [20:01:17]ProducePacketName [20:01:17]name=ofd_packets/00063501 [20:01:17]NVStorageSaveData ofd_packets/00063501 [20:01:17]File name is /storage/ofd_packets/00063501 [20:01:17]Write 321 bytes [20:01:17]NVStorageSaveData done [20:01:17]OFDSenderStorePacket done [20:01:17]KKMCreateOFDPacket done [20:01:17]NVStorageSaveData kkm_last_timestamp [20:01:17]File name is /storage/kkm_last_timestamp [20:01:17]Write 4 bytes [20:01:17]NVStorageSaveData done [20:01:17]ExternCall_PrintAddStr [20:01:17]wPrintStart [20:01:17]Write to MH i2c: 01 00 00 FD 2F 2C [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: 01 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: 01 07 00 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: 01 07 00 FD 2F 00 00 00 00 00 FF 0F 41 [20:01:17]RasterBufferAndPrint [20:01:17]line Счет N : (3)47807 [20:01:17]line ИНН: 02508201610067 [20:01:17]line Контрольно-Кассовый Чек [20:01:17]line ПРОДАЖА [20:01:17]line Товар: 4870001150099 [20:01:17]line Сок Da-Da 1л персик [20:01:17]line 1.000 * 148.67 [20:01:17]line = 148.67 [20:01:17]line НДС 12% НСП 1% [20:01:17]line > о реализуемом товаре [20:01:17]line ИТОГО: 148.67 [20:01:17]line НСП 1% : 1.32 [20:01:17]line НДС 12% : 15.79 [20:01:17]line Наличными: 0.00 [20:01:17]line Безнал.: 148.67 [20:01:17]line Место: АЗС № 86 "Партнер Нефть" [20:01:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:01:17]line СНО: Общий режим [20:01:17]line Чек 115 24.10.2024 20:01 [20:01:17]line Смена: 547 ФФД: 1.0 [20:01:17]line ЗНМ: 0300000154 [20:01:17]line РНМ: 0000000000091619 [20:01:17]line Версия ККМ: 001 [20:01:17]line Платежная система: Бакай Банк [20:01:17]line ФМ: 0000000000874676 [20:01:17]line ФД: 63501 [20:01:17]line ФПД: 241963218860150 [20:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200123&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63501&fm=241963218860150&tin=02508201610067®Number=0000000000091619&sum=14867 [20:01:17]line 0 [20:01:17]written 0, free lines is 4095 [20:01:17]OFD Sender: Processing packet 63501 [packets to send 232, broken 231] [20:01:17]ProducePacketName [20:01:17]name=ofd_packets/00063501 [20:01:17]OFD Sender: To server: pG, [20:01:17]CommunicateWithHost lk.salyk.kg:30040 [20:01:17]ConnectInit lk.salyk.kg [20:01:18]Connected sock=11 [20:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 23 01 00 00 52 F5 1B 01 3F F4 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 93 A7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0D F8 00 00 35 04 06 00 DC 10 73 B5 78 76 17 52 97 B7 34 AF C2 5E [20:01:18]Write to MH i2c: 01 00 00 27 30 57 [20:01:18]Write i2c OK [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: 01 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: 01 07 00 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: 01 07 00 27 30 00 00 00 00 00 01 0D 6C [20:01:18]RasterBufferAndPrint [20:01:18]line [20:01:18]line [20:01:18]line [20:01:18]line [20:01:18]line [20:01:18]written 0, free lines is 3335 [20:01:18]MH_Cut [20:01:18]Write to MH i2c: D1 01 00 2E 30 01 30 [20:01:18]Write i2c OK [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: D1 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: D1 01 00 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: D1 01 00 2E 30 00 2F [20:01:18]Write to MH i2c: 01 00 00 2F 30 5F [20:01:18]Write i2c OK [20:01:18]MH_I2C_Read... [20:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 47 5A 47 00 27 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0D F8 00 00 F4 03 04 00 86 51 1A 67 B6 04 01 00 00 8E 70 51 1D 83 5F 25 84 [20:01:18]CommunicateWithHost err = 0 [20:01:18]CheckOFDResponse [20:01:18]1017 (14) - 77093643461234 [20:01:18]1041 (16) - 0000000000874676 [20:01:18]1040 (4) - 63501 [20:01:18]1012 (4) - 24.10.2024 13:54 [20:01:18]1206 (1) - 0 [20:01:18]OFD Sender: Remove packet 63501 [20:01:18]ProducePacketName [20:01:18]name=ofd_packets/00063501 [20:01:18]NVStorageDeleteData [20:01:19]*** Cut start [20:01:19]*** Partial cut [20:01:19]*** CUTSNS_PIN = 1 [20:01:19]OFD Sender: No OFD packet to send [20:01:19]*** CUTSNS_PIN = 0 [20:01:19]*** Brake cut motor [20:01:19]Read from MH i2c: 01 [20:01:19]MH_I2C_Read... [20:01:19]*** Stop cut motor [20:01:19]*** Cut end [20:01:19]Read from MH i2c: 01 07 00 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: 01 07 00 2F 30 00 00 00 00 00 FF 0F 74 [20:01:19]process_action close_receipt done [20:01:19]requested_data is exist [20:01:19]produce_requested_data [20:01:19]requested_item fm.sn is exist - process it [20:01:19]wFMCommunicate request_size=4 [20:01:19]MH_SAM_APDU [20:01:19]CAPDU: 80 11 00 00 [20:01:19]Write to MH i2c: E2 08 00 30 30 80 11 00 00 00 00 00 00 DA [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:19]Read from MH i2c: E2 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 17 00 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 17 00 30 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 33 [20:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:01:19]wFMCommunicate OK [20:01:19]requested_item fd.num is exist - process it [20:01:19]SAM_PROTO_GetFieldsCounters [20:01:19]wFMCommunicate request_size=4 [20:01:19]MH_SAM_APDU [20:01:19]CAPDU: 80 13 00 00 [20:01:19]Write to MH i2c: E2 08 00 31 30 80 13 00 00 00 00 00 00 DD [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:19]Read from MH i2c: E2 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 62 00 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 62 00 31 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [20:01: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:19]wFMCommunicate OK [20:01:19]SAM_PROTO_GetFieldsCounters done [20:01:19]requested_item shift.num is exist - process it [20:01:19]requested_item shift.opened is exist - process it [20:01:19]req_shift_opened [20:01:19]FM_GetShiftState [20:01:19]SAM_PROTO_GetShiftState [20:01:19]wFMCommunicate request_size=4 [20:01:19]MH_SAM_APDU [20:01:19]CAPDU: 80 13 01 00 [20:01:19]Write to MH i2c: E2 08 00 32 30 80 13 01 00 00 00 00 00 DF [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:20]Read from MH i2c: E2 [20:01:20]MH_I2C_Read... [20:01:20]Read from MH i2c: E2 0E 00 [20:01:20]MH_I2C_Read... [20:01:20]Read from MH i2c: E2 0E 00 32 30 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 C0 [20:01:20]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:01:20]wFMCommunicate OK [20:01:20]SAM_PROTO_GetShiftState done [20:01:20]FM_GetShiftState done [20:01:20]req_shift_opened done [20:01:20]requested_item shift.open_date is exist - process it [20:01:20]req_shift_open_date [20:01:20]req_shift_open_date done [20:01:20]produce_requested_data done [20:01:20]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63501,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [20:01:20]process_action_free close_receipt [20:01:20]json_value_free [20:01:20]json_value_free done [20:01:20]process_json_proto returns [20:01:20]Send response to host [20:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63501,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [20:01:20]free response buf [20:01:20]execute_script done [20:01:20]execute_script returns [20:01:20]free content buf [20:01:20]Sock 9.Close socket [20:01:20]Sock 9.Thread stoped [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:06]accept exits with 7 [20:12:06]New connection [20:12:06]New thread 3066633572 created [20:12:06]Thread 3066490212 joined [20:12:06]Waiting for new connection... [20:12:06] Sock 7.Parse request [20:12:06]Sock 7.Check first char [20:12:06]Sock 7.First char is OK [20:12:06]request: POST /json_proto HTTP/1.0 [20:12:06]Method: POST [20:12:06]URL: /json_proto [20:12:06]Method is POST - this is cgi request [20:12:06]url: /json_proto [20:12:06]query_string will be loaded in cgi processing [20:12:06]execute_cgi json_proto POST (null) [20:12:06]execute_cgi path=json_proto method=POST [20:12:06]POST find Content-Length [20:12:06]Host: 172.17.42.132:8080 [20:12:06]Content-Length: 1827 [20:12:06]Content-Type: application/json [20:12:06] [20:12:06]POST finish read [20:12:06]Found Content-Length = 1827 [20:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47808", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 803.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:06]execute_script... [20:12:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47808", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 803.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:07]POST & json_proto [20:12:07]process_json_proto [20:12:07]json parsed OK: [20:12:07]protocol is kg_v1.0 [20:12:07]action value=close_receipt [20:12:07]process_action close_receipt [20:12:07]cmd_close_receipt [20:12:07]MH_GetDate [20:12:07]Write to MH i2c: F0 00 00 33 30 52 [20:12:07]Write i2c OK [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: F0 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: F0 09 00 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: F0 09 00 33 30 00 1E AA 1A 67 4C DF 56 66 8B [20:12:07]GetLastDocTimeStamp 1729800083 [20:12:07]current date 1729800734 [20:12:07]FM_GetShiftState [20:12:07]SAM_PROTO_GetShiftState [20:12:07]wFMCommunicate request_size=4 [20:12:07]MH_SAM_APDU [20:12:07]CAPDU: 80 13 01 00 [20:12:07]Write to MH i2c: E2 08 00 34 30 80 13 01 00 00 00 00 00 E1 [20:12:07]Write i2c OK [20:12:07]MH_I2C_Read... [20:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:07]Read from MH i2c: E2 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: E2 0E 00 [20:12:07]MH_I2C_Read... [20:12:07]Read from MH i2c: E2 0E 00 34 30 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 C2 [20:12:07]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:12:07]wFMCommunicate OK [20:12:07]SAM_PROTO_GetShiftState done [20:12:07]FM_GetShiftState done [20:12:07]opened in 1729728964 [20:12:07]opened+sec_in_day 1729815364 [20:12:07]quantity*price = 5000 [20:12:07]sum+1 = 5001 [20:12:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002329937 Напиток Lipton IceTea 1л персик Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 2.000 * 144.00 = 288.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007401201 Семечки соленые ДЖИНН Великан 100гр 2.000 * 120.00 = 240.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 803.00 НСП 1% : 7.10 НДС 12% : 85.27 Наличными: 803.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 116 24.10.2024 20:12 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63502 ФПД: 2812717338120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201214&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63502&fm=2812717338120&tin=02508201610067®Number=0000000000091619&sum=80300 0 [20:12:08]StoreToDocumentArchive [20:12:08]shift 547 fd 63502 [20:12:08]save to /storage/0547/doc_00063502 [20:12:08]save last doc name /storage/0547/doc_00063502 to /storage/kkm_last_doc_name [20:12:08]save OK [20:12:08]Clear old archive folders... [20:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=768 [20:12:08]tlvbuf is 00B06970 [20:12:08]SAM_PROTO_ClearQueue [20:12:08]wFMCommunicate request_size=4 [20:12:08]MH_SAM_APDU [20:12:08]CAPDU: 80 09 00 00 [20:12:08]Write to MH i2c: E2 08 00 41 30 80 09 00 00 00 00 00 00 E3 [20:12:08]Write i2c OK [20:12:08]MH_I2C_Read... [20:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:08]Read from MH i2c: E2 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 03 00 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 03 00 41 30 00 90 00 E5 [20:12:08]RAPDU: 90 00 [20:12:08]wFMCommunicate OK [20:12:08]SAM_PROTO_ClearQueue done [20:12:08]KKMCreateOFDPacket [20:12:08]OFDProtocolAddRootSTLVToBuf [20:12:08]FM_MakeSignedData [20:12:08]FM_MakeSignedData [20:12:08]SAM_PROTO_SignData [20:12:08]wFMCommunicate request_size=4 [20:12:08]MH_SAM_APDU [20:12:08]CAPDU: 80 0D 01 02 [20:12:08]Write to MH i2c: E2 08 00 42 30 80 0D 01 02 00 00 00 00 EB [20:12:08]Write i2c OK [20:12:08]MH_I2C_Read... [20:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:08]Read from MH i2c: E2 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 03 00 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 03 00 42 30 00 90 00 E6 [20:12:08]RAPDU: 90 00 [20:12:08]wFMCommunicate OK [20:12:08]wFMCommunicate request_size=255 [20:12:08]MH_SAM_APDU [20:12:08]CAPDU: 80 0D 02 02 FA 03 00 00 03 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 [20:12:08]Write to MH i2c: E2 02 01 43 30 80 0D 02 02 FA 00 03 00 00 03 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 00 00 99 [20:12:08]Write i2c OK [20:12:08]MH_I2C_Read... [20:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:08]Read from MH i2c: E2 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 03 00 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 03 00 43 30 00 90 00 E7 [20:12:08]RAPDU: 90 00 [20:12:08]wFMCommunicate OK [20:12:08]wFMCommunicate request_size=255 [20:12:08]MH_SAM_APDU [20:12:08]CAPDU: 80 0D 02 02 FA 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 [20:12:08]Write to MH i2c: E2 02 01 44 30 80 0D 02 02 FA 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 00 00 37 [20:12:08]Write i2c OK [20:12:08]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 44 30 00 90 00 E8 [20:12:09]RAPDU: 90 00 [20:12:09]wFMCommunicate OK [20:12:09]wFMCommunicate request_size=255 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 0D 02 02 FA B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 39 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 21 00 00 00 00 07 04 06 00 AC 39 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 1E AA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [20:12:09]Write to MH i2c: E2 02 01 45 30 80 0D 02 02 FA 00 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 39 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 21 00 00 00 00 07 04 06 00 AC 39 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 1E AA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 16 [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 45 30 00 90 00 E9 [20:12:09]RAPDU: 90 00 [20:12:09]wFMCommunicate OK [20:12:09]wFMCommunicate request_size=27 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 0D 02 02 16 34 36 37 36 10 04 04 00 0E F8 00 00 35 04 06 00 02 8E E3 04 8E 08 [20:12:09]Write to MH i2c: E2 1E 00 46 30 80 0D 02 02 16 00 34 36 37 36 10 04 04 00 0E F8 00 00 35 04 06 00 02 8E E3 04 8E 08 00 00 5D [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 46 30 00 90 00 EA [20:12:09]RAPDU: 90 00 [20:12:09]wFMCommunicate OK [20:12:09]wFMCommunicate request_size=4 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 0D 03 02 [20:12:09]Write to MH i2c: E2 08 00 47 30 80 0D 03 02 00 00 00 00 F2 [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 0B 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 0B 00 47 30 00 82 3A 0A 14 07 86 52 5E 90 00 0A [20:12:09]RAPDU: 82 3A 0A 14 07 86 52 5E 90 00 [20:12:09]wFMCommunicate OK [20:12:09]SAM_PROTO_SignData done [20:12:09]FM_MakeSignedData done [20:12:09]CreateOFDProtocolMessage [20:12:09]wFMCommunicate request_size=4 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 11 00 00 [20:12:09]Write to MH i2c: E2 08 00 48 30 80 11 00 00 00 00 00 00 F2 [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 17 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 17 00 48 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4B [20:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:12:09]wFMCommunicate OK [20:12:09]CreateOFDProtocolMessage done [20:12:09]OFDSenderStorePacket 63502 [20:12:09]StoreOFDPacket docnum=63502 [20:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 14 03 00 00 13 00 0C 03 36 18 5A 03 01 00 03 00 00 03 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 39 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 21 00 00 00 00 07 04 06 00 AC 39 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 1E AA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0E F8 00 00 35 04 06 00 02 8E E3 04 8E 08 82 3A 0A 14 07 86 52 5E [20:12:09]CheckFolder [20:12:09]dirname=/storage/ofd_packets [20:12:09]CheckFolder done [20:12:09]ProducePacketName [20:12:09]name=ofd_packets/00063502 [20:12:09]NVStorageSaveData ofd_packets/00063502 [20:12:09]File name is /storage/ofd_packets/00063502 [20:12:09]Write 818 bytes [20:12:09]NVStorageSaveData done [20:12:09]OFDSenderStorePacket done [20:12:09]KKMCreateOFDPacket done [20:12:09]NVStorageSaveData kkm_last_timestamp [20:12:09]File name is /storage/kkm_last_timestamp [20:12:09]Write 4 bytes [20:12:09]NVStorageSaveData done [20:12:09]ExternCall_PrintAddStr [20:12:09]wPrintStart [20:12:09]Write to MH i2c: 01 00 00 49 30 79 [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: 01 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: 01 07 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: 01 07 00 49 30 00 00 00 00 00 FF 0F 8E [20:12:09]RasterBufferAndPrint [20:12:09]line Счет N : (3)47808 [20:12:09]line ИНН: 02508201610067 [20:12:09]line Контрольно-Кассовый Чек [20:12:09]line ПРОДАЖА [20:12:09]line Товар: 4700000160358 [20:12:09]line Вода Легенда 1л [20:12:09]line 1.000 * 50.00 [20:12:09]line = 50.00 [20:12:09]line НДС 12% НСП 1% [20:12:09]line > о реализуемом товаре [20:12:09]line Товар: 4700000480302 [20:12:09]line Напиток энерг Nitro манго-клуб 0.45 ж/б [20:12:09]line 1.000 * 95.00 [20:12:09]line = 95.00 [20:12:09]line НДС 12% НСП 1% [20:12:09]line > о реализуемом товаре [20:12:09]line Товар: 4870002329937 [20:12:09]line Напиток Lipton IceTea 1л персик Regular [20:12:09]line 1.000 * 130.00 [20:12:09]line = 130.00 [20:12:09]line НДС 12% НСП 1% [20:12:09]line > о реализуемом товаре [20:12:09]line Товар: 48743587 [20:12:09]line Сигареты Winston XStyle Silver [20:12:09]line 2.000 * 144.00 [20:12:09]line = 288.00 [20:12:09]line НДС 12% НСП 1% [20:12:09]line > о реализуемом товаре [20:12:09]line Товар: 4630007401201 [20:12:09]line Семечки соленые ДЖИНН Великан 100гр [20:12:09]line 2.000 * 120.00 [20:12:09]line = 240.00 [20:12:09]line НДС 12% НСП 1% [20:12:09]line > о реализуемом товаре [20:12:09]line ИТОГО: 803.00 [20:12:09]line НСП 1% : 7.10 [20:12:09]line НДС 12% : 85.27 [20:12:09]line Наличными: 803.00 [20:12:09]line Безнал.: 0.00 [20:12:09]line Место: АЗС № 86 "Партнер Нефть" [20:12:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:12:09]line СНО: Общий режим [20:12:09]line Чек 116 24.10.2024 20:12 [20:12:09]line Смена: 547 ФФД: 1.0 [20:12:09]line ЗНМ: 0300000154 [20:12:09]line РНМ: 0000000000091619 [20:12:09]line Версия ККМ: 001 [20:12:09]line ФМ: 0000000000874676 [20:12:09]line ФД: 63502 [20:12:09]line ФПД: 2812717338120 [20:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201214&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63502&fm=2812717338120&tin=02508201610067®Number=0000000000091619&sum=80300 [20:12:09]OFD Sender: Processing packet 63502 [packets to send 232, broken 231] [20:12:09]ProducePacketName [20:12:09]name=ofd_packets/00063502 [20:12:09]OFD Sender: To server: pG, [20:12:09]CommunicateWithHost lk.salyk.kg:30040 [20:12:09]ConnectInit lk.salyk.kg [20:12:09]line 0 [20:12:09]written 0, free lines is 4095 [20:12:10]Connected sock=10 [20:12:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 14 03 00 00 13 00 0C 03 36 18 5A 03 01 00 03 00 00 03 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 39 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 21 00 00 00 00 07 04 06 00 AC 39 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 1E AA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0E F8 00 00 35 04 06 00 02 8E E3 04 8E 08 82 3A 0A 14 07 86 52 5E [20:12:10]Write to MH i2c: 01 00 00 8D 30 BD [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 8D 30 00 00 00 00 00 A6 0B 75 [20:12:10]RasterBufferAndPrint [20:12:10]line [20:12:10]line [20:12:10]line [20:12:10]line [20:12:10]line [20:12:10]written 0, free lines is 2995 [20:12:10]MH_Cut [20:12:10]Write to MH i2c: D1 01 00 94 30 01 96 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: D1 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: D1 01 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: D1 01 00 94 30 00 95 [20:12:10]Write to MH i2c: 01 00 00 95 30 C5 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 4E 90 47 00 5F 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0E F8 00 00 F4 03 04 00 13 54 1A 67 B6 04 01 00 00 6A 14 31 95 29 7E E4 D3 [20:12:10]CommunicateWithHost err = 0 [20:12:10]CheckOFDResponse [20:12:10]1017 (14) - 77093643461234 [20:12:10]1041 (16) - 0000000000874676 [20:12:10]1040 (4) - 63502 [20:12:10]1012 (4) - 24.10.2024 14:05 [20:12:10]1206 (1) - 0 [20:12:10]OFD Sender: Remove packet 63502 [20:12:10]ProducePacketName [20:12:10]name=ofd_packets/00063502 [20:12:10]NVStorageDeleteData [20:12:11]OFD Sender: No OFD packet to send [20:12:11]*** Cut start [20:12:11]*** Partial cut [20:12:11]*** CUTSNS_PIN = 1 [20:12:11]*** CUTSNS_PIN = 0 [20:12:11]*** Brake cut motor [20:12:12]Read from MH i2c: 01 [20:12:12]MH_I2C_Read... [20:12:12]*** Stop cut motor [20:12:12]*** Cut end [20:12:12]Read from MH i2c: 01 07 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 95 30 00 00 00 00 00 FF 0F DA [20:12:12]process_action close_receipt done [20:12:12]requested_data is exist [20:12:12]produce_requested_data [20:12:12]requested_item fm.sn is exist - process it [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 11 00 00 [20:12:12]Write to MH i2c: E2 08 00 96 30 80 11 00 00 00 00 00 00 40 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 96 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 99 [20:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:12:12]wFMCommunicate OK [20:12:12]requested_item fd.num is exist - process it [20:12:12]SAM_PROTO_GetFieldsCounters [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 13 00 00 [20:12:12]Write to MH i2c: E2 08 00 97 30 80 13 00 00 00 00 00 00 43 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 62 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 62 00 97 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0E F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [20:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0E F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_GetFieldsCounters done [20:12:12]requested_item shift.num is exist - process it [20:12:12]requested_item shift.opened is exist - process it [20:12:12]req_shift_opened [20:12:12]FM_GetShiftState [20:12:12]SAM_PROTO_GetShiftState [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 13 01 00 [20:12:12]Write to MH i2c: E2 08 00 98 30 80 13 01 00 00 00 00 00 45 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0E 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0E 00 98 30 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 26 [20:12:12]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_GetShiftState done [20:12:12]FM_GetShiftState done [20:12:12]req_shift_opened done [20:12:12]requested_item shift.open_date is exist - process it [20:12:12]req_shift_open_date [20:12:12]req_shift_open_date done [20:12:12]produce_requested_data done [20:12:12]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63502,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [20:12:12]process_action_free close_receipt [20:12:12]json_value_free [20:12:12]json_value_free done [20:12:12]process_json_proto returns [20:12:12]Send response to host [20:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63502,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [20:12:12]free response buf [20:12:12]execute_script done [20:12:12]execute_script returns [20:12:12]free content buf [20:12:12]Sock 7.Close socket [20:12:12]Sock 7.Thread stoped [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:00]accept exits with 9 [20:17:00]New connection [20:17:00]New thread 3066490212 created [20:17:00]Thread 3066633572 joined [20:17:00]Waiting for new connection... [20:17:00] Sock 9.Parse request [20:17:00]Sock 9.Check first char [20:17:00]Sock 9.First char is OK [20:17:00]request: POST /json_proto HTTP/1.0 [20:17:00]Method: POST [20:17:00]URL: /json_proto [20:17:00]Method is POST - this is cgi request [20:17:00]url: /json_proto [20:17:00]query_string will be loaded in cgi processing [20:17:00]execute_cgi json_proto POST (null) [20:17:00]execute_cgi path=json_proto method=POST [20:17:00]POST find Content-Length [20:17:00]Host: 172.17.42.132:8080 [20:17:00]Content-Length: 1252 [20:17:00]Content-Type: application/json [20:17:00] [20:17:00]POST finish read [20:17:00]Found Content-Length = 1252 [20:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47809", "tax_sys" : 0, "items" : [ { "code": "6921207777820", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:00]execute_script... [20:17: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)47809", "tax_sys" : 0, "items" : [ { "code": "6921207777820", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:00]POST & json_proto [20:17:00]process_json_proto [20:17:00]json parsed OK: [20:17:00]protocol is kg_v1.0 [20:17:00]action value=close_receipt [20:17:00]process_action close_receipt [20:17:00]cmd_close_receipt [20:17:00]MH_GetDate [20:17:00]Write to MH i2c: F0 00 00 99 30 B8 [20:17:00]Write i2c OK [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: F0 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: F0 09 00 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: F0 09 00 99 30 00 43 AB 1A 67 4C DF 56 66 17 [20:17:00]GetLastDocTimeStamp 1729800734 [20:17:00]current date 1729801027 [20:17:00]FM_GetShiftState [20:17:00]SAM_PROTO_GetShiftState [20:17:00]wFMCommunicate request_size=4 [20:17:00]MH_SAM_APDU [20:17:00]CAPDU: 80 13 01 00 [20:17:00]Write to MH i2c: E2 08 00 9A 30 80 13 01 00 00 00 00 00 47 [20:17:00]Write i2c OK [20:17:00]MH_I2C_Read... [20:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:00]Read from MH i2c: E2 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: E2 0E 00 [20:17:00]MH_I2C_Read... [20:17:00]Read from MH i2c: E2 0E 00 9A 30 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 28 [20:17:00]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:17:00]wFMCommunicate OK [20:17:00]SAM_PROTO_GetShiftState done [20:17:00]FM_GetShiftState done [20:17:00]opened in 1729728964 [20:17:00]opened+sec_in_day 1729815364 [20:17:00]quantity*price = 13000 [20:17:00]sum+1 = 13001 [20:17:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.23 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 117 24.10.2024 20:17 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63503 ФПД: 53164209952936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201708&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63503&fm=53164209952936&tin=02508201610067®Number=0000000000091619&sum=20000 0 [20:17:01]StoreToDocumentArchive [20:17:01]shift 547 fd 63503 [20:17:01]save to /storage/0547/doc_00063503 [20:17:01]save last doc name /storage/0547/doc_00063503 to /storage/kkm_last_doc_name [20:17:01]save OK [20:17:01]Clear old archive folders... [20:17:01]ProcessDocumentItem done err = 0, tmpTLVsize=521 [20:17:01]tlvbuf is 00BCF550 [20:17:01]SAM_PROTO_ClearQueue [20:17:01]wFMCommunicate request_size=4 [20:17:01]MH_SAM_APDU [20:17:01]CAPDU: 80 09 00 00 [20:17:01]Write to MH i2c: E2 08 00 A7 30 80 09 00 00 00 00 00 00 49 [20:17:01]Write i2c OK [20:17:01]MH_I2C_Read... [20:17:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:01]Read from MH i2c: E2 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 A7 30 00 90 00 4B [20:17:01]RAPDU: 90 00 [20:17:01]wFMCommunicate OK [20:17:01]SAM_PROTO_ClearQueue done [20:17:01]KKMCreateOFDPacket [20:17:01]OFDProtocolAddRootSTLVToBuf [20:17:01]FM_MakeSignedData [20:17:01]FM_MakeSignedData [20:17:01]SAM_PROTO_SignData [20:17:01]wFMCommunicate request_size=4 [20:17:01]MH_SAM_APDU [20:17:01]CAPDU: 80 0D 01 02 [20:17:01]Write to MH i2c: E2 08 00 A8 30 80 0D 01 02 00 00 00 00 51 [20:17:01]Write i2c OK [20:17:01]MH_I2C_Read... [20:17:01]OFD Sender: No OFD packet to send [20:17:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:01]Read from MH i2c: E2 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 [20:17:01]MH_I2C_Read... [20:17:01]Read from MH i2c: E2 03 00 A8 30 00 90 00 4C [20:17:01]RAPDU: 90 00 [20:17:01]wFMCommunicate OK [20:17:01]wFMCommunicate request_size=255 [20:17:01]MH_SAM_APDU [20:17:01]CAPDU: 80 0D 02 02 FA 03 00 09 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 37 38 32 30 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [20:17:02]Write to MH i2c: E2 02 01 A9 30 80 0D 02 02 FA 00 03 00 09 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 37 38 32 30 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 66 [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:02]Read from MH i2c: E2 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 03 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 03 00 A9 30 00 90 00 4D [20:17:02]RAPDU: 90 00 [20:17:02]wFMCommunicate OK [20:17:02]wFMCommunicate request_size=255 [20:17:02]MH_SAM_APDU [20:17:02]CAPDU: 80 0D 02 02 FA 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 44 AB 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [20:17:02]Write to MH i2c: E2 02 01 AA 30 80 0D 02 02 FA 00 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 44 AB 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A8 [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:02]Read from MH i2c: E2 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 03 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 03 00 AA 30 00 90 00 4E [20:17:02]RAPDU: 90 00 [20:17:02]wFMCommunicate OK [20:17:02]wFMCommunicate request_size=30 [20:17:02]MH_SAM_APDU [20:17:02]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 36 10 04 04 00 0F F8 00 00 35 04 06 00 30 5A 41 D9 58 A8 [20:17:02]Write to MH i2c: E2 21 00 AB 30 80 0D 02 02 19 00 30 38 37 34 36 37 36 10 04 04 00 0F F8 00 00 35 04 06 00 30 5A 41 D9 58 A8 00 00 FF [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:02]Read from MH i2c: E2 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 03 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 03 00 AB 30 00 90 00 4F [20:17:02]RAPDU: 90 00 [20:17:02]wFMCommunicate OK [20:17:02]wFMCommunicate request_size=4 [20:17:02]MH_SAM_APDU [20:17:02]CAPDU: 80 0D 03 02 [20:17:02]Write to MH i2c: E2 08 00 AC 30 80 0D 03 02 00 00 00 00 57 [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:02]Read from MH i2c: E2 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 0B 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 0B 00 AC 30 00 DC 7C C9 AC D6 46 FB 2E 90 00 6A [20:17:02]RAPDU: DC 7C C9 AC D6 46 FB 2E 90 00 [20:17:02]wFMCommunicate OK [20:17:02]SAM_PROTO_SignData done [20:17:02]FM_MakeSignedData done [20:17:02]CreateOFDProtocolMessage [20:17:02]wFMCommunicate request_size=4 [20:17:02]MH_SAM_APDU [20:17:02]CAPDU: 80 11 00 00 [20:17:02]Write to MH i2c: E2 08 00 AD 30 80 11 00 00 00 00 00 00 57 [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:02]Read from MH i2c: E2 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 17 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: E2 17 00 AD 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B0 [20:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:17:02]wFMCommunicate OK [20:17:02]CreateOFDProtocolMessage done [20:17:02]OFDSenderStorePacket 63503 [20:17:02]StoreOFDPacket docnum=63503 [20:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 1D 02 00 00 36 41 15 02 9F 77 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 37 38 32 30 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 44 AB 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0F F8 00 00 35 04 06 00 30 5A 41 D9 58 A8 DC 7C C9 AC D6 46 FB 2E [20:17:02]CheckFolder [20:17:02]dirname=/storage/ofd_packets [20:17:02]CheckFolder done [20:17:02]ProducePacketName [20:17:02]name=ofd_packets/00063503 [20:17:02]NVStorageSaveData ofd_packets/00063503 [20:17:02]File name is /storage/ofd_packets/00063503 [20:17:02]Write 571 bytes [20:17:02]NVStorageSaveData done [20:17:02]OFDSenderStorePacket done [20:17:02]KKMCreateOFDPacket done [20:17:02]NVStorageSaveData kkm_last_timestamp [20:17:02]File name is /storage/kkm_last_timestamp [20:17:02]Write 4 bytes [20:17:02]NVStorageSaveData done [20:17:02]ExternCall_PrintAddStr [20:17:02]wPrintStart [20:17:02]Write to MH i2c: 01 00 00 AE 30 DE [20:17:02]Write i2c OK [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: 01 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: 01 07 00 [20:17:02]MH_I2C_Read... [20:17:02]Read from MH i2c: 01 07 00 AE 30 00 00 00 00 00 FF 0F F3 [20:17:02]RasterBufferAndPrint [20:17:02]line Счет N : (3)47809 [20:17:02]line ИНН: 02508201610067 [20:17:02]line Контрольно-Кассовый Чек [20:17:02]line ПРОДАЖА [20:17:02]line Товар: 6921207777820 [20:17:02]line Презерватив Vie Tex 3шт [20:17:02]line 1.000 * 130.00 [20:17:02]line = 130.00 [20:17:02]line НДС 12% НСП 1% [20:17:02]line > о реализуемом товаре [20:17:02]line Товар: 4700000160792 [20:17:02]line Снек Курут классический (круглый) [20:17:02]line 1.000 * 60.00 [20:17:02]line = 60.00 [20:17:02]line НДС 12% НСП 1% [20:17:02]line > о реализуемом товаре [20:17:02]line Товар: 46226617 [20:17:02]line Mentos ПВ Нежная Мята 6*100*2г [20:17:02]line 1.000 * 10.00 [20:17:02]line = 10.00 [20:17:02]line НДС 12% НСП 1% [20:17:02]line > о реализуемом товаре [20:17:02]line ИТОГО: 200.00 [20:17:02]line НСП 1% : 1.77 [20:17:02]line НДС 12% : 21.23 [20:17:02]line Наличными: 200.00 [20:17:02]line Безнал.: 0.00 [20:17:02]line Место: АЗС № 86 "Партнер Нефть" [20:17:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:17:02]line СНО: Общий режим [20:17:02]line Чек 117 24.10.2024 20:17 [20:17:02]line Смена: 547 ФФД: 1.0 [20:17:02]line ЗНМ: 0300000154 [20:17:02]line РНМ: 0000000000091619 [20:17:02]line Версия ККМ: 001 [20:17:02]line ФМ: 0000000000874676 [20:17:02]line ФД: 63503 [20:17:02]line ФПД: 53164209952936 [20:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201708&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63503&fm=53164209952936&tin=02508201610067®Number=0000000000091619&sum=20000 [20:17:03]OFD Sender: Processing packet 63503 [packets to send 232, broken 231] [20:17:03]ProducePacketName [20:17:03]name=ofd_packets/00063503 [20:17:03]OFD Sender: To server: pG, [20:17:03]CommunicateWithHost lk.salyk.kg:30040 [20:17:03]ConnectInit lk.salyk.kg [20:17:03]line 0 [20:17:03]written 0, free lines is 4095 [20:17:03]Connected sock=10 [20:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 1D 02 00 00 36 41 15 02 9F 77 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 37 38 32 30 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 44 AB 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0F F8 00 00 35 04 06 00 30 5A 41 D9 58 A8 DC 7C C9 AC D6 46 FB 2E [20:17:03]Write to MH i2c: 01 00 00 E4 30 14 [20:17:03]Write i2c OK [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: 01 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: 01 07 00 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: 01 07 00 E4 30 00 00 00 00 00 91 0C B8 [20:17:03]RasterBufferAndPrint [20:17:03]line [20:17:03]line [20:17:03]line [20:17:03]line [20:17:03]line [20:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 79 AE 47 00 BC 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 0F F8 00 00 F4 03 04 00 38 55 1A 67 B6 04 01 00 00 D4 C1 14 4F 7D 0F 26 F2 [20:17:03]CommunicateWithHost err = 0 [20:17:03]CheckOFDResponse [20:17:03]1017 (14) - 77093643461234 [20:17:03]1041 (16) - 0000000000874676 [20:17:03]1040 (4) - 63503 [20:17:03]1012 (4) - 24.10.2024 14:10 [20:17:03]1206 (1) - 0 [20:17:03]OFD Sender: Remove packet 63503 [20:17:03]ProducePacketName [20:17:03]name=ofd_packets/00063503 [20:17:03]NVStorageDeleteData [20:17:03]written 0, free lines is 3226 [20:17:03]MH_Cut [20:17:03]Write to MH i2c: D1 01 00 EB 30 01 ED [20:17:03]Write i2c OK [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: D1 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: D1 01 00 [20:17:03]MH_I2C_Read... [20:17:03]Read from MH i2c: D1 01 00 EB 30 00 EC [20:17:03]Write to MH i2c: 01 00 00 EC 30 1C [20:17:03]Write i2c OK [20:17:03]MH_I2C_Read... [20:17:04]OFD Sender: No OFD packet to send [20:17:04]*** Cut start [20:17:04]*** Partial cut [20:17:04]*** CUTSNS_PIN = 1 [20:17:04]*** CUTSNS_PIN = 0 [20:17:04]*** Brake cut motor [20:17:05]Read from MH i2c: 01 [20:17:05]MH_I2C_Read... [20:17:05]*** Stop cut motor [20:17:05]*** Cut end [20:17:05]Read from MH i2c: 01 07 00 [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: 01 07 00 EC 30 00 00 00 00 00 FF 0F 31 [20:17:05]process_action close_receipt done [20:17:05]requested_data is exist [20:17:05]produce_requested_data [20:17:05]requested_item fm.sn is exist - process it [20:17:05]wFMCommunicate request_size=4 [20:17:05]MH_SAM_APDU [20:17:05]CAPDU: 80 11 00 00 [20:17:05]Write to MH i2c: E2 08 00 ED 30 80 11 00 00 00 00 00 00 97 [20:17:05]Write i2c OK [20:17:05]MH_I2C_Read... [20:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:05]Read from MH i2c: E2 [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: E2 17 00 [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: E2 17 00 ED 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F0 [20:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:17:05]wFMCommunicate OK [20:17:05]requested_item fd.num is exist - process it [20:17:05]SAM_PROTO_GetFieldsCounters [20:17:05]wFMCommunicate request_size=4 [20:17:05]MH_SAM_APDU [20:17:05]CAPDU: 80 13 00 00 [20:17:05]Write to MH i2c: E2 08 00 EE 30 80 13 00 00 00 00 00 00 9A [20:17:05]Write i2c OK [20:17:05]MH_I2C_Read... [20:17:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:05]Read from MH i2c: E2 [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: E2 62 00 [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: E2 62 00 EE 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0F F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [20:17:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 0F F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:05]wFMCommunicate OK [20:17:05]SAM_PROTO_GetFieldsCounters done [20:17:05]requested_item shift.num is exist - process it [20:17:05]requested_item shift.opened is exist - process it [20:17:05]req_shift_opened [20:17:05]FM_GetShiftState [20:17:05]SAM_PROTO_GetShiftState [20:17:05]wFMCommunicate request_size=4 [20:17:05]MH_SAM_APDU [20:17:05]CAPDU: 80 13 01 00 [20:17:05]Write to MH i2c: E2 08 00 EF 30 80 13 01 00 00 00 00 00 9C [20:17:05]Write i2c OK [20:17:05]MH_I2C_Read... [20:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:05]Read from MH i2c: E2 [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: E2 0E 00 [20:17:05]MH_I2C_Read... [20:17:05]Read from MH i2c: E2 0E 00 EF 30 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 7D [20:17:05]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:17:05]wFMCommunicate OK [20:17:05]SAM_PROTO_GetShiftState done [20:17:05]FM_GetShiftState done [20:17:05]req_shift_opened done [20:17:05]requested_item shift.open_date is exist - process it [20:17:05]req_shift_open_date [20:17:05]req_shift_open_date done [20:17:05]produce_requested_data done [20:17:05]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63503,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [20:17:05]process_action_free close_receipt [20:17:05]json_value_free [20:17:05]json_value_free done [20:17:05]process_json_proto returns [20:17:05]Send response to host [20:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63503,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [20:17:05]free response buf [20:17:05]execute_script done [20:17:05]execute_script returns [20:17:05]free content buf [20:17:05]Sock 9.Close socket [20:17:05]Sock 9.Thread stoped [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]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: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:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:24]ConnectInit Can't connect to host [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:32]accept exits with 7 [20:28:32]New connection [20:28:32]New thread 3066633572 created [20:28:32]Thread 3066490212 joined [20:28:32]Waiting for new connection... [20:28:32] Sock 7.Parse request [20:28:32]Sock 7.Check first char [20:28:32]Sock 7.First char is OK [20:28:32]request: POST /json_proto HTTP/1.0 [20:28:32]Method: POST [20:28:32]URL: /json_proto [20:28:32]Method is POST - this is cgi request [20:28:32]url: /json_proto [20:28:32]query_string will be loaded in cgi processing [20:28:32]execute_cgi json_proto POST (null) [20:28:32]execute_cgi path=json_proto method=POST [20:28:32]POST find Content-Length [20:28:32]Host: 172.17.42.132:8080 [20:28:32]Content-Length: 1144 [20:28:32]Content-Type: application/json [20:28:32] [20:28:32]POST finish read [20:28:32]Found Content-Length = 1144 [20:28:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47810", "tax_sys" : 0, "items" : [ { "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 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" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:32]execute_script... [20:28: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)47810", "tax_sys" : 0, "items" : [ { "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 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" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:32]POST & json_proto [20:28:32]process_json_proto [20:28:32]json parsed OK: [20:28:32]protocol is kg_v1.0 [20:28:32]action value=close_receipt [20:28:32]process_action close_receipt [20:28:32]cmd_close_receipt [20:28:32]MH_GetDate [20:28:32]Write to MH i2c: F0 00 00 F0 30 0F [20:28:32]Write i2c OK [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: F0 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: F0 09 00 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: F0 09 00 F0 30 00 F8 AD 1A 67 4C DF 56 66 25 [20:28:32]GetLastDocTimeStamp 1729801028 [20:28:32]current date 1729801720 [20:28:32]FM_GetShiftState [20:28:32]SAM_PROTO_GetShiftState [20:28:32]wFMCommunicate request_size=4 [20:28:32]MH_SAM_APDU [20:28:32]CAPDU: 80 13 01 00 [20:28:32]Write to MH i2c: E2 08 00 F1 30 80 13 01 00 00 00 00 00 9E [20:28:32]Write i2c OK [20:28:32]MH_I2C_Read... [20:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:32]Read from MH i2c: E2 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 0E 00 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 0E 00 F1 30 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 7F [20:28:32]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:28:32]wFMCommunicate OK [20:28:32]SAM_PROTO_GetShiftState done [20:28:32]FM_GetShiftState done [20:28:32]opened in 1729728964 [20:28:32]opened+sec_in_day 1729815364 [20:28:32]quantity*price = 26000 [20:28:32]sum+1 = 26001 [20:28:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160198 Вода Байтик 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.09 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 118 24.10.2024 20:28 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63504 ФПД: 88029044820708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202840&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63504&fm=88029044820708&tin=02508201610067®Number=0000000000091619&sum=35000 0 [20:28:33]StoreToDocumentArchive [20:28:33]shift 547 fd 63504 [20:28:33]save to /storage/0547/doc_00063504 [20:28:33]save last doc name /storage/0547/doc_00063504 to /storage/kkm_last_doc_name [20:28:33]save OK [20:28:33]Clear old archive folders... [20:28:33]ProcessDocumentItem done err = 0, tmpTLVsize=477 [20:28:33]tlvbuf is 00C311E0 [20:28:33]SAM_PROTO_ClearQueue [20:28:33]wFMCommunicate request_size=4 [20:28:33]MH_SAM_APDU [20:28:33]CAPDU: 80 09 00 00 [20:28:33]Write to MH i2c: E2 08 00 FE 30 80 09 00 00 00 00 00 00 A0 [20:28:33]Write i2c OK [20:28:33]MH_I2C_Read... [20:28:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:33]Read from MH i2c: E2 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 03 00 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 03 00 FE 30 00 90 00 A2 [20:28:33]RAPDU: 90 00 [20:28:33]wFMCommunicate OK [20:28:33]SAM_PROTO_ClearQueue done [20:28:33]KKMCreateOFDPacket [20:28:33]OFDProtocolAddRootSTLVToBuf [20:28:33]FM_MakeSignedData [20:28:33]FM_MakeSignedData [20:28:33]SAM_PROTO_SignData [20:28:33]wFMCommunicate request_size=4 [20:28:33]MH_SAM_APDU [20:28:33]CAPDU: 80 0D 01 02 [20:28:33]Write to MH i2c: E2 08 00 FF 30 80 0D 01 02 00 00 00 00 A8 [20:28:33]Write i2c OK [20:28:33]MH_I2C_Read... [20:28:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:33]Read from MH i2c: E2 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 03 00 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: E2 03 00 FF 30 00 90 00 A3 [20:28:33]RAPDU: 90 00 [20:28:33]wFMCommunicate OK [20:28:33]wFMCommunicate request_size=255 [20:28:33]MH_SAM_APDU [20:28:33]CAPDU: 80 0D 02 02 FA 03 00 DD 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 [20:28:33]Write to MH i2c: E2 02 01 00 31 80 0D 02 02 FA 00 03 00 DD 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 00 00 2A [20:28:34]Write i2c OK [20:28:34]MH_I2C_Read... [20:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:34]Read from MH i2c: E2 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 03 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 03 00 00 31 00 90 00 A5 [20:28:34]RAPDU: 90 00 [20:28:34]wFMCommunicate OK [20:28:34]wFMCommunicate request_size=236 [20:28:34]MH_SAM_APDU [20:28:34]CAPDU: 80 0D 02 02 E7 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F8 AD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 10 F8 00 00 35 04 06 00 50 0F DB F2 4A E4 [20:28:34]Write to MH i2c: E2 EF 00 01 31 80 0D 02 02 E7 00 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F8 AD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 10 F8 00 00 35 04 06 00 50 0F DB F2 4A E4 00 00 C2 [20:28:34]Write i2c OK [20:28:34]MH_I2C_Read... [20:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:34]Read from MH i2c: E2 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 03 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 03 00 01 31 00 90 00 A6 [20:28:34]RAPDU: 90 00 [20:28:34]wFMCommunicate OK [20:28:34]wFMCommunicate request_size=4 [20:28:34]MH_SAM_APDU [20:28:34]CAPDU: 80 0D 03 02 [20:28:34]Write to MH i2c: E2 08 00 02 31 80 0D 03 02 00 00 00 00 AE [20:28:34]Write i2c OK [20:28:34]MH_I2C_Read... [20:28:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:34]Read from MH i2c: E2 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 0B 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 0B 00 02 31 00 7C CE 6D F5 9E 4B 0E 52 90 00 A4 [20:28:34]RAPDU: 7C CE 6D F5 9E 4B 0E 52 90 00 [20:28:34]wFMCommunicate OK [20:28:34]SAM_PROTO_SignData done [20:28:34]FM_MakeSignedData done [20:28:34]CreateOFDProtocolMessage [20:28:34]wFMCommunicate request_size=4 [20:28:34]MH_SAM_APDU [20:28:34]CAPDU: 80 11 00 00 [20:28:34]Write to MH i2c: E2 08 00 03 31 80 11 00 00 00 00 00 00 AE [20:28:34]Write i2c OK [20:28:34]MH_I2C_Read... [20:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:34]Read from MH i2c: E2 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 17 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 17 00 03 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 07 [20:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:28:34]wFMCommunicate OK [20:28:34]CreateOFDProtocolMessage done [20:28:34]OFDSenderStorePacket 63504 [20:28:34]StoreOFDPacket docnum=63504 [20:28:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 F1 01 00 00 F4 74 E9 01 C3 2F 5A 03 01 00 03 00 DD 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F8 AD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 10 F8 00 00 35 04 06 00 50 0F DB F2 4A E4 7C CE 6D F5 9E 4B 0E 52 [20:28:34]CheckFolder [20:28:34]dirname=/storage/ofd_packets [20:28:34]CheckFolder done [20:28:34]ProducePacketName [20:28:34]name=ofd_packets/00063504 [20:28:34]NVStorageSaveData ofd_packets/00063504 [20:28:34]File name is /storage/ofd_packets/00063504 [20:28:34]Write 527 bytes [20:28:34]NVStorageSaveData done [20:28:34]OFDSenderStorePacket done [20:28:34]KKMCreateOFDPacket done [20:28:34]NVStorageSaveData kkm_last_timestamp [20:28:34]File name is /storage/kkm_last_timestamp [20:28:34]Write 4 bytes [20:28:34]NVStorageSaveData done [20:28:34]ExternCall_PrintAddStr [20:28:34]wPrintStart [20:28:34]Write to MH i2c: 01 00 00 04 31 35 [20:28:34]Write i2c OK [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: 01 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: 01 07 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: 01 07 00 04 31 00 00 00 00 00 FF 0F 4A [20:28:34]RasterBufferAndPrint [20:28:34]line Счет N : (3)47810 [20:28:34]line ИНН: 02508201610067 [20:28:34]line Контрольно-Кассовый Чек [20:28:34]line ПРОДАЖА [20:28:34]line Товар: 4700002086380 [20:28:34]line Водка Сары челек 0,35л [20:28:34]line 1.000 * 260.00 [20:28:34]line = 260.00 [20:28:34]line НДС 12% НСП 1% [20:28:34]line > о реализуемом товаре [20:28:34]line Товар: 4700000160358 [20:28:34]line Вода Легенда 1л [20:28:34]line 1.000 * 50.00 [20:28:34]line = 50.00 [20:28:34]line НДС 12% НСП 1% [20:28:34]line > о реализуемом товаре [20:28:34]line Товар: 4700000160198 [20:28:34]line Вода Байтик 0,5л [20:28:34]line 1.000 * 40.00 [20:28:34]line = 40.00 [20:28:34]line НДС 12% НСП 1% [20:28:34]line > о реализуемом товаре [20:28:34]line ИТОГО: 350.00 [20:28:34]line НСП 1% : 3.09 [20:28:34]line НДС 12% : 37.17 [20:28:34]line Наличными: 350.00 [20:28:34]line Безнал.: 0.00 [20:28:34]line Место: АЗС № 86 "Партнер Нефть" [20:28:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:28:34]line СНО: Общий режим [20:28:34]line Чек 118 24.10.2024 20:28 [20:28:34]line Смена: 547 ФФД: 1.0 [20:28:34]line ЗНМ: 0300000154 [20:28:34]line РНМ: 0000000000091619 [20:28:34]line Версия ККМ: 001 [20:28:34]line ФМ: 0000000000874676 [20:28:34]line ФД: 63504 [20:28:34]line ФПД: 88029044820708 [20:28:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202840&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63504&fm=88029044820708&tin=02508201610067®Number=0000000000091619&sum=35000 [20:28:34]line 0 [20:28:34]written 0, free lines is 4095 [20:28:34]OFD Sender: Processing packet 63504 [packets to send 232, broken 231] [20:28:34]ProducePacketName [20:28:34]name=ofd_packets/00063504 [20:28:34]OFD Sender: To server: pG, [20:28:34]CommunicateWithHost lk.salyk.kg:30040 [20:28:34]ConnectInit lk.salyk.kg [20:28:35]Write to MH i2c: 01 00 00 38 31 69 [20:28:35]Write i2c OK [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: 01 [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: 01 07 00 [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: 01 07 00 38 31 00 00 00 00 00 85 0C 01 [20:28:35]RasterBufferAndPrint [20:28:35]line [20:28:35]line [20:28:35]line [20:28:35]line [20:28:35]line [20:28:35]written 0, free lines is 3211 [20:28:35]MH_Cut [20:28:35]Write to MH i2c: D1 01 00 3F 31 01 42 [20:28:35]Write i2c OK [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: D1 [20:28:35]MH_I2C_Read... [20:28:35]Connected sock=11 [20:28:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 F1 01 00 00 F4 74 E9 01 C3 2F 5A 03 01 00 03 00 DD 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F8 AD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 10 F8 00 00 35 04 06 00 50 0F DB F2 4A E4 7C CE 6D F5 9E 4B 0E 52 [20:28:35]Read from MH i2c: D1 01 00 [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: D1 01 00 3F 31 00 41 [20:28:35]Write to MH i2c: 01 00 00 40 31 71 [20:28:35]Write i2c OK [20:28:35]MH_I2C_Read... [20:28:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 13 A4 47 00 4E 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 10 F8 00 00 F4 03 04 00 EB 57 1A 67 B6 04 01 00 00 69 A4 8E EB A7 85 AB 76 [20:28:35]CommunicateWithHost err = 0 [20:28:35]CheckOFDResponse [20:28:35]1017 (14) - 77093643461234 [20:28:35]1041 (16) - 0000000000874676 [20:28:35]1040 (4) - 63504 [20:28:35]1012 (4) - 24.10.2024 14:21 [20:28:35]1206 (1) - 0 [20:28:35]OFD Sender: Remove packet 63504 [20:28:35]ProducePacketName [20:28:35]name=ofd_packets/00063504 [20:28:35]NVStorageDeleteData [20:28:36]*** Cut start [20:28:36]*** Partial cut [20:28:36]*** CUTSNS_PIN = 1 [20:28:36]*** CUTSNS_PIN = 0 [20:28:36]OFD Sender: No OFD packet to send [20:28:36]*** Brake cut motor [20:28:36]Read from MH i2c: 01 [20:28:36]MH_I2C_Read... [20:28:36]*** Stop cut motor [20:28:36]*** Cut end [20:28:36]Read from MH i2c: 01 07 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: 01 07 00 40 31 00 00 00 00 00 FF 0F 86 [20:28:36]process_action close_receipt done [20:28:36]requested_data is exist [20:28:36]produce_requested_data [20:28:36]requested_item fm.sn is exist - process it [20:28:36]wFMCommunicate request_size=4 [20:28:36]MH_SAM_APDU [20:28:36]CAPDU: 80 11 00 00 [20:28:36]Write to MH i2c: E2 08 00 41 31 80 11 00 00 00 00 00 00 EC [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:36]Read from MH i2c: E2 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 17 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 17 00 41 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 45 [20:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:28:36]wFMCommunicate OK [20:28:36]requested_item fd.num is exist - process it [20:28:36]SAM_PROTO_GetFieldsCounters [20:28:36]wFMCommunicate request_size=4 [20:28:36]MH_SAM_APDU [20:28:36]CAPDU: 80 13 00 00 [20:28:36]Write to MH i2c: E2 08 00 42 31 80 13 00 00 00 00 00 00 EF [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:36]Read from MH i2c: E2 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 62 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 62 00 42 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 10 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [20:28:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 10 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:36]wFMCommunicate OK [20:28:36]SAM_PROTO_GetFieldsCounters done [20:28:36]requested_item shift.num is exist - process it [20:28:36]requested_item shift.opened is exist - process it [20:28:36]req_shift_opened [20:28:36]FM_GetShiftState [20:28:36]SAM_PROTO_GetShiftState [20:28:36]wFMCommunicate request_size=4 [20:28:36]MH_SAM_APDU [20:28:36]CAPDU: 80 13 01 00 [20:28:36]Write to MH i2c: E2 08 00 43 31 80 13 01 00 00 00 00 00 F1 [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:36]Read from MH i2c: E2 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 0E 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 0E 00 43 31 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 D2 [20:28:36]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:28:36]wFMCommunicate OK [20:28:36]SAM_PROTO_GetShiftState done [20:28:36]FM_GetShiftState done [20:28:36]req_shift_opened done [20:28:36]requested_item shift.open_date is exist - process it [20:28:36]req_shift_open_date [20:28:36]req_shift_open_date done [20:28:36]produce_requested_data done [20:28:36]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63504,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [20:28:36]process_action_free close_receipt [20:28:36]json_value_free [20:28:36]json_value_free done [20:28:36]process_json_proto returns [20:28:36]Send response to host [20:28:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63504,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [20:28:36]free response buf [20:28:36]execute_script done [20:28:36]execute_script returns [20:28:36]free content buf [20:28:36]Sock 7.Close socket [20:28:36]Sock 7.Thread stoped [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [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:30]accept exits with 9 [20:36:30]New connection [20:36:30]New thread 3066490212 created [20:36:30]Thread 3066633572 joined [20:36:30]Waiting for new connection... [20:36:30] Sock 9.Parse request [20:36:30]Sock 9.Check first char [20:36:30]Sock 9.First char is OK [20:36:30]request: POST /json_proto HTTP/1.0 [20:36:30]Method: POST [20:36:30]URL: /json_proto [20:36:30]Method is POST - this is cgi request [20:36:30]url: /json_proto [20:36:30]query_string will be loaded in cgi processing [20:36:30]execute_cgi json_proto POST (null) [20:36:30]execute_cgi path=json_proto method=POST [20:36:30]POST find Content-Length [20:36:30]Host: 172.17.42.132:8080 [20:36:30]Content-Length: 747 [20:36:30]Content-Type: application/json [20:36:30] [20:36:30]POST finish read [20:36:30]Found Content-Length = 747 [20:36:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47811", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:30]execute_script... [20:36:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47811", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:30]POST & json_proto [20:36:30]process_json_proto [20:36:30]json parsed OK: [20:36:30]protocol is kg_v1.0 [20:36:30]action value=close_receipt [20:36:30]process_action close_receipt [20:36:30]cmd_close_receipt [20:36:30]MH_GetDate [20:36:30]Write to MH i2c: F0 00 00 44 31 64 [20:36:30]Write i2c OK [20:36:30]MH_I2C_Read... [20:36:30]Read from MH i2c: F0 [20:36:30]MH_I2C_Read... [20:36:30]Read from MH i2c: F0 09 00 [20:36:30]MH_I2C_Read... [20:36:30]Read from MH i2c: F0 09 00 44 31 00 D6 AF 1A 67 4C DF 56 66 5A [20:36:30]GetLastDocTimeStamp 1729801720 [20:36:30]current date 1729802198 [20:36:30]FM_GetShiftState [20:36:30]SAM_PROTO_GetShiftState [20:36:30]wFMCommunicate request_size=4 [20:36:30]MH_SAM_APDU [20:36:30]CAPDU: 80 13 01 00 [20:36:30]Write to MH i2c: E2 08 00 45 31 80 13 01 00 00 00 00 00 F3 [20:36:30]Write i2c OK [20:36:30]MH_I2C_Read... [20:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:31]Read from MH i2c: E2 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 0E 00 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 0E 00 45 31 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 D4 [20:36:31]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:36:31]wFMCommunicate OK [20:36:31]SAM_PROTO_GetShiftState done [20:36:31]FM_GetShiftState done [20:36:31]opened in 1729728964 [20:36:31]opened+sec_in_day 1729815364 [20:36:31]quantity*price = 14273 [20:36:31]sum+1 = 14274 [20:36:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 142.73 НСП 1% : 1.26 НДС 12% : 15.16 Наличными: 0.00 Безнал.: 142.73 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 119 24.10.2024 20:36 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63505 ФПД: 262925567688939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203638&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63505&fm=262925567688939&tin=02508201610067®Number=0000000000091619&sum=14273 0 [20:36:32]StoreToDocumentArchive [20:36:32]shift 547 fd 63505 [20:36:32]save to /storage/0547/doc_00063505 [20:36:32]save last doc name /storage/0547/doc_00063505 to /storage/kkm_last_doc_name [20:36:32]save OK [20:36:32]Clear old archive folders... [20:36:32]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:36:32]tlvbuf is 00BDB3D0 [20:36:32]SAM_PROTO_ClearQueue [20:36:32]wFMCommunicate request_size=4 [20:36:32]MH_SAM_APDU [20:36:32]CAPDU: 80 09 00 00 [20:36:32]Write to MH i2c: E2 08 00 52 31 80 09 00 00 00 00 00 00 F5 [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:32]Read from MH i2c: E2 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 52 31 00 90 00 F7 [20:36:32]RAPDU: 90 00 [20:36:32]wFMCommunicate OK [20:36:32]SAM_PROTO_ClearQueue done [20:36:32]KKMCreateOFDPacket [20:36:32]OFDProtocolAddRootSTLVToBuf [20:36:32]FM_MakeSignedData [20:36:32]FM_MakeSignedData [20:36:32]SAM_PROTO_SignData [20:36:32]wFMCommunicate request_size=4 [20:36:32]MH_SAM_APDU [20:36:32]CAPDU: 80 0D 01 02 [20:36:32]Write to MH i2c: E2 08 00 53 31 80 0D 01 02 00 00 00 00 FD [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:32]Read from MH i2c: E2 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 53 31 00 90 00 F8 [20:36:32]RAPDU: 90 00 [20:36:32]wFMCommunicate OK [20:36:32]wFMCommunicate request_size=255 [20:36:32]MH_SAM_APDU [20:36:32]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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 D6 AF 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [20:36:32]Write to MH i2c: E2 02 01 54 31 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 D6 AF 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 E8 [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:32]Read from MH i2c: E2 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 54 31 00 90 00 F9 [20:36:32]RAPDU: 90 00 [20:36:32]wFMCommunicate OK [20:36:32]wFMCommunicate request_size=32 [20:36:32]MH_SAM_APDU [20:36:32]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 11 F8 00 00 35 04 06 00 EF 21 21 10 80 EB [20:36:32]Write to MH i2c: E2 23 00 55 31 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 11 F8 00 00 35 04 06 00 EF 21 21 10 80 EB 00 00 18 [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:32]Read from MH i2c: E2 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 55 31 00 90 00 FA [20:36:32]RAPDU: 90 00 [20:36:32]wFMCommunicate OK [20:36:32]wFMCommunicate request_size=4 [20:36:32]MH_SAM_APDU [20:36:32]CAPDU: 80 0D 03 02 [20:36:32]Write to MH i2c: E2 08 00 56 31 80 0D 03 02 00 00 00 00 02 [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:32]Read from MH i2c: E2 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 0B 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 0B 00 56 31 00 7B 1C 56 F8 F1 3E 5E 5D 90 00 D2 [20:36:32]RAPDU: 7B 1C 56 F8 F1 3E 5E 5D 90 00 [20:36:32]wFMCommunicate OK [20:36:32]SAM_PROTO_SignData done [20:36:32]FM_MakeSignedData done [20:36:32]CreateOFDProtocolMessage [20:36:32]wFMCommunicate request_size=4 [20:36:32]MH_SAM_APDU [20:36:32]CAPDU: 80 11 00 00 [20:36:32]Write to MH i2c: E2 08 00 57 31 80 11 00 00 00 00 00 00 02 [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:32]Read from MH i2c: E2 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 17 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 17 00 57 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5B [20:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:36:32]wFMCommunicate OK [20:36:32]CreateOFDProtocolMessage done [20:36:32]OFDSenderStorePacket 63505 [20:36:32]StoreOFDPacket docnum=63505 [20:36:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 2B 19 1D 01 49 4A 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 D6 AF 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 11 F8 00 00 35 04 06 00 EF 21 21 10 80 EB 7B 1C 56 F8 F1 3E 5E 5D [20:36:32]CheckFolder [20:36:32]dirname=/storage/ofd_packets [20:36:32]CheckFolder done [20:36:32]ProducePacketName [20:36:32]name=ofd_packets/00063505 [20:36:32]NVStorageSaveData ofd_packets/00063505 [20:36:32]File name is /storage/ofd_packets/00063505 [20:36:32]Write 323 bytes [20:36:32]NVStorageSaveData done [20:36:32]OFDSenderStorePacket done [20:36:32]KKMCreateOFDPacket done [20:36:32]NVStorageSaveData kkm_last_timestamp [20:36:32]File name is /storage/kkm_last_timestamp [20:36:32]Write 4 bytes [20:36:32]NVStorageSaveData done [20:36:32]ExternCall_PrintAddStr [20:36:32]wPrintStart [20:36:32]Write to MH i2c: 01 00 00 58 31 89 [20:36:32]OFD Sender: Processing packet 63505 [packets to send 232, broken 231] [20:36:32]ProducePacketName [20:36:32]name=ofd_packets/00063505 [20:36:32]OFD Sender: To server: pG, [20:36:32]CommunicateWithHost lk.salyk.kg:30040 [20:36:32]ConnectInit lk.salyk.kg [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: 01 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: 01 07 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: 01 07 00 58 31 00 00 00 00 00 FF 0F 9E [20:36:32]RasterBufferAndPrint [20:36:32]line Счет N : (3)47811 [20:36:32]line ИНН: 02508201610067 [20:36:32]line Контрольно-Кассовый Чек [20:36:32]line ПРОДАЖА [20:36:32]line Товар: 48747059 [20:36:32]line Сигареты Winston Legend Blue [20:36:32]line 1.000 * 142.73 [20:36:32]line = 142.73 [20:36:32]line НДС 12% НСП 1% [20:36:32]line > о реализуемом товаре [20:36:32]line ИТОГО: 142.73 [20:36:32]line НСП 1% : 1.26 [20:36:32]line НДС 12% : 15.16 [20:36:32]line Наличными: 0.00 [20:36:32]line Безнал.: 142.73 [20:36:32]line Место: АЗС № 86 "Партнер Нефть" [20:36:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:36:32]line СНО: Общий режим [20:36:32]line Чек 119 24.10.2024 20:36 [20:36:32]line Смена: 547 ФФД: 1.0 [20:36:32]line ЗНМ: 0300000154 [20:36:32]line РНМ: 0000000000091619 [20:36:32]line Версия ККМ: 001 [20:36:32]line Платежная система: Mbank [20:36:32]line ФМ: 0000000000874676 [20:36:32]line ФД: 63505 [20:36:32]line ФПД: 262925567688939 [20:36:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203638&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63505&fm=262925567688939&tin=02508201610067®Number=0000000000091619&sum=14273 [20:36:32]line 0 [20:36:33]written 0, free lines is 4095 [20:36:33]Connected sock=10 [20:36:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 2B 19 1D 01 49 4A 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 D6 AF 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 11 F8 00 00 35 04 06 00 EF 21 21 10 80 EB 7B 1C 56 F8 F1 3E 5E 5D [20:36:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 6C 6C 47 00 F6 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 11 F8 00 00 F4 03 04 00 C9 59 1A 67 B6 04 01 00 00 42 32 EC B8 95 79 4F 90 [20:36:33]CommunicateWithHost err = 0 [20:36:33]CheckOFDResponse [20:36:33]1017 (14) - 77093643461234 [20:36:33]1041 (16) - 0000000000874676 [20:36:33]1040 (4) - 63505 [20:36:33]1012 (4) - 24.10.2024 14:29 [20:36:33]1206 (1) - 0 [20:36:33]OFD Sender: Remove packet 63505 [20:36:33]ProducePacketName [20:36:33]name=ofd_packets/00063505 [20:36:33]NVStorageDeleteData [20:36:33]Write to MH i2c: 01 00 00 82 31 B3 [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 07 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 07 00 82 31 00 00 00 00 00 F5 0C BB [20:36:33]RasterBufferAndPrint [20:36:33]line [20:36:33]line [20:36:33]line [20:36:33]line [20:36:33]line [20:36:33]written 0, free lines is 3324 [20:36:33]MH_Cut [20:36:33]Write to MH i2c: D1 01 00 89 31 01 8C [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: D1 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: D1 01 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: D1 01 00 89 31 00 8B [20:36:33]Write to MH i2c: 01 00 00 8A 31 BB [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]OFD Sender: No OFD packet to send [20:36:34]*** Cut start [20:36:34]*** Partial cut [20:36:34]*** CUTSNS_PIN = 1 [20:36:34]*** CUTSNS_PIN = 0 [20:36:34]*** Brake cut motor [20:36:34]Read from MH i2c: 01 [20:36:34]MH_I2C_Read... [20:36:34]*** Stop cut motor [20:36:34]*** Cut end [20:36:34]Read from MH i2c: 01 07 00 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: 01 07 00 8A 31 00 00 00 00 00 FF 0F D0 [20:36:34]process_action close_receipt done [20:36:34]requested_data is exist [20:36:34]produce_requested_data [20:36:34]requested_item fm.sn is exist - process it [20:36:34]wFMCommunicate request_size=4 [20:36:34]MH_SAM_APDU [20:36:34]CAPDU: 80 11 00 00 [20:36:34]Write to MH i2c: E2 08 00 8B 31 80 11 00 00 00 00 00 00 36 [20:36:34]Write i2c OK [20:36:34]MH_I2C_Read... [20:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:34]Read from MH i2c: E2 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: E2 17 00 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: E2 17 00 8B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8F [20:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:36:34]wFMCommunicate OK [20:36:34]requested_item fd.num is exist - process it [20:36:34]SAM_PROTO_GetFieldsCounters [20:36:34]wFMCommunicate request_size=4 [20:36:34]MH_SAM_APDU [20:36:34]CAPDU: 80 13 00 00 [20:36:34]Write to MH i2c: E2 08 00 8C 31 80 13 00 00 00 00 00 00 39 [20:36:34]Write i2c OK [20:36:34]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 62 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 62 00 8C 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 11 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [20:36:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 11 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:35]wFMCommunicate OK [20:36:35]SAM_PROTO_GetFieldsCounters done [20:36:35]requested_item shift.num is exist - process it [20:36:35]requested_item shift.opened is exist - process it [20:36:35]req_shift_opened [20:36:35]FM_GetShiftState [20:36:35]SAM_PROTO_GetShiftState [20:36:35]wFMCommunicate request_size=4 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 13 01 00 [20:36:35]Write to MH i2c: E2 08 00 8D 31 80 13 01 00 00 00 00 00 3B [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 0E 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 0E 00 8D 31 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 1C [20:36:35]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:36:35]wFMCommunicate OK [20:36:35]SAM_PROTO_GetShiftState done [20:36:35]FM_GetShiftState done [20:36:35]req_shift_opened done [20:36:35]requested_item shift.open_date is exist - process it [20:36:35]req_shift_open_date [20:36:35]req_shift_open_date done [20:36:35]produce_requested_data done [20:36:35]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63505,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [20:36:35]process_action_free close_receipt [20:36:35]json_value_free [20:36:35]json_value_free done [20:36:35]process_json_proto returns [20:36:35]Send response to host [20:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63505,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [20:36:35]free response buf [20:36:35]execute_script done [20:36:35]execute_script returns [20:36:35]free content buf [20:36:35]Sock 9.Close socket [20:36:35]Sock 9.Thread stoped [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:35]accept exits with 7 [20:48:35]New connection [20:48:35]New thread 3066633572 created [20:48:35]Thread 3066490212 joined [20:48:35]Waiting for new connection... [20:48:35] Sock 7.Parse request [20:48:35]Sock 7.Check first char [20:48:35]Sock 7.First char is OK [20:48:35]request: POST /json_proto HTTP/1.0 [20:48:35]Method: POST [20:48:35]URL: /json_proto [20:48:35]Method is POST - this is cgi request [20:48:35]url: /json_proto [20:48:35]query_string will be loaded in cgi processing [20:48:35]execute_cgi json_proto POST (null) [20:48:35]execute_cgi path=json_proto method=POST [20:48:35]POST find Content-Length [20:48:35]Host: 172.17.42.132:8080 [20:48:35]Content-Length: 816 [20:48:35]Content-Type: application/json [20:48:35] [20:48:35]POST finish read [20:48:35]Found Content-Length = 816 [20:48:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47812", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 118.94 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:35]execute_script... [20:48:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47812", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 118.94 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:35]POST & json_proto [20:48:35]process_json_proto [20:48:35]json parsed OK: [20:48:35]protocol is kg_v1.0 [20:48:35]action value=close_receipt [20:48:35]process_action close_receipt [20:48:35]cmd_close_receipt [20:48:35]MH_GetDate [20:48:35]Write to MH i2c: F0 00 00 8E 31 AE [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: F0 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: F0 09 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: F0 09 00 8E 31 00 AB B2 1A 67 4C DF 56 66 7C [20:48:35]GetLastDocTimeStamp 1729802198 [20:48:35]current date 1729802923 [20:48:35]FM_GetShiftState [20:48:35]SAM_PROTO_GetShiftState [20:48:35]wFMCommunicate request_size=4 [20:48:35]MH_SAM_APDU [20:48:35]CAPDU: 80 13 01 00 [20:48:35]Write to MH i2c: E2 08 00 8F 31 80 13 01 00 00 00 00 00 3D [20:48:35]Write i2c OK [20:48:35]MH_I2C_Read... [20:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:35]Read from MH i2c: E2 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 0E 00 [20:48:35]MH_I2C_Read... [20:48:35]Read from MH i2c: E2 0E 00 8F 31 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 1E [20:48:35]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:48:35]wFMCommunicate OK [20:48:35]SAM_PROTO_GetShiftState done [20:48:35]FM_GetShiftState done [20:48:35]opened in 1729728964 [20:48:35]opened+sec_in_day 1729815364 [20:48:35]quantity*price = 11894 [20:48:35]sum+1 = 11895 [20:48:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.94 НСП 1% : 1.05 НДС 12% : 12.63 Наличными: 0.00 Безнал.: 118.94 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 120 24.10.2024 20:48 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63506 ФПД: 50846796329049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204843&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63506&fm=50846796329049&tin=02508201610067®Number=0000000000091619&sum=11894 0 [20:48:36]StoreToDocumentArchive [20:48:36]shift 547 fd 63506 [20:48:36]save to /storage/0547/doc_00063506 [20:48:36]save last doc name /storage/0547/doc_00063506 to /storage/kkm_last_doc_name [20:48:36]save OK [20:48:36]Clear old archive folders... [20:48:36]ProcessDocumentItem done err = 0, tmpTLVsize=290 [20:48:36]tlvbuf is B6E8C560 [20:48:36]SAM_PROTO_ClearQueue [20:48:36]wFMCommunicate request_size=4 [20:48:36]MH_SAM_APDU [20:48:36]CAPDU: 80 09 00 00 [20:48:36]Write to MH i2c: E2 08 00 9C 31 80 09 00 00 00 00 00 00 3F [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 9C 31 00 90 00 41 [20:48:37]RAPDU: 90 00 [20:48:37]wFMCommunicate OK [20:48:37]SAM_PROTO_ClearQueue done [20:48:37]KKMCreateOFDPacket [20:48:37]OFDProtocolAddRootSTLVToBuf [20:48:37]FM_MakeSignedData [20:48:37]FM_MakeSignedData [20:48:37]SAM_PROTO_SignData [20:48:37]wFMCommunicate request_size=4 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 0D 01 02 [20:48:37]Write to MH i2c: E2 08 00 9D 31 80 0D 01 02 00 00 00 00 47 [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 9D 31 00 90 00 42 [20:48:37]RAPDU: 90 00 [20:48:37]wFMCommunicate OK [20:48:37]wFMCommunicate request_size=255 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 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 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 AB B2 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [20:48:37]Write to MH i2c: E2 02 01 9E 31 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 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 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 AB B2 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 43 [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 9E 31 00 90 00 43 [20:48:37]RAPDU: 90 00 [20:48:37]wFMCommunicate OK [20:48:37]wFMCommunicate request_size=49 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 0D 02 02 2C 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 12 F8 00 00 35 04 06 00 2E 3E B1 3B B0 59 [20:48:37]Write to MH i2c: E2 34 00 9F 31 80 0D 02 02 2C 00 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 12 F8 00 00 35 04 06 00 2E 3E B1 3B B0 59 00 00 E9 [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 9F 31 00 90 00 44 [20:48:37]RAPDU: 90 00 [20:48:37]wFMCommunicate OK [20:48:37]wFMCommunicate request_size=4 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 0D 03 02 [20:48:37]Write to MH i2c: E2 08 00 A0 31 80 0D 03 02 00 00 00 00 4C [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 0B 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 0B 00 A0 31 00 CC 43 D7 0F D7 F9 F9 47 90 00 52 [20:48:37]RAPDU: CC 43 D7 0F D7 F9 F9 47 90 00 [20:48:37]wFMCommunicate OK [20:48:37]SAM_PROTO_SignData done [20:48:37]FM_MakeSignedData done [20:48:37]CreateOFDProtocolMessage [20:48:37]wFMCommunicate request_size=4 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 11 00 00 [20:48:37]Write to MH i2c: E2 08 00 A1 31 80 11 00 00 00 00 00 00 4C [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 17 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 17 00 A1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A5 [20:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:48:37]wFMCommunicate OK [20:48:37]CreateOFDProtocolMessage done [20:48:37]OFDSenderStorePacket 63506 [20:48:37]StoreOFDPacket docnum=63506 [20:48:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 36 01 00 00 43 CD 2E 01 12 B7 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 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 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 AB B2 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 12 F8 00 00 35 04 06 00 2E 3E B1 3B B0 59 CC 43 D7 0F D7 F9 F9 47 [20:48:37]CheckFolder [20:48:37]dirname=/storage/ofd_packets [20:48:37]CheckFolder done [20:48:37]ProducePacketName [20:48:37]name=ofd_packets/00063506 [20:48:37]NVStorageSaveData ofd_packets/00063506 [20:48:37]File name is /storage/ofd_packets/00063506 [20:48:37]Write 340 bytes [20:48:37]NVStorageSaveData done [20:48:37]OFDSenderStorePacket done [20:48:37]KKMCreateOFDPacket done [20:48:37]NVStorageSaveData kkm_last_timestamp [20:48:37]File name is /storage/kkm_last_timestamp [20:48:37]Write 4 bytes [20:48:37]NVStorageSaveData done [20:48:37]ExternCall_PrintAddStr [20:48:37]wPrintStart [20:48:37]Write to MH i2c: 01 00 00 A2 31 D3 [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: 01 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: 01 07 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: 01 07 00 A2 31 00 00 00 00 00 FF 0F E8 [20:48:37]RasterBufferAndPrint [20:48:37]line Счет N : (3)47812 [20:48:37]line ИНН: 02508201610067 [20:48:37]line Контрольно-Кассовый Чек [20:48:37]line ПРОДАЖА [20:48:37]line Товар: 4630007400990 [20:48:37]line Семечки ДЖИНН Великан 100гр [20:48:37]line 1.000 * 118.94 [20:48:37]line = 118.94 [20:48:37]line НДС 12% НСП 1% [20:48:37]line > о реализуемом товаре [20:48:37]line ИТОГО: 118.94 [20:48:37]line НСП 1% : 1.05 [20:48:37]line НДС 12% : 12.63 [20:48:37]line Наличными: 0.00 [20:48:37]line Безнал.: 118.94 [20:48:37]line Место: АЗС № 86 "Партнер Нефть" [20:48:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:48:37]line СНО: Общий режим [20:48:37]line Чек 120 24.10.2024 20:48 [20:48:37]line Смена: 547 ФФД: 1.0 [20:48:37]line ЗНМ: 0300000154 [20:48:37]line РНМ: 0000000000091619 [20:48:37]line Версия ККМ: 001 [20:48:37]line Платежная система: Mbank [20:48:37]line ФМ: 0000000000874676 [20:48:37]line ФД: 63506 [20:48:37]line ФПД: 50846796329049 [20:48:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204843&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63506&fm=50846796329049&tin=02508201610067®Number=0000000000091619&sum=11894 [20:48:37]line 0 [20:48:37]OFD Sender: Processing packet 63506 [packets to send 232, broken 231] [20:48:37]ProducePacketName [20:48:37]name=ofd_packets/00063506 [20:48:37]OFD Sender: To server: pG, [20:48:37]CommunicateWithHost lk.salyk.kg:30040 [20:48:37]ConnectInit lk.salyk.kg [20:48:37]written 0, free lines is 4095 [20:48:38]Connected sock=10 [20:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 36 01 00 00 43 CD 2E 01 12 B7 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 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 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 AB B2 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 12 F8 00 00 35 04 06 00 2E 3E B1 3B B0 59 CC 43 D7 0F D7 F9 F9 47 [20:48:38]Write to MH i2c: 01 00 00 CC 31 FD [20:48:38]Write i2c OK [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: 01 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: 01 07 00 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: 01 07 00 CC 31 00 00 00 00 00 FE 0C 0E [20:48:38]RasterBufferAndPrint [20:48:38]line [20:48:38]line [20:48:38]line [20:48:38]line [20:48:38]line [20:48:38]written 0, free lines is 3332 [20:48:38]MH_Cut [20:48:38]Write to MH i2c: D1 01 00 D3 31 01 D6 [20:48:38]Write i2c OK [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: D1 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: D1 01 00 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: D1 01 00 D3 31 00 D5 [20:48:38]Write to MH i2c: 01 00 00 D4 31 05 [20:48:38]Write i2c OK [20:48:38]MH_I2C_Read... [20:48:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 34 4A 47 00 AB 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 34 36 37 36 10 04 04 00 12 F8 00 00 F4 03 04 00 9E 5C 1A 67 B6 04 01 00 00 F7 0E C6 0C D0 5D 6B 4B [20:48:38]CommunicateWithHost err = 0 [20:48:38]CheckOFDResponse [20:48:38]1017 (14) - 77093643461234 [20:48:38]1041 (16) - 0000000000874676 [20:48:38]1040 (4) - 63506 [20:48:38]1012 (4) - 24.10.2024 14:41 [20:48:38]1206 (1) - 0 [20:48:38]OFD Sender: Remove packet 63506 [20:48:38]ProducePacketName [20:48:38]name=ofd_packets/00063506 [20:48:38]NVStorageDeleteData [20:48:38]*** Cut start [20:48:38]*** Partial cut [20:48:38]*** CUTSNS_PIN = 1 [20:48:39]*** CUTSNS_PIN = 0 [20:48:39]OFD Sender: No OFD packet to send [20:48:39]*** Brake cut motor [20:48:39]Read from MH i2c: 01 [20:48:39]MH_I2C_Read... [20:48:39]*** Stop cut motor [20:48:39]*** Cut end [20:48:39]Read from MH i2c: 01 07 00 [20:48:39]MH_I2C_Read... [20:48:39]Read from MH i2c: 01 07 00 D4 31 00 00 00 00 00 FF 0F 1A [20:48:39]process_action close_receipt done [20:48:39]requested_data is exist [20:48:39]produce_requested_data [20:48:39]requested_item fm.sn is exist - process it [20:48:39]wFMCommunicate request_size=4 [20:48:39]MH_SAM_APDU [20:48:39]CAPDU: 80 11 00 00 [20:48:39]Write to MH i2c: E2 08 00 D5 31 80 11 00 00 00 00 00 00 80 [20:48:39]Write i2c OK [20:48:39]MH_I2C_Read... [20:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:39]Read from MH i2c: E2 [20:48:39]MH_I2C_Read... [20:48:39]Read from MH i2c: E2 17 00 [20:48:39]MH_I2C_Read... [20:48:39]Read from MH i2c: E2 17 00 D5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D9 [20:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:48:39]wFMCommunicate OK [20:48:39]requested_item fd.num is exist - process it [20:48:39]SAM_PROTO_GetFieldsCounters [20:48:39]wFMCommunicate request_size=4 [20:48:39]MH_SAM_APDU [20:48:39]CAPDU: 80 13 00 00 [20:48:39]Write to MH i2c: E2 08 00 D6 31 80 13 00 00 00 00 00 00 83 [20:48:39]Write i2c OK [20:48:39]MH_I2C_Read... [20:48:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:39]Read from MH i2c: E2 [20:48:39]MH_I2C_Read... [20:48:39]Read from MH i2c: E2 62 00 [20:48:39]MH_I2C_Read... [20:48:39]Read from MH i2c: E2 62 00 D6 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 12 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [20:48:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 12 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:39]wFMCommunicate OK [20:48:39]SAM_PROTO_GetFieldsCounters done [20:48:39]requested_item shift.num is exist - process it [20:48:39]requested_item shift.opened is exist - process it [20:48:39]req_shift_opened [20:48:39]FM_GetShiftState [20:48:39]SAM_PROTO_GetShiftState [20:48:39]wFMCommunicate request_size=4 [20:48:39]MH_SAM_APDU [20:48:39]CAPDU: 80 13 01 00 [20:48:39]Write to MH i2c: E2 08 00 D7 31 80 13 01 00 00 00 00 00 85 [20:48:39]Write i2c OK [20:48:39]MH_I2C_Read... [20:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:39]Read from MH i2c: E2 [20:48:39]MH_I2C_Read... [20:48:39]Read from MH i2c: E2 0E 00 [20:48:39]MH_I2C_Read... [20:48:39]Read from MH i2c: E2 0E 00 D7 31 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 66 [20:48:39]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [20:48:39]wFMCommunicate OK [20:48:39]SAM_PROTO_GetShiftState done [20:48:39]FM_GetShiftState done [20:48:39]req_shift_opened done [20:48:39]requested_item shift.open_date is exist - process it [20:48:39]req_shift_open_date [20:48:39]req_shift_open_date done [20:48:39]produce_requested_data done [20:48:39]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63506,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [20:48:39]process_action_free close_receipt [20:48:39]json_value_free [20:48:39]json_value_free done [20:48:39]process_json_proto returns [20:48:39]Send response to host [20:48:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63506,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [20:48:39]free response buf [20:48:39]execute_script done [20:48:39]execute_script returns [20:48:39]free content buf [20:48:39]Sock 7.Close socket [20:48:39]Sock 7.Thread stoped [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:45]accept exits with 9 [21:01:45]New connection [21:01:45]New thread 3066490212 created [21:01:45]Thread 3066633572 joined [21:01:45]Waiting for new connection... [21:01:45] Sock 9.Parse request [21:01:45]Sock 9.Check first char [21:01:45]Sock 9.First char is OK [21:01:45]request: POST /json_proto HTTP/1.0 [21:01:45]Method: POST [21:01:45]URL: /json_proto [21:01:45]Method is POST - this is cgi request [21:01:45]url: /json_proto [21:01:45]query_string will be loaded in cgi processing [21:01:45]execute_cgi json_proto POST (null) [21:01:45]execute_cgi path=json_proto method=POST [21:01:45]POST find Content-Length [21:01:45]Host: 172.17.42.132:8080 [21:01:45]Content-Length: 965 [21:01:45]Content-Type: application/json [21:01:45] [21:01:45]POST finish read [21:01:45]Found Content-Length = 965 [21:01:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47813", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:45]execute_script... [21:01: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)47813", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:45]POST & json_proto [21:01:45]process_json_proto [21:01:45]json parsed OK: [21:01:45]protocol is kg_v1.0 [21:01:45]action value=close_receipt [21:01:45]process_action close_receipt [21:01:45]cmd_close_receipt [21:01:45]MH_GetDate [21:01:45]Write to MH i2c: F0 00 00 D8 31 F8 [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: F0 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: F0 09 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: F0 09 00 D8 31 00 C1 B5 1A 67 4C DF 56 66 DF [21:01:45]GetLastDocTimeStamp 1729802923 [21:01:45]current date 1729803713 [21:01:45]FM_GetShiftState [21:01:45]SAM_PROTO_GetShiftState [21:01:45]wFMCommunicate request_size=4 [21:01:45]MH_SAM_APDU [21:01:45]CAPDU: 80 13 01 00 [21:01:45]Write to MH i2c: E2 08 00 D9 31 80 13 01 00 00 00 00 00 87 [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 0E 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 0E 00 D9 31 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 68 [21:01:45]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:01:45]wFMCommunicate OK [21:01:45]SAM_PROTO_GetShiftState done [21:01:45]FM_GetShiftState done [21:01:45]opened in 1729728964 [21:01:45]opened+sec_in_day 1729815364 [21:01:45]quantity*price = 6000 [21:01:45]sum+1 = 6001 [21:01:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 204.00 НСП 1% : 1.80 НДС 12% : 21.66 Наличными: 204.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 121 24.10.2024 21:01 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63507 ФПД: 178084142110990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210153&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63507&fm=178084142110990&tin=02508201610067®Number=0000000000091619&sum=20400 0 [21:01:47]StoreToDocumentArchive [21:01:47]shift 547 fd 63507 [21:01:47]save to /storage/0547/doc_00063507 [21:01:47]save last doc name /storage/0547/doc_00063507 to /storage/kkm_last_doc_name [21:01:47]save OK [21:01:47]Clear old archive folders... [21:01:47]ProcessDocumentItem done err = 0, tmpTLVsize=406 [21:01:47]tlvbuf is 00B4B580 [21:01:47]SAM_PROTO_ClearQueue [21:01:47]wFMCommunicate request_size=4 [21:01:47]MH_SAM_APDU [21:01:47]CAPDU: 80 09 00 00 [21:01:47]Write to MH i2c: E2 08 00 E6 31 80 09 00 00 00 00 00 00 89 [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:47]Read from MH i2c: E2 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 03 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 03 00 E6 31 00 90 00 8B [21:01:47]RAPDU: 90 00 [21:01:47]wFMCommunicate OK [21:01:47]SAM_PROTO_ClearQueue done [21:01:47]KKMCreateOFDPacket [21:01:47]OFDProtocolAddRootSTLVToBuf [21:01:47]FM_MakeSignedData [21:01:47]FM_MakeSignedData [21:01:47]SAM_PROTO_SignData [21:01:47]wFMCommunicate request_size=4 [21:01:47]MH_SAM_APDU [21:01:47]CAPDU: 80 0D 01 02 [21:01:47]Write to MH i2c: E2 08 00 E7 31 80 0D 01 02 00 00 00 00 91 [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:47]Read from MH i2c: E2 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 03 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 03 00 E7 31 00 90 00 8C [21:01:47]RAPDU: 90 00 [21:01:47]wFMCommunicate OK [21:01:47]wFMCommunicate request_size=255 [21:01:47]MH_SAM_APDU [21:01:47]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 [21:01:47]Write to MH i2c: E2 02 01 E8 31 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 00 00 04 [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:47]Read from MH i2c: E2 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 03 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 03 00 E8 31 00 90 00 8D [21:01:47]RAPDU: 90 00 [21:01:47]wFMCommunicate OK [21:01:47]wFMCommunicate request_size=165 [21:01:47]MH_SAM_APDU [21:01:47]CAPDU: 80 0D 02 02 A0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C1 B5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 13 F8 00 00 35 04 06 00 A1 F7 72 07 D9 0E [21:01:47]Write to MH i2c: E2 A8 00 E9 31 80 0D 02 02 A0 00 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C1 B5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 13 F8 00 00 35 04 06 00 A1 F7 72 07 D9 0E 00 00 30 [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:47]Read from MH i2c: E2 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 03 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 03 00 E9 31 00 90 00 8E [21:01:47]RAPDU: 90 00 [21:01:47]wFMCommunicate OK [21:01:47]wFMCommunicate request_size=4 [21:01:47]MH_SAM_APDU [21:01:47]CAPDU: 80 0D 03 02 [21:01:47]Write to MH i2c: E2 08 00 EA 31 80 0D 03 02 00 00 00 00 96 [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:47]Read from MH i2c: E2 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 0B 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 0B 00 EA 31 00 4C 4A 3D E2 F4 A4 1E EB 90 00 ED [21:01:47]RAPDU: 4C 4A 3D E2 F4 A4 1E EB 90 00 [21:01:47]wFMCommunicate OK [21:01:47]SAM_PROTO_SignData done [21:01:47]FM_MakeSignedData done [21:01:47]CreateOFDProtocolMessage [21:01:47]wFMCommunicate request_size=4 [21:01:47]MH_SAM_APDU [21:01:47]CAPDU: 80 11 00 00 [21:01:47]Write to MH i2c: E2 08 00 EB 31 80 11 00 00 00 00 00 00 96 [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:47]Read from MH i2c: E2 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 17 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 17 00 EB 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EF [21:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:01:47]wFMCommunicate OK [21:01:47]CreateOFDProtocolMessage done [21:01:47]OFDSenderStorePacket 63507 [21:01:47]StoreOFDPacket docnum=63507 [21:01:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AA 01 00 00 DD 78 A2 01 57 24 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C1 B5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 13 F8 00 00 35 04 06 00 A1 F7 72 07 D9 0E 4C 4A 3D E2 F4 A4 1E EB [21:01:47]CheckFolder [21:01:47]dirname=/storage/ofd_packets [21:01:47]CheckFolder done [21:01:47]ProducePacketName [21:01:47]name=ofd_packets/00063507 [21:01:47]NVStorageSaveData ofd_packets/00063507 [21:01:47]File name is /storage/ofd_packets/00063507 [21:01:47]Write 456 bytes [21:01:47]NVStorageSaveData done [21:01:47]OFDSenderStorePacket done [21:01:47]KKMCreateOFDPacket done [21:01:47]NVStorageSaveData kkm_last_timestamp [21:01:47]File name is /storage/kkm_last_timestamp [21:01:47]Write 4 bytes [21:01:47]NVStorageSaveData done [21:01:47]ExternCall_PrintAddStr [21:01:47]wPrintStart [21:01:47]Write to MH i2c: 01 00 00 EC 31 1D [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: 01 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: 01 07 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: 01 07 00 EC 31 00 00 00 00 00 FF 0F 32 [21:01:47]RasterBufferAndPrint [21:01:47]line Счет N : (3)47813 [21:01:47]line ИНН: 02508201610067 [21:01:48]line Контрольно-Кассовый Чек [21:01:48]line ПРОДАЖА [21:01:48]line Товар: 4700000160792 [21:01:48]line Снек Курут классический (круглый) [21:01:48]line 1.000 * 60.00 [21:01:48]line = 60.00 [21:01:48]line НДС 12% НСП 1% [21:01:48]line > о реализуемом товаре [21:01:48]line Товар: 48743570 [21:01:48]line Сигареты Winston XStyle Blue [21:01:48]line 1.000 * 144.00 [21:01:48]line = 144.00 [21:01:48]line НДС 12% НСП 1% [21:01:48]line > о реализуемом товаре [21:01:48]line ИТОГО: 204.00 [21:01:48]line НСП 1% : 1.80 [21:01:48]line НДС 12% : 21.66 [21:01:48]line Наличными: 204.00 [21:01:48]line Безнал.: 0.00 [21:01:48]line Место: АЗС № 86 "Партнер Нефть" [21:01:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:01:48]line СНО: Общий режим [21:01:48]line Чек 121 24.10.2024 21:01 [21:01:48]line Смена: 547 ФФД: 1.0 [21:01:48]line ЗНМ: 0300000154 [21:01:48]line РНМ: 0000000000091619 [21:01:48]line Версия ККМ: 001 [21:01:48]line ФМ: 0000000000874676 [21:01:48]line ФД: 63507 [21:01:48]line ФПД: 178084142110990 [21:01:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210153&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63507&fm=178084142110990&tin=02508201610067®Number=0000000000091619&sum=20400 [21:01:48]OFD Sender: Processing packet 63507 [packets to send 232, broken 231] [21:01:48]ProducePacketName [21:01:48]name=ofd_packets/00063507 [21:01:48]OFD Sender: To server: pG, [21:01:48]CommunicateWithHost lk.salyk.kg:30040 [21:01:48]ConnectInit lk.salyk.kg [21:01:48]line 0 [21:01:48]written 0, free lines is 4095 [21:01:48]Connected sock=10 [21:01:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AA 01 00 00 DD 78 A2 01 57 24 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 B0 4F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C1 B5 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 13 F8 00 00 35 04 06 00 A1 F7 72 07 D9 0E 4C 4A 3D E2 F4 A4 1E EB [21:01:48]Write to MH i2c: 01 00 00 1B 32 4D [21:01:48]Write i2c OK [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: 01 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: 01 07 00 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: 01 07 00 1B 32 00 00 00 00 00 C4 0C 24 [21:01:48]RasterBufferAndPrint [21:01:48]line [21:01:48]line [21:01:48]line [21:01:48]line [21:01:48]line [21:01:48]written 0, free lines is 3276 [21:01:48]MH_Cut [21:01:48]Write to MH i2c: D1 01 00 22 32 01 26 [21:01:48]Write i2c OK [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: D1 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: D1 01 00 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: D1 01 00 22 32 00 25 [21:01:48]Write to MH i2c: 01 00 00 23 32 55 [21:01:48]Write i2c OK [21:01:48]MH_I2C_Read... [21:01:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 C6 87 47 00 F7 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 13 F8 00 00 F4 03 04 00 B5 5F 1A 67 B6 04 01 00 00 53 03 FA EE 43 EB D8 57 [21:01:48]CommunicateWithHost err = 0 [21:01:48]CheckOFDResponse [21:01:48]1017 (14) - 77093643461234 [21:01:48]1041 (16) - 0000000000874676 [21:01:48]1040 (4) - 63507 [21:01:48]1012 (4) - 24.10.2024 14:54 [21:01:48]1206 (1) - 0 [21:01:48]OFD Sender: Remove packet 63507 [21:01:48]ProducePacketName [21:01:48]name=ofd_packets/00063507 [21:01:48]NVStorageDeleteData [21:01:49]OFD Sender: No OFD packet to send [21:01:49]*** Cut start [21:01:49]*** Partial cut [21:01:49]*** CUTSNS_PIN = 1 [21:01:49]*** CUTSNS_PIN = 0 [21:01:49]*** Brake cut motor [21:01:49]Read from MH i2c: 01 [21:01:49]MH_I2C_Read... [21:01:49]*** Stop cut motor [21:01:49]*** Cut end [21:01:49]Read from MH i2c: 01 07 00 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: 01 07 00 23 32 00 00 00 00 00 FF 0F 6A [21:01:49]process_action close_receipt done [21:01:49]requested_data is exist [21:01:49]produce_requested_data [21:01:49]requested_item fm.sn is exist - process it [21:01:49]wFMCommunicate request_size=4 [21:01:49]MH_SAM_APDU [21:01:49]CAPDU: 80 11 00 00 [21:01:49]Write to MH i2c: E2 08 00 24 32 80 11 00 00 00 00 00 00 D0 [21:01:49]Write i2c OK [21:01:49]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 17 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 17 00 24 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 29 [21:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:01:50]wFMCommunicate OK [21:01:50]requested_item fd.num is exist - process it [21:01:50]SAM_PROTO_GetFieldsCounters [21:01:50]wFMCommunicate request_size=4 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 13 00 00 [21:01:50]Write to MH i2c: E2 08 00 25 32 80 13 00 00 00 00 00 00 D3 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 62 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 62 00 25 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 13 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [21:01:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 13 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:50]wFMCommunicate OK [21:01:50]SAM_PROTO_GetFieldsCounters done [21:01:50]requested_item shift.num is exist - process it [21:01:50]requested_item shift.opened is exist - process it [21:01:50]req_shift_opened [21:01:50]FM_GetShiftState [21:01:50]SAM_PROTO_GetShiftState [21:01:50]wFMCommunicate request_size=4 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 13 01 00 [21:01:50]Write to MH i2c: E2 08 00 26 32 80 13 01 00 00 00 00 00 D5 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 0E 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 0E 00 26 32 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 B6 [21:01:50]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:01:50]wFMCommunicate OK [21:01:50]SAM_PROTO_GetShiftState done [21:01:50]FM_GetShiftState done [21:01:50]req_shift_opened done [21:01:50]requested_item shift.open_date is exist - process it [21:01:50]req_shift_open_date [21:01:50]req_shift_open_date done [21:01:50]produce_requested_data done [21:01:50]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63507,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:01:50]process_action_free close_receipt [21:01:50]json_value_free [21:01:50]json_value_free done [21:01:50]process_json_proto returns [21:01:50]Send response to host [21:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63507,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:01:50]free response buf [21:01:50]execute_script done [21:01:50]execute_script returns [21:01:50]free content buf [21:01:50]Sock 9.Close socket [21:01:50]Sock 9.Thread stoped [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:16]accept exits with 7 [21:04:16]New connection [21:04:16]New thread 3066633572 created [21:04:16]Thread 3066490212 joined [21:04:16]Waiting for new connection... [21:04:16] Sock 7.Parse request [21:04:16]Sock 7.Check first char [21:04:16]Sock 7.First char is OK [21:04:16]request: POST /json_proto HTTP/1.0 [21:04:16]Method: POST [21:04:16]URL: /json_proto [21:04:16]Method is POST - this is cgi request [21:04:16]url: /json_proto [21:04:16]query_string will be loaded in cgi processing [21:04:16]execute_cgi json_proto POST (null) [21:04:16]execute_cgi path=json_proto method=POST [21:04:16]POST find Content-Length [21:04:16]Host: 172.17.42.132:8080 [21:04:16]Content-Length: 884 [21:04:16]Content-Type: application/json [21:04:16] [21:04:16]POST finish read [21:04:16]Found Content-Length = 884 [21:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47814", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:16]execute_script... [21:04: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)47814", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:16]POST & json_proto [21:04:16]process_json_proto [21:04:16]json parsed OK: [21:04:16]protocol is kg_v1.0 [21:04:16]action value=close_receipt [21:04:16]process_action close_receipt [21:04:16]cmd_close_receipt [21:04:16]MH_GetDate [21:04:16]Write to MH i2c: F0 00 00 27 32 48 [21:04:16]Write i2c OK [21:04:16]MH_I2C_Read... [21:04:16]Read from MH i2c: F0 [21:04:16]MH_I2C_Read... [21:04:16]Read from MH i2c: F0 09 00 [21:04:16]MH_I2C_Read... [21:04:16]Read from MH i2c: F0 09 00 27 32 00 57 B6 1A 67 4C DF 56 66 C6 [21:04:16]GetLastDocTimeStamp 1729803713 [21:04:16]current date 1729803863 [21:04:16]FM_GetShiftState [21:04:16]SAM_PROTO_GetShiftState [21:04:16]wFMCommunicate request_size=4 [21:04:16]MH_SAM_APDU [21:04:16]CAPDU: 80 13 01 00 [21:04:16]Write to MH i2c: E2 08 00 28 32 80 13 01 00 00 00 00 00 D7 [21:04:16]Write i2c OK [21:04:16]MH_I2C_Read... [21:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:16]Read from MH i2c: E2 [21:04:16]MH_I2C_Read... [21:04:16]Read from MH i2c: E2 0E 00 [21:04:16]MH_I2C_Read... [21:04:16]Read from MH i2c: E2 0E 00 28 32 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 B8 [21:04:16]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:04:16]wFMCommunicate OK [21:04:16]SAM_PROTO_GetShiftState done [21:04:16]FM_GetShiftState done [21:04:16]opened in 1729728964 [21:04:16]opened+sec_in_day 1729815364 [21:04:16]quantity*price = 14400 [21:04:16]sum+1 = 14401 [21:04:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 122 24.10.2024 21:04 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63508 ФПД: 139524580298017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210423&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63508&fm=139524580298017&tin=02508201610067®Number=0000000000091619&sum=15400 0 [21:04:17]StoreToDocumentArchive [21:04:17]shift 547 fd 63508 [21:04:17]save to /storage/0547/doc_00063508 [21:04:17]save last doc name /storage/0547/doc_00063508 to /storage/kkm_last_doc_name [21:04:17]save OK [21:04:17]Clear old archive folders... [21:04:17]ProcessDocumentItem done err = 0, tmpTLVsize=385 [21:04:17]tlvbuf is 00B4BBB0 [21:04:17]SAM_PROTO_ClearQueue [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 09 00 00 [21:04:17]Write to MH i2c: E2 08 00 35 32 80 09 00 00 00 00 00 00 D9 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 35 32 00 90 00 DB [21:04:17]RAPDU: 90 00 [21:04:17]wFMCommunicate OK [21:04:17]SAM_PROTO_ClearQueue done [21:04:17]KKMCreateOFDPacket [21:04:17]OFDProtocolAddRootSTLVToBuf [21:04:17]FM_MakeSignedData [21:04:17]FM_MakeSignedData [21:04:17]SAM_PROTO_SignData [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 0D 01 02 [21:04:17]Write to MH i2c: E2 08 00 36 32 80 0D 01 02 00 00 00 00 E1 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 36 32 00 90 00 DC [21:04:17]RAPDU: 90 00 [21:04:17]wFMCommunicate OK [21:04:17]wFMCommunicate request_size=255 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [21:04:17]Write to MH i2c: E2 02 01 37 32 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 9E [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 37 32 00 90 00 DD [21:04:17]RAPDU: 90 00 [21:04:17]wFMCommunicate OK [21:04:17]wFMCommunicate request_size=144 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 0D 02 02 8B 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 57 B6 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 14 F8 00 00 35 04 06 00 7E E5 99 0B CD 21 [21:04:17]Write to MH i2c: E2 93 00 38 32 80 0D 02 02 8B 00 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 57 B6 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 14 F8 00 00 35 04 06 00 7E E5 99 0B CD 21 00 00 B1 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 03 00 38 32 00 90 00 DE [21:04:17]RAPDU: 90 00 [21:04:17]wFMCommunicate OK [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 0D 03 02 [21:04:17]Write to MH i2c: E2 08 00 39 32 80 0D 03 02 00 00 00 00 E6 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 0B 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 0B 00 39 32 00 9E 9C 65 89 F8 77 A3 21 90 00 42 [21:04:17]RAPDU: 9E 9C 65 89 F8 77 A3 21 90 00 [21:04:17]wFMCommunicate OK [21:04:17]SAM_PROTO_SignData done [21:04:17]FM_MakeSignedData done [21:04:17]CreateOFDProtocolMessage [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 11 00 00 [21:04:17]Write to MH i2c: E2 08 00 3A 32 80 11 00 00 00 00 00 00 E6 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 17 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 17 00 3A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3F [21:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:04:17]wFMCommunicate OK [21:04:17]CreateOFDProtocolMessage done [21:04:17]OFDSenderStorePacket 63508 [21:04:17]StoreOFDPacket docnum=63508 [21:04:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 95 01 00 00 C1 D6 8D 01 06 66 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 57 B6 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 14 F8 00 00 35 04 06 00 7E E5 99 0B CD 21 9E 9C 65 89 F8 77 A3 21 [21:04:17]CheckFolder [21:04:17]dirname=/storage/ofd_packets [21:04:17]CheckFolder done [21:04:17]ProducePacketName [21:04:17]name=ofd_packets/00063508 [21:04:17]NVStorageSaveData ofd_packets/00063508 [21:04:17]File name is /storage/ofd_packets/00063508 [21:04:17]Write 435 bytes [21:04:17]NVStorageSaveData done [21:04:17]OFDSenderStorePacket done [21:04:17]KKMCreateOFDPacket done [21:04:17]NVStorageSaveData kkm_last_timestamp [21:04:17]File name is /storage/kkm_last_timestamp [21:04:17]Write 4 bytes [21:04:17]NVStorageSaveData done [21:04:17]ExternCall_PrintAddStr [21:04:17]wPrintStart [21:04:17]Write to MH i2c: 01 00 00 3B 32 6D [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 07 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 07 00 3B 32 00 00 00 00 00 FF 0F 82 [21:04:17]RasterBufferAndPrint [21:04:17]line Счет N : (3)47814 [21:04:17]line ИНН: 02508201610067 [21:04:17]line Контрольно-Кассовый Чек [21:04:17]line ПРОДАЖА [21:04:17]line Товар: 48743587 [21:04:17]line Сигареты Winston XStyle Silver [21:04:17]line 1.000 * 144.00 [21:04:17]line = 144.00 [21:04:17]line НДС 12% НСП 1% [21:04:17]line > о реализуемом товаре [21:04:18]line Товар: 46226617 [21:04:18]line Mentos ПВ Нежная Мята 6*100*2г [21:04:18]line 1.000 * 10.00 [21:04:18]line = 10.00 [21:04:18]line НДС 12% НСП 1% [21:04:18]line > о реализуемом товаре [21:04:18]line ИТОГО: 154.00 [21:04:18]line НСП 1% : 1.36 [21:04:18]line НДС 12% : 16.35 [21:04:18]line Наличными: 154.00 [21:04:18]line Безнал.: 0.00 [21:04:18]line Место: АЗС № 86 "Партнер Нефть" [21:04:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:04:18]line СНО: Общий режим [21:04:18]line Чек 122 24.10.2024 21:04 [21:04:18]line Смена: 547 ФФД: 1.0 [21:04:18]line ЗНМ: 0300000154 [21:04:18]line РНМ: 0000000000091619 [21:04:18]line Версия ККМ: 001 [21:04:18]line ФМ: 0000000000874676 [21:04:18]line ФД: 63508 [21:04:18]line ФПД: 139524580298017 [21:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210423&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63508&fm=139524580298017&tin=02508201610067®Number=0000000000091619&sum=15400 [21:04:18]line 0 [21:04:18]OFD Sender: Processing packet 63508 [packets to send 232, broken 231] [21:04:18]ProducePacketName [21:04:18]name=ofd_packets/00063508 [21:04:18]OFD Sender: To server: pG, [21:04:18]CommunicateWithHost lk.salyk.kg:30040 [21:04:18]ConnectInit lk.salyk.kg [21:04:18]written 0, free lines is 4095 [21:04:18]Connected sock=10 [21:04:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 95 01 00 00 C1 D6 8D 01 06 66 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 57 B6 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 14 F8 00 00 35 04 06 00 7E E5 99 0B CD 21 9E 9C 65 89 F8 77 A3 21 [21:04:18]Write to MH i2c: 01 00 00 6B 32 9D [21:04:18]Write i2c OK [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: 01 [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: 01 07 00 [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: 01 07 00 6B 32 00 00 00 00 00 AB 0C 5B [21:04:18]RasterBufferAndPrint [21:04:18]line [21:04:18]line [21:04:18]line [21:04:18]line [21:04:18]line [21:04:18]written 0, free lines is 3252 [21:04:18]MH_Cut [21:04:18]Write to MH i2c: D1 01 00 72 32 01 76 [21:04:18]Write i2c OK [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: D1 [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: D1 01 00 [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: D1 01 00 72 32 00 75 [21:04:18]Write to MH i2c: 01 00 00 73 32 A5 [21:04:18]Write i2c OK [21:04:18]MH_I2C_Read... [21:04:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 16 67 47 00 A0 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 14 F8 00 00 F4 03 04 00 4B 60 1A 67 B6 04 01 00 00 99 13 10 CA 6D 82 78 54 [21:04:18]CommunicateWithHost err = 0 [21:04:18]CheckOFDResponse [21:04:18]1017 (14) - 77093643461234 [21:04:18]1041 (16) - 0000000000874676 [21:04:18]1040 (4) - 63508 [21:04:18]1012 (4) - 24.10.2024 14:57 [21:04:18]1206 (1) - 0 [21:04:18]OFD Sender: Remove packet 63508 [21:04:18]ProducePacketName [21:04:18]name=ofd_packets/00063508 [21:04:18]NVStorageDeleteData [21:04:19]OFD Sender: No OFD packet to send [21:04:19]*** Cut start [21:04:19]*** Partial cut [21:04:19]*** CUTSNS_PIN = 1 [21:04:19]*** CUTSNS_PIN = 0 [21:04:19]*** Brake cut motor [21:04:20]Read from MH i2c: 01 [21:04:20]MH_I2C_Read... [21:04:20]*** Stop cut motor [21:04:20]*** Cut end [21:04:20]Read from MH i2c: 01 07 00 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: 01 07 00 73 32 00 00 00 00 00 FF 0F BA [21:04:20]process_action close_receipt done [21:04:20]requested_data is exist [21:04:20]produce_requested_data [21:04:20]requested_item fm.sn is exist - process it [21:04:20]wFMCommunicate request_size=4 [21:04:20]MH_SAM_APDU [21:04:20]CAPDU: 80 11 00 00 [21:04:20]Write to MH i2c: E2 08 00 74 32 80 11 00 00 00 00 00 00 20 [21:04:20]Write i2c OK [21:04:20]MH_I2C_Read... [21:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:20]Read from MH i2c: E2 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 17 00 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 17 00 74 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 79 [21:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:04:20]wFMCommunicate OK [21:04:20]requested_item fd.num is exist - process it [21:04:20]SAM_PROTO_GetFieldsCounters [21:04:20]wFMCommunicate request_size=4 [21:04:20]MH_SAM_APDU [21:04:20]CAPDU: 80 13 00 00 [21:04:20]Write to MH i2c: E2 08 00 75 32 80 13 00 00 00 00 00 00 23 [21:04:20]Write i2c OK [21:04:20]MH_I2C_Read... [21:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:20]Read from MH i2c: E2 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 62 00 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 62 00 75 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 14 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [21:04:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 14 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:20]wFMCommunicate OK [21:04:20]SAM_PROTO_GetFieldsCounters done [21:04:20]requested_item shift.num is exist - process it [21:04:20]requested_item shift.opened is exist - process it [21:04:20]req_shift_opened [21:04:20]FM_GetShiftState [21:04:20]SAM_PROTO_GetShiftState [21:04:20]wFMCommunicate request_size=4 [21:04:20]MH_SAM_APDU [21:04:20]CAPDU: 80 13 01 00 [21:04:20]Write to MH i2c: E2 08 00 76 32 80 13 01 00 00 00 00 00 25 [21:04:20]Write i2c OK [21:04:20]MH_I2C_Read... [21:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:20]Read from MH i2c: E2 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 0E 00 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 0E 00 76 32 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 06 [21:04:20]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:04:20]wFMCommunicate OK [21:04:20]SAM_PROTO_GetShiftState done [21:04:20]FM_GetShiftState done [21:04:20]req_shift_opened done [21:04:20]requested_item shift.open_date is exist - process it [21:04:20]req_shift_open_date [21:04:20]req_shift_open_date done [21:04:20]produce_requested_data done [21:04:20]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63508,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:04:20]process_action_free close_receipt [21:04:20]json_value_free [21:04:20]json_value_free done [21:04:20]process_json_proto returns [21:04:20]Send response to host [21:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63508,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:04:20]free response buf [21:04:20]execute_script done [21:04:20]execute_script returns [21:04:20]free content buf [21:04:20]Sock 7.Close socket [21:04:20]Sock 7.Thread stoped [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:35]accept exits with 9 [21:08:35]New connection [21:08:35]New thread 3066490212 created [21:08:35]Thread 3066633572 joined [21:08:35]Waiting for new connection... [21:08:35] Sock 9.Parse request [21:08:35]Sock 9.Check first char [21:08:35]Sock 9.First char is OK [21:08:35]request: POST /json_proto HTTP/1.0 [21:08:35]Method: POST [21:08:35]URL: /json_proto [21:08:35]Method is POST - this is cgi request [21:08:35]url: /json_proto [21:08:35]query_string will be loaded in cgi processing [21:08:35]execute_cgi json_proto POST (null) [21:08:35]execute_cgi path=json_proto method=POST [21:08:35]POST find Content-Length [21:08:35]Host: 172.17.42.132:8080 [21:08:35]Content-Length: 1321 [21:08:35]Content-Type: application/json [21:08:35] [21:08:35]POST finish read [21:08:35]Found Content-Length = 1321 [21:08:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47815", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:35]execute_script... [21:08:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47815", "tax_sys" : 0, "items" : [ { "code": "4700000310258", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u041A\u0435\u043B\u0435\u0447\u0435\u043A 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 398.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:35]POST & json_proto [21:08:35]process_json_proto [21:08:35]json parsed OK: [21:08:35]protocol is kg_v1.0 [21:08:35]action value=close_receipt [21:08:35]process_action close_receipt [21:08:35]cmd_close_receipt [21:08:35]MH_GetDate [21:08:35]Write to MH i2c: F0 00 00 77 32 98 [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: F0 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: F0 09 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: F0 09 00 77 32 00 5A B7 1A 67 4C DF 56 66 1A [21:08:35]GetLastDocTimeStamp 1729803863 [21:08:35]current date 1729804122 [21:08:35]FM_GetShiftState [21:08:35]SAM_PROTO_GetShiftState [21:08:35]wFMCommunicate request_size=4 [21:08:35]MH_SAM_APDU [21:08:35]CAPDU: 80 13 01 00 [21:08:35]Write to MH i2c: E2 08 00 78 32 80 13 01 00 00 00 00 00 27 [21:08:35]Write i2c OK [21:08:35]MH_I2C_Read... [21:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:35]Read from MH i2c: E2 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 0E 00 [21:08:35]MH_I2C_Read... [21:08:35]Read from MH i2c: E2 0E 00 78 32 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 08 [21:08:35]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:08:35]wFMCommunicate OK [21:08:35]SAM_PROTO_GetShiftState done [21:08:35]FM_GetShiftState done [21:08:35]opened in 1729728964 [21:08:35]opened+sec_in_day 1729815364 [21:08:35]quantity*price = 7900 [21:08:35]sum+1 = 7901 [21:08:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481514 ПИВО СВЕТЛОЕ URBAN 312 1,0 л ПЭТ 1.000 * 199.00 = 199.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007401201 Семечки соленые ДЖИНН Великан 100гр 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 398.00 НСП 1% : 3.52 НДС 12% : 42.26 Наличными: 398.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 123 24.10.2024 21:08 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63509 ФПД: 140779927910452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210843&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63509&fm=140779927910452&tin=02508201610067®Number=0000000000091619&sum=39800 0 [21:08:36]StoreToDocumentArchive [21:08:36]shift 547 fd 63509 [21:08:36]save to /storage/0547/doc_00063509 [21:08:36]save last doc name /storage/0547/doc_00063509 to /storage/kkm_last_doc_name [21:08:36]save OK [21:08:36]Clear old archive folders... [21:08:36]ProcessDocumentItem done err = 0, tmpTLVsize=544 [21:08:36]tlvbuf is 00B4B720 [21:08:36]SAM_PROTO_ClearQueue [21:08:36]wFMCommunicate request_size=4 [21:08:36]MH_SAM_APDU [21:08:36]CAPDU: 80 09 00 00 [21:08:36]Write to MH i2c: E2 08 00 85 32 80 09 00 00 00 00 00 00 29 [21:08:36]Write i2c OK [21:08:36]MH_I2C_Read... [21:08:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:36]Read from MH i2c: E2 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 03 00 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 03 00 85 32 00 90 00 2B [21:08:36]RAPDU: 90 00 [21:08:36]wFMCommunicate OK [21:08:36]SAM_PROTO_ClearQueue done [21:08:36]KKMCreateOFDPacket [21:08:36]OFDProtocolAddRootSTLVToBuf [21:08:36]FM_MakeSignedData [21:08:36]FM_MakeSignedData [21:08:36]SAM_PROTO_SignData [21:08:36]wFMCommunicate request_size=4 [21:08:36]MH_SAM_APDU [21:08:36]CAPDU: 80 0D 01 02 [21:08:36]Write to MH i2c: E2 08 00 86 32 80 0D 01 02 00 00 00 00 31 [21:08:36]Write i2c OK [21:08:36]MH_I2C_Read... [21:08:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:36]Read from MH i2c: E2 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 03 00 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 03 00 86 32 00 90 00 2C [21:08:36]RAPDU: 90 00 [21:08:36]wFMCommunicate OK [21:08:36]wFMCommunicate request_size=255 [21:08:36]MH_SAM_APDU [21:08:36]CAPDU: 80 0D 02 02 FA 03 00 20 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 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 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [21:08:36]Write to MH i2c: E2 02 01 87 32 80 0D 02 02 FA 00 03 00 20 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 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 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 12 [21:08:36]Write i2c OK [21:08:36]MH_I2C_Read... [21:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:36]Read from MH i2c: E2 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 03 00 [21:08:36]MH_I2C_Read... [21:08:36]Read from MH i2c: E2 03 00 87 32 00 90 00 2D [21:08:36]RAPDU: 90 00 [21:08:36]wFMCommunicate OK [21:08:36]wFMCommunicate request_size=255 [21:08:36]MH_SAM_APDU [21:08:36]CAPDU: 80 0D 02 02 FA 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 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 7B 00 00 00 F4 03 04 00 5B B7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [21:08:36]Write to MH i2c: E2 02 01 88 32 80 0D 02 02 FA 00 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 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 7B 00 00 00 F4 03 04 00 5B B7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 8C [21:08:36]Write i2c OK [21:08:36]MH_I2C_Read... [21:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:37]Read from MH i2c: E2 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: E2 03 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: E2 03 00 88 32 00 90 00 2E [21:08:37]RAPDU: 90 00 [21:08:37]wFMCommunicate OK [21:08:37]wFMCommunicate request_size=53 [21:08:37]MH_SAM_APDU [21:08:37]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 15 F8 00 00 35 04 06 00 80 09 E1 98 38 34 [21:08:37]Write to MH i2c: E2 38 00 89 32 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 15 F8 00 00 35 04 06 00 80 09 E1 98 38 34 00 00 AC [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:37]Read from MH i2c: E2 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: E2 03 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: E2 03 00 89 32 00 90 00 2F [21:08:37]RAPDU: 90 00 [21:08:37]wFMCommunicate OK [21:08:37]wFMCommunicate request_size=4 [21:08:37]MH_SAM_APDU [21:08:37]CAPDU: 80 0D 03 02 [21:08:37]Write to MH i2c: E2 08 00 8A 32 80 0D 03 02 00 00 00 00 37 [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:37]Read from MH i2c: E2 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: E2 0B 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: E2 0B 00 8A 32 00 AD AC F4 9A 1F 6F 91 30 90 00 6E [21:08:37]RAPDU: AD AC F4 9A 1F 6F 91 30 90 00 [21:08:37]wFMCommunicate OK [21:08:37]SAM_PROTO_SignData done [21:08:37]FM_MakeSignedData done [21:08:37]CreateOFDProtocolMessage [21:08:37]wFMCommunicate request_size=4 [21:08:37]MH_SAM_APDU [21:08:37]CAPDU: 80 11 00 00 [21:08:37]Write to MH i2c: E2 08 00 8B 32 80 11 00 00 00 00 00 00 37 [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:37]Read from MH i2c: E2 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: E2 17 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: E2 17 00 8B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 90 [21:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:08:37]wFMCommunicate OK [21:08:37]CreateOFDProtocolMessage done [21:08:37]OFDSenderStorePacket 63509 [21:08:37]StoreOFDPacket docnum=63509 [21:08:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 34 02 00 00 03 C7 2C 02 EF DC 5A 03 01 00 03 00 20 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 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 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 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 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 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 7B 00 00 00 F4 03 04 00 5B B7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 15 F8 00 00 35 04 06 00 80 09 E1 98 38 34 AD AC F4 9A 1F 6F 91 30 [21:08:37]CheckFolder [21:08:37]dirname=/storage/ofd_packets [21:08:37]CheckFolder done [21:08:37]ProducePacketName [21:08:37]name=ofd_packets/00063509 [21:08:37]NVStorageSaveData ofd_packets/00063509 [21:08:37]File name is /storage/ofd_packets/00063509 [21:08:37]Write 594 bytes [21:08:37]NVStorageSaveData done [21:08:37]OFDSenderStorePacket done [21:08:37]KKMCreateOFDPacket done [21:08:37]NVStorageSaveData kkm_last_timestamp [21:08:37]File name is /storage/kkm_last_timestamp [21:08:37]Write 4 bytes [21:08:37]NVStorageSaveData done [21:08:37]ExternCall_PrintAddStr [21:08:37]wPrintStart [21:08:37]Write to MH i2c: 01 00 00 8C 32 BE [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 8C 32 00 00 00 00 00 FF 0F D3 [21:08:37]RasterBufferAndPrint [21:08:37]line Счет N : (3)47815 [21:08:37]line ИНН: 02508201610067 [21:08:37]line Контрольно-Кассовый Чек [21:08:37]line ПРОДАЖА [21:08:37]line Товар: 4700000310258 [21:08:37]line Напиток Лимонад Келечек 1л [21:08:37]line 1.000 * 79.00 [21:08:37]line = 79.00 [21:08:37]line НДС 12% НСП 1% [21:08:37]line > о реализуемом товаре [21:08:37]line Товар: 4700000481514 [21:08:37]line ПИВО СВЕТЛОЕ URBAN 312 1,0 л ПЭТ [21:08:37]line 1.000 * 199.00 [21:08:37]line = 199.00 [21:08:37]line НДС 12% НСП 1% [21:08:37]line > о реализуемом товаре [21:08:37]line Товар: 4630007401201 [21:08:37]line Семечки соленые ДЖИНН Великан 100гр [21:08:37]line 1.000 * 120.00 [21:08:37]line = 120.00 [21:08:37]line НДС 12% НСП 1% [21:08:37]line > о реализуемом товаре [21:08:37]line ИТОГО: 398.00 [21:08:37]line НСП 1% : 3.52 [21:08:37]line НДС 12% : 42.26 [21:08:37]line Наличными: 398.00 [21:08:37]line Безнал.: 0.00 [21:08:37]line Место: АЗС № 86 "Партнер Нефть" [21:08:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:08:37]line СНО: Общий режим [21:08:37]line Чек 123 24.10.2024 21:08 [21:08:37]line Смена: 547 ФФД: 1.0 [21:08:37]line ЗНМ: 0300000154 [21:08:37]line РНМ: 0000000000091619 [21:08:37]line Версия ККМ: 001 [21:08:37]line ФМ: 0000000000874676 [21:08:37]line ФД: 63509 [21:08:37]line ФПД: 140779927910452 [21:08:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210843&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63509&fm=140779927910452&tin=02508201610067®Number=0000000000091619&sum=39800 [21:08:37]line 0 [21:08:37]OFD Sender: Processing packet 63509 [packets to send 232, broken 231] [21:08:37]ProducePacketName [21:08:37]name=ofd_packets/00063509 [21:08:37]OFD Sender: To server: pG, [21:08:37]CommunicateWithHost lk.salyk.kg:30040 [21:08:37]ConnectInit lk.salyk.kg [21:08:37]written 0, free lines is 4095 [21:08:38]Connected sock=10 [21:08:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 34 02 00 00 03 C7 2C 02 EF DC 5A 03 01 00 03 00 20 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 32 35 38 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 9A D0 B5 D0 BB D0 B5 D1 87 D0 B5 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 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 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 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 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 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 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 10 00 00 00 00 07 04 06 00 78 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 7B 00 00 00 F4 03 04 00 5B B7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 15 F8 00 00 35 04 06 00 80 09 E1 98 38 34 AD AC F4 9A 1F 6F 91 30 [21:08:38]Write to MH i2c: 01 00 00 C2 32 F4 [21:08:38]Write i2c OK [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: 01 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: 01 07 00 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: 01 07 00 C2 32 00 00 00 00 00 5E 0C 65 [21:08:38]RasterBufferAndPrint [21:08:38]line [21:08:38]line [21:08:38]line [21:08:38]line [21:08:38]line [21:08:38]written 0, free lines is 3175 [21:08:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CB 6D 47 00 48 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 15 F8 00 00 F4 03 04 00 4E 61 1A 67 B6 04 01 00 00 10 49 A6 3D 8F 6D 57 43 [21:08:38]CommunicateWithHost err = 0 [21:08:38]CheckOFDResponse [21:08:38]1017 (14) - 77093643461234 [21:08:38]1041 (16) - 0000000000874676 [21:08:38]1040 (4) - 63509 [21:08:38]1012 (4) - 24.10.2024 15:01 [21:08:38]1206 (1) - 0 [21:08:38]OFD Sender: Remove packet 63509 [21:08:38]ProducePacketName [21:08:38]name=ofd_packets/00063509 [21:08:38]NVStorageDeleteData [21:08:38]MH_Cut [21:08:38]Write to MH i2c: D1 01 00 C9 32 01 CD [21:08:38]Write i2c OK [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: D1 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: D1 01 00 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: D1 01 00 C9 32 00 CC [21:08:38]Write to MH i2c: 01 00 00 CA 32 FC [21:08:38]Write i2c OK [21:08:38]MH_I2C_Read... [21:08:38]OFD Sender: No OFD packet to send [21:08:39]*** Cut start [21:08:39]*** Partial cut [21:08:39]*** CUTSNS_PIN = 1 [21:08:39]*** CUTSNS_PIN = 0 [21:08:39]*** Brake cut motor [21:08:39]Read from MH i2c: 01 [21:08:39]MH_I2C_Read... [21:08:39]*** Stop cut motor [21:08:39]*** Cut end [21:08:39]Read from MH i2c: 01 07 00 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: 01 07 00 CA 32 00 00 00 00 00 FF 0F 11 [21:08:39]process_action close_receipt done [21:08:39]requested_data is exist [21:08:39]produce_requested_data [21:08:39]requested_item fm.sn is exist - process it [21:08:39]wFMCommunicate request_size=4 [21:08:39]MH_SAM_APDU [21:08:39]CAPDU: 80 11 00 00 [21:08:39]Write to MH i2c: E2 08 00 CB 32 80 11 00 00 00 00 00 00 77 [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:39]Read from MH i2c: E2 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 17 00 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 17 00 CB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D0 [21:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:08:39]wFMCommunicate OK [21:08:39]requested_item fd.num is exist - process it [21:08:39]SAM_PROTO_GetFieldsCounters [21:08:39]wFMCommunicate request_size=4 [21:08:39]MH_SAM_APDU [21:08:39]CAPDU: 80 13 00 00 [21:08:39]Write to MH i2c: E2 08 00 CC 32 80 13 00 00 00 00 00 00 7A [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:39]Read from MH i2c: E2 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 62 00 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 62 00 CC 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 15 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [21:08:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 15 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:40]wFMCommunicate OK [21:08:40]SAM_PROTO_GetFieldsCounters done [21:08:40]requested_item shift.num is exist - process it [21:08:40]requested_item shift.opened is exist - process it [21:08:40]req_shift_opened [21:08:40]FM_GetShiftState [21:08:40]SAM_PROTO_GetShiftState [21:08:40]wFMCommunicate request_size=4 [21:08:40]MH_SAM_APDU [21:08:40]CAPDU: 80 13 01 00 [21:08:40]Write to MH i2c: E2 08 00 CD 32 80 13 01 00 00 00 00 00 7C [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:40]Read from MH i2c: E2 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 0E 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 0E 00 CD 32 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 5D [21:08:40]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:08:40]wFMCommunicate OK [21:08:40]SAM_PROTO_GetShiftState done [21:08:40]FM_GetShiftState done [21:08:40]req_shift_opened done [21:08:40]requested_item shift.open_date is exist - process it [21:08:40]req_shift_open_date [21:08:40]req_shift_open_date done [21:08:40]produce_requested_data done [21:08:40]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63509,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:08:40]process_action_free close_receipt [21:08:40]json_value_free [21:08:40]json_value_free done [21:08:40]process_json_proto returns [21:08:40]Send response to host [21:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63509,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:08:40]free response buf [21:08:40]execute_script done [21:08:40]execute_script returns [21:08:40]free content buf [21:08:40]Sock 9.Close socket [21:08:40]Sock 9.Thread stoped [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09: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:08]accept exits with 7 [21:10:08]New connection [21:10:08]New thread 3066633572 created [21:10:08]Thread 3066490212 joined [21:10:08]Waiting for new connection... [21:10:08] Sock 7.Parse request [21:10:08]Sock 7.Check first char [21:10:08]Sock 7.First char is OK [21:10:08]request: POST /json_proto HTTP/1.0 [21:10:08]Method: POST [21:10:08]URL: /json_proto [21:10:08]Method is POST - this is cgi request [21:10:08]url: /json_proto [21:10:08]query_string will be loaded in cgi processing [21:10:08]execute_cgi json_proto POST (null) [21:10:08]execute_cgi path=json_proto method=POST [21:10:08]POST find Content-Length [21:10:08]Host: 172.17.42.132:8080 [21:10:08]Content-Length: 1061 [21:10:08]Content-Type: application/json [21:10:08] [21:10:08]POST finish read [21:10:08]Found Content-Length = 1061 [21:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47816", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 555.04, "quantity" : 1.000, "sum" : 555.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 148.67, "quantity" : 1.000, "sum" : 148.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 703.71 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:08]execute_script... [21:10: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)47816", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 555.04, "quantity" : 1.000, "sum" : 555.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 148.67, "quantity" : 1.000, "sum" : 148.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 703.71 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:08]POST & json_proto [21:10:08]process_json_proto [21:10:08]json parsed OK: [21:10:08]protocol is kg_v1.0 [21:10:08]action value=close_receipt [21:10:08]process_action close_receipt [21:10:08]cmd_close_receipt [21:10:08]MH_GetDate [21:10:08]Write to MH i2c: F0 00 00 CE 32 EF [21:10:08]Write i2c OK [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: F0 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: F0 09 00 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: F0 09 00 CE 32 00 B8 B7 1A 67 4C DF 56 66 CF [21:10:08]GetLastDocTimeStamp 1729804123 [21:10:08]current date 1729804216 [21:10:08]FM_GetShiftState [21:10:08]SAM_PROTO_GetShiftState [21:10:08]wFMCommunicate request_size=4 [21:10:08]MH_SAM_APDU [21:10:08]CAPDU: 80 13 01 00 [21:10:08]Write to MH i2c: E2 08 00 CF 32 80 13 01 00 00 00 00 00 7E [21:10:08]Write i2c OK [21:10:08]MH_I2C_Read... [21:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:09]Read from MH i2c: E2 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 0E 00 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 0E 00 CF 32 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 5F [21:10:09]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:10:09]wFMCommunicate OK [21:10:09]SAM_PROTO_GetShiftState done [21:10:09]FM_GetShiftState done [21:10:09]opened in 1729728964 [21:10:09]opened+sec_in_day 1729815364 [21:10:09]quantity*price = 55504 [21:10:09]sum+1 = 55505 [21:10:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001150099 Сок Da-Da 1л персик 1.000 * 148.67 = 148.67 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 703.71 НСП 1% : 6.23 НДС 12% : 74.73 Наличными: 0.00 Безнал.: 703.71 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 124 24.10.2024 21:10 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63510 ФПД: 188463171661636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211016&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63510&fm=188463171661636&tin=02508201610067®Number=0000000000091619&sum=70371 0 [21:10:09]StoreToDocumentArchive [21:10:09]shift 547 fd 63510 [21:10:09]save to /storage/0547/doc_00063510 [21:10:09]save last doc name /storage/0547/doc_00063510 to /storage/kkm_last_doc_name [21:10:09]save OK [21:10:09]Clear old archive folders... [21:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=383 [21:10:09]tlvbuf is 00B44660 [21:10:09]SAM_PROTO_ClearQueue [21:10:09]wFMCommunicate request_size=4 [21:10:09]MH_SAM_APDU [21:10:09]CAPDU: 80 09 00 00 [21:10:09]Write to MH i2c: E2 08 00 DC 32 80 09 00 00 00 00 00 00 80 [21:10:09]Write i2c OK [21:10:09]MH_I2C_Read... [21:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:09]Read from MH i2c: E2 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 DC 32 00 90 00 82 [21:10:09]RAPDU: 90 00 [21:10:09]wFMCommunicate OK [21:10:09]SAM_PROTO_ClearQueue done [21:10:09]KKMCreateOFDPacket [21:10:09]OFDProtocolAddRootSTLVToBuf [21:10:09]FM_MakeSignedData [21:10:09]FM_MakeSignedData [21:10:09]SAM_PROTO_SignData [21:10:09]wFMCommunicate request_size=4 [21:10:09]MH_SAM_APDU [21:10:09]CAPDU: 80 0D 01 02 [21:10:09]Write to MH i2c: E2 08 00 DD 32 80 0D 01 02 00 00 00 00 88 [21:10:09]Write i2c OK [21:10:09]MH_I2C_Read... [21:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:09]Read from MH i2c: E2 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 DD 32 00 90 00 83 [21:10:09]RAPDU: 90 00 [21:10:09]wFMCommunicate OK [21:10:09]wFMCommunicate request_size=255 [21:10:09]MH_SAM_APDU [21:10:09]CAPDU: 80 0D 02 02 FA 03 00 7F 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 E8 03 00 00 00 00 00 37 04 06 00 D0 D8 00 00 00 00 13 04 06 00 D0 D8 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 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 12 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F [21:10:10]Write to MH i2c: E2 02 01 DE 32 80 0D 02 02 FA 00 03 00 7F 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 E8 03 00 00 00 00 00 37 04 06 00 D0 D8 00 00 00 00 13 04 06 00 D0 D8 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 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 12 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 59 [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 DE 32 00 90 00 84 [21:10:10]RAPDU: 90 00 [21:10:10]wFMCommunicate OK [21:10:10]wFMCommunicate request_size=142 [21:10:10]MH_SAM_APDU [21:10:10]CAPDU: 80 0D 02 02 89 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 12 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B8 B7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 16 F8 00 00 35 04 06 00 AB 68 00 66 6F 44 [21:10:10]Write to MH i2c: E2 91 00 DF 32 80 0D 02 02 89 00 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 12 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B8 B7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 16 F8 00 00 35 04 06 00 AB 68 00 66 6F 44 00 00 E2 [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 03 00 DF 32 00 90 00 85 [21:10:10]RAPDU: 90 00 [21:10:10]wFMCommunicate OK [21:10:10]wFMCommunicate request_size=4 [21:10:10]MH_SAM_APDU [21:10:10]CAPDU: 80 0D 03 02 [21:10:10]Write to MH i2c: E2 08 00 E0 32 80 0D 03 02 00 00 00 00 8D [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 0B 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 0B 00 E0 32 00 30 4D FD C7 44 6E 0E 4C 90 00 DB [21:10:10]RAPDU: 30 4D FD C7 44 6E 0E 4C 90 00 [21:10:10]wFMCommunicate OK [21:10:10]SAM_PROTO_SignData done [21:10:10]FM_MakeSignedData done [21:10:10]CreateOFDProtocolMessage [21:10:10]wFMCommunicate request_size=4 [21:10:10]MH_SAM_APDU [21:10:10]CAPDU: 80 11 00 00 [21:10:10]Write to MH i2c: E2 08 00 E1 32 80 11 00 00 00 00 00 00 8D [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 17 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 17 00 E1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E6 [21:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:10:10]wFMCommunicate OK [21:10:10]CreateOFDProtocolMessage done [21:10:10]OFDSenderStorePacket 63510 [21:10:10]StoreOFDPacket docnum=63510 [21:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 93 01 00 00 0D D5 8B 01 25 6E 5A 03 01 00 03 00 7F 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 E8 03 00 00 00 00 00 37 04 06 00 D0 D8 00 00 00 00 13 04 06 00 D0 D8 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 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 12 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 12 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B8 B7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 16 F8 00 00 35 04 06 00 AB 68 00 66 6F 44 30 4D FD C7 44 6E 0E 4C [21:10:10]CheckFolder [21:10:10]dirname=/storage/ofd_packets [21:10:10]CheckFolder done [21:10:10]ProducePacketName [21:10:10]name=ofd_packets/00063510 [21:10:10]NVStorageSaveData ofd_packets/00063510 [21:10:10]File name is /storage/ofd_packets/00063510 [21:10:10]Write 433 bytes [21:10:10]NVStorageSaveData done [21:10:10]OFDSenderStorePacket done [21:10:10]KKMCreateOFDPacket done [21:10:10]NVStorageSaveData kkm_last_timestamp [21:10:10]File name is /storage/kkm_last_timestamp [21:10:10]Write 4 bytes [21:10:10]NVStorageSaveData done [21:10:10]ExternCall_PrintAddStr [21:10:10]wPrintStart [21:10:10]Write to MH i2c: 01 00 00 E2 32 14 [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 E2 32 00 00 00 00 00 FF 0F 29 [21:10:10]RasterBufferAndPrint [21:10:10]line Счет N : (3)47816 [21:10:10]line ИНН: 02508201610067 [21:10:10]line Контрольно-Кассовый Чек [21:10:10]line ПРОДАЖА [21:10:10]line Товар: 4700003150936 [21:10:10]line Новая Водка Organic 40% 0,48л [21:10:10]line 1.000 * 555.04 [21:10:10]line = 555.04 [21:10:10]line НДС 12% НСП 1% [21:10:10]line > о реализуемом товаре [21:10:10]line Товар: 4870001150099 [21:10:10]line Сок Da-Da 1л персик [21:10:10]line 1.000 * 148.67 [21:10:10]line = 148.67 [21:10:10]line НДС 12% НСП 1% [21:10:10]line > о реализуемом товаре [21:10:10]line ИТОГО: 703.71 [21:10:10]line НСП 1% : 6.23 [21:10:10]line НДС 12% : 74.73 [21:10:10]line Наличными: 0.00 [21:10:10]line Безнал.: 703.71 [21:10:10]line Место: АЗС № 86 "Партнер Нефть" [21:10:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:10:10]line СНО: Общий режим [21:10:10]line Чек 124 24.10.2024 21:10 [21:10:10]line Смена: 547 ФФД: 1.0 [21:10:10]line ЗНМ: 0300000154 [21:10:10]line РНМ: 0000000000091619 [21:10:10]line Версия ККМ: 001 [21:10:10]line Платежная система: Бакай Банк [21:10:10]line ФМ: 0000000000874676 [21:10:10]line ФД: 63510 [21:10:10]line ФПД: 188463171661636 [21:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211016&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63510&fm=188463171661636&tin=02508201610067®Number=0000000000091619&sum=70371 [21:10:10]line 0 [21:10:10]written 0, free lines is 4095 [21:10:10]OFD Sender: Processing packet 63510 [packets to send 232, broken 231] [21:10:10]ProducePacketName [21:10:10]name=ofd_packets/00063510 [21:10:10]OFD Sender: To server: pG, [21:10:10]CommunicateWithHost lk.salyk.kg:30040 [21:10:10]ConnectInit lk.salyk.kg [21:10:11]Connected sock=10 [21:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 93 01 00 00 0D D5 8B 01 25 6E 5A 03 01 00 03 00 7F 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 E8 03 00 00 00 00 00 37 04 06 00 D0 D8 00 00 00 00 13 04 06 00 D0 D8 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 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 3A 00 00 00 00 13 04 06 00 13 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 12 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 12 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 B8 B7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 16 F8 00 00 35 04 06 00 AB 68 00 66 6F 44 30 4D FD C7 44 6E 0E 4C [21:10:11]Write to MH i2c: 01 00 00 13 33 46 [21:10:11]Write i2c OK [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: 01 [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: 01 07 00 [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: 01 07 00 13 33 00 00 00 00 00 9E 0C F7 [21:10:11]RasterBufferAndPrint [21:10:11]line [21:10:11]line [21:10:11]line [21:10:11]line [21:10:11]line [21:10:11]written 0, free lines is 3242 [21:10:11]MH_Cut [21:10:11]Write to MH i2c: D1 01 00 1A 33 01 1F [21:10:11]Write i2c OK [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: D1 [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: D1 01 00 [21:10:11]MH_I2C_Read... [21:10:11]Read from MH i2c: D1 01 00 1A 33 00 1E [21:10:11]Write to MH i2c: 01 00 00 1B 33 4E [21:10:11]Write i2c OK [21:10:11]MH_I2C_Read... [21:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 9D 91 47 00 24 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 16 F8 00 00 F4 03 04 00 AB 61 1A 67 B6 04 01 00 00 13 37 FC AE 0D 50 F3 D2 [21:10:11]CommunicateWithHost err = 0 [21:10:11]CheckOFDResponse [21:10:11]1017 (14) - 77093643461234 [21:10:11]1041 (16) - 0000000000874676 [21:10:11]1040 (4) - 63510 [21:10:11]1012 (4) - 24.10.2024 15:03 [21:10:11]1206 (1) - 0 [21:10:11]OFD Sender: Remove packet 63510 [21:10:11]ProducePacketName [21:10:11]name=ofd_packets/00063510 [21:10:11]NVStorageDeleteData [21:10:11]OFD Sender: No OFD packet to send [21:10:12]*** Cut start [21:10:12]*** Partial cut [21:10:12]*** CUTSNS_PIN = 1 [21:10:12]*** CUTSNS_PIN = 0 [21:10:12]*** Brake cut motor [21:10:12]Read from MH i2c: 01 [21:10:12]MH_I2C_Read... [21:10:12]*** Stop cut motor [21:10:12]*** Cut end [21:10:12]Read from MH i2c: 01 07 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: 01 07 00 1B 33 00 00 00 00 00 FF 0F 63 [21:10:12]process_action close_receipt done [21:10:12]requested_data is exist [21:10:12]produce_requested_data [21:10:12]requested_item fm.sn is exist - process it [21:10:12]wFMCommunicate request_size=4 [21:10:12]MH_SAM_APDU [21:10:12]CAPDU: 80 11 00 00 [21:10:12]Write to MH i2c: E2 08 00 1C 33 80 11 00 00 00 00 00 00 C9 [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:12]Read from MH i2c: E2 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 17 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 17 00 1C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 22 [21:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:10:12]wFMCommunicate OK [21:10:12]requested_item fd.num is exist - process it [21:10:12]SAM_PROTO_GetFieldsCounters [21:10:12]wFMCommunicate request_size=4 [21:10:12]MH_SAM_APDU [21:10:12]CAPDU: 80 13 00 00 [21:10:12]Write to MH i2c: E2 08 00 1D 33 80 13 00 00 00 00 00 00 CC [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:12]Read from MH i2c: E2 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 62 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 62 00 1D 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 16 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [21:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 16 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:12]wFMCommunicate OK [21:10:12]SAM_PROTO_GetFieldsCounters done [21:10:12]requested_item shift.num is exist - process it [21:10:12]requested_item shift.opened is exist - process it [21:10:12]req_shift_opened [21:10:12]FM_GetShiftState [21:10:12]SAM_PROTO_GetShiftState [21:10:12]wFMCommunicate request_size=4 [21:10:12]MH_SAM_APDU [21:10:12]CAPDU: 80 13 01 00 [21:10:12]Write to MH i2c: E2 08 00 1E 33 80 13 01 00 00 00 00 00 CE [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:12]Read from MH i2c: E2 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 0E 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 0E 00 1E 33 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 AF [21:10:12]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:10:12]wFMCommunicate OK [21:10:12]SAM_PROTO_GetShiftState done [21:10:12]FM_GetShiftState done [21:10:12]req_shift_opened done [21:10:12]requested_item shift.open_date is exist - process it [21:10:12]req_shift_open_date [21:10:12]req_shift_open_date done [21:10:12]produce_requested_data done [21:10:12]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63510,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:10:12]process_action_free close_receipt [21:10:12]json_value_free [21:10:12]json_value_free done [21:10:12]process_json_proto returns [21:10:12]Send response to host [21:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63510,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:10:12]free response buf [21:10:12]execute_script done [21:10:12]execute_script returns [21:10:12]free content buf [21:10:12]Sock 7.Close socket [21:10:12]Sock 7.Thread stoped [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:02]accept exits with 9 [21:17:02]New connection [21:17:02]New thread 3066490212 created [21:17:02]Thread 3066633572 joined [21:17:02]Waiting for new connection... [21:17:02] Sock 9.Parse request [21:17:02]Sock 9.Check first char [21:17:02]Sock 9.First char is OK [21:17:02]request: POST /json_proto HTTP/1.0 [21:17:02]Method: POST [21:17:02]URL: /json_proto [21:17:02]Method is POST - this is cgi request [21:17:02]url: /json_proto [21:17:02]query_string will be loaded in cgi processing [21:17:02]execute_cgi json_proto POST (null) [21:17:02]execute_cgi path=json_proto method=POST [21:17:02]POST find Content-Length [21:17:02]Host: 172.17.42.132:8080 [21:17:02]Content-Length: 707 [21:17:02]Content-Type: application/json [21:17:02] [21:17:02]POST finish read [21:17:02]Found Content-Length = 707 [21:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47817", "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" ] } } [21:17:02]execute_script... [21:17: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)47817", "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" ] } } [21:17:02]POST & json_proto [21:17:02]process_json_proto [21:17:02]json parsed OK: [21:17:02]protocol is kg_v1.0 [21:17:02]action value=close_receipt [21:17:02]process_action close_receipt [21:17:02]cmd_close_receipt [21:17:02]MH_GetDate [21:17:02]Write to MH i2c: F0 00 00 1F 33 41 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: F0 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: F0 09 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: F0 09 00 1F 33 00 56 B9 1A 67 4C DF 56 66 C1 [21:17:02]GetLastDocTimeStamp 1729804216 [21:17:02]current date 1729804630 [21:17:02]FM_GetShiftState [21:17:02]SAM_PROTO_GetShiftState [21:17:02]wFMCommunicate request_size=4 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 13 01 00 [21:17:02]Write to MH i2c: E2 08 00 20 33 80 13 01 00 00 00 00 00 D0 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 0E 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 0E 00 20 33 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 B1 [21:17:02]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:17:02]wFMCommunicate OK [21:17:02]SAM_PROTO_GetShiftState done [21:17:02]FM_GetShiftState done [21:17:02]opened in 1729728964 [21:17:02]opened+sec_in_day 1729815364 [21:17:02]quantity*price = 79500 [21:17:02]sum+1 = 79501 [21:17:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 795.00 НСП 1% : 7.03 НДС 12% : 84.42 Наличными: 795.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 125 24.10.2024 21:17 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63511 ФПД: 93571001914165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211710&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63511&fm=93571001914165&tin=02508201610067®Number=0000000000091619&sum=79500 0 [21:17:03]StoreToDocumentArchive [21:17:03]shift 547 fd 63511 [21:17:03]save to /storage/0547/doc_00063511 [21:17:03]save last doc name /storage/0547/doc_00063511 to /storage/kkm_last_doc_name [21:17:03]save OK [21:17:03]Clear old archive folders... [21:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=300 [21:17:03]tlvbuf is B6F0A7C0 [21:17:03]SAM_PROTO_ClearQueue [21:17:03]wFMCommunicate request_size=4 [21:17:03]MH_SAM_APDU [21:17:03]CAPDU: 80 09 00 00 [21:17:03]Write to MH i2c: E2 08 00 2D 33 80 09 00 00 00 00 00 00 D2 [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:03]Read from MH i2c: E2 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 03 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 03 00 2D 33 00 90 00 D4 [21:17:03]RAPDU: 90 00 [21:17:03]wFMCommunicate OK [21:17:03]SAM_PROTO_ClearQueue done [21:17:03]KKMCreateOFDPacket [21:17:03]OFDProtocolAddRootSTLVToBuf [21:17:03]FM_MakeSignedData [21:17:03]FM_MakeSignedData [21:17:03]SAM_PROTO_SignData [21:17:03]wFMCommunicate request_size=4 [21:17:03]MH_SAM_APDU [21:17:03]CAPDU: 80 0D 01 02 [21:17:03]Write to MH i2c: E2 08 00 2E 33 80 0D 01 02 00 00 00 00 DA [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:03]Read from MH i2c: E2 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 03 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 03 00 2E 33 00 90 00 D5 [21:17:03]RAPDU: 90 00 [21:17:03]wFMCommunicate OK [21:17:03]wFMCommunicate request_size=255 [21:17:03]MH_SAM_APDU [21:17:03]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 7D 00 00 00 F4 03 04 00 56 B9 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 [21:17:03]Write to MH i2c: E2 02 01 2F 33 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 7D 00 00 00 F4 03 04 00 56 B9 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 00 00 EF [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:04]Read from MH i2c: E2 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: E2 03 00 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: E2 03 00 2F 33 00 90 00 D6 [21:17:04]RAPDU: 90 00 [21:17:04]wFMCommunicate OK [21:17:04]wFMCommunicate request_size=59 [21:17:04]MH_SAM_APDU [21:17:04]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 17 F8 00 00 35 04 06 00 55 1A 32 54 93 35 [21:17:04]Write to MH i2c: E2 3E 00 30 33 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 17 F8 00 00 35 04 06 00 55 1A 32 54 93 35 00 00 D1 [21:17:04]Write i2c OK [21:17:04]MH_I2C_Read... [21:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:04]Read from MH i2c: E2 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: E2 03 00 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: E2 03 00 30 33 00 90 00 D7 [21:17:04]RAPDU: 90 00 [21:17:04]wFMCommunicate OK [21:17:04]wFMCommunicate request_size=4 [21:17:04]MH_SAM_APDU [21:17:04]CAPDU: 80 0D 03 02 [21:17:04]Write to MH i2c: E2 08 00 31 33 80 0D 03 02 00 00 00 00 DF [21:17:04]Write i2c OK [21:17:04]MH_I2C_Read... [21:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:04]Read from MH i2c: E2 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: E2 0B 00 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: E2 0B 00 31 33 00 49 EA 43 19 30 56 8A 2B 90 00 AA [21:17:04]RAPDU: 49 EA 43 19 30 56 8A 2B 90 00 [21:17:04]wFMCommunicate OK [21:17:04]SAM_PROTO_SignData done [21:17:04]FM_MakeSignedData done [21:17:04]CreateOFDProtocolMessage [21:17:04]wFMCommunicate request_size=4 [21:17:04]MH_SAM_APDU [21:17:04]CAPDU: 80 11 00 00 [21:17:04]Write to MH i2c: E2 08 00 32 33 80 11 00 00 00 00 00 00 DF [21:17:04]Write i2c OK [21:17:04]MH_I2C_Read... [21:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:04]Read from MH i2c: E2 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: E2 17 00 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: E2 17 00 32 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 38 [21:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:17:04]wFMCommunicate OK [21:17:04]CreateOFDProtocolMessage done [21:17:04]OFDSenderStorePacket 63511 [21:17:04]StoreOFDPacket docnum=63511 [21:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 40 01 00 00 37 50 38 01 4B 10 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 7D 00 00 00 F4 03 04 00 56 B9 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 17 F8 00 00 35 04 06 00 55 1A 32 54 93 35 49 EA 43 19 30 56 8A 2B [21:17:04]CheckFolder [21:17:04]dirname=/storage/ofd_packets [21:17:04]CheckFolder done [21:17:04]ProducePacketName [21:17:04]name=ofd_packets/00063511 [21:17:04]NVStorageSaveData ofd_packets/00063511 [21:17:04]File name is /storage/ofd_packets/00063511 [21:17:04]Write 350 bytes [21:17:04]NVStorageSaveData done [21:17:04]OFDSenderStorePacket done [21:17:04]KKMCreateOFDPacket done [21:17:04]NVStorageSaveData kkm_last_timestamp [21:17:04]File name is /storage/kkm_last_timestamp [21:17:04]Write 4 bytes [21:17:04]NVStorageSaveData done [21:17:04]ExternCall_PrintAddStr [21:17:04]wPrintStart [21:17:04]Write to MH i2c: 01 00 00 33 33 66 [21:17:04]Write i2c OK [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: 01 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: 01 07 00 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: 01 07 00 33 33 00 00 00 00 00 FF 0F 7B [21:17:04]RasterBufferAndPrint [21:17:04]line Счет N : (3)47817 [21:17:04]line ИНН: 02508201610067 [21:17:04]line Контрольно-Кассовый Чек [21:17:04]line ПРОДАЖА [21:17:04]line Товар: 4700003150806 [21:17:04]line Водка Настроение V премиум 40% 0,7л [21:17:04]line 1.000 * 795.00 [21:17:04]line = 795.00 [21:17:04]line НДС 12% НСП 1% [21:17:04]line > о реализуемом товаре [21:17:04]line ИТОГО: 795.00 [21:17:04]line НСП 1% : 7.03 [21:17:04]line НДС 12% : 84.42 [21:17:04]line Наличными: 795.00 [21:17:04]line Безнал.: 0.00 [21:17:04]line Место: АЗС № 86 "Партнер Нефть" [21:17:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:17:04]line СНО: Общий режим [21:17:04]line Чек 125 24.10.2024 21:17 [21:17:04]line Смена: 547 ФФД: 1.0 [21:17:04]line ЗНМ: 0300000154 [21:17:04]line РНМ: 0000000000091619 [21:17:04]line Версия ККМ: 001 [21:17:04]line ФМ: 0000000000874676 [21:17:04]line ФД: 63511 [21:17:04]line ФПД: 93571001914165 [21:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211710&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63511&fm=93571001914165&tin=02508201610067®Number=0000000000091619&sum=79500 [21:17:04]line 0 [21:17:04]written 0, free lines is 4095 [21:17:04]OFD Sender: Processing packet 63511 [packets to send 232, broken 231] [21:17:04]ProducePacketName [21:17:04]name=ofd_packets/00063511 [21:17:04]OFD Sender: To server: pG, [21:17:04]CommunicateWithHost lk.salyk.kg:30040 [21:17:04]ConnectInit lk.salyk.kg [21:17:04]Connected sock=10 [21:17:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 40 01 00 00 37 50 38 01 4B 10 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 7D 00 00 00 F4 03 04 00 56 B9 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 17 F8 00 00 35 04 06 00 55 1A 32 54 93 35 49 EA 43 19 30 56 8A 2B [21:17:04]Write to MH i2c: 01 00 00 5C 33 8F [21:17:04]Write i2c OK [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: 01 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: 01 07 00 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: 01 07 00 5C 33 00 00 00 00 00 09 0D AC [21:17:04]RasterBufferAndPrint [21:17:04]line [21:17:04]line [21:17:04]line [21:17:04]line [21:17:04]line [21:17:04]written 0, free lines is 3346 [21:17:04]MH_Cut [21:17:04]Write to MH i2c: D1 01 00 63 33 01 68 [21:17:04]Write i2c OK [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: D1 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: D1 01 00 [21:17:04]MH_I2C_Read... [21:17:04]Read from MH i2c: D1 01 00 63 33 00 67 [21:17:04]Write to MH i2c: 01 00 00 64 33 97 [21:17:04]Write i2c OK [21:17:04]MH_I2C_Read... [21:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 DF A2 47 00 0A 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 34 36 37 36 10 04 04 00 17 F8 00 00 F4 03 04 00 49 63 1A 67 B6 04 01 00 00 60 25 7E E0 7D 4C BD 9A [21:17:05]CommunicateWithHost err = 0 [21:17:05]CheckOFDResponse [21:17:05]1017 (14) - 77093643461234 [21:17:05]1041 (16) - 0000000000874676 [21:17:05]1040 (4) - 63511 [21:17:05]1012 (4) - 24.10.2024 15:10 [21:17:05]1206 (1) - 0 [21:17:05]OFD Sender: Remove packet 63511 [21:17:05]ProducePacketName [21:17:05]name=ofd_packets/00063511 [21:17:05]NVStorageDeleteData [21:17:05]*** Cut start [21:17:05]*** Partial cut [21:17:05]*** CUTSNS_PIN = 1 [21:17:05]*** CUTSNS_PIN = 0 [21:17:05]OFD Sender: No OFD packet to send [21:17:05]*** Brake cut motor [21:17:06]Read from MH i2c: 01 [21:17:06]MH_I2C_Read... [21:17:06]*** Stop cut motor [21:17:06]*** Cut end [21:17:06]Read from MH i2c: 01 07 00 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: 01 07 00 64 33 00 00 00 00 00 FF 0F AC [21:17:06]process_action close_receipt done [21:17:06]requested_data is exist [21:17:06]produce_requested_data [21:17:06]requested_item fm.sn is exist - process it [21:17:06]wFMCommunicate request_size=4 [21:17:06]MH_SAM_APDU [21:17:06]CAPDU: 80 11 00 00 [21:17:06]Write to MH i2c: E2 08 00 65 33 80 11 00 00 00 00 00 00 12 [21:17:06]Write i2c OK [21:17:06]MH_I2C_Read... [21:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:06]Read from MH i2c: E2 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 17 00 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 17 00 65 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6B [21:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:17:06]wFMCommunicate OK [21:17:06]requested_item fd.num is exist - process it [21:17:06]SAM_PROTO_GetFieldsCounters [21:17:06]wFMCommunicate request_size=4 [21:17:06]MH_SAM_APDU [21:17:06]CAPDU: 80 13 00 00 [21:17:06]Write to MH i2c: E2 08 00 66 33 80 13 00 00 00 00 00 00 15 [21:17:06]Write i2c OK [21:17:06]MH_I2C_Read... [21:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:06]Read from MH i2c: E2 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 62 00 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 62 00 66 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 17 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [21:17:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 17 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:06]wFMCommunicate OK [21:17:06]SAM_PROTO_GetFieldsCounters done [21:17:06]requested_item shift.num is exist - process it [21:17:06]requested_item shift.opened is exist - process it [21:17:06]req_shift_opened [21:17:06]FM_GetShiftState [21:17:06]SAM_PROTO_GetShiftState [21:17:06]wFMCommunicate request_size=4 [21:17:06]MH_SAM_APDU [21:17:06]CAPDU: 80 13 01 00 [21:17:06]Write to MH i2c: E2 08 00 67 33 80 13 01 00 00 00 00 00 17 [21:17:06]Write i2c OK [21:17:06]MH_I2C_Read... [21:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:06]Read from MH i2c: E2 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 0E 00 [21:17:06]MH_I2C_Read... [21:17:06]Read from MH i2c: E2 0E 00 67 33 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 F8 [21:17:06]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:17:06]wFMCommunicate OK [21:17:06]SAM_PROTO_GetShiftState done [21:17:06]FM_GetShiftState done [21:17:06]req_shift_opened done [21:17:06]requested_item shift.open_date is exist - process it [21:17:06]req_shift_open_date [21:17:06]req_shift_open_date done [21:17:06]produce_requested_data done [21:17:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63511,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:17:06]process_action_free close_receipt [21:17:06]json_value_free [21:17:06]json_value_free done [21:17:06]process_json_proto returns [21:17:06]Send response to host [21:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63511,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:17:06]free response buf [21:17:06]execute_script done [21:17:06]execute_script returns [21:17:06]free content buf [21:17:06]Sock 9.Close socket [21:17:06]Sock 9.Thread stoped [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]accept exits with 7 [21:20:45]New connection [21:20:45]New thread 3066633572 created [21:20:45]Thread 3066490212 joined [21:20:45]Waiting for new connection... [21:20:45] Sock 7.Parse request [21:20:45]Sock 7.Check first char [21:20:45]Sock 7.First char is OK [21:20:45]request: POST /json_proto HTTP/1.0 [21:20:45]Method: POST [21:20:45]URL: /json_proto [21:20:45]Method is POST - this is cgi request [21:20:45]url: /json_proto [21:20:45]query_string will be loaded in cgi processing [21:20:45]execute_cgi json_proto POST (null) [21:20:45]execute_cgi path=json_proto method=POST [21:20:45]POST find Content-Length [21:20:45]Host: 172.17.42.132:8080 [21:20:45]Content-Length: 933 [21:20:45]Content-Type: application/json [21:20:45] [21:20:45]POST finish read [21:20:45]Found Content-Length = 933 [21:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47818", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744687", "name": "\u0413\u0440\u0435\u043D\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0422\u043E\u043C\u0430\u0442 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:45]execute_script... [21:20: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)47818", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744687", "name": "\u0413\u0440\u0435\u043D\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0422\u043E\u043C\u0430\u0442 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:45]POST & json_proto [21:20:45]process_json_proto [21:20:45]json parsed OK: [21:20:45]protocol is kg_v1.0 [21:20:45]action value=close_receipt [21:20:45]process_action close_receipt [21:20:45]cmd_close_receipt [21:20:45]MH_GetDate [21:20:45]Write to MH i2c: F0 00 00 68 33 8A [21:20:45]Write i2c OK [21:20:45]MH_I2C_Read... [21:20:45]Read from MH i2c: F0 [21:20:45]MH_I2C_Read... [21:20:45]Read from MH i2c: F0 09 00 [21:20:45]MH_I2C_Read... [21:20:45]Read from MH i2c: F0 09 00 68 33 00 35 BA 1A 67 4C DF 56 66 EA [21:20:45]GetLastDocTimeStamp 1729804630 [21:20:45]current date 1729804853 [21:20:45]FM_GetShiftState [21:20:45]SAM_PROTO_GetShiftState [21:20:45]wFMCommunicate request_size=4 [21:20:45]MH_SAM_APDU [21:20:45]CAPDU: 80 13 01 00 [21:20:45]Write to MH i2c: E2 08 00 69 33 80 13 01 00 00 00 00 00 19 [21:20:45]Write i2c OK [21:20:45]MH_I2C_Read... [21:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:45]Read from MH i2c: E2 [21:20:45]MH_I2C_Read... [21:20:45]Read from MH i2c: E2 0E 00 [21:20:45]MH_I2C_Read... [21:20:45]Read from MH i2c: E2 0E 00 69 33 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 FA [21:20:45]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:20:45]wFMCommunicate OK [21:20:45]SAM_PROTO_GetShiftState done [21:20:45]FM_GetShiftState done [21:20:45]opened in 1729728964 [21:20:45]opened+sec_in_day 1729815364 [21:20:45]quantity*price = 26500 [21:20:45]sum+1 = 26501 [21:20:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870209744687 Гренки Флинт Томат 100 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.87 НДС 12% : 34.51 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 126 24.10.2024 21:20 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63512 ФПД: 12486437077167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212053&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63512&fm=12486437077167&tin=02508201610067®Number=0000000000091619&sum=32500 0 [21:20:46]StoreToDocumentArchive [21:20:46]shift 547 fd 63512 [21:20:46]save to /storage/0547/doc_00063512 [21:20:46]save last doc name /storage/0547/doc_00063512 to /storage/kkm_last_doc_name [21:20:46]save OK [21:20:46]Clear old archive folders... [21:20:46]ProcessDocumentItem done err = 0, tmpTLVsize=394 [21:20:46]tlvbuf is B6F07830 [21:20:46]SAM_PROTO_ClearQueue [21:20:46]wFMCommunicate request_size=4 [21:20:46]MH_SAM_APDU [21:20:46]CAPDU: 80 09 00 00 [21:20:46]Write to MH i2c: E2 08 00 76 33 80 09 00 00 00 00 00 00 1B [21:20:46]Write i2c OK [21:20:46]MH_I2C_Read... [21:20:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:47]Read from MH i2c: E2 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 03 00 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 03 00 76 33 00 90 00 1D [21:20:47]RAPDU: 90 00 [21:20:47]wFMCommunicate OK [21:20:47]SAM_PROTO_ClearQueue done [21:20:47]KKMCreateOFDPacket [21:20:47]OFDProtocolAddRootSTLVToBuf [21:20:47]FM_MakeSignedData [21:20:47]FM_MakeSignedData [21:20:47]SAM_PROTO_SignData [21:20:47]wFMCommunicate request_size=4 [21:20:47]MH_SAM_APDU [21:20:47]CAPDU: 80 0D 01 02 [21:20:47]Write to MH i2c: E2 08 00 77 33 80 0D 01 02 00 00 00 00 23 [21:20:47]Write i2c OK [21:20:47]MH_I2C_Read... [21:20:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:47]Read from MH i2c: E2 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 03 00 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 03 00 77 33 00 90 00 1E [21:20:47]RAPDU: 90 00 [21:20:47]wFMCommunicate OK [21:20:47]wFMCommunicate request_size=255 [21:20:47]MH_SAM_APDU [21:20:47]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 36 38 37 06 04 2B 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A2 D0 BE D0 BC D0 B0 D1 82 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F [21:20:47]Write to MH i2c: E2 02 01 78 33 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 36 38 37 06 04 2B 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A2 D0 BE D0 BC D0 B0 D1 82 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 81 [21:20:47]Write i2c OK [21:20:47]MH_I2C_Read... [21:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:47]Read from MH i2c: E2 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 03 00 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 03 00 78 33 00 90 00 1F [21:20:47]RAPDU: 90 00 [21:20:47]wFMCommunicate OK [21:20:47]wFMCommunicate request_size=153 [21:20:47]MH_SAM_APDU [21:20:47]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 35 BA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 18 F8 00 00 35 04 06 00 0B 5B 39 A5 80 AF [21:20:47]Write to MH i2c: E2 9C 00 79 33 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 35 BA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 18 F8 00 00 35 04 06 00 0B 5B 39 A5 80 AF 00 00 2D [21:20:47]Write i2c OK [21:20:47]MH_I2C_Read... [21:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:47]Read from MH i2c: E2 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 03 00 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 03 00 79 33 00 90 00 20 [21:20:47]RAPDU: 90 00 [21:20:47]wFMCommunicate OK [21:20:47]wFMCommunicate request_size=4 [21:20:47]MH_SAM_APDU [21:20:47]CAPDU: 80 0D 03 02 [21:20:47]Write to MH i2c: E2 08 00 7A 33 80 0D 03 02 00 00 00 00 28 [21:20:47]Write i2c OK [21:20:47]MH_I2C_Read... [21:20:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:47]Read from MH i2c: E2 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 0B 00 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 0B 00 7A 33 00 EB D9 AD 21 0E 79 7D 2F 90 00 EE [21:20:47]RAPDU: EB D9 AD 21 0E 79 7D 2F 90 00 [21:20:47]wFMCommunicate OK [21:20:47]SAM_PROTO_SignData done [21:20:47]FM_MakeSignedData done [21:20:47]CreateOFDProtocolMessage [21:20:47]wFMCommunicate request_size=4 [21:20:47]MH_SAM_APDU [21:20:47]CAPDU: 80 11 00 00 [21:20:47]Write to MH i2c: E2 08 00 7B 33 80 11 00 00 00 00 00 00 28 [21:20:47]Write i2c OK [21:20:47]MH_I2C_Read... [21:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:47]Read from MH i2c: E2 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 17 00 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: E2 17 00 7B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 81 [21:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:20:47]wFMCommunicate OK [21:20:47]CreateOFDProtocolMessage done [21:20:47]OFDSenderStorePacket 63512 [21:20:47]StoreOFDPacket docnum=63512 [21:20:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9E 01 00 00 C9 B0 96 01 68 52 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 36 38 37 06 04 2B 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A2 D0 BE D0 BC D0 B0 D1 82 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 35 BA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 18 F8 00 00 35 04 06 00 0B 5B 39 A5 80 AF EB D9 AD 21 0E 79 7D 2F [21:20:47]CheckFolder [21:20:47]dirname=/storage/ofd_packets [21:20:47]CheckFolder done [21:20:47]ProducePacketName [21:20:47]name=ofd_packets/00063512 [21:20:47]NVStorageSaveData ofd_packets/00063512 [21:20:47]File name is /storage/ofd_packets/00063512 [21:20:47]Write 444 bytes [21:20:47]NVStorageSaveData done [21:20:47]OFDSenderStorePacket done [21:20:47]KKMCreateOFDPacket done [21:20:47]NVStorageSaveData kkm_last_timestamp [21:20:47]File name is /storage/kkm_last_timestamp [21:20:47]Write 4 bytes [21:20:47]NVStorageSaveData done [21:20:47]ExternCall_PrintAddStr [21:20:47]wPrintStart [21:20:47]Write to MH i2c: 01 00 00 7C 33 AF [21:20:47]Write i2c OK [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: 01 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: 01 07 00 [21:20:47]MH_I2C_Read... [21:20:47]Read from MH i2c: 01 07 00 7C 33 00 00 00 00 00 FF 0F C4 [21:20:47]RasterBufferAndPrint [21:20:47]line Счет N : (3)47818 [21:20:47]line ИНН: 02508201610067 [21:20:47]line Контрольно-Кассовый Чек [21:20:47]line ПРОДАЖА [21:20:47]line Товар: 90448300 [21:20:47]line Энерг напиток Red Bull 0,355л [21:20:47]line 1.000 * 265.00 [21:20:47]line = 265.00 [21:20:47]line НДС 12% НСП 1% [21:20:47]line > о реализуемом товаре [21:20:47]line Товар: 4870209744687 [21:20:47]line Гренки Флинт Томат 100 гр [21:20:47]line 1.000 * 60.00 [21:20:47]line = 60.00 [21:20:47]line НДС 12% НСП 1% [21:20:47]line > о реализуемом товаре [21:20:47]line ИТОГО: 325.00 [21:20:47]line НСП 1% : 2.87 [21:20:47]line НДС 12% : 34.51 [21:20:47]line Наличными: 325.00 [21:20:47]line Безнал.: 0.00 [21:20:47]line Место: АЗС № 86 "Партнер Нефть" [21:20:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:20:47]line СНО: Общий режим [21:20:47]line Чек 126 24.10.2024 21:20 [21:20:47]line Смена: 547 ФФД: 1.0 [21:20:47]line ЗНМ: 0300000154 [21:20:47]line РНМ: 0000000000091619 [21:20:47]line Версия ККМ: 001 [21:20:47]line ФМ: 0000000000874676 [21:20:47]line ФД: 63512 [21:20:47]line ФПД: 12486437077167 [21:20:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212053&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63512&fm=12486437077167&tin=02508201610067®Number=0000000000091619&sum=32500 [21:20:47]line 0 [21:20:47]OFD Sender: Processing packet 63512 [packets to send 232, broken 231] [21:20:47]ProducePacketName [21:20:47]name=ofd_packets/00063512 [21:20:47]OFD Sender: To server: pG, [21:20:47]CommunicateWithHost lk.salyk.kg:30040 [21:20:47]ConnectInit lk.salyk.kg [21:20:47]written 0, free lines is 4095 [21:20:48]Connected sock=10 [21:20:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9E 01 00 00 C9 B0 96 01 68 52 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 36 38 37 06 04 2B 00 D0 93 D1 80 D0 B5 D0 BD D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A2 D0 BE D0 BC D0 B0 D1 82 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 35 BA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 18 F8 00 00 35 04 06 00 0B 5B 39 A5 80 AF EB D9 AD 21 0E 79 7D 2F [21:20:48]Write to MH i2c: 01 00 00 AA 33 DD [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: 01 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: 01 07 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: 01 07 00 AA 33 00 00 00 00 00 E9 0C D9 [21:20:48]RasterBufferAndPrint [21:20:48]line [21:20:48]line [21:20:48]line [21:20:48]line [21:20:48]line [21:20:48]written 0, free lines is 3315 [21:20:48]MH_Cut [21:20:48]Write to MH i2c: D1 01 00 B1 33 01 B6 [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: D1 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: D1 01 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: D1 01 00 B1 33 00 B5 [21:20:48]Write to MH i2c: 01 00 00 B2 33 E5 [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 68 07 47 00 01 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 34 36 37 36 10 04 04 00 18 F8 00 00 F4 03 04 00 29 64 1A 67 B6 04 01 00 00 B7 CF EB C9 6A 60 B9 39 [21:20:48]CommunicateWithHost err = 0 [21:20:48]CheckOFDResponse [21:20:48]1017 (14) - 77093643461234 [21:20:48]1041 (16) - 0000000000874676 [21:20:48]1040 (4) - 63512 [21:20:48]1012 (4) - 24.10.2024 15:13 [21:20:48]1206 (1) - 0 [21:20:48]OFD Sender: Remove packet 63512 [21:20:48]ProducePacketName [21:20:48]name=ofd_packets/00063512 [21:20:48]NVStorageDeleteData [21:20:49]OFD Sender: No OFD packet to send [21:20:49]*** Cut start [21:20:49]*** Partial cut [21:20:49]*** CUTSNS_PIN = 1 [21:20:49]*** CUTSNS_PIN = 0 [21:20:49]*** Brake cut motor [21:20:49]Read from MH i2c: 01 [21:20:49]MH_I2C_Read... [21:20:49]*** Stop cut motor [21:20:49]*** Cut end [21:20:49]Read from MH i2c: 01 07 00 [21:20:49]MH_I2C_Read... [21:20:49]Read from MH i2c: 01 07 00 B2 33 00 00 00 00 00 FF 0F FA [21:20:49]process_action close_receipt done [21:20:49]requested_data is exist [21:20:49]produce_requested_data [21:20:49]requested_item fm.sn is exist - process it [21:20:49]wFMCommunicate request_size=4 [21:20:49]MH_SAM_APDU [21:20:49]CAPDU: 80 11 00 00 [21:20:49]Write to MH i2c: E2 08 00 B3 33 80 11 00 00 00 00 00 00 60 [21:20:49]Write i2c OK [21:20:49]MH_I2C_Read... [21:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:49]Read from MH i2c: E2 [21:20:49]MH_I2C_Read... [21:20:49]Read from MH i2c: E2 17 00 [21:20:49]MH_I2C_Read... [21:20:49]Read from MH i2c: E2 17 00 B3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B9 [21:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:20:49]wFMCommunicate OK [21:20:49]requested_item fd.num is exist - process it [21:20:49]SAM_PROTO_GetFieldsCounters [21:20:49]wFMCommunicate request_size=4 [21:20:49]MH_SAM_APDU [21:20:49]CAPDU: 80 13 00 00 [21:20:49]Write to MH i2c: E2 08 00 B4 33 80 13 00 00 00 00 00 00 63 [21:20:49]Write i2c OK [21:20:49]MH_I2C_Read... [21:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:50]Read from MH i2c: E2 [21:20:50]MH_I2C_Read... [21:20:50]Read from MH i2c: E2 62 00 [21:20:50]MH_I2C_Read... [21:20:50]Read from MH i2c: E2 62 00 B4 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 18 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [21:20:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 18 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:50]wFMCommunicate OK [21:20:50]SAM_PROTO_GetFieldsCounters done [21:20:50]requested_item shift.num is exist - process it [21:20:50]requested_item shift.opened is exist - process it [21:20:50]req_shift_opened [21:20:50]FM_GetShiftState [21:20:50]SAM_PROTO_GetShiftState [21:20:50]wFMCommunicate request_size=4 [21:20:50]MH_SAM_APDU [21:20:50]CAPDU: 80 13 01 00 [21:20:50]Write to MH i2c: E2 08 00 B5 33 80 13 01 00 00 00 00 00 65 [21:20:50]Write i2c OK [21:20:50]MH_I2C_Read... [21:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:50]Read from MH i2c: E2 [21:20:50]MH_I2C_Read... [21:20:50]Read from MH i2c: E2 0E 00 [21:20:50]MH_I2C_Read... [21:20:50]Read from MH i2c: E2 0E 00 B5 33 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 46 [21:20:50]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:20:50]wFMCommunicate OK [21:20:50]SAM_PROTO_GetShiftState done [21:20:50]FM_GetShiftState done [21:20:50]req_shift_opened done [21:20:50]requested_item shift.open_date is exist - process it [21:20:50]req_shift_open_date [21:20:50]req_shift_open_date done [21:20:50]produce_requested_data done [21:20:50]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63512,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:20:50]process_action_free close_receipt [21:20:50]json_value_free [21:20:50]json_value_free done [21:20:50]process_json_proto returns [21:20:50]Send response to host [21:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63512,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:20:50]free response buf [21:20:50]execute_script done [21:20:50]execute_script returns [21:20:50]free content buf [21:20:50]Sock 7.Close socket [21:20:50]Sock 7.Thread stoped [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]accept exits with 9 [21:29:19]New connection [21:29:19]New thread 3066490212 created [21:29:19]Thread 3066633572 joined [21:29:19]Waiting for new connection... [21:29:19] Sock 9.Parse request [21:29:19]Sock 9.Check first char [21:29:19]Sock 9.First char is OK [21:29:19]request: POST /json_proto HTTP/1.0 [21:29:19]Method: POST [21:29:19]URL: /json_proto [21:29:19]Method is POST - this is cgi request [21:29:19]url: /json_proto [21:29:19]query_string will be loaded in cgi processing [21:29:19]execute_cgi json_proto POST (null) [21:29:19]execute_cgi path=json_proto method=POST [21:29:19]POST find Content-Length [21:29:19]Host: 172.17.42.132:8080 [21:29:19]Content-Length: 644 [21:29:19]Content-Type: application/json [21:29:19] [21:29:19]POST finish read [21:29:19]Found Content-Length = 644 [21:29:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47819", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:19]execute_script... [21:29: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)47819", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:19]POST & json_proto [21:29:19]process_json_proto [21:29:19]json parsed OK: [21:29:19]protocol is kg_v1.0 [21:29:19]action value=close_receipt [21:29:19]process_action close_receipt [21:29:19]cmd_close_receipt [21:29:19]MH_GetDate [21:29:19]Write to MH i2c: F0 00 00 B6 33 D8 [21:29:19]Write i2c OK [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: F0 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: F0 09 00 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: F0 09 00 B6 33 00 37 BC 1A 67 4C DF 56 66 3C [21:29:19]GetLastDocTimeStamp 1729804853 [21:29:19]current date 1729805367 [21:29:19]FM_GetShiftState [21:29:19]SAM_PROTO_GetShiftState [21:29:19]wFMCommunicate request_size=4 [21:29:19]MH_SAM_APDU [21:29:19]CAPDU: 80 13 01 00 [21:29:19]Write to MH i2c: E2 08 00 B7 33 80 13 01 00 00 00 00 00 67 [21:29:19]Write i2c OK [21:29:19]MH_I2C_Read... [21:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:19]Read from MH i2c: E2 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: E2 0E 00 [21:29:19]MH_I2C_Read... [21:29:19]Read from MH i2c: E2 0E 00 B7 33 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 48 [21:29:19]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:29:19]wFMCommunicate OK [21:29:19]SAM_PROTO_GetShiftState done [21:29:19]FM_GetShiftState done [21:29:19]opened in 1729728964 [21:29:19]opened+sec_in_day 1729815364 [21:29:19]quantity*price = 7900 [21:29:19]sum+1 = 7901 [21:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 127 24.10.2024 21:29 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63513 ФПД: 100082621593537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212927&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63513&fm=100082621593537&tin=02508201610067®Number=0000000000091619&sum=7900 0 [21:29:20]StoreToDocumentArchive [21:29:20]shift 547 fd 63513 [21:29:20]save to /storage/0547/doc_00063513 [21:29:20]save last doc name /storage/0547/doc_00063513 to /storage/kkm_last_doc_name [21:29:20]save OK [21:29:20]Clear old archive folders... [21:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:29:20]tlvbuf is 00B54FC0 [21:29:20]SAM_PROTO_ClearQueue [21:29:20]wFMCommunicate request_size=4 [21:29:20]MH_SAM_APDU [21:29:20]CAPDU: 80 09 00 00 [21:29:20]Write to MH i2c: E2 08 00 C4 33 80 09 00 00 00 00 00 00 69 [21:29:20]Write i2c OK [21:29:20]MH_I2C_Read... [21:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:20]Read from MH i2c: E2 [21:29:20]MH_I2C_Read... [21:29:20]Read from MH i2c: E2 03 00 [21:29:20]MH_I2C_Read... [21:29:20]Read from MH i2c: E2 03 00 C4 33 00 90 00 6B [21:29:20]RAPDU: 90 00 [21:29:20]wFMCommunicate OK [21:29:20]SAM_PROTO_ClearQueue done [21:29:20]KKMCreateOFDPacket [21:29:20]OFDProtocolAddRootSTLVToBuf [21:29:20]FM_MakeSignedData [21:29:20]FM_MakeSignedData [21:29:20]SAM_PROTO_SignData [21:29:20]wFMCommunicate request_size=4 [21:29:20]MH_SAM_APDU [21:29:20]CAPDU: 80 0D 01 02 [21:29:20]Write to MH i2c: E2 08 00 C5 33 80 0D 01 02 00 00 00 00 71 [21:29:20]Write i2c OK [21:29:20]MH_I2C_Read... [21:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:20]Read from MH i2c: E2 [21:29:20]MH_I2C_Read... [21:29:20]Read from MH i2c: E2 03 00 [21:29:20]MH_I2C_Read... [21:29:20]Read from MH i2c: E2 03 00 C5 33 00 90 00 6C [21:29:20]RAPDU: 90 00 [21:29:20]wFMCommunicate OK [21:29:20]wFMCommunicate request_size=255 [21:29:20]MH_SAM_APDU [21:29:20]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 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 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 37 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 [21:29:20]Write to MH i2c: E2 02 01 C6 33 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 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 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 37 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 00 00 6D [21:29:20]Write i2c OK [21:29:20]MH_I2C_Read... [21:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:21]Read from MH i2c: E2 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: E2 03 00 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [21:29:21]RAPDU: 90 00 [21:29:21]wFMCommunicate OK [21:29:21]wFMCommunicate request_size=35 [21:29:21]MH_SAM_APDU [21:29:21]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 19 F8 00 00 35 04 06 00 5B 06 4D 1B B7 C1 [21:29:21]Write to MH i2c: E2 26 00 C7 33 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 19 F8 00 00 35 04 06 00 5B 06 4D 1B B7 C1 00 00 BF [21:29:21]Write i2c OK [21:29:21]MH_I2C_Read... [21:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:21]Read from MH i2c: E2 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: E2 03 00 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: E2 03 00 C7 33 00 90 00 6E [21:29:21]RAPDU: 90 00 [21:29:21]wFMCommunicate OK [21:29:21]wFMCommunicate request_size=4 [21:29:21]MH_SAM_APDU [21:29:21]CAPDU: 80 0D 03 02 [21:29:21]Write to MH i2c: E2 08 00 C8 33 80 0D 03 02 00 00 00 00 76 [21:29:21]Write i2c OK [21:29:21]MH_I2C_Read... [21:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:21]Read from MH i2c: E2 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: E2 0B 00 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: E2 0B 00 C8 33 00 4D 12 17 CC 88 83 5E 46 90 00 68 [21:29:21]RAPDU: 4D 12 17 CC 88 83 5E 46 90 00 [21:29:21]wFMCommunicate OK [21:29:21]SAM_PROTO_SignData done [21:29:21]FM_MakeSignedData done [21:29:21]CreateOFDProtocolMessage [21:29:21]wFMCommunicate request_size=4 [21:29:21]MH_SAM_APDU [21:29:21]CAPDU: 80 11 00 00 [21:29:21]Write to MH i2c: E2 08 00 C9 33 80 11 00 00 00 00 00 00 76 [21:29:21]Write i2c OK [21:29:21]MH_I2C_Read... [21:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:21]Read from MH i2c: E2 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: E2 17 00 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: E2 17 00 C9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CF [21:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:29:21]wFMCommunicate OK [21:29:21]CreateOFDProtocolMessage done [21:29:21]OFDSenderStorePacket 63513 [21:29:21]StoreOFDPacket docnum=63513 [21:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 93 BB 20 01 AE DF 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 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 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 37 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 19 F8 00 00 35 04 06 00 5B 06 4D 1B B7 C1 4D 12 17 CC 88 83 5E 46 [21:29:21]CheckFolder [21:29:21]dirname=/storage/ofd_packets [21:29:21]CheckFolder done [21:29:21]ProducePacketName [21:29:21]name=ofd_packets/00063513 [21:29:21]NVStorageSaveData ofd_packets/00063513 [21:29:21]File name is /storage/ofd_packets/00063513 [21:29:21]Write 326 bytes [21:29:21]NVStorageSaveData done [21:29:21]OFDSenderStorePacket done [21:29:21]KKMCreateOFDPacket done [21:29:21]NVStorageSaveData kkm_last_timestamp [21:29:21]File name is /storage/kkm_last_timestamp [21:29:21]Write 4 bytes [21:29:21]NVStorageSaveData done [21:29:21]ExternCall_PrintAddStr [21:29:21]wPrintStart [21:29:21]Write to MH i2c: 01 00 00 CA 33 FD [21:29:21]Write i2c OK [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: 01 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: 01 07 00 [21:29:21]MH_I2C_Read... [21:29:21]Read from MH i2c: 01 07 00 CA 33 00 00 00 00 00 FF 0F 12 [21:29:21]RasterBufferAndPrint [21:29:21]line Счет N : (3)47819 [21:29:21]line ИНН: 02508201610067 [21:29:21]line Контрольно-Кассовый Чек [21:29:21]line ПРОДАЖА [21:29:21]line Товар: 4700000310043 [21:29:21]line Вода Жалалабат 27 1л [21:29:21]line 1.000 * 79.00 [21:29:21]line = 79.00 [21:29:21]line НДС 12% НСП 1% [21:29:21]line > о реализуемом товаре [21:29:21]line ИТОГО: 79.00 [21:29:21]line НСП 1% : 0.70 [21:29:21]line НДС 12% : 8.39 [21:29:21]line Наличными: 79.00 [21:29:21]line Безнал.: 0.00 [21:29:21]line Место: АЗС № 86 "Партнер Нефть" [21:29:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:29:21]line СНО: Общий режим [21:29:21]line Чек 127 24.10.2024 21:29 [21:29:21]line Смена: 547 ФФД: 1.0 [21:29:21]line ЗНМ: 0300000154 [21:29:21]line РНМ: 0000000000091619 [21:29:21]line Версия ККМ: 001 [21:29:21]line ФМ: 0000000000874676 [21:29:21]line ФД: 63513 [21:29:21]line ФПД: 100082621593537 [21:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212927&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63513&fm=100082621593537&tin=02508201610067®Number=0000000000091619&sum=7900 [21:29:21]line 0 [21:29:21]OFD Sender: Processing packet 63513 [packets to send 232, broken 231] [21:29:21]ProducePacketName [21:29:21]name=ofd_packets/00063513 [21:29:21]OFD Sender: To server: pG, [21:29:21]CommunicateWithHost lk.salyk.kg:30040 [21:29:21]ConnectInit lk.salyk.kg [21:29:21]written 0, free lines is 4095 [21:29:21]Connected sock=7 [21:29:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 93 BB 20 01 AE DF 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 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 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 37 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 19 F8 00 00 35 04 06 00 5B 06 4D 1B B7 C1 4D 12 17 CC 88 83 5E 46 [21:29:22]Write to MH i2c: 01 00 00 F2 33 25 [21:29:22]Write i2c OK [21:29:22]MH_I2C_Read... [21:29:22]Read from MH i2c: 01 [21:29:22]MH_I2C_Read... [21:29:22]Read from MH i2c: 01 07 00 [21:29:22]MH_I2C_Read... [21:29:22]Read from MH i2c: 01 07 00 F2 33 00 00 00 00 00 19 0D 52 [21:29:22]RasterBufferAndPrint [21:29:22]line [21:29:22]line [21:29:22]line [21:29:22]line [21:29:22]line [21:29:22]written 0, free lines is 3359 [21:29:22]MH_Cut [21:29:22]Write to MH i2c: D1 01 00 F9 33 01 FE [21:29:22]Write i2c OK [21:29:22]MH_I2C_Read... [21:29:22]Read from MH i2c: D1 [21:29:22]MH_I2C_Read... [21:29:22]Read from MH i2c: D1 01 00 [21:29:22]MH_I2C_Read... [21:29:22]Read from MH i2c: D1 01 00 F9 33 00 FD [21:29:22]Write to MH i2c: 01 00 00 FA 33 2D [21:29:22]Write i2c OK [21:29:22]MH_I2C_Read... [21:29:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 1C 86 47 00 94 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 19 F8 00 00 F4 03 04 00 2A 66 1A 67 B6 04 01 00 00 3A E2 DA 5E 06 21 8E 00 [21:29:22]CommunicateWithHost err = 0 [21:29:22]CheckOFDResponse [21:29:22]1017 (14) - 77093643461234 [21:29:22]1041 (16) - 0000000000874676 [21:29:22]1040 (4) - 63513 [21:29:22]1012 (4) - 24.10.2024 15:22 [21:29:22]1206 (1) - 0 [21:29:22]OFD Sender: Remove packet 63513 [21:29:22]ProducePacketName [21:29:22]name=ofd_packets/00063513 [21:29:22]NVStorageDeleteData [21:29:22]*** Cut start [21:29:22]*** Partial cut [21:29:22]*** CUTSNS_PIN = 1 [21:29:22]*** CUTSNS_PIN = 0 [21:29:22]OFD Sender: No OFD packet to send [21:29:23]*** Brake cut motor [21:29:23]Read from MH i2c: 01 [21:29:23]MH_I2C_Read... [21:29:23]*** Stop cut motor [21:29:23]*** Cut end [21:29:23]Read from MH i2c: 01 07 00 [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: 01 07 00 FA 33 00 00 00 00 00 FF 0F 42 [21:29:23]process_action close_receipt done [21:29:23]requested_data is exist [21:29:23]produce_requested_data [21:29:23]requested_item fm.sn is exist - process it [21:29:23]wFMCommunicate request_size=4 [21:29:23]MH_SAM_APDU [21:29:23]CAPDU: 80 11 00 00 [21:29:23]Write to MH i2c: E2 08 00 FB 33 80 11 00 00 00 00 00 00 A8 [21:29:23]Write i2c OK [21:29:23]MH_I2C_Read... [21:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:23]Read from MH i2c: E2 [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: E2 17 00 [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: E2 17 00 FB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 01 [21:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:29:23]wFMCommunicate OK [21:29:23]requested_item fd.num is exist - process it [21:29:23]SAM_PROTO_GetFieldsCounters [21:29:23]wFMCommunicate request_size=4 [21:29:23]MH_SAM_APDU [21:29:23]CAPDU: 80 13 00 00 [21:29:23]Write to MH i2c: E2 08 00 FC 33 80 13 00 00 00 00 00 00 AB [21:29:23]Write i2c OK [21:29:23]MH_I2C_Read... [21:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:23]Read from MH i2c: E2 [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: E2 62 00 [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: E2 62 00 FC 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 19 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [21:29:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 19 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:23]wFMCommunicate OK [21:29:23]SAM_PROTO_GetFieldsCounters done [21:29:23]requested_item shift.num is exist - process it [21:29:23]requested_item shift.opened is exist - process it [21:29:23]req_shift_opened [21:29:23]FM_GetShiftState [21:29:23]SAM_PROTO_GetShiftState [21:29:23]wFMCommunicate request_size=4 [21:29:23]MH_SAM_APDU [21:29:23]CAPDU: 80 13 01 00 [21:29:23]Write to MH i2c: E2 08 00 FD 33 80 13 01 00 00 00 00 00 AD [21:29:23]Write i2c OK [21:29:23]MH_I2C_Read... [21:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:23]Read from MH i2c: E2 [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: E2 0E 00 [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: E2 0E 00 FD 33 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 8E [21:29:23]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:29:23]wFMCommunicate OK [21:29:23]SAM_PROTO_GetShiftState done [21:29:23]FM_GetShiftState done [21:29:23]req_shift_opened done [21:29:23]requested_item shift.open_date is exist - process it [21:29:23]req_shift_open_date [21:29:23]req_shift_open_date done [21:29:23]produce_requested_data done [21:29:23]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63513,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:29:23]process_action_free close_receipt [21:29:23]json_value_free [21:29:23]json_value_free done [21:29:23]process_json_proto returns [21:29:23]Send response to host [21:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63513,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:29:23]free response buf [21:29:23]execute_script done [21:29:23]execute_script returns [21:29:23]free content buf [21:29:23]Sock 9.Close socket [21:29:23]Sock 9.Thread stoped [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:29:59]accept exits with 10 [21:29:59]New connection [21:29:59]New thread 3066633572 created [21:29:59]Thread 3066490212 joined [21:29:59]Waiting for new connection... [21:29:59] Sock 10.Parse request [21:29:59]Sock 10.Check first char [21:29:59]Sock 10.First char is OK [21:29:59]request: POST /json_proto HTTP/1.0 [21:29:59]Method: POST [21:29:59]URL: /json_proto [21:29:59]Method is POST - this is cgi request [21:29:59]url: /json_proto [21:29:59]query_string will be loaded in cgi processing [21:29:59]execute_cgi json_proto POST (null) [21:29:59]execute_cgi path=json_proto method=POST [21:29:59]POST find Content-Length [21:29:59]Host: 172.17.42.132:8080 [21:29:59]Content-Length: 619 [21:29:59]Content-Type: application/json [21:29:59] [21:29:59]POST finish read [21:29:59]Found Content-Length = 619 [21:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47820", "tax_sys" : 0, "items" : [ { "code": "48745536", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston SS Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:59]execute_script... [21:29: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)47820", "tax_sys" : 0, "items" : [ { "code": "48745536", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston SS Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:59]POST & json_proto [21:29:59]process_json_proto [21:29:59]json parsed OK: [21:29:59]protocol is kg_v1.0 [21:29:59]action value=close_receipt [21:29:59]process_action close_receipt [21:29:59]cmd_close_receipt [21:29:59]MH_GetDate [21:29:59]Write to MH i2c: F0 00 00 FE 33 20 [21:29:59]Write i2c OK [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: F0 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: F0 09 00 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: F0 09 00 FE 33 00 5F BC 1A 67 4C DF 56 66 AC [21:29:59]GetLastDocTimeStamp 1729805367 [21:29:59]current date 1729805407 [21:29:59]FM_GetShiftState [21:29:59]SAM_PROTO_GetShiftState [21:29:59]wFMCommunicate request_size=4 [21:29:59]MH_SAM_APDU [21:29:59]CAPDU: 80 13 01 00 [21:29:59]Write to MH i2c: E2 08 00 FF 33 80 13 01 00 00 00 00 00 AF [21:29:59]Write i2c OK [21:29:59]MH_I2C_Read... [21:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:59]Read from MH i2c: E2 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: E2 0E 00 [21:29:59]MH_I2C_Read... [21:29:59]Read from MH i2c: E2 0E 00 FF 33 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 90 [21:29:59]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:29:59]wFMCommunicate OK [21:29:59]SAM_PROTO_GetShiftState done [21:29:59]FM_GetShiftState done [21:29:59]opened in 1729728964 [21:29:59]opened+sec_in_day 1729815364 [21:29:59]quantity*price = 14700 [21:29:59]sum+1 = 14701 [21:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 128 24.10.2024 21:30 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63514 ФПД: 272743328956230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213007&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63514&fm=272743328956230&tin=02508201610067®Number=0000000000091619&sum=14700 0 [21:30:00]StoreToDocumentArchive [21:30:00]shift 547 fd 63514 [21:30:00]save to /storage/0547/doc_00063514 [21:30:00]save last doc name /storage/0547/doc_00063514 to /storage/kkm_last_doc_name [21:30:00]save OK [21:30:00]Clear old archive folders... [21:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=272 [21:30:00]tlvbuf is 00BDB3F0 [21:30:00]SAM_PROTO_ClearQueue [21:30:00]wFMCommunicate request_size=4 [21:30:00]MH_SAM_APDU [21:30:00]CAPDU: 80 09 00 00 [21:30:00]Write to MH i2c: E2 08 00 0C 34 80 09 00 00 00 00 00 00 B2 [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:00]Read from MH i2c: E2 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 0C 34 00 90 00 B4 [21:30:00]RAPDU: 90 00 [21:30:00]wFMCommunicate OK [21:30:00]SAM_PROTO_ClearQueue done [21:30:00]KKMCreateOFDPacket [21:30:00]OFDProtocolAddRootSTLVToBuf [21:30:00]FM_MakeSignedData [21:30:00]FM_MakeSignedData [21:30:00]SAM_PROTO_SignData [21:30:00]wFMCommunicate request_size=4 [21:30:00]MH_SAM_APDU [21:30:00]CAPDU: 80 0D 01 02 [21:30:00]Write to MH i2c: E2 08 00 0D 34 80 0D 01 02 00 00 00 00 BA [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:00]Read from MH i2c: E2 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 [21:30:00]MH_I2C_Read... [21:30:00]Read from MH i2c: E2 03 00 0D 34 00 90 00 B5 [21:30:00]RAPDU: 90 00 [21:30:00]wFMCommunicate OK [21:30:00]wFMCommunicate request_size=255 [21:30:00]MH_SAM_APDU [21:30:00]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 35 33 36 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 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 5F BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [21:30:00]Write to MH i2c: E2 02 01 0E 34 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 35 33 36 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 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 5F BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 B1 [21:30:00]Write i2c OK [21:30:00]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 0E 34 00 90 00 B6 [21:30:01]RAPDU: 90 00 [21:30:01]wFMCommunicate OK [21:30:01]wFMCommunicate request_size=31 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 1A F8 00 00 35 04 06 00 F8 0F 01 3C BF 46 [21:30:01]Write to MH i2c: E2 22 00 0F 34 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 1A F8 00 00 35 04 06 00 F8 0F 01 3C BF 46 00 00 49 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 03 00 0F 34 00 90 00 B7 [21:30:01]RAPDU: 90 00 [21:30:01]wFMCommunicate OK [21:30:01]wFMCommunicate request_size=4 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 0D 03 02 [21:30:01]Write to MH i2c: E2 08 00 10 34 80 0D 03 02 00 00 00 00 BF [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 0B 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 0B 00 10 34 00 52 6A 92 27 25 D7 76 23 90 00 CA [21:30:01]RAPDU: 52 6A 92 27 25 D7 76 23 90 00 [21:30:01]wFMCommunicate OK [21:30:01]SAM_PROTO_SignData done [21:30:01]FM_MakeSignedData done [21:30:01]CreateOFDProtocolMessage [21:30:01]wFMCommunicate request_size=4 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 11 00 00 [21:30:01]Write to MH i2c: E2 08 00 11 34 80 11 00 00 00 00 00 00 BF [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 17 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 17 00 11 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 18 [21:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:30:01]wFMCommunicate OK [21:30:01]CreateOFDProtocolMessage done [21:30:01]OFDSenderStorePacket 63514 [21:30:01]StoreOFDPacket docnum=63514 [21:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 80 AE 1C 01 FC A7 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 35 33 36 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 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 5F BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1A F8 00 00 35 04 06 00 F8 0F 01 3C BF 46 52 6A 92 27 25 D7 76 23 [21:30:01]CheckFolder [21:30:01]dirname=/storage/ofd_packets [21:30:01]CheckFolder done [21:30:01]ProducePacketName [21:30:01]name=ofd_packets/00063514 [21:30:01]NVStorageSaveData ofd_packets/00063514 [21:30:01]File name is /storage/ofd_packets/00063514 [21:30:01]Write 322 bytes [21:30:01]NVStorageSaveData done [21:30:01]OFDSenderStorePacket done [21:30:01]KKMCreateOFDPacket done [21:30:01]NVStorageSaveData kkm_last_timestamp [21:30:01]File name is /storage/kkm_last_timestamp [21:30:01]Write 4 bytes [21:30:01]NVStorageSaveData done [21:30:01]ExternCall_PrintAddStr [21:30:01]wPrintStart [21:30:01]Write to MH i2c: 01 00 00 12 34 46 [21:30:01]OFD Sender: Processing packet 63514 [packets to send 232, broken 231] [21:30:01]ProducePacketName [21:30:01]name=ofd_packets/00063514 [21:30:01]OFD Sender: To server: pG, [21:30:01]CommunicateWithHost lk.salyk.kg:30040 [21:30:01]ConnectInit lk.salyk.kg [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 12 34 00 00 00 00 00 FF 0F 5B [21:30:01]RasterBufferAndPrint [21:30:01]line Счет N : (3)47820 [21:30:01]line ИНН: 02508201610067 [21:30:01]line Контрольно-Кассовый Чек [21:30:01]line ПРОДАЖА [21:30:01]line Товар: 48745536 [21:30:01]line Сигареты Winston SS Caster+ [21:30:01]line 1.000 * 147.00 [21:30:01]line = 147.00 [21:30:01]line НДС 12% НСП 1% [21:30:01]line > о реализуемом товаре [21:30:01]line ИТОГО: 147.00 [21:30:01]line НСП 1% : 1.30 [21:30:01]line НДС 12% : 15.61 [21:30:01]line Наличными: 147.00 [21:30:01]line Безнал.: 0.00 [21:30:01]line Место: АЗС № 86 "Партнер Нефть" [21:30:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:30:01]line СНО: Общий режим [21:30:01]line Чек 128 24.10.2024 21:30 [21:30:01]line Смена: 547 ФФД: 1.0 [21:30:01]line ЗНМ: 0300000154 [21:30:01]line РНМ: 0000000000091619 [21:30:01]line Версия ККМ: 001 [21:30:01]line ФМ: 0000000000874676 [21:30:01]line ФД: 63514 [21:30:01]line ФПД: 272743328956230 [21:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213007&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63514&fm=272743328956230&tin=02508201610067®Number=0000000000091619&sum=14700 [21:30:01]line 0 [21:30:01]written 0, free lines is 4095 [21:30:01]Connected sock=9 [21:30:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 80 AE 1C 01 FC A7 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 35 33 36 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 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 5F BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1A F8 00 00 35 04 06 00 F8 0F 01 3C BF 46 52 6A 92 27 25 D7 76 23 [21:30:01]Write to MH i2c: 01 00 00 3A 34 6E [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: 01 07 00 3A 34 00 00 00 00 00 1D 0D 9F [21:30:01]RasterBufferAndPrint [21:30:01]line [21:30:01]line [21:30:01]line [21:30:01]line [21:30:01]line [21:30:01]written 0, free lines is 3363 [21:30:01]MH_Cut [21:30:01]Write to MH i2c: D1 01 00 41 34 01 47 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: D1 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: D1 01 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: D1 01 00 41 34 00 46 [21:30:01]Write to MH i2c: 01 00 00 42 34 76 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 75 DF 47 00 C4 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1A F8 00 00 F4 03 04 00 52 66 1A 67 B6 04 01 00 00 77 DF 17 A6 12 64 76 A9 [21:30:01]CommunicateWithHost err = 0 [21:30:01]CheckOFDResponse [21:30:01]1017 (14) - 77093643461234 [21:30:01]1041 (16) - 0000000000874676 [21:30:01]1040 (4) - 63514 [21:30:01]1012 (4) - 24.10.2024 15:22 [21:30:01]1206 (1) - 0 [21:30:01]OFD Sender: Remove packet 63514 [21:30:01]ProducePacketName [21:30:01]name=ofd_packets/00063514 [21:30:01]NVStorageDeleteData [21:30:02]*** Cut start [21:30:02]*** Partial cut [21:30:02]*** CUTSNS_PIN = 1 [21:30:02]*** CUTSNS_PIN = 0 [21:30:02]OFD Sender: No OFD packet to send [21:30:02]*** Brake cut motor [21:30:02]Read from MH i2c: 01 [21:30:02]MH_I2C_Read... [21:30:02]*** Stop cut motor [21:30:03]*** Cut end [21:30:03]Read from MH i2c: 01 07 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 42 34 00 00 00 00 00 FF 0F 8B [21:30:03]process_action close_receipt done [21:30:03]requested_data is exist [21:30:03]produce_requested_data [21:30:03]requested_item fm.sn is exist - process it [21:30:03]wFMCommunicate request_size=4 [21:30:03]MH_SAM_APDU [21:30:03]CAPDU: 80 11 00 00 [21:30:03]Write to MH i2c: E2 08 00 43 34 80 11 00 00 00 00 00 00 F1 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:03]Read from MH i2c: E2 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 17 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 17 00 43 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4A [21:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:30:03]wFMCommunicate OK [21:30:03]requested_item fd.num is exist - process it [21:30:03]SAM_PROTO_GetFieldsCounters [21:30:03]wFMCommunicate request_size=4 [21:30:03]MH_SAM_APDU [21:30:03]CAPDU: 80 13 00 00 [21:30:03]Write to MH i2c: E2 08 00 44 34 80 13 00 00 00 00 00 00 F4 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:03]Read from MH i2c: E2 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 62 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 62 00 44 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1A F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [21:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1A F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:03]wFMCommunicate OK [21:30:03]SAM_PROTO_GetFieldsCounters done [21:30:03]requested_item shift.num is exist - process it [21:30:03]requested_item shift.opened is exist - process it [21:30:03]req_shift_opened [21:30:03]FM_GetShiftState [21:30:03]SAM_PROTO_GetShiftState [21:30:03]wFMCommunicate request_size=4 [21:30:03]MH_SAM_APDU [21:30:03]CAPDU: 80 13 01 00 [21:30:03]Write to MH i2c: E2 08 00 45 34 80 13 01 00 00 00 00 00 F6 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:03]Read from MH i2c: E2 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 0E 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 0E 00 45 34 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 D7 [21:30:03]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:30:03]wFMCommunicate OK [21:30:03]SAM_PROTO_GetShiftState done [21:30:03]FM_GetShiftState done [21:30:03]req_shift_opened done [21:30:03]requested_item shift.open_date is exist - process it [21:30:03]req_shift_open_date [21:30:03]req_shift_open_date done [21:30:03]produce_requested_data done [21:30:03]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63514,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:30:03]process_action_free close_receipt [21:30:03]json_value_free [21:30:03]json_value_free done [21:30:03]process_json_proto returns [21:30:03]Send response to host [21:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63514,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:30:03]free response buf [21:30:03]execute_script done [21:30:03]execute_script returns [21:30:03]free content buf [21:30:03]Sock 10.Close socket [21:30:03]Sock 10.Thread stoped [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:40]accept exits with 7 [21:30:40]New connection [21:30:40]New thread 3066490212 created [21:30:40]Thread 3066633572 joined [21:30:40]Waiting for new connection... [21:30:40] Sock 7.Parse request [21:30:40]Sock 7.Check first char [21:30:40]Sock 7.First char is OK [21:30:40]request: POST /json_proto HTTP/1.0 [21:30:40]Method: POST [21:30:40]URL: /json_proto [21:30:40]Method is POST - this is cgi request [21:30:40]url: /json_proto [21:30:40]query_string will be loaded in cgi processing [21:30:40]execute_cgi json_proto POST (null) [21:30:40]execute_cgi path=json_proto method=POST [21:30:40]POST find Content-Length [21:30:40]Host: 172.17.42.132:8080 [21:30:40]Content-Length: 1195 [21:30:40]Content-Type: application/json [21:30:40] [21:30:40]POST finish read [21:30:40]Found Content-Length = 1195 [21:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47821", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 244.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:40]execute_script... [21:30: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)47821", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 244.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:40]POST & json_proto [21:30:40]process_json_proto [21:30:40]json parsed OK: [21:30:40]protocol is kg_v1.0 [21:30:40]action value=close_receipt [21:30:40]process_action close_receipt [21:30:40]cmd_close_receipt [21:30:40]MH_GetDate [21:30:40]Write to MH i2c: F0 00 00 46 34 69 [21:30:40]Write i2c OK [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: F0 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: F0 09 00 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: F0 09 00 46 34 00 87 BC 1A 67 4C DF 56 66 1D [21:30:40]GetLastDocTimeStamp 1729805407 [21:30:40]current date 1729805447 [21:30:40]FM_GetShiftState [21:30:40]SAM_PROTO_GetShiftState [21:30:40]wFMCommunicate request_size=4 [21:30:40]MH_SAM_APDU [21:30:40]CAPDU: 80 13 01 00 [21:30:40]Write to MH i2c: E2 08 00 47 34 80 13 01 00 00 00 00 00 F8 [21:30:40]Write i2c OK [21:30:40]MH_I2C_Read... [21:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:40]Read from MH i2c: E2 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: E2 0E 00 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: E2 0E 00 47 34 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 D9 [21:30:40]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:30:40]wFMCommunicate OK [21:30:40]SAM_PROTO_GetShiftState done [21:30:40]FM_GetShiftState done [21:30:40]opened in 1729728964 [21:30:40]opened+sec_in_day 1729815364 [21:30:40]quantity*price = 8900 [21:30:40]sum+1 = 8901 [21:30:40]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400358 Семечки ДЖИНН 70г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870227272957 Лимонад Sunbel Тархун 1л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 244.00 НСП 1% : 2.16 НДС 12% : 25.91 Наличными: 244.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 129 24.10.2024 21:30 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63515 ФПД: 76142304864985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213047&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63515&fm=76142304864985&tin=02508201610067®Number=0000000000091619&sum=24400 0 [21:30:41]StoreToDocumentArchive [21:30:41]shift 547 fd 63515 [21:30:41]save to /storage/0547/doc_00063515 [21:30:41]save last doc name /storage/0547/doc_00063515 to /storage/kkm_last_doc_name [21:30:41]save OK [21:30:41]Clear old archive folders... [21:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=498 [21:30:41]tlvbuf is 00C41640 [21:30:41]SAM_PROTO_ClearQueue [21:30:41]wFMCommunicate request_size=4 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 09 00 00 [21:30:41]Write to MH i2c: E2 08 00 54 34 80 09 00 00 00 00 00 00 FA [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 54 34 00 90 00 FC [21:30:41]RAPDU: 90 00 [21:30:41]wFMCommunicate OK [21:30:41]SAM_PROTO_ClearQueue done [21:30:41]KKMCreateOFDPacket [21:30:41]OFDProtocolAddRootSTLVToBuf [21:30:41]FM_MakeSignedData [21:30:41]FM_MakeSignedData [21:30:41]SAM_PROTO_SignData [21:30:41]wFMCommunicate request_size=4 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 0D 01 02 [21:30:41]Write to MH i2c: E2 08 00 55 34 80 0D 01 02 00 00 00 00 02 [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 55 34 00 90 00 FD [21:30:41]RAPDU: 90 00 [21:30:41]wFMCommunicate OK [21:30:41]wFMCommunicate request_size=255 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 0D 02 02 FA 03 00 F2 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 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 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 [21:30:41]Write to MH i2c: E2 02 01 56 34 80 0D 02 02 FA 00 03 00 F2 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 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 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 00 00 AA [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 56 34 00 90 00 FE [21:30:41]RAPDU: 90 00 [21:30:41]wFMCommunicate OK [21:30:41]wFMCommunicate request_size=255 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 0D 02 02 FA 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 87 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1B F8 00 00 35 04 06 00 45 40 43 08 [21:30:41]Write to MH i2c: E2 02 01 57 34 80 0D 02 02 FA 00 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 87 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1B F8 00 00 35 04 06 00 45 40 43 08 00 00 66 [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:42]Read from MH i2c: E2 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 57 34 00 90 00 FF [21:30:42]RAPDU: 90 00 [21:30:42]wFMCommunicate OK [21:30:42]wFMCommunicate request_size=7 [21:30:42]MH_SAM_APDU [21:30:42]CAPDU: 80 0D 02 02 02 AA D9 [21:30:42]Write to MH i2c: E2 0A 00 58 34 80 0D 02 02 02 00 AA D9 00 00 8D [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:42]Read from MH i2c: E2 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 03 00 58 34 00 90 00 00 [21:30:42]RAPDU: 90 00 [21:30:42]wFMCommunicate OK [21:30:42]wFMCommunicate request_size=4 [21:30:42]MH_SAM_APDU [21:30:42]CAPDU: 80 0D 03 02 [21:30:42]Write to MH i2c: E2 08 00 59 34 80 0D 03 02 00 00 00 00 08 [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:42]Read from MH i2c: E2 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 0B 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 0B 00 59 34 00 3A 0F 63 0A 0A 29 17 84 90 00 8D [21:30:42]RAPDU: 3A 0F 63 0A 0A 29 17 84 90 00 [21:30:42]wFMCommunicate OK [21:30:42]SAM_PROTO_SignData done [21:30:42]FM_MakeSignedData done [21:30:42]CreateOFDProtocolMessage [21:30:42]wFMCommunicate request_size=4 [21:30:42]MH_SAM_APDU [21:30:42]CAPDU: 80 11 00 00 [21:30:42]Write to MH i2c: E2 08 00 5A 34 80 11 00 00 00 00 00 00 08 [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:42]Read from MH i2c: E2 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 17 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: E2 17 00 5A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 61 [21:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:30:42]wFMCommunicate OK [21:30:42]CreateOFDProtocolMessage done [21:30:42]OFDSenderStorePacket 63515 [21:30:42]StoreOFDPacket docnum=63515 [21:30:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 06 02 00 00 D8 41 FE 01 36 0B 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 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 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 87 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1B F8 00 00 35 04 06 00 45 40 43 08 AA D9 3A 0F 63 0A 0A 29 17 84 [21:30:42]CheckFolder [21:30:42]dirname=/storage/ofd_packets [21:30:42]CheckFolder done [21:30:42]ProducePacketName [21:30:42]name=ofd_packets/00063515 [21:30:42]NVStorageSaveData ofd_packets/00063515 [21:30:42]File name is /storage/ofd_packets/00063515 [21:30:42]Write 548 bytes [21:30:42]NVStorageSaveData done [21:30:42]OFDSenderStorePacket done [21:30:42]KKMCreateOFDPacket done [21:30:42]NVStorageSaveData kkm_last_timestamp [21:30:42]File name is /storage/kkm_last_timestamp [21:30:42]Write 4 bytes [21:30:42]NVStorageSaveData done [21:30:42]ExternCall_PrintAddStr [21:30:42]wPrintStart [21:30:42]Write to MH i2c: 01 00 00 5B 34 8F [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 07 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 07 00 5B 34 00 00 00 00 00 FF 0F A4 [21:30:42]RasterBufferAndPrint [21:30:42]line Счет N : (3)47821 [21:30:42]line ИНН: 02508201610067 [21:30:42]line Контрольно-Кассовый Чек [21:30:42]line ПРОДАЖА [21:30:42]line Товар: 4700040114120 [21:30:42]line Султан чай 1л. чер персик [21:30:42]line 1.000 * 89.00 [21:30:42]line = 89.00 [21:30:42]line НДС 12% НСП 1% [21:30:42]line > о реализуемом товаре [21:30:42]line Товар: 4630007400358 [21:30:42]line Семечки ДЖИНН 70г [21:30:42]line 1.000 * 70.00 [21:30:42]line = 70.00 [21:30:42]line НДС 12% НСП 1% [21:30:42]line > о реализуемом товаре [21:30:42]line Товар: 4870227272957 [21:30:42]line Лимонад Sunbel Тархун 1л [21:30:42]line 1.000 * 85.00 [21:30:42]line = 85.00 [21:30:42]line НДС 12% НСП 1% [21:30:42]line > о реализуемом товаре [21:30:42]line ИТОГО: 244.00 [21:30:42]line НСП 1% : 2.16 [21:30:42]line НДС 12% : 25.91 [21:30:42]line Наличными: 244.00 [21:30:42]line Безнал.: 0.00 [21:30:42]line Место: АЗС № 86 "Партнер Нефть" [21:30:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:30:42]line СНО: Общий режим [21:30:42]line Чек 129 24.10.2024 21:30 [21:30:42]line Смена: 547 ФФД: 1.0 [21:30:42]line ЗНМ: 0300000154 [21:30:42]line РНМ: 0000000000091619 [21:30:42]line Версия ККМ: 001 [21:30:42]line ФМ: 0000000000874676 [21:30:42]line ФД: 63515 [21:30:42]line ФПД: 76142304864985 [21:30:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213047&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63515&fm=76142304864985&tin=02508201610067®Number=0000000000091619&sum=24400 [21:30:42]line 0 [21:30:42]written 0, free lines is 4095 [21:30:42]OFD Sender: Processing packet 63515 [packets to send 232, broken 231] [21:30:42]ProducePacketName [21:30:42]name=ofd_packets/00063515 [21:30:42]OFD Sender: To server: pG, [21:30:42]CommunicateWithHost lk.salyk.kg:30040 [21:30:42]ConnectInit lk.salyk.kg [21:30:42]Connected sock=10 [21:30:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 06 02 00 00 D8 41 FE 01 36 0B 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 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 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 50 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 87 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1B F8 00 00 35 04 06 00 45 40 43 08 AA D9 3A 0F 63 0A 0A 29 17 84 [21:30:42]Write to MH i2c: 01 00 00 8F 34 C3 [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 07 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 07 00 8F 34 00 00 00 00 00 8A 0C 60 [21:30:42]RasterBufferAndPrint [21:30:42]line [21:30:42]line [21:30:42]line [21:30:42]line [21:30:42]line [21:30:42]written 0, free lines is 3217 [21:30:42]MH_Cut [21:30:42]Write to MH i2c: D1 01 00 96 34 01 9C [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: D1 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: D1 01 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: D1 01 00 96 34 00 9B [21:30:42]Write to MH i2c: 01 00 00 97 34 CB [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 53 82 47 00 9F 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 34 36 37 36 10 04 04 00 1B F8 00 00 F4 03 04 00 7B 66 1A 67 B6 04 01 00 00 2B E6 1C 85 A0 97 22 0A [21:30:42]CommunicateWithHost err = 0 [21:30:42]CheckOFDResponse [21:30:42]1017 (14) - 77093643461234 [21:30:42]1041 (16) - 0000000000874676 [21:30:42]1040 (4) - 63515 [21:30:42]1012 (4) - 24.10.2024 15:23 [21:30:42]1206 (1) - 0 [21:30:42]OFD Sender: Remove packet 63515 [21:30:42]ProducePacketName [21:30:42]name=ofd_packets/00063515 [21:30:42]NVStorageDeleteData [21:30:43]OFD Sender: No OFD packet to send [21:30:43]*** Cut start [21:30:43]*** Partial cut [21:30:43]*** CUTSNS_PIN = 1 [21:30:43]*** CUTSNS_PIN = 0 [21:30:43]*** Brake cut motor [21:30:44]Read from MH i2c: 01 [21:30:44]MH_I2C_Read... [21:30:44]*** Stop cut motor [21:30:44]*** Cut end [21:30:44]Read from MH i2c: 01 07 00 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: 01 07 00 97 34 00 00 00 00 00 FF 0F E0 [21:30:44]process_action close_receipt done [21:30:44]requested_data is exist [21:30:44]produce_requested_data [21:30:44]requested_item fm.sn is exist - process it [21:30:44]wFMCommunicate request_size=4 [21:30:44]MH_SAM_APDU [21:30:44]CAPDU: 80 11 00 00 [21:30:44]Write to MH i2c: E2 08 00 98 34 80 11 00 00 00 00 00 00 46 [21:30:44]Write i2c OK [21:30:44]MH_I2C_Read... [21:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:44]Read from MH i2c: E2 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 17 00 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 17 00 98 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9F [21:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:30:44]wFMCommunicate OK [21:30:44]requested_item fd.num is exist - process it [21:30:44]SAM_PROTO_GetFieldsCounters [21:30:44]wFMCommunicate request_size=4 [21:30:44]MH_SAM_APDU [21:30:44]CAPDU: 80 13 00 00 [21:30:44]Write to MH i2c: E2 08 00 99 34 80 13 00 00 00 00 00 00 49 [21:30:44]Write i2c OK [21:30:44]MH_I2C_Read... [21:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:44]Read from MH i2c: E2 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 62 00 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 62 00 99 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1B F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [21:30:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1B F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:44]wFMCommunicate OK [21:30:44]SAM_PROTO_GetFieldsCounters done [21:30:44]requested_item shift.num is exist - process it [21:30:44]requested_item shift.opened is exist - process it [21:30:44]req_shift_opened [21:30:44]FM_GetShiftState [21:30:44]SAM_PROTO_GetShiftState [21:30:44]wFMCommunicate request_size=4 [21:30:44]MH_SAM_APDU [21:30:44]CAPDU: 80 13 01 00 [21:30:44]Write to MH i2c: E2 08 00 9A 34 80 13 01 00 00 00 00 00 4B [21:30:44]Write i2c OK [21:30:44]MH_I2C_Read... [21:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:44]Read from MH i2c: E2 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 0E 00 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 0E 00 9A 34 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 2C [21:30:44]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:30:44]wFMCommunicate OK [21:30:44]SAM_PROTO_GetShiftState done [21:30:44]FM_GetShiftState done [21:30:44]req_shift_opened done [21:30:44]requested_item shift.open_date is exist - process it [21:30:44]req_shift_open_date [21:30:44]req_shift_open_date done [21:30:44]produce_requested_data done [21:30:44]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63515,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:30:44]process_action_free close_receipt [21:30:44]json_value_free [21:30:44]json_value_free done [21:30:44]process_json_proto returns [21:30:44]Send response to host [21:30:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63515,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:30:44]free response buf [21:30:44]execute_script done [21:30:44]execute_script returns [21:30:44]free content buf [21:30:44]Sock 7.Close socket [21:30:44]Sock 7.Thread stoped [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:39]accept exits with 9 [21:31:39]New connection [21:31:39]New thread 3066633572 created [21:31:39]Thread 3066490212 joined [21:31:39]Waiting for new connection... [21:31:39] Sock 9.Parse request [21:31:39]Sock 9.Check first char [21:31:39]Sock 9.First char is OK [21:31:39]request: POST /json_proto HTTP/1.0 [21:31:39]Method: POST [21:31:39]URL: /json_proto [21:31:39]Method is POST - this is cgi request [21:31:39]url: /json_proto [21:31:39]query_string will be loaded in cgi processing [21:31:39]execute_cgi json_proto POST (null) [21:31:39]execute_cgi path=json_proto method=POST [21:31:39]POST find Content-Length [21:31:39]Host: 172.17.42.132:8080 [21:31:39]Content-Length: 645 [21:31:39]Content-Type: application/json [21:31:39] [21:31:39]POST finish read [21:31:39]Found Content-Length = 645 [21:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47822", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:39]execute_script... [21:31: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)47822", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:39]POST & json_proto [21:31:39]process_json_proto [21:31:39]json parsed OK: [21:31:39]protocol is kg_v1.0 [21:31:39]action value=close_receipt [21:31:39]process_action close_receipt [21:31:39]cmd_close_receipt [21:31:39]MH_GetDate [21:31:39]Write to MH i2c: F0 00 00 9B 34 BE [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: F0 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: F0 09 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: F0 09 00 9B 34 00 C3 BC 1A 67 4C DF 56 66 AE [21:31:39]GetLastDocTimeStamp 1729805447 [21:31:39]current date 1729805507 [21:31:39]FM_GetShiftState [21:31:39]SAM_PROTO_GetShiftState [21:31:39]wFMCommunicate request_size=4 [21:31:39]MH_SAM_APDU [21:31:39]CAPDU: 80 13 01 00 [21:31:39]Write to MH i2c: E2 08 00 9C 34 80 13 01 00 00 00 00 00 4D [21:31:39]Write i2c OK [21:31:39]MH_I2C_Read... [21:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:39]Read from MH i2c: E2 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 0E 00 [21:31:39]MH_I2C_Read... [21:31:39]Read from MH i2c: E2 0E 00 9C 34 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 2E [21:31:39]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:31:39]wFMCommunicate OK [21:31:39]SAM_PROTO_GetShiftState done [21:31:39]FM_GetShiftState done [21:31:39]opened in 1729728964 [21:31:39]opened+sec_in_day 1729815364 [21:31:39]quantity*price = 13000 [21:31:39]sum+1 = 13001 [21:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 130 24.10.2024 21:31 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63516 ФПД: 88314849516041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213147&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63516&fm=88314849516041&tin=02508201610067®Number=0000000000091619&sum=13000 0 [21:31:40]StoreToDocumentArchive [21:31:40]shift 547 fd 63516 [21:31:40]save to /storage/0547/doc_00063516 [21:31:40]save last doc name /storage/0547/doc_00063516 to /storage/kkm_last_doc_name [21:31:40]save OK [21:31:40]Clear old archive folders... [21:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:31:40]tlvbuf is B6F07150 [21:31:40]SAM_PROTO_ClearQueue [21:31:40]wFMCommunicate request_size=4 [21:31:40]MH_SAM_APDU [21:31:40]CAPDU: 80 09 00 00 [21:31:40]Write to MH i2c: E2 08 00 A9 34 80 09 00 00 00 00 00 00 4F [21:31:40]Write i2c OK [21:31:40]MH_I2C_Read... [21:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:40]Read from MH i2c: E2 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: E2 03 00 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: E2 03 00 A9 34 00 90 00 51 [21:31:40]RAPDU: 90 00 [21:31:40]wFMCommunicate OK [21:31:40]SAM_PROTO_ClearQueue done [21:31:40]KKMCreateOFDPacket [21:31:40]OFDProtocolAddRootSTLVToBuf [21:31:40]FM_MakeSignedData [21:31:40]FM_MakeSignedData [21:31:40]SAM_PROTO_SignData [21:31:40]wFMCommunicate request_size=4 [21:31:40]MH_SAM_APDU [21:31:40]CAPDU: 80 0D 01 02 [21:31:40]Write to MH i2c: E2 08 00 AA 34 80 0D 01 02 00 00 00 00 57 [21:31:40]Write i2c OK [21:31:40]MH_I2C_Read... [21:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:40]Read from MH i2c: E2 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: E2 03 00 [21:31:40]MH_I2C_Read... [21:31:40]Read from MH i2c: E2 03 00 AA 34 00 90 00 52 [21:31:40]RAPDU: 90 00 [21:31:40]wFMCommunicate OK [21:31:40]wFMCommunicate request_size=255 [21:31:40]MH_SAM_APDU [21:31:40]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C3 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [21:31:40]Write to MH i2c: E2 02 01 AB 34 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C3 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 0E [21:31:40]Write i2c OK [21:31:40]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 AB 34 00 90 00 53 [21:31:41]RAPDU: 90 00 [21:31:41]wFMCommunicate OK [21:31:41]wFMCommunicate request_size=41 [21:31:41]MH_SAM_APDU [21:31:41]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1C F8 00 00 35 04 06 00 50 52 67 3B DA 09 [21:31:41]Write to MH i2c: E2 2C 00 AC 34 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1C F8 00 00 35 04 06 00 50 52 67 3B DA 09 00 00 6A [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 03 00 AC 34 00 90 00 54 [21:31:41]RAPDU: 90 00 [21:31:41]wFMCommunicate OK [21:31:41]wFMCommunicate request_size=4 [21:31:41]MH_SAM_APDU [21:31:41]CAPDU: 80 0D 03 02 [21:31:41]Write to MH i2c: E2 08 00 AD 34 80 0D 03 02 00 00 00 00 5C [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 0B 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 0B 00 AD 34 00 AC F5 94 DC EF 31 BC 16 90 00 60 [21:31:41]RAPDU: AC F5 94 DC EF 31 BC 16 90 00 [21:31:41]wFMCommunicate OK [21:31:41]SAM_PROTO_SignData done [21:31:41]FM_MakeSignedData done [21:31:41]CreateOFDProtocolMessage [21:31:41]wFMCommunicate request_size=4 [21:31:41]MH_SAM_APDU [21:31:41]CAPDU: 80 11 00 00 [21:31:41]Write to MH i2c: E2 08 00 AE 34 80 11 00 00 00 00 00 00 5C [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:41]Read from MH i2c: E2 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 17 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: E2 17 00 AE 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B5 [21:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:31:41]wFMCommunicate OK [21:31:41]CreateOFDProtocolMessage done [21:31:41]OFDSenderStorePacket 63516 [21:31:41]StoreOFDPacket docnum=63516 [21:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 4A 8A 26 01 00 9B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C3 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1C F8 00 00 35 04 06 00 50 52 67 3B DA 09 AC F5 94 DC EF 31 BC 16 [21:31:41]CheckFolder [21:31:41]dirname=/storage/ofd_packets [21:31:41]CheckFolder done [21:31:41]ProducePacketName [21:31:41]name=ofd_packets/00063516 [21:31:41]NVStorageSaveData ofd_packets/00063516 [21:31:41]File name is /storage/ofd_packets/00063516 [21:31:41]Write 332 bytes [21:31:41]NVStorageSaveData done [21:31:41]OFDSenderStorePacket done [21:31:41]KKMCreateOFDPacket done [21:31:41]NVStorageSaveData kkm_last_timestamp [21:31:41]File name is /storage/kkm_last_timestamp [21:31:41]Write 4 bytes [21:31:41]NVStorageSaveData done [21:31:41]ExternCall_PrintAddStr [21:31:41]wPrintStart [21:31:41]Write to MH i2c: 01 00 00 AF 34 E3 [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: 01 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: 01 07 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: 01 07 00 AF 34 00 00 00 00 00 FF 0F F8 [21:31:41]RasterBufferAndPrint [21:31:41]line Счет N : (3)47822 [21:31:41]line ИНН: 02508201610067 [21:31:41]line Контрольно-Кассовый Чек [21:31:41]line ПРОДАЖА [21:31:41]line Товар: 2000036220012 [21:31:41]line Кофе Капучино XL(GABB TRADE) [21:31:41]line 1.000 * 130.00 [21:31:41]line = 130.00 [21:31:41]line НДС 12% НСП 1% [21:31:41]line > о реализуемом товаре [21:31:41]line ИТОГО: 130.00 [21:31:41]line НСП 1% : 1.15 [21:31:41]line НДС 12% : 13.80 [21:31:41]line Наличными: 130.00 [21:31:41]line Безнал.: 0.00 [21:31:41]line Место: АЗС № 86 "Партнер Нефть" [21:31:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:31:41]line СНО: Общий режим [21:31:41]line Чек 130 24.10.2024 21:31 [21:31:41]line Смена: 547 ФФД: 1.0 [21:31:41]line ЗНМ: 0300000154 [21:31:41]line РНМ: 0000000000091619 [21:31:41]line Версия ККМ: 001 [21:31:41]line ФМ: 0000000000874676 [21:31:41]line ФД: 63516 [21:31:41]line ФПД: 88314849516041 [21:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213147&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63516&fm=88314849516041&tin=02508201610067®Number=0000000000091619&sum=13000 [21:31:41]OFD Sender: Processing packet 63516 [packets to send 232, broken 231] [21:31:41]ProducePacketName [21:31:41]name=ofd_packets/00063516 [21:31:41]OFD Sender: To server: pG, [21:31:41]CommunicateWithHost lk.salyk.kg:30040 [21:31:41]ConnectInit lk.salyk.kg [21:31:41]line 0 [21:31:41]written 0, free lines is 4095 [21:31:41]Connected sock=10 [21:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 4A 8A 26 01 00 9B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C3 BC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1C F8 00 00 35 04 06 00 50 52 67 3B DA 09 AC F5 94 DC EF 31 BC 16 [21:31:41]Write to MH i2c: 01 00 00 D8 34 0C [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: 01 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: 01 07 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: 01 07 00 D8 34 00 00 00 00 00 09 0D 29 [21:31:41]RasterBufferAndPrint [21:31:41]line [21:31:41]line [21:31:41]line [21:31:41]line [21:31:41]line [21:31:41]written 0, free lines is 3346 [21:31:41]MH_Cut [21:31:41]Write to MH i2c: D1 01 00 DF 34 01 E5 [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: D1 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: D1 01 00 [21:31:41]MH_I2C_Read... [21:31:41]Read from MH i2c: D1 01 00 DF 34 00 E4 [21:31:41]Write to MH i2c: 01 00 00 E0 34 14 [21:31:41]Write i2c OK [21:31:41]MH_I2C_Read... [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 34 36 37 36 4F 00 00 00 DA 3D 47 00 4B 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1C F8 00 00 F4 03 04 00 B6 66 1A 67 B6 04 01 00 00 51 28 D4 EE 1B 56 86 82 [21:31:42]CommunicateWithHost err = 0 [21:31:42]CheckOFDResponse [21:31:42]1017 (14) - 77093643461234 [21:31:42]1041 (16) - 0000000000874676 [21:31:42]1040 (4) - 63516 [21:31:42]1012 (4) - 24.10.2024 15:24 [21:31:42]1206 (1) - 0 [21:31:42]OFD Sender: Remove packet 63516 [21:31:42]ProducePacketName [21:31:42]name=ofd_packets/00063516 [21:31:42]NVStorageDeleteData [21:31:42]*** Cut start [21:31:42]*** Partial cut [21:31:42]*** CUTSNS_PIN = 1 [21:31:42]OFD Sender: No OFD packet to send [21:31:42]*** CUTSNS_PIN = 0 [21:31:42]*** Brake cut motor [21:31:43]Read from MH i2c: 01 [21:31:43]MH_I2C_Read... [21:31:43]*** Stop cut motor [21:31:43]*** Cut end [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 E0 34 00 00 00 00 00 FF 0F 29 [21:31:43]process_action close_receipt done [21:31:43]requested_data is exist [21:31:43]produce_requested_data [21:31:43]requested_item fm.sn is exist - process it [21:31:43]wFMCommunicate request_size=4 [21:31:43]MH_SAM_APDU [21:31:43]CAPDU: 80 11 00 00 [21:31:43]Write to MH i2c: E2 08 00 E1 34 80 11 00 00 00 00 00 00 8F [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:43]Read from MH i2c: E2 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 17 00 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 17 00 E1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E8 [21:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:31:43]wFMCommunicate OK [21:31:43]requested_item fd.num is exist - process it [21:31:43]SAM_PROTO_GetFieldsCounters [21:31:43]wFMCommunicate request_size=4 [21:31:43]MH_SAM_APDU [21:31:43]CAPDU: 80 13 00 00 [21:31:43]Write to MH i2c: E2 08 00 E2 34 80 13 00 00 00 00 00 00 92 [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:43]Read from MH i2c: E2 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 62 00 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 62 00 E2 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1C F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [21:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1C F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:43]wFMCommunicate OK [21:31:43]SAM_PROTO_GetFieldsCounters done [21:31:43]requested_item shift.num is exist - process it [21:31:43]requested_item shift.opened is exist - process it [21:31:43]req_shift_opened [21:31:43]FM_GetShiftState [21:31:43]SAM_PROTO_GetShiftState [21:31:43]wFMCommunicate request_size=4 [21:31:43]MH_SAM_APDU [21:31:43]CAPDU: 80 13 01 00 [21:31:43]Write to MH i2c: E2 08 00 E3 34 80 13 01 00 00 00 00 00 94 [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:43]Read from MH i2c: E2 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 0E 00 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 0E 00 E3 34 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 75 [21:31:43]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:31:43]wFMCommunicate OK [21:31:43]SAM_PROTO_GetShiftState done [21:31:43]FM_GetShiftState done [21:31:43]req_shift_opened done [21:31:43]requested_item shift.open_date is exist - process it [21:31:43]req_shift_open_date [21:31:43]req_shift_open_date done [21:31:43]produce_requested_data done [21:31:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63516,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:31:43]process_action_free close_receipt [21:31:43]json_value_free [21:31:43]json_value_free done [21:31:43]process_json_proto returns [21:31:43]Send response to host [21:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63516,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:31:43]free response buf [21:31:43]execute_script done [21:31:43]execute_script returns [21:31:43]free content buf [21:31:43]Sock 9.Close socket [21:31:43]Sock 9.Thread stoped [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:36]accept exits with 7 [21:33:36]New connection [21:33:36]New thread 3066490212 created [21:33:36]Thread 3066633572 joined [21:33:36]Waiting for new connection... [21:33:36] Sock 7.Parse request [21:33:36]Sock 7.Check first char [21:33:36]Sock 7.First char is OK [21:33:36]request: POST /json_proto HTTP/1.0 [21:33:36]Method: POST [21:33:36]URL: /json_proto [21:33:36]Method is POST - this is cgi request [21:33:36]url: /json_proto [21:33:36]query_string will be loaded in cgi processing [21:33:36]execute_cgi json_proto POST (null) [21:33:36]execute_cgi path=json_proto method=POST [21:33:36]POST find Content-Length [21:33:36]Host: 172.17.42.132:8080 [21:33:36]Content-Length: 608 [21:33:36]Content-Type: application/json [21:33:36] [21:33:36]POST finish read [21:33:36]Found Content-Length = 608 [21:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47823", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:36]execute_script... [21:33:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47823", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:36]POST & json_proto [21:33:36]process_json_proto [21:33:36]json parsed OK: [21:33:36]protocol is kg_v1.0 [21:33:36]action value=close_receipt [21:33:36]process_action close_receipt [21:33:36]cmd_close_receipt [21:33:36]MH_GetDate [21:33:36]Write to MH i2c: F0 00 00 E4 34 07 [21:33:36]Write i2c OK [21:33:36]MH_I2C_Read... [21:33:36]Read from MH i2c: F0 [21:33:36]MH_I2C_Read... [21:33:36]Read from MH i2c: F0 09 00 [21:33:36]MH_I2C_Read... [21:33:36]Read from MH i2c: F0 09 00 E4 34 00 38 BD 1A 67 4C DF 56 66 6D [21:33:36]GetLastDocTimeStamp 1729805507 [21:33:36]current date 1729805624 [21:33:36]FM_GetShiftState [21:33:36]SAM_PROTO_GetShiftState [21:33:36]wFMCommunicate request_size=4 [21:33:36]MH_SAM_APDU [21:33:36]CAPDU: 80 13 01 00 [21:33:36]Write to MH i2c: E2 08 00 E5 34 80 13 01 00 00 00 00 00 96 [21:33:36]Write i2c OK [21:33:36]MH_I2C_Read... [21:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:36]Read from MH i2c: E2 [21:33:36]MH_I2C_Read... [21:33:36]Read from MH i2c: E2 0E 00 [21:33:36]MH_I2C_Read... [21:33:36]Read from MH i2c: E2 0E 00 E5 34 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 77 [21:33:36]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:33:36]wFMCommunicate OK [21:33:36]SAM_PROTO_GetShiftState done [21:33:36]FM_GetShiftState done [21:33:36]opened in 1729728964 [21:33:36]opened+sec_in_day 1729815364 [21:33:36]quantity*price = 13400 [21:33:36]sum+1 = 13401 [21:33:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 131 24.10.2024 21:33 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63517 ФПД: 142102072976872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213344&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63517&fm=142102072976872&tin=02508201610067®Number=0000000000091619&sum=13400 0 [21:33:37]StoreToDocumentArchive [21:33:37]shift 547 fd 63517 [21:33:37]save to /storage/0547/doc_00063517 [21:33:37]save last doc name /storage/0547/doc_00063517 to /storage/kkm_last_doc_name [21:33:37]save OK [21:33:37]Clear old archive folders... [21:33:37]ProcessDocumentItem done err = 0, tmpTLVsize=261 [21:33:37]tlvbuf is 00C13B10 [21:33:37]SAM_PROTO_ClearQueue [21:33:37]wFMCommunicate request_size=4 [21:33:37]MH_SAM_APDU [21:33:37]CAPDU: 80 09 00 00 [21:33:37]Write to MH i2c: E2 08 00 F2 34 80 09 00 00 00 00 00 00 98 [21:33:37]Write i2c OK [21:33:37]MH_I2C_Read... [21:33:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:37]Read from MH i2c: E2 [21:33:37]MH_I2C_Read... [21:33:37]Read from MH i2c: E2 03 00 [21:33:37]MH_I2C_Read... [21:33:37]Read from MH i2c: E2 03 00 F2 34 00 90 00 9A [21:33:37]RAPDU: 90 00 [21:33:37]wFMCommunicate OK [21:33:37]SAM_PROTO_ClearQueue done [21:33:37]KKMCreateOFDPacket [21:33:37]OFDProtocolAddRootSTLVToBuf [21:33:37]FM_MakeSignedData [21:33:37]FM_MakeSignedData [21:33:37]SAM_PROTO_SignData [21:33:37]wFMCommunicate request_size=4 [21:33:37]MH_SAM_APDU [21:33:37]CAPDU: 80 0D 01 02 [21:33:37]Write to MH i2c: E2 08 00 F3 34 80 0D 01 02 00 00 00 00 A0 [21:33:37]Write i2c OK [21:33:37]MH_I2C_Read... [21:33:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:37]Read from MH i2c: E2 [21:33:37]MH_I2C_Read... [21:33:37]Read from MH i2c: E2 03 00 [21:33:37]MH_I2C_Read... [21:33:37]Read from MH i2c: E2 03 00 F3 34 00 90 00 9B [21:33:37]RAPDU: 90 00 [21:33:37]wFMCommunicate OK [21:33:37]wFMCommunicate request_size=255 [21:33:37]MH_SAM_APDU [21:33:37]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 83 00 00 00 F4 03 04 00 38 BD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 [21:33:37]Write to MH i2c: E2 02 01 F4 34 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 83 00 00 00 F4 03 04 00 38 BD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 00 E4 [21:33:37]Write i2c OK [21:33:37]MH_I2C_Read... [21:33:37]OFD Sender: No OFD packet to send [21:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:38]Read from MH i2c: E2 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: E2 03 00 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: E2 03 00 F4 34 00 90 00 9C [21:33:38]RAPDU: 90 00 [21:33:38]wFMCommunicate OK [21:33:38]wFMCommunicate request_size=20 [21:33:38]MH_SAM_APDU [21:33:38]CAPDU: 80 0D 02 02 0F 00 1D F8 00 00 35 04 06 00 81 3D B7 94 E5 E8 [21:33:38]Write to MH i2c: E2 17 00 F5 34 80 0D 02 02 0F 00 00 1D F8 00 00 35 04 06 00 81 3D B7 94 E5 E8 00 00 EB [21:33:38]Write i2c OK [21:33:38]MH_I2C_Read... [21:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:38]Read from MH i2c: E2 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: E2 03 00 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: E2 03 00 F5 34 00 90 00 9D [21:33:38]RAPDU: 90 00 [21:33:38]wFMCommunicate OK [21:33:38]wFMCommunicate request_size=4 [21:33:38]MH_SAM_APDU [21:33:38]CAPDU: 80 0D 03 02 [21:33:38]Write to MH i2c: E2 08 00 F6 34 80 0D 03 02 00 00 00 00 A5 [21:33:38]Write i2c OK [21:33:38]MH_I2C_Read... [21:33:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:38]Read from MH i2c: E2 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: E2 0B 00 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: E2 0B 00 F6 34 00 DA 4F C7 DA F8 D3 AB 99 90 00 7F [21:33:38]RAPDU: DA 4F C7 DA F8 D3 AB 99 90 00 [21:33:38]wFMCommunicate OK [21:33:38]SAM_PROTO_SignData done [21:33:38]FM_MakeSignedData done [21:33:38]CreateOFDProtocolMessage [21:33:38]wFMCommunicate request_size=4 [21:33:38]MH_SAM_APDU [21:33:38]CAPDU: 80 11 00 00 [21:33:38]Write to MH i2c: E2 08 00 F7 34 80 11 00 00 00 00 00 00 A5 [21:33:38]Write i2c OK [21:33:38]MH_I2C_Read... [21:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:38]Read from MH i2c: E2 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: E2 17 00 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: E2 17 00 F7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FE [21:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:33:38]wFMCommunicate OK [21:33:38]CreateOFDProtocolMessage done [21:33:38]OFDSenderStorePacket 63517 [21:33:38]StoreOFDPacket docnum=63517 [21:33:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 19 01 00 00 B4 FD 11 01 3D 26 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 83 00 00 00 F4 03 04 00 38 BD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1D F8 00 00 35 04 06 00 81 3D B7 94 E5 E8 DA 4F C7 DA F8 D3 AB 99 [21:33:38]CheckFolder [21:33:38]dirname=/storage/ofd_packets [21:33:38]CheckFolder done [21:33:38]ProducePacketName [21:33:38]name=ofd_packets/00063517 [21:33:38]NVStorageSaveData ofd_packets/00063517 [21:33:38]File name is /storage/ofd_packets/00063517 [21:33:38]Write 311 bytes [21:33:38]NVStorageSaveData done [21:33:38]OFDSenderStorePacket done [21:33:38]KKMCreateOFDPacket done [21:33:38]NVStorageSaveData kkm_last_timestamp [21:33:38]File name is /storage/kkm_last_timestamp [21:33:38]Write 4 bytes [21:33:38]NVStorageSaveData done [21:33:38]ExternCall_PrintAddStr [21:33:38]wPrintStart [21:33:38]Write to MH i2c: 01 00 00 F8 34 2C [21:33:38]Write i2c OK [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: 01 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: 01 07 00 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: 01 07 00 F8 34 00 00 00 00 00 FF 0F 41 [21:33:38]RasterBufferAndPrint [21:33:38]line Счет N : (3)47823 [21:33:38]line ИНН: 02508201610067 [21:33:38]line Контрольно-Кассовый Чек [21:33:38]line ПРОДАЖА [21:33:38]line Товар: 48741156 [21:33:38]line Сигареты LD Blue [21:33:38]line 1.000 * 134.00 [21:33:38]line = 134.00 [21:33:38]line НДС 12% НСП 1% [21:33:38]line > о реализуемом товаре [21:33:38]line ИТОГО: 134.00 [21:33:38]line НСП 1% : 1.19 [21:33:38]line НДС 12% : 14.23 [21:33:38]line Наличными: 134.00 [21:33:38]line Безнал.: 0.00 [21:33:38]line Место: АЗС № 86 "Партнер Нефть" [21:33:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:33:38]line СНО: Общий режим [21:33:38]line Чек 131 24.10.2024 21:33 [21:33:38]line Смена: 547 ФФД: 1.0 [21:33:38]line ЗНМ: 0300000154 [21:33:38]line РНМ: 0000000000091619 [21:33:38]line Версия ККМ: 001 [21:33:38]line ФМ: 0000000000874676 [21:33:38]line ФД: 63517 [21:33:38]line ФПД: 142102072976872 [21:33:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213344&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63517&fm=142102072976872&tin=02508201610067®Number=0000000000091619&sum=13400 [21:33:38]OFD Sender: Processing packet 63517 [packets to send 232, broken 231] [21:33:38]ProducePacketName [21:33:38]name=ofd_packets/00063517 [21:33:38]OFD Sender: To server: pG, [21:33:38]CommunicateWithHost lk.salyk.kg:30040 [21:33:38]ConnectInit lk.salyk.kg [21:33:38]line 0 [21:33:38]written 0, free lines is 4095 [21:33:39]Write to MH i2c: 01 00 00 20 35 55 [21:33:39]Write i2c OK [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: 01 [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: 01 07 00 [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: 01 07 00 20 35 00 00 00 00 00 09 0D 72 [21:33:39]RasterBufferAndPrint [21:33:39]line [21:33:39]line [21:33:39]line [21:33:39]line [21:33:39]line [21:33:39]written 0, free lines is 3343 [21:33:39]MH_Cut [21:33:39]Write to MH i2c: D1 01 00 27 35 01 2E [21:33:39]Write i2c OK [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: D1 [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: D1 01 00 [21:33:39]MH_I2C_Read... [21:33:39]Read from MH i2c: D1 01 00 27 35 00 2D [21:33:39]Write to MH i2c: 01 00 00 28 35 5D [21:33:39]Write i2c OK [21:33:39]MH_I2C_Read... [21:33:39]Connected sock=9 [21:33:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 19 01 00 00 B4 FD 11 01 3D 26 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 83 00 00 00 F4 03 04 00 38 BD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1D F8 00 00 35 04 06 00 81 3D B7 94 E5 E8 DA 4F C7 DA F8 D3 AB 99 [21:33:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 08 52 47 00 14 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1D F8 00 00 F4 03 04 00 2C 67 1A 67 B6 04 01 00 00 7C 4C 82 A4 E8 ED D3 A4 [21:33:39]CommunicateWithHost err = 0 [21:33:39]CheckOFDResponse [21:33:39]1017 (14) - 77093643461234 [21:33:39]1041 (16) - 0000000000874676 [21:33:39]1040 (4) - 63517 [21:33:39]1012 (4) - 24.10.2024 15:26 [21:33:39]1206 (1) - 0 [21:33:39]OFD Sender: Remove packet 63517 [21:33:39]ProducePacketName [21:33:39]name=ofd_packets/00063517 [21:33:39]NVStorageDeleteData [21:33:39]*** Cut start [21:33:39]*** Partial cut [21:33:39]*** CUTSNS_PIN = 1 [21:33:39]*** CUTSNS_PIN = 0 [21:33:39]*** Brake cut motor [21:33:40]OFD Sender: No OFD packet to send [21:33:40]Read from MH i2c: 01 [21:33:40]MH_I2C_Read... [21:33:40]*** Stop cut motor [21:33:40]*** Cut end [21:33:40]Read from MH i2c: 01 07 00 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: 01 07 00 28 35 00 00 00 00 00 FF 0F 72 [21:33:40]process_action close_receipt done [21:33:40]requested_data is exist [21:33:40]produce_requested_data [21:33:40]requested_item fm.sn is exist - process it [21:33:40]wFMCommunicate request_size=4 [21:33:40]MH_SAM_APDU [21:33:40]CAPDU: 80 11 00 00 [21:33:40]Write to MH i2c: E2 08 00 29 35 80 11 00 00 00 00 00 00 D8 [21:33:40]Write i2c OK [21:33:40]MH_I2C_Read... [21:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:40]Read from MH i2c: E2 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 17 00 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 17 00 29 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 31 [21:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:33:40]wFMCommunicate OK [21:33:40]requested_item fd.num is exist - process it [21:33:40]SAM_PROTO_GetFieldsCounters [21:33:40]wFMCommunicate request_size=4 [21:33:40]MH_SAM_APDU [21:33:40]CAPDU: 80 13 00 00 [21:33:40]Write to MH i2c: E2 08 00 2A 35 80 13 00 00 00 00 00 00 DB [21:33:40]Write i2c OK [21:33:40]MH_I2C_Read... [21:33:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:40]Read from MH i2c: E2 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 62 00 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 62 00 2A 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [21:33:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:33:40]wFMCommunicate OK [21:33:40]SAM_PROTO_GetFieldsCounters done [21:33:40]requested_item shift.num is exist - process it [21:33:40]requested_item shift.opened is exist - process it [21:33:40]req_shift_opened [21:33:40]FM_GetShiftState [21:33:40]SAM_PROTO_GetShiftState [21:33:40]wFMCommunicate request_size=4 [21:33:40]MH_SAM_APDU [21:33:40]CAPDU: 80 13 01 00 [21:33:40]Write to MH i2c: E2 08 00 2B 35 80 13 01 00 00 00 00 00 DD [21:33:40]Write i2c OK [21:33:40]MH_I2C_Read... [21:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:40]Read from MH i2c: E2 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 0E 00 [21:33:40]MH_I2C_Read... [21:33:40]Read from MH i2c: E2 0E 00 2B 35 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 BE [21:33:40]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:33:40]wFMCommunicate OK [21:33:40]SAM_PROTO_GetShiftState done [21:33:40]FM_GetShiftState done [21:33:40]req_shift_opened done [21:33:40]requested_item shift.open_date is exist - process it [21:33:40]req_shift_open_date [21:33:40]req_shift_open_date done [21:33:40]produce_requested_data done [21:33:40]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63517,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:33:40]process_action_free close_receipt [21:33:40]json_value_free [21:33:40]json_value_free done [21:33:40]process_json_proto returns [21:33:40]Send response to host [21:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63517,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:33:40]free response buf [21:33:40]execute_script done [21:33:40]execute_script returns [21:33:40]free content buf [21:33:40]Sock 7.Close socket [21:33:40]Sock 7.Thread stoped [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:52]accept exits with 10 [21:35:52]New connection [21:35:52]New thread 3066633572 created [21:35:52]Thread 3066490212 joined [21:35:52]Waiting for new connection... [21:35:52] Sock 10.Parse request [21:35:52]Sock 10.Check first char [21:35:52]Sock 10.First char is OK [21:35:52]request: POST /json_proto HTTP/1.0 [21:35:52]Method: POST [21:35:52]URL: /json_proto [21:35:52]Method is POST - this is cgi request [21:35:52]url: /json_proto [21:35:52]query_string will be loaded in cgi processing [21:35:52]execute_cgi json_proto POST (null) [21:35:52]execute_cgi path=json_proto method=POST [21:35:52]POST find Content-Length [21:35:52]Host: 172.17.42.132:8080 [21:35:52]Content-Length: 674 [21:35:52]Content-Type: application/json [21:35:52] [21:35:52]POST finish read [21:35:52]Found Content-Length = 674 [21:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47824", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:52]execute_script... [21:35: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)47824", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:52]POST & json_proto [21:35:52]process_json_proto [21:35:52]json parsed OK: [21:35:52]protocol is kg_v1.0 [21:35:52]action value=close_receipt [21:35:52]process_action close_receipt [21:35:52]cmd_close_receipt [21:35:52]MH_GetDate [21:35:52]Write to MH i2c: F0 00 00 2C 35 50 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: F0 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: F0 09 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: F0 09 00 2C 35 00 C0 BD 1A 67 4C DF 56 66 3E [21:35:52]GetLastDocTimeStamp 1729805624 [21:35:52]current date 1729805760 [21:35:52]FM_GetShiftState [21:35:52]SAM_PROTO_GetShiftState [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 13 01 00 [21:35:52]Write to MH i2c: E2 08 00 2D 35 80 13 01 00 00 00 00 00 DF [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:52]Read from MH i2c: E2 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 0E 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 0E 00 2D 35 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 C0 [21:35:52]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:35:52]wFMCommunicate OK [21:35:52]SAM_PROTO_GetShiftState done [21:35:52]FM_GetShiftState done [21:35:52]opened in 1729728964 [21:35:52]opened+sec_in_day 1729815364 [21:35:52]quantity*price = 9900 [21:35:52]sum+1 = 9901 [21:35:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 132 24.10.2024 21:36 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63518 ФПД: 48461737025180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213600&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63518&fm=48461737025180&tin=02508201610067®Number=0000000000091619&sum=9900 0 [21:35:53]StoreToDocumentArchive [21:35:53]shift 547 fd 63518 [21:35:53]save to /storage/0547/doc_00063518 [21:35:53]save last doc name /storage/0547/doc_00063518 to /storage/kkm_last_doc_name [21:35:53]save OK [21:35:53]Clear old archive folders... [21:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=294 [21:35:53]tlvbuf is B6F0AB10 [21:35:53]SAM_PROTO_ClearQueue [21:35:53]wFMCommunicate request_size=4 [21:35:53]MH_SAM_APDU [21:35:53]CAPDU: 80 09 00 00 [21:35:53]Write to MH i2c: E2 08 00 3A 35 80 09 00 00 00 00 00 00 E1 [21:35:53]Write i2c OK [21:35:53]MH_I2C_Read... [21:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:53]Read from MH i2c: E2 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 03 00 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 03 00 3A 35 00 90 00 E3 [21:35:53]RAPDU: 90 00 [21:35:53]wFMCommunicate OK [21:35:53]SAM_PROTO_ClearQueue done [21:35:53]KKMCreateOFDPacket [21:35:53]OFDProtocolAddRootSTLVToBuf [21:35:53]FM_MakeSignedData [21:35:53]FM_MakeSignedData [21:35:53]SAM_PROTO_SignData [21:35:53]wFMCommunicate request_size=4 [21:35:53]MH_SAM_APDU [21:35:53]CAPDU: 80 0D 01 02 [21:35:53]Write to MH i2c: E2 08 00 3B 35 80 0D 01 02 00 00 00 00 E9 [21:35:53]Write i2c OK [21:35:53]MH_I2C_Read... [21:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:53]Read from MH i2c: E2 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 03 00 [21:35:53]MH_I2C_Read... [21:35:53]Read from MH i2c: E2 03 00 3B 35 00 90 00 E4 [21:35:53]RAPDU: 90 00 [21:35:53]wFMCommunicate OK [21:35:53]wFMCommunicate request_size=255 [21:35:53]MH_SAM_APDU [21:35:53]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 C0 BD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [21:35:53]Write to MH i2c: E2 02 01 3C 35 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 C0 BD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 98 [21:35:53]Write i2c OK [21:35:53]MH_I2C_Read... [21:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 3C 35 00 90 00 E5 [21:35:54]RAPDU: 90 00 [21:35:54]wFMCommunicate OK [21:35:54]wFMCommunicate request_size=53 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1E F8 00 00 35 04 06 00 2C 13 60 9E DE 9C [21:35:54]Write to MH i2c: E2 38 00 3D 35 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1E F8 00 00 35 04 06 00 2C 13 60 9E DE 9C 00 00 B5 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [21:35:54]RAPDU: 90 00 [21:35:54]wFMCommunicate OK [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 0D 03 02 [21:35:54]Write to MH i2c: E2 08 00 3E 35 80 0D 03 02 00 00 00 00 EE [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 0B 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 0B 00 3E 35 00 0C C5 8F 37 5A 94 8D 8F 90 00 90 [21:35:54]RAPDU: 0C C5 8F 37 5A 94 8D 8F 90 00 [21:35:54]wFMCommunicate OK [21:35:54]SAM_PROTO_SignData done [21:35:54]FM_MakeSignedData done [21:35:54]CreateOFDProtocolMessage [21:35:54]wFMCommunicate request_size=4 [21:35:54]MH_SAM_APDU [21:35:54]CAPDU: 80 11 00 00 [21:35:54]Write to MH i2c: E2 08 00 3F 35 80 11 00 00 00 00 00 00 EE [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:54]Read from MH i2c: E2 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 17 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: E2 17 00 3F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 47 [21:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:35:54]wFMCommunicate OK [21:35:54]CreateOFDProtocolMessage done [21:35:54]OFDSenderStorePacket 63518 [21:35:54]StoreOFDPacket docnum=63518 [21:35:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 7A C7 32 01 6C F2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 C0 BD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1E F8 00 00 35 04 06 00 2C 13 60 9E DE 9C 0C C5 8F 37 5A 94 8D 8F [21:35:54]CheckFolder [21:35:54]dirname=/storage/ofd_packets [21:35:54]CheckFolder done [21:35:54]ProducePacketName [21:35:54]name=ofd_packets/00063518 [21:35:54]NVStorageSaveData ofd_packets/00063518 [21:35:54]File name is /storage/ofd_packets/00063518 [21:35:54]Write 344 bytes [21:35:54]NVStorageSaveData done [21:35:54]OFDSenderStorePacket done [21:35:54]KKMCreateOFDPacket done [21:35:54]NVStorageSaveData kkm_last_timestamp [21:35:54]File name is /storage/kkm_last_timestamp [21:35:54]Write 4 bytes [21:35:54]NVStorageSaveData done [21:35:54]ExternCall_PrintAddStr [21:35:54]wPrintStart [21:35:54]Write to MH i2c: 01 00 00 40 35 75 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 40 35 00 00 00 00 00 FF 0F 8A [21:35:54]RasterBufferAndPrint [21:35:54]line Счет N : (3)47824 [21:35:54]line ИНН: 02508201610067 [21:35:54]line Контрольно-Кассовый Чек [21:35:54]line ПРОДАЖА [21:35:54]line Товар: 4870022003312 [21:35:54]line Gorilla эн нап манго-кокос 0,45 ж/б [21:35:54]line 1.000 * 99.00 [21:35:54]line = 99.00 [21:35:54]line НДС 12% НСП 1% [21:35:54]line > о реализуемом товаре [21:35:54]line ИТОГО: 99.00 [21:35:54]line НСП 1% : 0.88 [21:35:54]line НДС 12% : 10.51 [21:35:54]line Наличными: 99.00 [21:35:54]line Безнал.: 0.00 [21:35:54]line Место: АЗС № 86 "Партнер Нефть" [21:35:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:35:54]line СНО: Общий режим [21:35:54]line Чек 132 24.10.2024 21:36 [21:35:54]line Смена: 547 ФФД: 1.0 [21:35:54]line ЗНМ: 0300000154 [21:35:54]line РНМ: 0000000000091619 [21:35:54]line Версия ККМ: 001 [21:35:54]line ФМ: 0000000000874676 [21:35:54]line ФД: 63518 [21:35:54]line ФПД: 48461737025180 [21:35:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213600&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63518&fm=48461737025180&tin=02508201610067®Number=0000000000091619&sum=9900 [21:35:54]OFD Sender: Processing packet 63518 [packets to send 232, broken 231] [21:35:54]ProducePacketName [21:35:54]name=ofd_packets/00063518 [21:35:54]OFD Sender: To server: pG, [21:35:54]CommunicateWithHost lk.salyk.kg:30040 [21:35:54]ConnectInit lk.salyk.kg [21:35:54]line 0 [21:35:54]written 0, free lines is 4095 [21:35:54]Connected sock=9 [21:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 7A C7 32 01 6C F2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 C0 BD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1E F8 00 00 35 04 06 00 2C 13 60 9E DE 9C 0C C5 8F 37 5A 94 8D 8F [21:35:54]Write to MH i2c: 01 00 00 69 35 9E [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 69 35 00 00 00 00 00 13 0D C5 [21:35:54]RasterBufferAndPrint [21:35:54]line [21:35:54]line [21:35:54]line [21:35:54]line [21:35:54]line [21:35:54]written 0, free lines is 3354 [21:35:55]MH_Cut [21:35:55]Write to MH i2c: D1 01 00 70 35 01 77 [21:35:55]Write i2c OK [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: D1 [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: D1 01 00 [21:35:55]MH_I2C_Read... [21:35:55]Read from MH i2c: D1 01 00 70 35 00 76 [21:35:55]Write to MH i2c: 01 00 00 71 35 A6 [21:35:55]Write i2c OK [21:35:55]MH_I2C_Read... [21:35:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 06 D7 47 00 7E 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1E F8 00 00 F4 03 04 00 B3 67 1A 67 B6 04 01 00 00 67 5B B9 AC AC CF 5A ED [21:35:55]CommunicateWithHost err = 0 [21:35:55]CheckOFDResponse [21:35:55]1017 (14) - 77093643461234 [21:35:55]1041 (16) - 0000000000874676 [21:35:55]1040 (4) - 63518 [21:35:55]1012 (4) - 24.10.2024 15:28 [21:35:55]1206 (1) - 0 [21:35:55]OFD Sender: Remove packet 63518 [21:35:55]ProducePacketName [21:35:55]name=ofd_packets/00063518 [21:35:55]NVStorageDeleteData [21:35:55]*** Cut start [21:35:55]*** Partial cut [21:35:55]*** CUTSNS_PIN = 1 [21:35:55]OFD Sender: No OFD packet to send [21:35:55]*** CUTSNS_PIN = 0 [21:35:55]*** Brake cut motor [21:35:56]Read from MH i2c: 01 [21:35:56]MH_I2C_Read... [21:35:56]*** Stop cut motor [21:35:56]*** Cut end [21:35:56]Read from MH i2c: 01 07 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: 01 07 00 71 35 00 00 00 00 00 FF 0F BB [21:35:56]process_action close_receipt done [21:35:56]requested_data is exist [21:35:56]produce_requested_data [21:35:56]requested_item fm.sn is exist - process it [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 11 00 00 [21:35:56]Write to MH i2c: E2 08 00 72 35 80 11 00 00 00 00 00 00 21 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 [21:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 17 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 17 00 72 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7A [21:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:35:56]wFMCommunicate OK [21:35:56]requested_item fd.num is exist - process it [21:35:56]SAM_PROTO_GetFieldsCounters [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 13 00 00 [21:35:56]Write to MH i2c: E2 08 00 73 35 80 13 00 00 00 00 00 00 24 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:56]Read from MH i2c: E2 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 62 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 62 00 73 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1E F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [21:35:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1E F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:56]wFMCommunicate OK [21:35:56]SAM_PROTO_GetFieldsCounters done [21:35:56]requested_item shift.num is exist - process it [21:35:56]requested_item shift.opened is exist - process it [21:35:56]req_shift_opened [21:35:56]FM_GetShiftState [21:35:56]SAM_PROTO_GetShiftState [21:35:56]wFMCommunicate request_size=4 [21:35:56]MH_SAM_APDU [21:35:56]CAPDU: 80 13 01 00 [21:35:56]Write to MH i2c: E2 08 00 74 35 80 13 01 00 00 00 00 00 26 [21:35:56]Write i2c OK [21:35:56]MH_I2C_Read... [21:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:56]Read from MH i2c: E2 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 0E 00 [21:35:56]MH_I2C_Read... [21:35:56]Read from MH i2c: E2 0E 00 74 35 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 07 [21:35:56]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:35:56]wFMCommunicate OK [21:35:56]SAM_PROTO_GetShiftState done [21:35:56]FM_GetShiftState done [21:35:56]req_shift_opened done [21:35:56]requested_item shift.open_date is exist - process it [21:35:56]req_shift_open_date [21:35:56]req_shift_open_date done [21:35:56]produce_requested_data done [21:35:56]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63518,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:35:56]process_action_free close_receipt [21:35:56]json_value_free [21:35:56]json_value_free done [21:35:56]process_json_proto returns [21:35:56]Send response to host [21:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63518,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:35:56]free response buf [21:35:56]execute_script done [21:35:56]execute_script returns [21:35:56]free content buf [21:35:56]Sock 10.Close socket [21:35:56]Sock 10.Thread stoped [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37: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:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]accept exits with 7 [21:46:51]New connection [21:46:51]New thread 3066490212 created [21:46:51]Thread 3066633572 joined [21:46:51]Waiting for new connection... [21:46:51] Sock 7.Parse request [21:46:51]Sock 7.Check first char [21:46:51]Sock 7.First char is OK [21:46:51]request: POST /json_proto HTTP/1.0 [21:46:51]Method: POST [21:46:51]URL: /json_proto [21:46:51]Method is POST - this is cgi request [21:46:51]url: /json_proto [21:46:51]query_string will be loaded in cgi processing [21:46:51]execute_cgi json_proto POST (null) [21:46:51]execute_cgi path=json_proto method=POST [21:46:51]POST find Content-Length [21:46:51]Host: 172.17.42.132:8080 [21:46:51]Content-Length: 625 [21:46:51]Content-Type: application/json [21:46:51] [21:46:51]POST finish read [21:46:51]Found Content-Length = 625 [21:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47825", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:51]execute_script... [21: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 : (3)47825", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:51]POST & json_proto [21:46:51]process_json_proto [21:46:51]json parsed OK: [21:46:51]protocol is kg_v1.0 [21:46:51]action value=close_receipt [21:46:51]process_action close_receipt [21:46:51]cmd_close_receipt [21:46:51]MH_GetDate [21:46:51]Write to MH i2c: F0 00 00 75 35 99 [21:46:51]Write i2c OK [21:46:51]MH_I2C_Read... [21:46:51]Read from MH i2c: F0 [21:46:51]MH_I2C_Read... [21:46:51]Read from MH i2c: F0 09 00 [21:46:51]MH_I2C_Read... [21:46:51]Read from MH i2c: F0 09 00 75 35 00 53 C0 1A 67 4C DF 56 66 1D [21:46:51]GetLastDocTimeStamp 1729805760 [21:46:51]current date 1729806419 [21:46:51]FM_GetShiftState [21:46:51]SAM_PROTO_GetShiftState [21:46:51]wFMCommunicate request_size=4 [21:46:51]MH_SAM_APDU [21:46:51]CAPDU: 80 13 01 00 [21:46:51]Write to MH i2c: E2 08 00 76 35 80 13 01 00 00 00 00 00 28 [21:46:51]Write i2c OK [21:46:51]MH_I2C_Read... [21:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:51]Read from MH i2c: E2 [21:46:51]MH_I2C_Read... [21:46:51]Read from MH i2c: E2 0E 00 [21:46:51]MH_I2C_Read... [21:46:51]Read from MH i2c: E2 0E 00 76 35 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 09 [21:46:51]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:46:51]wFMCommunicate OK [21:46:51]SAM_PROTO_GetShiftState done [21:46:51]FM_GetShiftState done [21:46:51]opened in 1729728964 [21:46:51]opened+sec_in_day 1729815364 [21:46:51]quantity*price = 11500 [21:46:51]sum+1 = 11501 [21:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 133 24.10.2024 21:46 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63519 ФПД: 67373961649919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214659&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63519&fm=67373961649919&tin=02508201610067®Number=0000000000091619&sum=11500 0 [21:46:52]StoreToDocumentArchive [21:46:52]shift 547 fd 63519 [21:46:52]save to /storage/0547/doc_00063519 [21:46:52]save last doc name /storage/0547/doc_00063519 to /storage/kkm_last_doc_name [21:46:52]save OK [21:46:52]Clear old archive folders... [21:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:46:52]tlvbuf is 00C13CA0 [21:46:52]SAM_PROTO_ClearQueue [21:46:52]wFMCommunicate request_size=4 [21:46:52]MH_SAM_APDU [21:46:52]CAPDU: 80 09 00 00 [21:46:52]Write to MH i2c: E2 08 00 83 35 80 09 00 00 00 00 00 00 2A [21:46:52]Write i2c OK [21:46:52]MH_I2C_Read... [21:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:52]Read from MH i2c: E2 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 03 00 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 03 00 83 35 00 90 00 2C [21:46:52]RAPDU: 90 00 [21:46:52]wFMCommunicate OK [21:46:52]SAM_PROTO_ClearQueue done [21:46:52]KKMCreateOFDPacket [21:46:52]OFDProtocolAddRootSTLVToBuf [21:46:52]FM_MakeSignedData [21:46:52]FM_MakeSignedData [21:46:52]SAM_PROTO_SignData [21:46:52]wFMCommunicate request_size=4 [21:46:52]MH_SAM_APDU [21:46:52]CAPDU: 80 0D 01 02 [21:46:52]Write to MH i2c: E2 08 00 84 35 80 0D 01 02 00 00 00 00 32 [21:46:52]Write i2c OK [21:46:52]MH_I2C_Read... [21:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:52]Read from MH i2c: E2 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 03 00 [21:46:52]MH_I2C_Read... [21:46:52]Read from MH i2c: E2 03 00 84 35 00 90 00 2D [21:46:52]RAPDU: 90 00 [21:46:52]wFMCommunicate OK [21:46:52]wFMCommunicate request_size=255 [21:46:52]MH_SAM_APDU [21:46:52]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 53 C0 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [21:46:52]Write to MH i2c: E2 02 01 85 35 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 53 C0 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 0D [21:46:52]Write i2c OK [21:46:52]MH_I2C_Read... [21:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:53]Read from MH i2c: E2 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 03 00 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 03 00 85 35 00 90 00 2E [21:46:53]RAPDU: 90 00 [21:46:53]wFMCommunicate OK [21:46:53]wFMCommunicate request_size=33 [21:46:53]MH_SAM_APDU [21:46:53]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1F F8 00 00 35 04 06 00 3D 46 B9 0D 1E FF [21:46:53]Write to MH i2c: E2 24 00 86 35 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1F F8 00 00 35 04 06 00 3D 46 B9 0D 1E FF 00 00 47 [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:53]Read from MH i2c: E2 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 03 00 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [21:46:53]RAPDU: 90 00 [21:46:53]wFMCommunicate OK [21:46:53]wFMCommunicate request_size=4 [21:46:53]MH_SAM_APDU [21:46:53]CAPDU: 80 0D 03 02 [21:46:53]Write to MH i2c: E2 08 00 87 35 80 0D 03 02 00 00 00 00 37 [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:53]Read from MH i2c: E2 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 0B 00 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 0B 00 87 35 00 34 C3 A7 8A 70 C4 B2 76 90 00 BC [21:46:53]RAPDU: 34 C3 A7 8A 70 C4 B2 76 90 00 [21:46:53]wFMCommunicate OK [21:46:53]SAM_PROTO_SignData done [21:46:53]FM_MakeSignedData done [21:46:53]CreateOFDProtocolMessage [21:46:53]wFMCommunicate request_size=4 [21:46:53]MH_SAM_APDU [21:46:53]CAPDU: 80 11 00 00 [21:46:53]Write to MH i2c: E2 08 00 88 35 80 11 00 00 00 00 00 00 37 [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:53]Read from MH i2c: E2 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 17 00 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 17 00 88 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 90 [21:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:46:53]wFMCommunicate OK [21:46:53]CreateOFDProtocolMessage done [21:46:53]OFDSenderStorePacket 63519 [21:46:53]StoreOFDPacket docnum=63519 [21:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 87 5D 1E 01 16 29 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 53 C0 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1F F8 00 00 35 04 06 00 3D 46 B9 0D 1E FF 34 C3 A7 8A 70 C4 B2 76 [21:46:53]CheckFolder [21:46:53]dirname=/storage/ofd_packets [21:46:53]CheckFolder done [21:46:53]ProducePacketName [21:46:53]name=ofd_packets/00063519 [21:46:53]NVStorageSaveData ofd_packets/00063519 [21:46:53]File name is /storage/ofd_packets/00063519 [21:46:53]Write 324 bytes [21:46:53]NVStorageSaveData done [21:46:53]OFDSenderStorePacket done [21:46:53]KKMCreateOFDPacket done [21:46:53]NVStorageSaveData kkm_last_timestamp [21:46:53]File name is /storage/kkm_last_timestamp [21:46:53]Write 4 bytes [21:46:53]NVStorageSaveData done [21:46:53]ExternCall_PrintAddStr [21:46:53]wPrintStart [21:46:53]Write to MH i2c: 01 00 00 89 35 BE [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: 01 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: 01 07 00 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: 01 07 00 89 35 00 00 00 00 00 FF 0F D3 [21:46:53]RasterBufferAndPrint [21:46:53]line Счет N : (3)47825 [21:46:53]line ИНН: 02508201610067 [21:46:53]line Контрольно-Кассовый Чек [21:46:53]line ПРОДАЖА [21:46:53]line Товар: 2000036240010 [21:46:53]line Кофе Латте (GABB TRADE) [21:46:53]line 1.000 * 115.00 [21:46:53]line = 115.00 [21:46:53]line НДС 12% НСП 1% [21:46:53]line > о реализуемом товаре [21:46:53]line ИТОГО: 115.00 [21:46:53]line НСП 1% : 1.02 [21:46:53]line НДС 12% : 12.21 [21:46:53]line Наличными: 115.00 [21:46:53]line Безнал.: 0.00 [21:46:53]line Место: АЗС № 86 "Партнер Нефть" [21:46:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:46:53]line СНО: Общий режим [21:46:53]line Чек 133 24.10.2024 21:46 [21:46:53]line Смена: 547 ФФД: 1.0 [21:46:53]line ЗНМ: 0300000154 [21:46:53]line РНМ: 0000000000091619 [21:46:53]line Версия ККМ: 001 [21:46:53]line ФМ: 0000000000874676 [21:46:53]line ФД: 63519 [21:46:53]line ФПД: 67373961649919 [21:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214659&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63519&fm=67373961649919&tin=02508201610067®Number=0000000000091619&sum=11500 [21:46:53]line 0 [21:46:53]written 0, free lines is 4095 [21:46:53]OFD Sender: Processing packet 63519 [packets to send 232, broken 231] [21:46:53]ProducePacketName [21:46:53]name=ofd_packets/00063519 [21:46:53]OFD Sender: To server: pG, [21:46:53]CommunicateWithHost lk.salyk.kg:30040 [21:46:53]ConnectInit lk.salyk.kg [21:46:53]Connected sock=9 [21: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 34 36 37 36 26 01 00 00 87 5D 1E 01 16 29 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 53 C0 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 1F F8 00 00 35 04 06 00 3D 46 B9 0D 1E FF 34 C3 A7 8A 70 C4 B2 76 [21:46:53]Write to MH i2c: 01 00 00 B1 35 E6 [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: 01 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: 01 07 00 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: 01 07 00 B1 35 00 00 00 00 00 17 0D 11 [21:46:53]RasterBufferAndPrint [21:46:53]line [21:46:53]line [21:46:53]line [21:46:53]line [21:46:53]line [21:46:53]written 0, free lines is 3358 [21:46:53]MH_Cut [21:46:53]Write to MH i2c: D1 01 00 B8 35 01 BF [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: D1 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: D1 01 00 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: D1 01 00 B8 35 00 BE [21:46:53]Write to MH i2c: 01 00 00 B9 35 EE [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 53 C5 47 00 97 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 34 36 37 36 10 04 04 00 1F F8 00 00 F4 03 04 00 46 6A 1A 67 B6 04 01 00 00 AC 40 2E 02 50 91 19 EA [21:46:53]CommunicateWithHost err = 0 [21:46:53]CheckOFDResponse [21:46:53]1017 (14) - 77093643461234 [21:46:53]1041 (16) - 0000000000874676 [21:46:53]1040 (4) - 63519 [21:46:53]1012 (4) - 24.10.2024 15:39 [21:46:53]1206 (1) - 0 [21:46:53]OFD Sender: Remove packet 63519 [21:46:53]ProducePacketName [21:46:53]name=ofd_packets/00063519 [21:46:53]NVStorageDeleteData [21:46:54]*** Cut start [21:46:54]*** Partial cut [21:46:54]*** CUTSNS_PIN = 1 [21:46:54]*** CUTSNS_PIN = 0 [21:46:54]OFD Sender: No OFD packet to send [21:46:54]*** Brake cut motor [21:46:54]Read from MH i2c: 01 [21:46:54]MH_I2C_Read... [21:46:54]*** Stop cut motor [21:46:54]*** Cut end [21:46:54]Read from MH i2c: 01 07 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: 01 07 00 B9 35 00 00 00 00 00 FF 0F 03 [21:46:54]process_action close_receipt done [21:46:54]requested_data is exist [21:46:54]produce_requested_data [21:46:54]requested_item fm.sn is exist - process it [21:46:54]wFMCommunicate request_size=4 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 11 00 00 [21:46:54]Write to MH i2c: E2 08 00 BA 35 80 11 00 00 00 00 00 00 69 [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:55]Read from MH i2c: E2 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: E2 17 00 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: E2 17 00 BA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C2 [21:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:46:55]wFMCommunicate OK [21:46:55]requested_item fd.num is exist - process it [21:46:55]SAM_PROTO_GetFieldsCounters [21:46:55]wFMCommunicate request_size=4 [21:46:55]MH_SAM_APDU [21:46:55]CAPDU: 80 13 00 00 [21:46:55]Write to MH i2c: E2 08 00 BB 35 80 13 00 00 00 00 00 00 6C [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:55]Read from MH i2c: E2 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: E2 62 00 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: E2 62 00 BB 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1F F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [21: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 1F F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:55]wFMCommunicate OK [21:46:55]SAM_PROTO_GetFieldsCounters done [21:46:55]requested_item shift.num is exist - process it [21:46:55]requested_item shift.opened is exist - process it [21:46:55]req_shift_opened [21:46:55]FM_GetShiftState [21:46:55]SAM_PROTO_GetShiftState [21:46:55]wFMCommunicate request_size=4 [21:46:55]MH_SAM_APDU [21:46:55]CAPDU: 80 13 01 00 [21:46:55]Write to MH i2c: E2 08 00 BC 35 80 13 01 00 00 00 00 00 6E [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:55]Read from MH i2c: E2 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: E2 0E 00 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: E2 0E 00 BC 35 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 4F [21:46:55]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:46:55]wFMCommunicate OK [21:46:55]SAM_PROTO_GetShiftState done [21:46:55]FM_GetShiftState done [21:46:55]req_shift_opened done [21:46:55]requested_item shift.open_date is exist - process it [21:46:55]req_shift_open_date [21:46:55]req_shift_open_date done [21:46:55]produce_requested_data done [21:46:55]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63519,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:46:55]process_action_free close_receipt [21:46:55]json_value_free [21:46:55]json_value_free done [21:46:55]process_json_proto returns [21:46:55]Send response to host [21:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63519,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:46:55]free response buf [21:46:55]execute_script done [21:46:55]execute_script returns [21:46:55]free content buf [21:46:55]Sock 7.Close socket [21:46:55]Sock 7.Thread stoped [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:21]accept exits with 10 [21:53:21]New connection [21:53:21]New thread 3066633572 created [21:53:21]Thread 3066490212 joined [21:53:21]Waiting for new connection... [21:53:21] Sock 10.Parse request [21:53:21]Sock 10.Check first char [21:53:21]Sock 10.First char is OK [21:53:21]request: POST /json_proto HTTP/1.0 [21:53:21]Method: POST [21:53:21]URL: /json_proto [21:53:21]Method is POST - this is cgi request [21:53:21]url: /json_proto [21:53:21]query_string will be loaded in cgi processing [21:53:21]execute_cgi json_proto POST (null) [21:53:21]execute_cgi path=json_proto method=POST [21:53:21]POST find Content-Length [21:53:21]Host: 172.17.42.132:8080 [21:53:21]Content-Length: 657 [21:53:21]Content-Type: application/json [21:53:21] [21:53:21]POST finish read [21:53:21]Found Content-Length = 657 [21:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47826", "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" ] } } [21:53:21]execute_script... [21:53:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47826", "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" ] } } [21:53:21]POST & json_proto [21:53:21]process_json_proto [21:53:21]json parsed OK: [21:53:21]protocol is kg_v1.0 [21:53:21]action value=close_receipt [21:53:21]process_action close_receipt [21:53:21]cmd_close_receipt [21:53:21]MH_GetDate [21:53:21]Write to MH i2c: F0 00 00 BD 35 E1 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: F0 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: F0 09 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: F0 09 00 BD 35 00 D9 C1 1A 67 4C DF 56 66 EC [21:53:21]GetLastDocTimeStamp 1729806419 [21:53:21]current date 1729806809 [21:53:21]FM_GetShiftState [21:53:21]SAM_PROTO_GetShiftState [21:53:21]wFMCommunicate request_size=4 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 13 01 00 [21:53:21]Write to MH i2c: E2 08 00 BE 35 80 13 01 00 00 00 00 00 70 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 0E 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 0E 00 BE 35 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 51 [21:53:21]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:53:21]wFMCommunicate OK [21:53:21]SAM_PROTO_GetShiftState done [21:53:21]FM_GetShiftState done [21:53:21]opened in 1729728964 [21:53:21]opened+sec_in_day 1729815364 [21:53:21]quantity*price = 20500 [21:53:21]sum+1 = 20501 [21:53:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 134 24.10.2024 21:53 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63520 ФПД: 269137180907146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T215329&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63520&fm=269137180907146&tin=02508201610067®Number=0000000000091619&sum=20500 0 [21:53:22]StoreToDocumentArchive [21:53:22]shift 547 fd 63520 [21:53:22]save to /storage/0547/doc_00063520 [21:53:22]save last doc name /storage/0547/doc_00063520 to /storage/kkm_last_doc_name [21:53:22]save OK [21:53:22]Clear old archive folders... [21:53:22]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:53:22]tlvbuf is 00BA6B40 [21:53:22]SAM_PROTO_ClearQueue [21:53:22]wFMCommunicate request_size=4 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 09 00 00 [21:53:22]Write to MH i2c: E2 08 00 CB 35 80 09 00 00 00 00 00 00 72 [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 CB 35 00 90 00 74 [21:53:22]RAPDU: 90 00 [21:53:22]wFMCommunicate OK [21:53:22]SAM_PROTO_ClearQueue done [21:53:22]KKMCreateOFDPacket [21:53:22]OFDProtocolAddRootSTLVToBuf [21:53:22]FM_MakeSignedData [21:53:22]FM_MakeSignedData [21:53:22]SAM_PROTO_SignData [21:53:22]wFMCommunicate request_size=4 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 0D 01 02 [21:53:22]Write to MH i2c: E2 08 00 CC 35 80 0D 01 02 00 00 00 00 7A [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 CC 35 00 90 00 75 [21:53:22]RAPDU: 90 00 [21:53:22]wFMCommunicate OK [21:53:22]wFMCommunicate request_size=255 [21:53:22]MH_SAM_APDU [21:53:22]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 86 00 00 00 F4 03 04 00 D9 C1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [21:53:22]Write to MH i2c: E2 02 01 CD 35 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 86 00 00 00 F4 03 04 00 D9 C1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 00 00 05 [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 CD 35 00 90 00 76 [21:53:22]RAPDU: 90 00 [21:53:22]wFMCommunicate OK [21:53:22]wFMCommunicate request_size=37 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 20 F8 00 00 35 04 06 00 F4 C7 62 10 56 8A [21:53:22]Write to MH i2c: E2 28 00 CE 35 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 20 F8 00 00 35 04 06 00 F4 C7 62 10 56 8A 00 00 FF [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:23]Read from MH i2c: E2 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 03 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 03 00 CE 35 00 90 00 77 [21:53:23]RAPDU: 90 00 [21:53:23]wFMCommunicate OK [21:53:23]wFMCommunicate request_size=4 [21:53:23]MH_SAM_APDU [21:53:23]CAPDU: 80 0D 03 02 [21:53:23]Write to MH i2c: E2 08 00 CF 35 80 0D 03 02 00 00 00 00 7F [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:23]Read from MH i2c: E2 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 0B 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 0B 00 CF 35 00 91 91 74 EB 45 AB FF 1E 90 00 0E [21:53:23]RAPDU: 91 91 74 EB 45 AB FF 1E 90 00 [21:53:23]wFMCommunicate OK [21:53:23]SAM_PROTO_SignData done [21:53:23]FM_MakeSignedData done [21:53:23]CreateOFDProtocolMessage [21:53:23]wFMCommunicate request_size=4 [21:53:23]MH_SAM_APDU [21:53:23]CAPDU: 80 11 00 00 [21:53:23]Write to MH i2c: E2 08 00 D0 35 80 11 00 00 00 00 00 00 7F [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:23]Read from MH i2c: E2 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 17 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 17 00 D0 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D8 [21:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:53:23]wFMCommunicate OK [21:53:23]CreateOFDProtocolMessage done [21:53:23]OFDSenderStorePacket 63520 [21:53:23]StoreOFDPacket docnum=63520 [21:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 5C E9 22 01 CC 78 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 86 00 00 00 F4 03 04 00 D9 C1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 20 F8 00 00 35 04 06 00 F4 C7 62 10 56 8A 91 91 74 EB 45 AB FF 1E [21:53:23]CheckFolder [21:53:23]dirname=/storage/ofd_packets [21:53:23]CheckFolder done [21:53:23]ProducePacketName [21:53:23]name=ofd_packets/00063520 [21:53:23]NVStorageSaveData ofd_packets/00063520 [21:53:23]File name is /storage/ofd_packets/00063520 [21:53:23]Write 328 bytes [21:53:23]NVStorageSaveData done [21:53:23]OFDSenderStorePacket done [21:53:23]KKMCreateOFDPacket done [21:53:23]NVStorageSaveData kkm_last_timestamp [21:53:23]File name is /storage/kkm_last_timestamp [21:53:23]Write 4 bytes [21:53:23]NVStorageSaveData done [21:53:23]ExternCall_PrintAddStr [21:53:23]wPrintStart [21:53:23]Write to MH i2c: 01 00 00 D1 35 06 [21:53:23]OFD Sender: Processing packet 63520 [packets to send 232, broken 231] [21:53:23]ProducePacketName [21:53:23]name=ofd_packets/00063520 [21:53:23]OFD Sender: To server: pG, [21:53:23]CommunicateWithHost lk.salyk.kg:30040 [21:53:23]ConnectInit lk.salyk.kg [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 07 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 07 00 D1 35 00 00 00 00 00 FF 0F 1B [21:53:23]RasterBufferAndPrint [21:53:23]line Счет N : (3)47826 [21:53:23]line ИНН: 02508201610067 [21:53:23]line Контрольно-Кассовый Чек [21:53:23]line ПРОДАЖА [21:53:23]line Товар: 5449000000286 [21:53:23]line Напиток Кока-Кола 2л [21:53:23]line 1.000 * 205.00 [21:53:23]line = 205.00 [21:53:23]line НДС 12% НСП 1% [21:53:23]line > о реализуемом товаре [21:53:23]line ИТОГО: 205.00 [21:53:23]line НСП 1% : 1.81 [21:53:23]line НДС 12% : 21.77 [21:53:23]line Наличными: 205.00 [21:53:23]line Безнал.: 0.00 [21:53:23]line Место: АЗС № 86 "Партнер Нефть" [21:53:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:53:23]line СНО: Общий режим [21:53:23]line Чек 134 24.10.2024 21:53 [21:53:23]line Смена: 547 ФФД: 1.0 [21:53:23]line ЗНМ: 0300000154 [21:53:23]line РНМ: 0000000000091619 [21:53:23]line Версия ККМ: 001 [21:53:23]line ФМ: 0000000000874676 [21:53:23]line ФД: 63520 [21:53:23]line ФПД: 269137180907146 [21:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T215329&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63520&fm=269137180907146&tin=02508201610067®Number=0000000000091619&sum=20500 [21:53:23]line 0 [21:53:23]written 0, free lines is 4095 [21:53:23]Connected sock=11 [21:53:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 5C E9 22 01 CC 78 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 86 00 00 00 F4 03 04 00 D9 C1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 20 F8 00 00 35 04 06 00 F4 C7 62 10 56 8A 91 91 74 EB 45 AB FF 1E [21:53:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 75 31 47 00 80 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 20 F8 00 00 F4 03 04 00 CC 6B 1A 67 B6 04 01 00 00 3D 23 0A 79 90 DE F4 77 [21:53:23]CommunicateWithHost err = 0 [21:53:23]CheckOFDResponse [21:53:23]1017 (14) - 77093643461234 [21:53:23]1041 (16) - 0000000000874676 [21:53:23]1040 (4) - 63520 [21:53:23]1012 (4) - 24.10.2024 15:46 [21:53:23]1206 (1) - 0 [21:53:23]OFD Sender: Remove packet 63520 [21:53:23]ProducePacketName [21:53:23]name=ofd_packets/00063520 [21:53:23]NVStorageDeleteData [21:53:23]Write to MH i2c: 01 00 00 F9 35 2E [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 07 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 07 00 F9 35 00 00 00 00 00 1E 0D 60 [21:53:23]RasterBufferAndPrint [21:53:23]line [21:53:23]line [21:53:23]line [21:53:23]line [21:53:23]line [21:53:23]written 0, free lines is 3364 [21:53:23]MH_Cut [21:53:23]Write to MH i2c: D1 01 00 00 36 01 08 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: D1 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: D1 01 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: D1 01 00 00 36 00 07 [21:53:23]Write to MH i2c: 01 00 00 01 36 37 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:24]OFD Sender: No OFD packet to send [21:53:24]*** Cut start [21:53:24]*** Partial cut [21:53:24]*** CUTSNS_PIN = 1 [21:53:24]*** CUTSNS_PIN = 0 [21:53:24]*** Brake cut motor [21:53:25]Read from MH i2c: 01 [21:53:25]*** Stop cut motor [21:53:25]*** Cut end [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: 01 07 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: 01 07 00 01 36 00 00 00 00 00 FF 0F 4C [21:53:25]process_action close_receipt done [21:53:25]requested_data is exist [21:53:25]produce_requested_data [21:53:25]requested_item fm.sn is exist - process it [21:53:25]wFMCommunicate request_size=4 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 11 00 00 [21:53:25]Write to MH i2c: E2 08 00 02 36 80 11 00 00 00 00 00 00 B2 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 17 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 17 00 02 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0B [21:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:53:25]wFMCommunicate OK [21:53:25]requested_item fd.num is exist - process it [21:53:25]SAM_PROTO_GetFieldsCounters [21:53:25]wFMCommunicate request_size=4 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 13 00 00 [21:53:25]Write to MH i2c: E2 08 00 03 36 80 13 00 00 00 00 00 00 B5 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 62 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 62 00 03 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 20 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [21:53:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 20 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:25]wFMCommunicate OK [21:53:25]SAM_PROTO_GetFieldsCounters done [21:53:25]requested_item shift.num is exist - process it [21:53:25]requested_item shift.opened is exist - process it [21:53:25]req_shift_opened [21:53:25]FM_GetShiftState [21:53:25]SAM_PROTO_GetShiftState [21:53:25]wFMCommunicate request_size=4 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 13 01 00 [21:53:25]Write to MH i2c: E2 08 00 04 36 80 13 01 00 00 00 00 00 B7 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 0E 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 0E 00 04 36 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 98 [21:53:25]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [21:53:25]wFMCommunicate OK [21:53:25]SAM_PROTO_GetShiftState done [21:53:25]FM_GetShiftState done [21:53:25]req_shift_opened done [21:53:25]requested_item shift.open_date is exist - process it [21:53:25]req_shift_open_date [21:53:25]req_shift_open_date done [21:53:25]produce_requested_data done [21:53:25]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63520,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [21:53:25]process_action_free close_receipt [21:53:25]json_value_free [21:53:25]json_value_free done [21:53:25]process_json_proto returns [21:53:25]Send response to host [21:53:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63520,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [21:53:25]free response buf [21:53:25]execute_script done [21:53:25]execute_script returns [21:53:25]free content buf [21:53:25]Sock 10.Close socket [21:53:25]Sock 10.Thread stoped [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:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02: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:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:39]accept exits with 7 [22:06:39]New connection [22:06:39]New thread 3066490212 created [22:06:39]Thread 3066633572 joined [22:06:39]Waiting for new connection... [22:06:39] Sock 7.Parse request [22:06:39]Sock 7.Check first char [22:06:39]Sock 7.First char is OK [22:06:39]request: POST /json_proto HTTP/1.0 [22:06:39]Method: POST [22:06:39]URL: /json_proto [22:06:39]Method is POST - this is cgi request [22:06:39]url: /json_proto [22:06:39]query_string will be loaded in cgi processing [22:06:39]execute_cgi json_proto POST (null) [22:06:39]execute_cgi path=json_proto method=POST [22:06:39]POST find Content-Length [22:06:39]Host: 172.17.42.132:8080 [22:06:39]Content-Length: 640 [22:06:39]Content-Type: application/json [22:06:39] [22:06:39]POST finish read [22:06:39]Found Content-Length = 640 [22:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47827", "tax_sys" : 0, "items" : [ { "code": "4870205390970", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 PN -40 INORGANIC COOLANT (G11) ", "price" : 1195.00, "quantity" : 1.000, "sum" : 1195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:39]execute_script... [22:06:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47827", "tax_sys" : 0, "items" : [ { "code": "4870205390970", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 PN -40 INORGANIC COOLANT (G11) ", "price" : 1195.00, "quantity" : 1.000, "sum" : 1195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:39]POST & json_proto [22:06:39]process_json_proto [22:06:39]json parsed OK: [22:06:39]protocol is kg_v1.0 [22:06:39]action value=close_receipt [22:06:39]process_action close_receipt [22:06:39]cmd_close_receipt [22:06:39]MH_GetDate [22:06:39]Write to MH i2c: F0 00 00 05 36 2A [22:06:39]Write i2c OK [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: F0 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: F0 09 00 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: F0 09 00 05 36 00 F7 C4 1A 67 4C DF 56 66 56 [22:06:39]GetLastDocTimeStamp 1729806809 [22:06:39]current date 1729807607 [22:06:39]FM_GetShiftState [22:06:39]SAM_PROTO_GetShiftState [22:06:39]wFMCommunicate request_size=4 [22:06:39]MH_SAM_APDU [22:06:39]CAPDU: 80 13 01 00 [22:06:39]Write to MH i2c: E2 08 00 06 36 80 13 01 00 00 00 00 00 B9 [22:06:39]Write i2c OK [22:06:39]MH_I2C_Read... [22:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:39]Read from MH i2c: E2 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 0E 00 [22:06:39]MH_I2C_Read... [22:06:39]Read from MH i2c: E2 0E 00 06 36 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 9A [22:06:39]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:06:39]wFMCommunicate OK [22:06:39]SAM_PROTO_GetShiftState done [22:06:39]FM_GetShiftState done [22:06:39]opened in 1729728964 [22:06:39]opened+sec_in_day 1729815364 [22:06:39]quantity*price = 119500 [22:06:39]sum+1 = 119501 [22:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1195.00 НСП 1% : 10.57 НДС 12% : 126.90 Наличными: 1195.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 135 24.10.2024 22:06 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63521 ФПД: 80885127941094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T220647&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63521&fm=80885127941094&tin=02508201610067®Number=0000000000091619&sum=119500 0 [22:06:40]StoreToDocumentArchive [22:06:40]shift 547 fd 63521 [22:06:40]save to /storage/0547/doc_00063521 [22:06:40]save last doc name /storage/0547/doc_00063521 to /storage/kkm_last_doc_name [22:06:40]save OK [22:06:40]Clear old archive folders... [22:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=290 [22:06:40]tlvbuf is 00C274A0 [22:06:40]SAM_PROTO_ClearQueue [22:06:40]wFMCommunicate request_size=4 [22:06:40]MH_SAM_APDU [22:06:40]CAPDU: 80 09 00 00 [22:06:40]Write to MH i2c: E2 08 00 13 36 80 09 00 00 00 00 00 00 BB [22:06:40]Write i2c OK [22:06:40]MH_I2C_Read... [22:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:40]Read from MH i2c: E2 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: E2 03 00 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: E2 03 00 13 36 00 90 00 BD [22:06:40]RAPDU: 90 00 [22:06:40]wFMCommunicate OK [22:06:40]SAM_PROTO_ClearQueue done [22:06:40]KKMCreateOFDPacket [22:06:40]OFDProtocolAddRootSTLVToBuf [22:06:40]FM_MakeSignedData [22:06:40]FM_MakeSignedData [22:06:40]SAM_PROTO_SignData [22:06:40]wFMCommunicate request_size=4 [22:06:40]MH_SAM_APDU [22:06:40]CAPDU: 80 0D 01 02 [22:06:40]Write to MH i2c: E2 08 00 14 36 80 0D 01 02 00 00 00 00 C3 [22:06:40]Write i2c OK [22:06:40]MH_I2C_Read... [22:06:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:40]Read from MH i2c: E2 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: E2 03 00 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: E2 03 00 14 36 00 90 00 BE [22:06:40]RAPDU: 90 00 [22:06:40]wFMCommunicate OK [22:06:40]wFMCommunicate request_size=255 [22:06:40]MH_SAM_APDU [22:06:40]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 37 30 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 49 4E 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 28 47 31 31 29 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D2 01 00 00 00 13 04 06 00 CC D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 C4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [22:06:40]Write to MH i2c: E2 02 01 15 36 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 37 30 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 49 4E 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 28 47 31 31 29 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D2 01 00 00 00 13 04 06 00 CC D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 C4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 ED [22:06:40]Write i2c OK [22:06:40]MH_I2C_Read... [22:06:40]OFD Sender: No OFD packet to send [22:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:40]Read from MH i2c: E2 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: E2 03 00 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: E2 03 00 15 36 00 90 00 BF [22:06:40]RAPDU: 90 00 [22:06:40]wFMCommunicate OK [22:06:40]wFMCommunicate request_size=49 [22:06:40]MH_SAM_APDU [22:06:40]CAPDU: 80 0D 02 02 2C 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 21 F8 00 00 35 04 06 00 49 90 89 51 8B E6 [22:06:40]Write to MH i2c: E2 34 00 16 36 80 0D 02 02 2C 00 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 21 F8 00 00 35 04 06 00 49 90 89 51 8B E6 00 00 37 [22:06:40]Write i2c OK [22:06:40]MH_I2C_Read... [22:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:40]Read from MH i2c: E2 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: E2 03 00 [22:06:40]MH_I2C_Read... [22:06:40]Read from MH i2c: E2 03 00 16 36 00 90 00 C0 [22:06:40]RAPDU: 90 00 [22:06:40]wFMCommunicate OK [22:06:40]wFMCommunicate request_size=4 [22:06:40]MH_SAM_APDU [22:06:40]CAPDU: 80 0D 03 02 [22:06:40]Write to MH i2c: E2 08 00 17 36 80 0D 03 02 00 00 00 00 C8 [22:06:40]Write i2c OK [22:06:40]MH_I2C_Read... [22:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:41]Read from MH i2c: E2 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 0B 00 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 0B 00 17 36 00 B4 DB BF 45 FA F6 CE 7E 90 00 98 [22:06:41]RAPDU: B4 DB BF 45 FA F6 CE 7E 90 00 [22:06:41]wFMCommunicate OK [22:06:41]SAM_PROTO_SignData done [22:06:41]FM_MakeSignedData done [22:06:41]CreateOFDProtocolMessage [22:06:41]wFMCommunicate request_size=4 [22:06:41]MH_SAM_APDU [22:06:41]CAPDU: 80 11 00 00 [22:06:41]Write to MH i2c: E2 08 00 18 36 80 11 00 00 00 00 00 00 C8 [22:06:41]Write i2c OK [22:06:41]MH_I2C_Read... [22:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:41]Read from MH i2c: E2 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 17 00 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: E2 17 00 18 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 21 [22:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:06:41]wFMCommunicate OK [22:06:41]CreateOFDProtocolMessage done [22:06:41]OFDSenderStorePacket 63521 [22:06:41]StoreOFDPacket docnum=63521 [22:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 36 01 00 00 88 4D 2E 01 0F D6 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 37 30 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 49 4E 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 28 47 31 31 29 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D2 01 00 00 00 13 04 06 00 CC D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 C4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 21 F8 00 00 35 04 06 00 49 90 89 51 8B E6 B4 DB BF 45 FA F6 CE 7E [22:06:41]CheckFolder [22:06:41]dirname=/storage/ofd_packets [22:06:41]CheckFolder done [22:06:41]ProducePacketName [22:06:41]name=ofd_packets/00063521 [22:06:41]NVStorageSaveData ofd_packets/00063521 [22:06:41]File name is /storage/ofd_packets/00063521 [22:06:41]Write 340 bytes [22:06:41]NVStorageSaveData done [22:06:41]OFDSenderStorePacket done [22:06:41]KKMCreateOFDPacket done [22:06:41]NVStorageSaveData kkm_last_timestamp [22:06:41]File name is /storage/kkm_last_timestamp [22:06:41]Write 4 bytes [22:06:41]NVStorageSaveData done [22:06:41]ExternCall_PrintAddStr [22:06:41]wPrintStart [22:06:41]Write to MH i2c: 01 00 00 19 36 4F [22:06:41]Write i2c OK [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: 01 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: 01 07 00 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: 01 07 00 19 36 00 00 00 00 00 FF 0F 64 [22:06:41]RasterBufferAndPrint [22:06:41]line Счет N : (3)47827 [22:06:41]line ИНН: 02508201610067 [22:06:41]line Контрольно-Кассовый Чек [22:06:41]line ПРОДАЖА [22:06:41]line Товар: 4870205390970 [22:06:41]line Антифриз PN -40 INORGANIC COOLANT (G11) [22:06:41]line 1.000 * 1195.00 [22:06:41]line = 1195.00 [22:06:41]line НДС 12% НСП 1% [22:06:41]line > о реализуемом товаре [22:06:41]line ИТОГО: 1195.00 [22:06:41]line НСП 1% : 10.57 [22:06:41]line НДС 12% : 126.90 [22:06:41]line Наличными: 1195.00 [22:06:41]line Безнал.: 0.00 [22:06:41]line Место: АЗС № 86 "Партнер Нефть" [22:06:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:06:41]line СНО: Общий режим [22:06:41]line Чек 135 24.10.2024 22:06 [22:06:41]line Смена: 547 ФФД: 1.0 [22:06:41]line ЗНМ: 0300000154 [22:06:41]line РНМ: 0000000000091619 [22:06:41]line Версия ККМ: 001 [22:06:41]line ФМ: 0000000000874676 [22:06:41]line ФД: 63521 [22:06:41]line ФПД: 80885127941094 [22:06:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T220647&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63521&fm=80885127941094&tin=02508201610067®Number=0000000000091619&sum=119500 [22:06:41]line 0 [22:06:41]OFD Sender: Processing packet 63521 [packets to send 232, broken 231] [22:06:41]ProducePacketName [22:06:41]name=ofd_packets/00063521 [22:06:41]OFD Sender: To server: pG, [22:06:41]CommunicateWithHost lk.salyk.kg:30040 [22:06:41]ConnectInit lk.salyk.kg [22:06:41]written 0, free lines is 4095 [22:06:41]Connected sock=11 [22:06:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 36 01 00 00 88 4D 2E 01 0F D6 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 30 35 33 39 30 39 37 30 06 04 30 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 50 4E 20 2D 34 30 20 49 4E 4F 52 47 41 4E 49 43 20 43 4F 4F 4C 41 4E 54 20 28 47 31 31 29 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D2 01 00 00 00 13 04 06 00 CC D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F7 C4 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 21 F8 00 00 35 04 06 00 49 90 89 51 8B E6 B4 DB BF 45 FA F6 CE 7E [22:06:41]Write to MH i2c: 01 00 00 42 36 78 [22:06:41]Write i2c OK [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: 01 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: 01 07 00 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: 01 07 00 42 36 00 00 00 00 00 16 0D A2 [22:06:41]RasterBufferAndPrint [22:06:41]line [22:06:41]line [22:06:41]line [22:06:41]line [22:06:41]line [22:06:41]written 0, free lines is 3358 [22:06:41]MH_Cut [22:06:41]Write to MH i2c: D1 01 00 49 36 01 51 [22:06:41]Write i2c OK [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: D1 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: D1 01 00 [22:06:41]MH_I2C_Read... [22:06:41]Read from MH i2c: D1 01 00 49 36 00 50 [22:06:41]Write to MH i2c: 01 00 00 4A 36 80 [22:06:41]Write i2c OK [22:06:41]MH_I2C_Read... [22:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 7F C8 47 00 A1 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 21 F8 00 00 F4 03 04 00 EA 6E 1A 67 B6 04 01 00 00 85 1C BD 35 61 F6 78 1A [22:06:42]CommunicateWithHost err = 0 [22:06:42]CheckOFDResponse [22:06:42]1017 (14) - 77093643461234 [22:06:42]1041 (16) - 0000000000874676 [22:06:42]1040 (4) - 63521 [22:06:42]1012 (4) - 24.10.2024 15:59 [22:06:42]1206 (1) - 0 [22:06:42]OFD Sender: Remove packet 63521 [22:06:42]ProducePacketName [22:06:42]name=ofd_packets/00063521 [22:06:42]NVStorageDeleteData [22:06:42]*** Cut start [22:06:42]*** Partial cut [22:06:42]*** CUTSNS_PIN = 1 [22:06:42]*** CUTSNS_PIN = 0 [22:06:42]OFD Sender: No OFD packet to send [22:06:42]*** Brake cut motor [22:06:43]Read from MH i2c: 01 [22:06:43]MH_I2C_Read... [22:06:43]*** Stop cut motor [22:06:43]*** Cut end [22:06:43]Read from MH i2c: 01 07 00 [22:06:43]MH_I2C_Read... [22:06:43]Read from MH i2c: 01 07 00 4A 36 00 00 00 00 00 FF 0F 95 [22:06:43]process_action close_receipt done [22:06:43]requested_data is exist [22:06:43]produce_requested_data [22:06:43]requested_item fm.sn is exist - process it [22:06:43]wFMCommunicate request_size=4 [22:06:43]MH_SAM_APDU [22:06:43]CAPDU: 80 11 00 00 [22:06:43]Write to MH i2c: E2 08 00 4B 36 80 11 00 00 00 00 00 00 FB [22:06:43]Write i2c OK [22:06:43]MH_I2C_Read... [22:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:43]Read from MH i2c: E2 [22:06:43]MH_I2C_Read... [22:06:43]Read from MH i2c: E2 17 00 [22:06:43]MH_I2C_Read... [22:06:43]Read from MH i2c: E2 17 00 4B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 54 [22:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:06:43]wFMCommunicate OK [22:06:43]requested_item fd.num is exist - process it [22:06:43]SAM_PROTO_GetFieldsCounters [22:06:43]wFMCommunicate request_size=4 [22:06:43]MH_SAM_APDU [22:06:43]CAPDU: 80 13 00 00 [22:06:43]Write to MH i2c: E2 08 00 4C 36 80 13 00 00 00 00 00 00 FE [22:06:43]Write i2c OK [22:06:43]MH_I2C_Read... [22:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:43]Read from MH i2c: E2 [22:06:43]MH_I2C_Read... [22:06:43]Read from MH i2c: E2 62 00 [22:06:43]MH_I2C_Read... [22:06:43]Read from MH i2c: E2 62 00 4C 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 21 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [22:06:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 21 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:43]wFMCommunicate OK [22:06:43]SAM_PROTO_GetFieldsCounters done [22:06:43]requested_item shift.num is exist - process it [22:06:43]requested_item shift.opened is exist - process it [22:06:43]req_shift_opened [22:06:43]FM_GetShiftState [22:06:43]SAM_PROTO_GetShiftState [22:06:43]wFMCommunicate request_size=4 [22:06:43]MH_SAM_APDU [22:06:43]CAPDU: 80 13 01 00 [22:06:43]Write to MH i2c: E2 08 00 4D 36 80 13 01 00 00 00 00 00 00 [22:06:43]Write i2c OK [22:06:43]MH_I2C_Read... [22:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:43]Read from MH i2c: E2 [22:06:43]MH_I2C_Read... [22:06:43]Read from MH i2c: E2 0E 00 [22:06:43]MH_I2C_Read... [22:06:43]Read from MH i2c: E2 0E 00 4D 36 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 E1 [22:06:43]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:06:43]wFMCommunicate OK [22:06:43]SAM_PROTO_GetShiftState done [22:06:43]FM_GetShiftState done [22:06:43]req_shift_opened done [22:06:43]requested_item shift.open_date is exist - process it [22:06:43]req_shift_open_date [22:06:43]req_shift_open_date done [22:06:43]produce_requested_data done [22:06:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63521,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [22:06:43]process_action_free close_receipt [22:06:43]json_value_free [22:06:43]json_value_free done [22:06:43]process_json_proto returns [22:06:43]Send response to host [22:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63521,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [22:06:43]free response buf [22:06:43]execute_script done [22:06:43]execute_script returns [22:06:43]free content buf [22:06:43]Sock 7.Close socket [22:06:43]Sock 7.Thread stoped [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:40]accept exits with 9 [22:27:40]New connection [22:27:40]New thread 3066633572 created [22:27:40]Thread 3066490212 joined [22:27:40]Waiting for new connection... [22:27:40] Sock 9.Parse request [22:27:40]Sock 9.Check first char [22:27:40]Sock 9.First char is OK [22:27:40]request: POST /json_proto HTTP/1.0 [22:27:40]Method: POST [22:27:40]URL: /json_proto [22:27:40]Method is POST - this is cgi request [22:27:40]url: /json_proto [22:27:40]query_string will be loaded in cgi processing [22:27:40]execute_cgi json_proto POST (null) [22:27:40]execute_cgi path=json_proto method=POST [22:27:40]POST find Content-Length [22:27:40]Host: 172.17.42.132:8080 [22:27:40]Content-Length: 965 [22:27:40]Content-Type: application/json [22:27:40] [22:27:40]POST finish read [22:27:40]Found Content-Length = 965 [22:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47828", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:40]execute_script... [22:27: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)47828", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:40]POST & json_proto [22:27:40]process_json_proto [22:27:40]json parsed OK: [22:27:40]protocol is kg_v1.0 [22:27:40]action value=close_receipt [22:27:40]process_action close_receipt [22:27:40]cmd_close_receipt [22:27:40]MH_GetDate [22:27:40]Write to MH i2c: F0 00 00 4E 36 73 [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: F0 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: F0 09 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: F0 09 00 4E 36 00 E4 C9 1A 67 4C DF 56 66 91 [22:27:40]GetLastDocTimeStamp 1729807607 [22:27:40]current date 1729808868 [22:27:40]FM_GetShiftState [22:27:40]SAM_PROTO_GetShiftState [22:27:40]wFMCommunicate request_size=4 [22:27:40]MH_SAM_APDU [22:27:40]CAPDU: 80 13 01 00 [22:27:40]Write to MH i2c: E2 08 00 4F 36 80 13 01 00 00 00 00 00 02 [22:27:40]Write i2c OK [22:27:40]MH_I2C_Read... [22:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:40]Read from MH i2c: E2 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 0E 00 [22:27:40]MH_I2C_Read... [22:27:40]Read from MH i2c: E2 0E 00 4F 36 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 E3 [22:27:40]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:27:40]wFMCommunicate OK [22:27:40]SAM_PROTO_GetShiftState done [22:27:40]FM_GetShiftState done [22:27:40]opened in 1729728964 [22:27:40]opened+sec_in_day 1729815364 [22:27:40]quantity*price = 12000 [22:27:40]sum+1 = 12001 [22:27:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 279.00 НСП 1% : 2.47 НДС 12% : 29.62 Наличными: 279.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 136 24.10.2024 22:27 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63522 ФПД: 176947629602221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222748&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63522&fm=176947629602221&tin=02508201610067®Number=0000000000091619&sum=27900 0 [22:27:41]StoreToDocumentArchive [22:27:41]shift 547 fd 63522 [22:27:41]save to /storage/0547/doc_00063522 [22:27:41]save last doc name /storage/0547/doc_00063522 to /storage/kkm_last_doc_name [22:27:41]save OK [22:27:41]Clear old archive folders... [22:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=412 [22:27:41]tlvbuf is 00B44920 [22:27:41]SAM_PROTO_ClearQueue [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 09 00 00 [22:27:41]Write to MH i2c: E2 08 00 5C 36 80 09 00 00 00 00 00 00 04 [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 5C 36 00 90 00 06 [22:27:41]RAPDU: 90 00 [22:27:41]wFMCommunicate OK [22:27:41]SAM_PROTO_ClearQueue done [22:27:41]KKMCreateOFDPacket [22:27:41]OFDProtocolAddRootSTLVToBuf [22:27:41]FM_MakeSignedData [22:27:41]FM_MakeSignedData [22:27:41]SAM_PROTO_SignData [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 0D 01 02 [22:27:41]Write to MH i2c: E2 08 00 5D 36 80 0D 01 02 00 00 00 00 0C [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 5D 36 00 90 00 07 [22:27:41]RAPDU: 90 00 [22:27:41]wFMCommunicate OK [22:27:41]wFMCommunicate request_size=255 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 0D 02 02 FA 03 00 9C 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [22:27:41]Write to MH i2c: E2 02 01 5E 36 80 0D 02 02 FA 00 03 00 9C 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 E2 [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 5E 36 00 90 00 08 [22:27:41]RAPDU: 90 00 [22:27:41]wFMCommunicate OK [22:27:41]wFMCommunicate request_size=171 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 0D 02 02 A6 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0B 00 00 00 00 07 04 06 00 FC 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 E4 C9 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 22 F8 00 00 35 04 06 00 A0 EE D4 9B 35 AD [22:27:41]Write to MH i2c: E2 AE 00 5F 36 80 0D 02 02 A6 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0B 00 00 00 00 07 04 06 00 FC 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 E4 C9 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 22 F8 00 00 35 04 06 00 A0 EE D4 9B 35 AD 00 00 DD [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:42]Read from MH i2c: E2 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 03 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 03 00 5F 36 00 90 00 09 [22:27:42]RAPDU: 90 00 [22:27:42]wFMCommunicate OK [22:27:42]wFMCommunicate request_size=4 [22:27:42]MH_SAM_APDU [22:27:42]CAPDU: 80 0D 03 02 [22:27:42]Write to MH i2c: E2 08 00 60 36 80 0D 03 02 00 00 00 00 11 [22:27:42]Write i2c OK [22:27:42]MH_I2C_Read... [22:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:42]Read from MH i2c: E2 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 0B 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 0B 00 60 36 00 01 13 2C FC EA 7B 34 5D 90 00 44 [22:27:42]RAPDU: 01 13 2C FC EA 7B 34 5D 90 00 [22:27:42]wFMCommunicate OK [22:27:42]SAM_PROTO_SignData done [22:27:42]FM_MakeSignedData done [22:27:42]CreateOFDProtocolMessage [22:27:42]wFMCommunicate request_size=4 [22:27:42]MH_SAM_APDU [22:27:42]CAPDU: 80 11 00 00 [22:27:42]Write to MH i2c: E2 08 00 61 36 80 11 00 00 00 00 00 00 11 [22:27:42]Write i2c OK [22:27:42]MH_I2C_Read... [22:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:42]Read from MH i2c: E2 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 17 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 17 00 61 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6A [22:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:27:42]wFMCommunicate OK [22:27:42]CreateOFDProtocolMessage done [22:27:42]OFDSenderStorePacket 63522 [22:27:42]StoreOFDPacket docnum=63522 [22:27:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B0 01 00 00 BE CD A8 01 DB 5B 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0B 00 00 00 00 07 04 06 00 FC 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 E4 C9 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 22 F8 00 00 35 04 06 00 A0 EE D4 9B 35 AD 01 13 2C FC EA 7B 34 5D [22:27:42]CheckFolder [22:27:42]dirname=/storage/ofd_packets [22:27:42]CheckFolder done [22:27:42]ProducePacketName [22:27:42]name=ofd_packets/00063522 [22:27:42]NVStorageSaveData ofd_packets/00063522 [22:27:42]File name is /storage/ofd_packets/00063522 [22:27:42]Write 462 bytes [22:27:42]NVStorageSaveData done [22:27:42]OFDSenderStorePacket done [22:27:42]KKMCreateOFDPacket done [22:27:42]NVStorageSaveData kkm_last_timestamp [22:27:42]File name is /storage/kkm_last_timestamp [22:27:42]Write 4 bytes [22:27:42]NVStorageSaveData done [22:27:42]ExternCall_PrintAddStr [22:27:42]wPrintStart [22:27:42]Write to MH i2c: 01 00 00 62 36 98 [22:27:42]Write i2c OK [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: 01 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: 01 07 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: 01 07 00 62 36 00 00 00 00 00 FF 0F AD [22:27:42]RasterBufferAndPrint [22:27:42]line Счет N : (3)47828 [22:27:42]line ИНН: 02508201610067 [22:27:42]line Контрольно-Кассовый Чек [22:27:42]line ПРОДАЖА [22:27:42]line Товар: 5449000027474 [22:27:42]line Напиток FuzeTea зел чай манго,ромашка 1л [22:27:42]line 1.000 * 120.00 [22:27:42]line = 120.00 [22:27:42]line НДС 12% НСП 1% [22:27:42]line > о реализуемом товаре [22:27:42]line Товар: 4640030091645 [22:27:42]line Сигареты ESSE Exchange M [22:27:42]line 1.000 * 159.00 [22:27:42]line = 159.00 [22:27:42]line НДС 12% НСП 1% [22:27:42]line > о реализуемом товаре [22:27:42]line ИТОГО: 279.00 [22:27:42]line НСП 1% : 2.47 [22:27:42]line НДС 12% : 29.62 [22:27:42]line Наличными: 279.00 [22:27:42]line Безнал.: 0.00 [22:27:42]line Место: АЗС № 86 "Партнер Нефть" [22:27:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:27:42]line СНО: Общий режим [22:27:42]line Чек 136 24.10.2024 22:27 [22:27:42]line Смена: 547 ФФД: 1.0 [22:27:42]line ЗНМ: 0300000154 [22:27:42]line РНМ: 0000000000091619 [22:27:42]line Версия ККМ: 001 [22:27:42]line ФМ: 0000000000874676 [22:27:42]line ФД: 63522 [22:27:42]line ФПД: 176947629602221 [22:27:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222748&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63522&fm=176947629602221&tin=02508201610067®Number=0000000000091619&sum=27900 [22:27:42]line 0 [22:27:42]OFD Sender: Processing packet 63522 [packets to send 232, broken 231] [22:27:42]ProducePacketName [22:27:42]name=ofd_packets/00063522 [22:27:42]OFD Sender: To server: pG, [22:27:42]CommunicateWithHost lk.salyk.kg:30040 [22:27:42]ConnectInit lk.salyk.kg [22:27:42]written 0, free lines is 4095 [22:27:42]Connected sock=11 [22:27:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B0 01 00 00 BE CD A8 01 DB 5B 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0B 00 00 00 00 07 04 06 00 FC 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 E4 C9 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 22 F8 00 00 35 04 06 00 A0 EE D4 9B 35 AD 01 13 2C FC EA 7B 34 5D [22:27:43]Write to MH i2c: 01 00 00 91 36 C7 [22:27:43]Write i2c OK [22:27:43]MH_I2C_Read... [22:27:43]Read from MH i2c: 01 [22:27:43]MH_I2C_Read... [22:27:43]Read from MH i2c: 01 07 00 [22:27:43]MH_I2C_Read... [22:27:43]Read from MH i2c: 01 07 00 91 36 00 00 00 00 00 CE 0C A8 [22:27:43]RasterBufferAndPrint [22:27:43]line [22:27:43]line [22:27:43]line [22:27:43]line [22:27:43]line [22:27:43]written 0, free lines is 3287 [22:27:43]MH_Cut [22:27:43]Write to MH i2c: D1 01 00 98 36 01 A0 [22:27:43]Write i2c OK [22:27:43]MH_I2C_Read... [22:27:43]Read from MH i2c: D1 [22:27:43]MH_I2C_Read... [22:27:43]Read from MH i2c: D1 01 00 [22:27:43]MH_I2C_Read... [22:27:43]Read from MH i2c: D1 01 00 98 36 00 9F [22:27:43]Write to MH i2c: 01 00 00 99 36 CF [22:27:43]Write i2c OK [22:27:43]MH_I2C_Read... [22:27:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 B3 E5 47 00 4B E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 22 F8 00 00 F4 03 04 00 D7 73 1A 67 B6 04 01 00 00 68 0D BC 3C C0 C5 91 A1 [22:27:43]CommunicateWithHost err = 0 [22:27:43]CheckOFDResponse [22:27:43]1017 (14) - 77093643461234 [22:27:43]1041 (16) - 0000000000874676 [22:27:43]1040 (4) - 63522 [22:27:43]1012 (4) - 24.10.2024 16:20 [22:27:43]1206 (1) - 0 [22:27:43]OFD Sender: Remove packet 63522 [22:27:43]ProducePacketName [22:27:43]name=ofd_packets/00063522 [22:27:43]NVStorageDeleteData [22:27:43]OFD Sender: No OFD packet to send [22:27:43]*** Cut start [22:27:43]*** Partial cut [22:27:43]*** CUTSNS_PIN = 1 [22:27:43]*** CUTSNS_PIN = 0 [22:27:44]*** Brake cut motor [22:27:44]Read from MH i2c: 01 [22:27:44]MH_I2C_Read... [22:27:44]*** Stop cut motor [22:27:44]*** Cut end [22:27:44]Read from MH i2c: 01 07 00 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: 01 07 00 99 36 00 00 00 00 00 FF 0F E4 [22:27:44]process_action close_receipt done [22:27:44]requested_data is exist [22:27:44]produce_requested_data [22:27:44]requested_item fm.sn is exist - process it [22:27:44]wFMCommunicate request_size=4 [22:27:44]MH_SAM_APDU [22:27:44]CAPDU: 80 11 00 00 [22:27:44]Write to MH i2c: E2 08 00 9A 36 80 11 00 00 00 00 00 00 4A [22:27:44]Write i2c OK [22:27:44]MH_I2C_Read... [22:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:44]Read from MH i2c: E2 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 17 00 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 17 00 9A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A3 [22:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:27:44]wFMCommunicate OK [22:27:44]requested_item fd.num is exist - process it [22:27:44]SAM_PROTO_GetFieldsCounters [22:27:44]wFMCommunicate request_size=4 [22:27:44]MH_SAM_APDU [22:27:44]CAPDU: 80 13 00 00 [22:27:44]Write to MH i2c: E2 08 00 9B 36 80 13 00 00 00 00 00 00 4D [22:27:44]Write i2c OK [22:27:44]MH_I2C_Read... [22:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:44]Read from MH i2c: E2 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 62 00 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 62 00 9B 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 22 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [22:27:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 22 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:44]wFMCommunicate OK [22:27:44]SAM_PROTO_GetFieldsCounters done [22:27:44]requested_item shift.num is exist - process it [22:27:44]requested_item shift.opened is exist - process it [22:27:44]req_shift_opened [22:27:44]FM_GetShiftState [22:27:44]SAM_PROTO_GetShiftState [22:27:44]wFMCommunicate request_size=4 [22:27:44]MH_SAM_APDU [22:27:44]CAPDU: 80 13 01 00 [22:27:44]Write to MH i2c: E2 08 00 9C 36 80 13 01 00 00 00 00 00 4F [22:27:44]Write i2c OK [22:27:44]MH_I2C_Read... [22:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:44]Read from MH i2c: E2 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 0E 00 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 0E 00 9C 36 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 30 [22:27:44]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:27:44]wFMCommunicate OK [22:27:44]SAM_PROTO_GetShiftState done [22:27:44]FM_GetShiftState done [22:27:44]req_shift_opened done [22:27:44]requested_item shift.open_date is exist - process it [22:27:44]req_shift_open_date [22:27:44]req_shift_open_date done [22:27:44]produce_requested_data done [22:27:44]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63522,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [22:27:44]process_action_free close_receipt [22:27:44]json_value_free [22:27:44]json_value_free done [22:27:44]process_json_proto returns [22:27:44]Send response to host [22:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63522,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [22:27:44]free response buf [22:27:44]execute_script done [22:27:44]execute_script returns [22:27:44]free content buf [22:27:44]Sock 9.Close socket [22:27:44]Sock 9.Thread stoped [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:39]ConnectInit Can't connect to host [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:09]accept exits with 10 [22:30:09]New connection [22:30:09]New thread 3066490212 created [22:30:09]Thread 3066633572 joined [22:30:09]Waiting for new connection... [22:30:09] Sock 10.Parse request [22:30:09]Sock 10.Check first char [22:30:09]Sock 10.First char is OK [22:30:09]request: POST /json_proto HTTP/1.0 [22:30:09]Method: POST [22:30:09]URL: /json_proto [22:30:09]Method is POST - this is cgi request [22:30:09]url: /json_proto [22:30:09]query_string will be loaded in cgi processing [22:30:09]execute_cgi json_proto POST (null) [22:30:09]execute_cgi path=json_proto method=POST [22:30:09]POST find Content-Length [22:30:09]Host: 172.17.42.132:8080 [22:30:09]Content-Length: 908 [22:30:09]Content-Type: application/json [22:30:09] [22:30:09]POST finish read [22:30:09]Found Content-Length = 908 [22:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47829", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:09]execute_script... [22:30: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)47829", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:09]POST & json_proto [22:30:09]process_json_proto [22:30:09]json parsed OK: [22:30:09]protocol is kg_v1.0 [22:30:09]action value=close_receipt [22:30:09]process_action close_receipt [22:30:09]cmd_close_receipt [22:30:09]MH_GetDate [22:30:09]Write to MH i2c: F0 00 00 9D 36 C2 [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: F0 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: F0 09 00 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: F0 09 00 9D 36 00 79 CA 1A 67 4C DF 56 66 76 [22:30:09]GetLastDocTimeStamp 1729808868 [22:30:09]current date 1729809017 [22:30:09]FM_GetShiftState [22:30:09]SAM_PROTO_GetShiftState [22:30:09]wFMCommunicate request_size=4 [22:30:09]MH_SAM_APDU [22:30:09]CAPDU: 80 13 01 00 [22:30:09]Write to MH i2c: E2 08 00 9E 36 80 13 01 00 00 00 00 00 51 [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:09]Read from MH i2c: E2 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 0E 00 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 0E 00 9E 36 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 32 [22:30:09]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:30:09]wFMCommunicate OK [22:30:09]SAM_PROTO_GetShiftState done [22:30:09]FM_GetShiftState done [22:30:09]opened in 1729728964 [22:30:09]opened+sec_in_day 1729815364 [22:30:09]quantity*price = 3900 [22:30:09]sum+1 = 3901 [22:30:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 79.00 = 79.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 118.00 НСП 1% : 1.04 НДС 12% : 12.53 Наличными: 118.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 137 24.10.2024 22:30 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63523 ФПД: 16897043365852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223017&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63523&fm=16897043365852&tin=02508201610067®Number=0000000000091619&sum=11800 0 [22:30:10]StoreToDocumentArchive [22:30:10]shift 547 fd 63523 [22:30:10]save to /storage/0547/doc_00063523 [22:30:10]save last doc name /storage/0547/doc_00063523 to /storage/kkm_last_doc_name [22:30:10]save OK [22:30:10]Clear old archive folders... [22:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=383 [22:30:10]tlvbuf is 00B44300 [22:30:10]SAM_PROTO_ClearQueue [22:30:10]wFMCommunicate request_size=4 [22:30:10]MH_SAM_APDU [22:30:10]CAPDU: 80 09 00 00 [22:30:10]Write to MH i2c: E2 08 00 AB 36 80 09 00 00 00 00 00 00 53 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 AB 36 00 90 00 55 [22:30:10]RAPDU: 90 00 [22:30:10]wFMCommunicate OK [22:30:10]SAM_PROTO_ClearQueue done [22:30:10]KKMCreateOFDPacket [22:30:10]OFDProtocolAddRootSTLVToBuf [22:30:10]FM_MakeSignedData [22:30:10]FM_MakeSignedData [22:30:10]SAM_PROTO_SignData [22:30:10]wFMCommunicate request_size=4 [22:30:10]MH_SAM_APDU [22:30:10]CAPDU: 80 0D 01 02 [22:30:10]Write to MH i2c: E2 08 00 AC 36 80 0D 01 02 00 00 00 00 5B [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 AC 36 00 90 00 56 [22:30:10]RAPDU: 90 00 [22:30:10]wFMCommunicate OK [22:30:10]wFMCommunicate request_size=255 [22:30:10]MH_SAM_APDU [22:30:10]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 [22:30:10]Write to MH i2c: E2 02 01 AD 36 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 DA [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:11]Read from MH i2c: E2 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 03 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 03 00 AD 36 00 90 00 57 [22:30:11]RAPDU: 90 00 [22:30:11]wFMCommunicate OK [22:30:11]wFMCommunicate request_size=142 [22:30:11]MH_SAM_APDU [22:30:11]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 79 CA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 23 F8 00 00 35 04 06 00 0F 5E 26 44 7F DC [22:30:11]Write to MH i2c: E2 91 00 AE 36 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 79 CA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 23 F8 00 00 35 04 06 00 0F 5E 26 44 7F DC 00 00 92 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:11]Read from MH i2c: E2 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 03 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 03 00 AE 36 00 90 00 58 [22:30:11]RAPDU: 90 00 [22:30:11]wFMCommunicate OK [22:30:11]wFMCommunicate request_size=4 [22:30:11]MH_SAM_APDU [22:30:11]CAPDU: 80 0D 03 02 [22:30:11]Write to MH i2c: E2 08 00 AF 36 80 0D 03 02 00 00 00 00 60 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:11]Read from MH i2c: E2 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 0B 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 0B 00 AF 36 00 A0 DE 34 47 AC 3F 8D 29 90 00 FB [22:30:11]RAPDU: A0 DE 34 47 AC 3F 8D 29 90 00 [22:30:11]wFMCommunicate OK [22:30:11]SAM_PROTO_SignData done [22:30:11]FM_MakeSignedData done [22:30:11]CreateOFDProtocolMessage [22:30:11]wFMCommunicate request_size=4 [22:30:11]MH_SAM_APDU [22:30:11]CAPDU: 80 11 00 00 [22:30:11]Write to MH i2c: E2 08 00 B0 36 80 11 00 00 00 00 00 00 60 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:11]Read from MH i2c: E2 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 17 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 17 00 B0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B9 [22:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:30:11]wFMCommunicate OK [22:30:11]CreateOFDProtocolMessage done [22:30:11]OFDSenderStorePacket 63523 [22:30:11]StoreOFDPacket docnum=63523 [22:30:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 93 01 00 00 2D 6A 8B 01 FC 67 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 79 CA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 23 F8 00 00 35 04 06 00 0F 5E 26 44 7F DC A0 DE 34 47 AC 3F 8D 29 [22:30:11]CheckFolder [22:30:11]dirname=/storage/ofd_packets [22:30:11]CheckFolder done [22:30:11]ProducePacketName [22:30:11]name=ofd_packets/00063523 [22:30:11]NVStorageSaveData ofd_packets/00063523 [22:30:11]File name is /storage/ofd_packets/00063523 [22:30:11]Write 433 bytes [22:30:11]NVStorageSaveData done [22:30:11]OFDSenderStorePacket done [22:30:11]KKMCreateOFDPacket done [22:30:11]NVStorageSaveData kkm_last_timestamp [22:30:11]File name is /storage/kkm_last_timestamp [22:30:11]Write 4 bytes [22:30:11]NVStorageSaveData done [22:30:11]ExternCall_PrintAddStr [22:30:11]wPrintStart [22:30:11]Write to MH i2c: 01 00 00 B1 36 E7 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: 01 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: 01 07 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: 01 07 00 B1 36 00 00 00 00 00 FF 0F FC [22:30:11]RasterBufferAndPrint [22:30:11]line Счет N : (3)47829 [22:30:11]line ИНН: 02508201610067 [22:30:11]line Контрольно-Кассовый Чек [22:30:11]line ПРОДАЖА [22:30:11]line Товар: 4700000310173 [22:30:11]line Вода Адыгене 0,5л б/г [22:30:11]line 1.000 * 39.00 [22:30:11]line = 39.00 [22:30:11]line НДС 12% НСП 1% [22:30:11]line > о реализуемом товаре [22:30:11]line Товар: 4700000310043 [22:30:11]line Вода Жалалабат 27 1л [22:30:11]line 1.000 * 79.00 [22:30:11]line = 79.00 [22:30:11]line НДС 12% НСП 1% [22:30:11]line > о реализуемом товаре [22:30:11]line ИТОГО: 118.00 [22:30:11]line НСП 1% : 1.04 [22:30:11]line НДС 12% : 12.53 [22:30:11]line Наличными: 118.00 [22:30:11]line Безнал.: 0.00 [22:30:11]line Место: АЗС № 86 "Партнер Нефть" [22:30:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:30:11]line СНО: Общий режим [22:30:11]line Чек 137 24.10.2024 22:30 [22:30:11]line Смена: 547 ФФД: 1.0 [22:30:11]line ЗНМ: 0300000154 [22:30:11]line РНМ: 0000000000091619 [22:30:11]line Версия ККМ: 001 [22:30:11]line ФМ: 0000000000874676 [22:30:11]line ФД: 63523 [22:30:11]line ФПД: 16897043365852 [22:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223017&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63523&fm=16897043365852&tin=02508201610067®Number=0000000000091619&sum=11800 [22:30:11]OFD Sender: Processing packet 63523 [packets to send 232, broken 231] [22:30:11]ProducePacketName [22:30:11]name=ofd_packets/00063523 [22:30:11]OFD Sender: To server: pG, [22:30:11]CommunicateWithHost lk.salyk.kg:30040 [22:30:11]ConnectInit lk.salyk.kg [22:30:11]line 0 [22:30:11]written 0, free lines is 4095 [22:30:11]Connected sock=11 [22:30:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 93 01 00 00 2D 6A 8B 01 FC 67 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 79 CA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 23 F8 00 00 35 04 06 00 0F 5E 26 44 7F DC A0 DE 34 47 AC 3F 8D 29 [22:30:12]Write to MH i2c: 01 00 00 DF 36 15 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 07 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 07 00 DF 36 00 00 00 00 00 E7 0C 0F [22:30:12]RasterBufferAndPrint [22:30:12]line [22:30:12]line [22:30:12]line [22:30:12]line [22:30:12]line [22:30:12]written 0, free lines is 3321 [22:30:12]MH_Cut [22:30:12]Write to MH i2c: D1 01 00 E6 36 01 EE [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: D1 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: D1 01 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: D1 01 00 E6 36 00 ED [22:30:12]Write to MH i2c: 01 00 00 E7 36 1D [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 AE B0 47 00 C5 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 34 36 37 36 10 04 04 00 23 F8 00 00 F4 03 04 00 6C 74 1A 67 B6 04 01 00 00 E4 32 EF B4 51 4F B1 1F [22:30:12]CommunicateWithHost err = 0 [22:30:12]CheckOFDResponse [22:30:12]1017 (14) - 77093643461234 [22:30:12]1041 (16) - 0000000000874676 [22:30:12]1040 (4) - 63523 [22:30:12]1012 (4) - 24.10.2024 16:23 [22:30:12]1206 (1) - 0 [22:30:12]OFD Sender: Remove packet 63523 [22:30:12]ProducePacketName [22:30:12]name=ofd_packets/00063523 [22:30:12]NVStorageDeleteData [22:30:12]OFD Sender: No OFD packet to send [22:30:12]*** Cut start [22:30:12]*** Partial cut [22:30:12]*** CUTSNS_PIN = 1 [22:30:12]*** CUTSNS_PIN = 0 [22:30:13]*** Brake cut motor [22:30:13]Read from MH i2c: 01 [22:30:13]MH_I2C_Read... [22:30:13]*** Stop cut motor [22:30:13]*** Cut end [22:30:13]Read from MH i2c: 01 07 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: 01 07 00 E7 36 00 00 00 00 00 FF 0F 32 [22:30:13]process_action close_receipt done [22:30:13]requested_data is exist [22:30:13]produce_requested_data [22:30:13]requested_item fm.sn is exist - process it [22:30:13]wFMCommunicate request_size=4 [22:30:13]MH_SAM_APDU [22:30:13]CAPDU: 80 11 00 00 [22:30:13]Write to MH i2c: E2 08 00 E8 36 80 11 00 00 00 00 00 00 98 [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:13]Read from MH i2c: E2 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 17 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 17 00 E8 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F1 [22:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:30:13]wFMCommunicate OK [22:30:13]requested_item fd.num is exist - process it [22:30:13]SAM_PROTO_GetFieldsCounters [22:30:13]wFMCommunicate request_size=4 [22:30:13]MH_SAM_APDU [22:30:13]CAPDU: 80 13 00 00 [22:30:13]Write to MH i2c: E2 08 00 E9 36 80 13 00 00 00 00 00 00 9B [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:13]Read from MH i2c: E2 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 62 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 62 00 E9 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 23 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [22:30: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 23 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:13]wFMCommunicate OK [22:30:13]SAM_PROTO_GetFieldsCounters done [22:30:13]requested_item shift.num is exist - process it [22:30:13]requested_item shift.opened is exist - process it [22:30:13]req_shift_opened [22:30:13]FM_GetShiftState [22:30:13]SAM_PROTO_GetShiftState [22:30:13]wFMCommunicate request_size=4 [22:30:13]MH_SAM_APDU [22:30:13]CAPDU: 80 13 01 00 [22:30:13]Write to MH i2c: E2 08 00 EA 36 80 13 01 00 00 00 00 00 9D [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:13]Read from MH i2c: E2 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 0E 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: E2 0E 00 EA 36 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 7E [22:30:13]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:30:13]wFMCommunicate OK [22:30:13]SAM_PROTO_GetShiftState done [22:30:13]FM_GetShiftState done [22:30:13]req_shift_opened done [22:30:13]requested_item shift.open_date is exist - process it [22:30:13]req_shift_open_date [22:30:13]req_shift_open_date done [22:30:13]produce_requested_data done [22:30:13]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63523,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [22:30:13]process_action_free close_receipt [22:30:13]json_value_free [22:30:13]json_value_free done [22:30:13]process_json_proto returns [22:30:13]Send response to host [22:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63523,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [22:30:13]free response buf [22:30:13]execute_script done [22:30:13]execute_script returns [22:30:13]free content buf [22:30:13]Sock 10.Close socket [22:30:13]Sock 10.Thread stoped [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:30:59]accept exits with 9 [22:30:59]New connection [22:30:59]New thread 3066633572 created [22:30:59]Thread 3066490212 joined [22:30:59]Waiting for new connection... [22:30:59] Sock 9.Parse request [22:30:59]Sock 9.Check first char [22:30:59]Sock 9.First char is OK [22:30:59]request: POST /json_proto HTTP/1.0 [22:30:59]Method: POST [22:30:59]URL: /json_proto [22:30:59]Method is POST - this is cgi request [22:30:59]url: /json_proto [22:30:59]query_string will be loaded in cgi processing [22:30:59]execute_cgi json_proto POST (null) [22:30:59]execute_cgi path=json_proto method=POST [22:30:59]POST find Content-Length [22:30:59]Host: 172.17.42.132:8080 [22:30:59]Content-Length: 747 [22:30:59]Content-Type: application/json [22:30:59] [22:30:59]POST finish read [22:30:59]Found Content-Length = 747 [22:30:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47830", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:59]execute_script... [22:30:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47830", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:59]POST & json_proto [22:30:59]process_json_proto [22:30:59]json parsed OK: [22:30:59]protocol is kg_v1.0 [22:30:59]action value=close_receipt [22:30:59]process_action close_receipt [22:30:59]cmd_close_receipt [22:30:59]MH_GetDate [22:30:59]Write to MH i2c: F0 00 00 EB 36 10 [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: F0 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: F0 09 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: F0 09 00 EB 36 00 AB CA 1A 67 4C DF 56 66 F6 [22:30:59]GetLastDocTimeStamp 1729809017 [22:30:59]current date 1729809067 [22:30:59]FM_GetShiftState [22:30:59]SAM_PROTO_GetShiftState [22:30:59]wFMCommunicate request_size=4 [22:30:59]MH_SAM_APDU [22:30:59]CAPDU: 80 13 01 00 [22:30:59]Write to MH i2c: E2 08 00 EC 36 80 13 01 00 00 00 00 00 9F [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 0E 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 0E 00 EC 36 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 80 [22:30:59]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:30:59]wFMCommunicate OK [22:30:59]SAM_PROTO_GetShiftState done [22:30:59]FM_GetShiftState done [22:30:59]opened in 1729728964 [22:30:59]opened+sec_in_day 1729815364 [22:30:59]quantity*price = 14273 [22:30:59]sum+1 = 14274 [22:30:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 142.73 НСП 1% : 1.26 НДС 12% : 15.16 Наличными: 0.00 Безнал.: 142.73 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 138 24.10.2024 22:31 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63524 ФПД: 227361200987446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223107&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63524&fm=227361200987446&tin=02508201610067®Number=0000000000091619&sum=14273 0 [22:31:00]StoreToDocumentArchive [22:31:00]shift 547 fd 63524 [22:31:00]save to /storage/0547/doc_00063524 [22:31:00]save last doc name /storage/0547/doc_00063524 to /storage/kkm_last_doc_name [22:31:00]save OK [22:31:00]Clear old archive folders... [22:31:00]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:31:00]tlvbuf is 00BB4760 [22:31:00]SAM_PROTO_ClearQueue [22:31:00]wFMCommunicate request_size=4 [22:31:00]MH_SAM_APDU [22:31:00]CAPDU: 80 09 00 00 [22:31:00]Write to MH i2c: E2 08 00 F9 36 80 09 00 00 00 00 00 00 A1 [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:31:00]Read from MH i2c: E2 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 03 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 03 00 F9 36 00 90 00 A3 [22:31:00]RAPDU: 90 00 [22:31:00]wFMCommunicate OK [22:31:00]SAM_PROTO_ClearQueue done [22:31:00]KKMCreateOFDPacket [22:31:00]OFDProtocolAddRootSTLVToBuf [22:31:00]FM_MakeSignedData [22:31:00]FM_MakeSignedData [22:31:00]SAM_PROTO_SignData [22:31:00]wFMCommunicate request_size=4 [22:31:00]MH_SAM_APDU [22:31:00]CAPDU: 80 0D 01 02 [22:31:00]Write to MH i2c: E2 08 00 FA 36 80 0D 01 02 00 00 00 00 A9 [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:31:00]Read from MH i2c: E2 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 03 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 03 00 FA 36 00 90 00 A4 [22:31:00]RAPDU: 90 00 [22:31:00]wFMCommunicate OK [22:31:00]wFMCommunicate request_size=255 [22:31:00]MH_SAM_APDU [22:31:00]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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 AB CA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [22:31:00]Write to MH i2c: E2 02 01 FB 36 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 AB CA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 AB [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:00]Read from MH i2c: E2 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 03 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 03 00 FB 36 00 90 00 A5 [22:31:00]RAPDU: 90 00 [22:31:00]wFMCommunicate OK [22:31:00]wFMCommunicate request_size=32 [22:31:00]MH_SAM_APDU [22:31:00]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 24 F8 00 00 35 04 06 00 CE C8 A7 9E DD 36 [22:31:00]Write to MH i2c: E2 23 00 FC 36 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 24 F8 00 00 35 04 06 00 CE C8 A7 9E DD 36 00 00 19 [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:00]Read from MH i2c: E2 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 03 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: E2 03 00 FC 36 00 90 00 A6 [22:31:00]RAPDU: 90 00 [22:31:00]wFMCommunicate OK [22:31:00]wFMCommunicate request_size=4 [22:31:00]MH_SAM_APDU [22:31:00]CAPDU: 80 0D 03 02 [22:31:00]Write to MH i2c: E2 08 00 FD 36 80 0D 03 02 00 00 00 00 AE [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:31:01]Read from MH i2c: E2 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: E2 0B 00 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: E2 0B 00 FD 36 00 5B 20 F7 B6 51 A4 60 D7 90 00 03 [22:31:01]RAPDU: 5B 20 F7 B6 51 A4 60 D7 90 00 [22:31:01]wFMCommunicate OK [22:31:01]SAM_PROTO_SignData done [22:31:01]FM_MakeSignedData done [22:31:01]CreateOFDProtocolMessage [22:31:01]wFMCommunicate request_size=4 [22:31:01]MH_SAM_APDU [22:31:01]CAPDU: 80 11 00 00 [22:31:01]Write to MH i2c: E2 08 00 FE 36 80 11 00 00 00 00 00 00 AE [22:31:01]Write i2c OK [22:31:01]MH_I2C_Read... [22:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:01]Read from MH i2c: E2 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: E2 17 00 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: E2 17 00 FE 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 07 [22:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:31:01]wFMCommunicate OK [22:31:01]CreateOFDProtocolMessage done [22:31:01]OFDSenderStorePacket 63524 [22:31:01]StoreOFDPacket docnum=63524 [22:31:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 5C 45 1D 01 EB 9C 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 AB CA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 24 F8 00 00 35 04 06 00 CE C8 A7 9E DD 36 5B 20 F7 B6 51 A4 60 D7 [22:31:01]CheckFolder [22:31:01]dirname=/storage/ofd_packets [22:31:01]CheckFolder done [22:31:01]ProducePacketName [22:31:01]name=ofd_packets/00063524 [22:31:01]NVStorageSaveData ofd_packets/00063524 [22:31:01]File name is /storage/ofd_packets/00063524 [22:31:01]Write 323 bytes [22:31:01]NVStorageSaveData done [22:31:01]OFDSenderStorePacket done [22:31:01]KKMCreateOFDPacket done [22:31:01]NVStorageSaveData kkm_last_timestamp [22:31:01]File name is /storage/kkm_last_timestamp [22:31:01]Write 4 bytes [22:31:01]NVStorageSaveData done [22:31:01]ExternCall_PrintAddStr [22:31:01]wPrintStart [22:31:01]Write to MH i2c: 01 00 00 FF 36 35 [22:31:01]Write i2c OK [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: 01 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: 01 07 00 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: 01 07 00 FF 36 00 00 00 00 00 FF 0F 4A [22:31:01]RasterBufferAndPrint [22:31:01]line Счет N : (3)47830 [22:31:01]line ИНН: 02508201610067 [22:31:01]line Контрольно-Кассовый Чек [22:31:01]line ПРОДАЖА [22:31:01]line Товар: 48743570 [22:31:01]line Сигареты Winston XStyle Blue [22:31:01]line 1.000 * 142.73 [22:31:01]line = 142.73 [22:31:01]line НДС 12% НСП 1% [22:31:01]line > о реализуемом товаре [22:31:01]line ИТОГО: 142.73 [22:31:01]line НСП 1% : 1.26 [22:31:01]line НДС 12% : 15.16 [22:31:01]line Наличными: 0.00 [22:31:01]line Безнал.: 142.73 [22:31:01]line Место: АЗС № 86 "Партнер Нефть" [22:31:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:31:01]line СНО: Общий режим [22:31:01]line Чек 138 24.10.2024 22:31 [22:31:01]line Смена: 547 ФФД: 1.0 [22:31:01]line ЗНМ: 0300000154 [22:31:01]line РНМ: 0000000000091619 [22:31:01]line Версия ККМ: 001 [22:31:01]line Платежная система: Mbank [22:31:01]line ФМ: 0000000000874676 [22:31:01]line ФД: 63524 [22:31:01]line ФПД: 227361200987446 [22:31:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T223107&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63524&fm=227361200987446&tin=02508201610067®Number=0000000000091619&sum=14273 [22:31:01]line 0 [22:31:01]written 0, free lines is 4095 [22:31:01]OFD Sender: Processing packet 63524 [packets to send 232, broken 231] [22:31:01]ProducePacketName [22:31:01]name=ofd_packets/00063524 [22:31:01]OFD Sender: To server: pG, [22:31:01]CommunicateWithHost lk.salyk.kg:30040 [22:31:01]ConnectInit lk.salyk.kg [22:31:01]Connected sock=11 [22:31:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 5C 45 1D 01 EB 9C 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 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 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 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 AB CA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 24 F8 00 00 35 04 06 00 CE C8 A7 9E DD 36 5B 20 F7 B6 51 A4 60 D7 [22:31:01]Write to MH i2c: 01 00 00 28 37 5F [22:31:01]Write i2c OK [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: 01 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: 01 07 00 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: 01 07 00 28 37 00 00 00 00 00 37 0D AA [22:31:01]RasterBufferAndPrint [22:31:01]line [22:31:01]line [22:31:01]line [22:31:01]line [22:31:01]line [22:31:01]written 0, free lines is 3404 [22:31:01]MH_Cut [22:31:01]Write to MH i2c: D1 01 00 2F 37 01 38 [22:31:01]Write i2c OK [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: D1 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: D1 01 00 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: D1 01 00 2F 37 00 37 [22:31:01]Write to MH i2c: 01 00 00 30 37 67 [22:31:01]Write i2c OK [22:31:01]MH_I2C_Read... [22:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 AD CB 47 00 7B BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 24 F8 00 00 F4 03 04 00 9E 74 1A 67 B6 04 01 00 00 E1 EC 0E D8 04 13 6E 5C [22:31:01]CommunicateWithHost err = 0 [22:31:01]CheckOFDResponse [22:31:01]1017 (14) - 77093643461234 [22:31:01]1041 (16) - 0000000000874676 [22:31:01]1040 (4) - 63524 [22:31:01]1012 (4) - 24.10.2024 16:23 [22:31:01]1206 (1) - 0 [22:31:01]OFD Sender: Remove packet 63524 [22:31:01]ProducePacketName [22:31:01]name=ofd_packets/00063524 [22:31:01]NVStorageDeleteData [22:31:02]*** Cut start [22:31:02]*** Partial cut [22:31:02]*** CUTSNS_PIN = 1 [22:31:02]*** CUTSNS_PIN = 0 [22:31:02]OFD Sender: No OFD packet to send [22:31:02]*** Brake cut motor [22:31:02]Read from MH i2c: 01 [22:31:02]MH_I2C_Read... [22:31:02]*** Stop cut motor [22:31:02]*** Cut end [22:31:02]Read from MH i2c: 01 07 00 [22:31:02]MH_I2C_Read... [22:31:02]Read from MH i2c: 01 07 00 30 37 00 00 00 00 00 FF 0F 7C [22:31:02]process_action close_receipt done [22:31:02]requested_data is exist [22:31:02]produce_requested_data [22:31:02]requested_item fm.sn is exist - process it [22:31:02]wFMCommunicate request_size=4 [22:31:02]MH_SAM_APDU [22:31:02]CAPDU: 80 11 00 00 [22:31:02]Write to MH i2c: E2 08 00 31 37 80 11 00 00 00 00 00 00 E2 [22:31:02]Write i2c OK [22:31:02]MH_I2C_Read... [22:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:02]Read from MH i2c: E2 [22:31:02]MH_I2C_Read... [22:31:02]Read from MH i2c: E2 17 00 [22:31:02]MH_I2C_Read... [22:31:02]Read from MH i2c: E2 17 00 31 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3B [22:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:31:02]wFMCommunicate OK [22:31:02]requested_item fd.num is exist - process it [22:31:02]SAM_PROTO_GetFieldsCounters [22:31:02]wFMCommunicate request_size=4 [22:31:02]MH_SAM_APDU [22:31:02]CAPDU: 80 13 00 00 [22:31:02]Write to MH i2c: E2 08 00 32 37 80 13 00 00 00 00 00 00 E5 [22:31:02]Write i2c OK [22:31:02]MH_I2C_Read... [22:31:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:03]Read from MH i2c: E2 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: E2 62 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: E2 62 00 32 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 24 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [22:31:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 24 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:31:03]wFMCommunicate OK [22:31:03]SAM_PROTO_GetFieldsCounters done [22:31:03]requested_item shift.num is exist - process it [22:31:03]requested_item shift.opened is exist - process it [22:31:03]req_shift_opened [22:31:03]FM_GetShiftState [22:31:03]SAM_PROTO_GetShiftState [22:31:03]wFMCommunicate request_size=4 [22:31:03]MH_SAM_APDU [22:31:03]CAPDU: 80 13 01 00 [22:31:03]Write to MH i2c: E2 08 00 33 37 80 13 01 00 00 00 00 00 E7 [22:31:03]Write i2c OK [22:31:03]MH_I2C_Read... [22:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:03]Read from MH i2c: E2 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: E2 0E 00 [22:31:03]MH_I2C_Read... [22:31:03]Read from MH i2c: E2 0E 00 33 37 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 C8 [22:31:03]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:31:03]wFMCommunicate OK [22:31:03]SAM_PROTO_GetShiftState done [22:31:03]FM_GetShiftState done [22:31:03]req_shift_opened done [22:31:03]requested_item shift.open_date is exist - process it [22:31:03]req_shift_open_date [22:31:03]req_shift_open_date done [22:31:03]produce_requested_data done [22:31:03]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63524,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [22:31:03]process_action_free close_receipt [22:31:03]json_value_free [22:31:03]json_value_free done [22:31:03]process_json_proto returns [22:31:03]Send response to host [22:31:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63524,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [22:31:03]free response buf [22:31:03]execute_script done [22:31:03]execute_script returns [22:31:03]free content buf [22:31:03]Sock 9.Close socket [22:31:03]Sock 9.Thread stoped [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:26]accept exits with 7 [22:46:26]New connection [22:46:26]New thread 3066490212 created [22:46:26]Thread 3066633572 joined [22:46:26]Waiting for new connection... [22:46:26] Sock 7.Parse request [22:46:26]Sock 7.Check first char [22:46:26]Sock 7.First char is OK [22:46:26]request: POST /json_proto HTTP/1.0 [22:46:26]Method: POST [22:46:26]URL: /json_proto [22:46:26]Method is POST - this is cgi request [22:46:26]url: /json_proto [22:46:26]query_string will be loaded in cgi processing [22:46:26]execute_cgi json_proto POST (null) [22:46:26]execute_cgi path=json_proto method=POST [22:46:26]POST find Content-Length [22:46:26]Host: 172.17.42.132:8080 [22:46:26]Content-Length: 886 [22:46:26]Content-Type: application/json [22:46:26] [22:46:26]POST finish read [22:46:26]Found Content-Length = 886 [22:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47831", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 284.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:26]execute_script... [22:46:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47831", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 284.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:26]POST & json_proto [22:46:26]process_json_proto [22:46:26]json parsed OK: [22:46:26]protocol is kg_v1.0 [22:46:26]action value=close_receipt [22:46:26]process_action close_receipt [22:46:26]cmd_close_receipt [22:46:26]MH_GetDate [22:46:26]Write to MH i2c: F0 00 00 34 37 5A [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: F0 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: F0 09 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: F0 09 00 34 37 00 4A CE 1A 67 4C DF 56 66 E3 [22:46:26]GetLastDocTimeStamp 1729809067 [22:46:26]current date 1729809994 [22:46:26]FM_GetShiftState [22:46:26]SAM_PROTO_GetShiftState [22:46:26]wFMCommunicate request_size=4 [22:46:26]MH_SAM_APDU [22:46:26]CAPDU: 80 13 01 00 [22:46:26]Write to MH i2c: E2 08 00 35 37 80 13 01 00 00 00 00 00 E9 [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:26]Read from MH i2c: E2 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 0E 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 0E 00 35 37 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 CA [22:46:26]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:46:26]wFMCommunicate OK [22:46:26]SAM_PROTO_GetShiftState done [22:46:26]FM_GetShiftState done [22:46:26]opened in 1729728964 [22:46:26]opened+sec_in_day 1729815364 [22:46:26]quantity*price = 13000 [22:46:26]sum+1 = 13001 [22:46:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230607 Сигареты Richmond Bronze Edition 1.000 * 154.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 284.00 НСП 1% : 2.51 НДС 12% : 30.15 Наличными: 284.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 139 24.10.2024 22:46 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63525 ФПД: 244863246084062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T224634&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63525&fm=244863246084062&tin=02508201610067®Number=0000000000091619&sum=28400 0 [22:46:27]StoreToDocumentArchive [22:46:27]shift 547 fd 63525 [22:46:27]save to /storage/0547/doc_00063525 [22:46:27]save last doc name /storage/0547/doc_00063525 to /storage/kkm_last_doc_name [22:46:27]save OK [22:46:27]Clear old archive folders... [22:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=389 [22:46:27]tlvbuf is 00B4B9A0 [22:46:27]SAM_PROTO_ClearQueue [22:46:27]wFMCommunicate request_size=4 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 09 00 00 [22:46:27]Write to MH i2c: E2 08 00 42 37 80 09 00 00 00 00 00 00 EB [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 42 37 00 90 00 ED [22:46:27]RAPDU: 90 00 [22:46:27]wFMCommunicate OK [22:46:27]SAM_PROTO_ClearQueue done [22:46:27]KKMCreateOFDPacket [22:46:27]OFDProtocolAddRootSTLVToBuf [22:46:27]FM_MakeSignedData [22:46:27]FM_MakeSignedData [22:46:27]SAM_PROTO_SignData [22:46:27]wFMCommunicate request_size=4 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 0D 01 02 [22:46:27]Write to MH i2c: E2 08 00 43 37 80 0D 01 02 00 00 00 00 F3 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 43 37 00 90 00 EE [22:46:27]RAPDU: 90 00 [22:46:27]wFMCommunicate OK [22:46:27]wFMCommunicate request_size=255 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [22:46:27]Write to MH i2c: E2 02 01 44 37 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 69 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 44 37 00 90 00 EF [22:46:27]RAPDU: 90 00 [22:46:27]wFMCommunicate OK [22:46:27]wFMCommunicate request_size=148 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0B 00 00 00 00 07 04 06 00 F0 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 4A CE 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 25 F8 00 00 35 04 06 00 DE B3 AA CD 27 DE [22:46:27]Write to MH i2c: E2 97 00 45 37 80 0D 02 02 8F 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0B 00 00 00 00 07 04 06 00 F0 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 4A CE 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 25 F8 00 00 35 04 06 00 DE B3 AA CD 27 DE 00 00 E7 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 45 37 00 90 00 F0 [22:46:27]RAPDU: 90 00 [22:46:27]wFMCommunicate OK [22:46:27]wFMCommunicate request_size=4 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 0D 03 02 [22:46:27]Write to MH i2c: E2 08 00 46 37 80 0D 03 02 00 00 00 00 F8 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 0B 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 0B 00 46 37 00 5C 81 9D A7 8B 75 22 19 90 00 55 [22:46:27]RAPDU: 5C 81 9D A7 8B 75 22 19 90 00 [22:46:27]wFMCommunicate OK [22:46:27]SAM_PROTO_SignData done [22:46:27]FM_MakeSignedData done [22:46:27]CreateOFDProtocolMessage [22:46:27]wFMCommunicate request_size=4 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 11 00 00 [22:46:27]Write to MH i2c: E2 08 00 47 37 80 11 00 00 00 00 00 00 F8 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:28]Read from MH i2c: E2 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: E2 17 00 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: E2 17 00 47 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 51 [22:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:46:28]wFMCommunicate OK [22:46:28]CreateOFDProtocolMessage done [22:46:28]OFDSenderStorePacket 63525 [22:46:28]StoreOFDPacket docnum=63525 [22:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 99 01 00 00 94 02 91 01 3F A3 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0B 00 00 00 00 07 04 06 00 F0 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 4A CE 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 25 F8 00 00 35 04 06 00 DE B3 AA CD 27 DE 5C 81 9D A7 8B 75 22 19 [22:46:28]CheckFolder [22:46:28]dirname=/storage/ofd_packets [22:46:28]CheckFolder done [22:46:28]ProducePacketName [22:46:28]name=ofd_packets/00063525 [22:46:28]NVStorageSaveData ofd_packets/00063525 [22:46:28]File name is /storage/ofd_packets/00063525 [22:46:28]Write 439 bytes [22:46:28]NVStorageSaveData done [22:46:28]OFDSenderStorePacket done [22:46:28]KKMCreateOFDPacket done [22:46:28]NVStorageSaveData kkm_last_timestamp [22:46:28]File name is /storage/kkm_last_timestamp [22:46:28]Write 4 bytes [22:46:28]NVStorageSaveData done [22:46:28]ExternCall_PrintAddStr [22:46:28]wPrintStart [22:46:28]Write to MH i2c: 01 00 00 48 37 7F [22:46:28]Write i2c OK [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 07 00 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 07 00 48 37 00 00 00 00 00 FF 0F 94 [22:46:28]RasterBufferAndPrint [22:46:28]line Счет N : (3)47831 [22:46:28]line ИНН: 02508201610067 [22:46:28]line Контрольно-Кассовый Чек [22:46:28]line ПРОДАЖА [22:46:28]line Товар: 2000036220012 [22:46:28]line Кофе Капучино XL(GABB TRADE) [22:46:28]line 1.000 * 130.00 [22:46:28]line = 130.00 [22:46:28]line НДС 12% НСП 1% [22:46:28]line > о реализуемом товаре [22:46:28]line Товар: 46230607 [22:46:28]line Сигареты Richmond Bronze Edition [22:46:28]line 1.000 * 154.00 [22:46:28]line = 154.00 [22:46:28]line НДС 12% НСП 1% [22:46:28]line > о реализуемом товаре [22:46:28]line ИТОГО: 284.00 [22:46:28]line НСП 1% : 2.51 [22:46:28]line НДС 12% : 30.15 [22:46:28]line Наличными: 284.00 [22:46:28]line Безнал.: 0.00 [22:46:28]line Место: АЗС № 86 "Партнер Нефть" [22:46:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:46:28]line СНО: Общий режим [22:46:28]line Чек 139 24.10.2024 22:46 [22:46:28]line Смена: 547 ФФД: 1.0 [22:46:28]line ЗНМ: 0300000154 [22:46:28]line РНМ: 0000000000091619 [22:46:28]line Версия ККМ: 001 [22:46:28]line ФМ: 0000000000874676 [22:46:28]line ФД: 63525 [22:46:28]line ФПД: 244863246084062 [22:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T224634&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63525&fm=244863246084062&tin=02508201610067®Number=0000000000091619&sum=28400 [22:46:28]line 0 [22:46:28]OFD Sender: Processing packet 63525 [packets to send 232, broken 231] [22:46:28]ProducePacketName [22:46:28]name=ofd_packets/00063525 [22:46:28]OFD Sender: To server: pG, [22:46:28]CommunicateWithHost lk.salyk.kg:30040 [22:46:28]ConnectInit lk.salyk.kg [22:46:28]written 0, free lines is 4095 [22:46:28]Connected sock=10 [22:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 99 01 00 00 94 02 91 01 3F A3 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0B 00 00 00 00 07 04 06 00 F0 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 4A CE 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 25 F8 00 00 35 04 06 00 DE B3 AA CD 27 DE 5C 81 9D A7 8B 75 22 19 [22:46:28]Write to MH i2c: 01 00 00 78 37 AF [22:46:28]Write i2c OK [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 07 00 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 07 00 78 37 00 00 00 00 00 AC 0C 6E [22:46:28]RasterBufferAndPrint [22:46:28]line [22:46:28]line [22:46:28]line [22:46:28]line [22:46:28]line [22:46:28]written 0, free lines is 3250 [22:46:28]MH_Cut [22:46:28]Write to MH i2c: D1 01 00 7F 37 01 88 [22:46:28]Write i2c OK [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: D1 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: D1 01 00 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: D1 01 00 7F 37 00 87 [22:46:28]Write to MH i2c: 01 00 00 80 37 B7 [22:46:28]Write i2c OK [22:46:28]MH_I2C_Read... [22:46:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 B4 18 47 00 D7 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 34 36 37 36 10 04 04 00 25 F8 00 00 F4 03 04 00 3D 78 1A 67 B6 04 01 00 00 9F 70 9F 82 5B 51 C4 B0 [22:46:29]CommunicateWithHost err = 0 [22:46:29]CheckOFDResponse [22:46:29]1017 (14) - 77093643461234 [22:46:29]1041 (16) - 0000000000874676 [22:46:29]1040 (4) - 63525 [22:46:29]1012 (4) - 24.10.2024 16:39 [22:46:29]1206 (1) - 0 [22:46:29]OFD Sender: Remove packet 63525 [22:46:29]ProducePacketName [22:46:29]name=ofd_packets/00063525 [22:46:29]NVStorageDeleteData [22:46:29]*** Cut start [22:46:29]*** Partial cut [22:46:29]*** CUTSNS_PIN = 1 [22:46:29]*** CUTSNS_PIN = 0 [22:46:29]OFD Sender: No OFD packet to send [22:46:29]*** Brake cut motor [22:46:30]Read from MH i2c: 01 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: 01 07 00 [22:46:30]MH_I2C_Read... [22:46:30]*** Stop cut motor [22:46:30]*** Cut end [22:46:30]Read from MH i2c: 01 07 00 80 37 00 00 00 00 00 FF 0F CC [22:46:30]process_action close_receipt done [22:46:30]requested_data is exist [22:46:30]produce_requested_data [22:46:30]requested_item fm.sn is exist - process it [22:46:30]wFMCommunicate request_size=4 [22:46:30]MH_SAM_APDU [22:46:30]CAPDU: 80 11 00 00 [22:46:30]Write to MH i2c: E2 08 00 81 37 80 11 00 00 00 00 00 00 32 [22:46:30]Write i2c OK [22:46:30]MH_I2C_Read... [22:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:30]Read from MH i2c: E2 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: E2 17 00 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: E2 17 00 81 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8B [22:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:46:30]wFMCommunicate OK [22:46:30]requested_item fd.num is exist - process it [22:46:30]SAM_PROTO_GetFieldsCounters [22:46:30]wFMCommunicate request_size=4 [22:46:30]MH_SAM_APDU [22:46:30]CAPDU: 80 13 00 00 [22:46:30]Write to MH i2c: E2 08 00 82 37 80 13 00 00 00 00 00 00 35 [22:46:30]Write i2c OK [22:46:30]MH_I2C_Read... [22:46:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:30]Read from MH i2c: E2 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: E2 62 00 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: E2 62 00 82 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 25 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [22:46:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 25 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:30]wFMCommunicate OK [22:46:30]SAM_PROTO_GetFieldsCounters done [22:46:30]requested_item shift.num is exist - process it [22:46:30]requested_item shift.opened is exist - process it [22:46:30]req_shift_opened [22:46:30]FM_GetShiftState [22:46:30]SAM_PROTO_GetShiftState [22:46:30]wFMCommunicate request_size=4 [22:46:30]MH_SAM_APDU [22:46:30]CAPDU: 80 13 01 00 [22:46:30]Write to MH i2c: E2 08 00 83 37 80 13 01 00 00 00 00 00 37 [22:46:30]Write i2c OK [22:46:30]MH_I2C_Read... [22:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:30]Read from MH i2c: E2 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: E2 0E 00 [22:46:30]MH_I2C_Read... [22:46:30]Read from MH i2c: E2 0E 00 83 37 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 18 [22:46:30]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:46:30]wFMCommunicate OK [22:46:30]SAM_PROTO_GetShiftState done [22:46:30]FM_GetShiftState done [22:46:30]req_shift_opened done [22:46:30]requested_item shift.open_date is exist - process it [22:46:30]req_shift_open_date [22:46:30]req_shift_open_date done [22:46:30]produce_requested_data done [22:46:30]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63525,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [22:46:30]process_action_free close_receipt [22:46:30]json_value_free [22:46:30]json_value_free done [22:46:30]process_json_proto returns [22:46:30]Send response to host [22:46:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63525,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [22:46:30]free response buf [22:46:30]execute_script done [22:46:30]execute_script returns [22:46:30]free content buf [22:46:30]Sock 7.Close socket [22:46:30]Sock 7.Thread stoped [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:16]accept exits with 9 [22:48:16]New connection [22:48:16]New thread 3066633572 created [22:48:16]Thread 3066490212 joined [22:48:16]Waiting for new connection... [22:48:16] Sock 9.Parse request [22:48:16]Sock 9.Check first char [22:48:16]Sock 9.First char is OK [22:48:16]request: POST /json_proto HTTP/1.0 [22:48:16]Method: POST [22:48:16]URL: /json_proto [22:48:16]Method is POST - this is cgi request [22:48:16]url: /json_proto [22:48:16]query_string will be loaded in cgi processing [22:48:16]execute_cgi json_proto POST (null) [22:48:16]execute_cgi path=json_proto method=POST [22:48:16]POST find Content-Length [22:48:16]Host: 172.17.42.132:8080 [22:48:16]Content-Length: 805 [22:48:16]Content-Type: application/json [22:48:16] [22:48:16]POST finish read [22:48:16]Found Content-Length = 805 [22:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47832", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 128.85 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:16]execute_script... [22:48:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47832", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 128.85 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:16]POST & json_proto [22:48:16]process_json_proto [22:48:16]json parsed OK: [22:48:16]protocol is kg_v1.0 [22:48:16]action value=close_receipt [22:48:16]process_action close_receipt [22:48:16]cmd_close_receipt [22:48:16]MH_GetDate [22:48:16]Write to MH i2c: F0 00 00 84 37 AA [22:48:16]Write i2c OK [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: F0 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: F0 09 00 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: F0 09 00 84 37 00 B8 CE 1A 67 4C DF 56 66 A1 [22:48:16]GetLastDocTimeStamp 1729809994 [22:48:16]current date 1729810104 [22:48:16]FM_GetShiftState [22:48:16]SAM_PROTO_GetShiftState [22:48:16]wFMCommunicate request_size=4 [22:48:16]MH_SAM_APDU [22:48:16]CAPDU: 80 13 01 00 [22:48:16]Write to MH i2c: E2 08 00 85 37 80 13 01 00 00 00 00 00 39 [22:48:16]Write i2c OK [22:48:16]MH_I2C_Read... [22:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:16]Read from MH i2c: E2 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 0E 00 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 0E 00 85 37 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 1A [22:48:16]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:48:16]wFMCommunicate OK [22:48:16]SAM_PROTO_GetShiftState done [22:48:16]FM_GetShiftState done [22:48:16]opened in 1729728964 [22:48:16]opened+sec_in_day 1729815364 [22:48:16]quantity*price = 12885 [22:48:16]sum+1 = 12886 [22:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.85 НСП 1% : 1.14 НДС 12% : 13.68 Наличными: 0.00 Безнал.: 128.85 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 140 24.10.2024 22:48 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63526 ФПД: 9209341300465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T224824&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63526&fm=9209341300465&tin=02508201610067®Number=0000000000091619&sum=12885 0 [22:48:17]StoreToDocumentArchive [22:48:17]shift 547 fd 63526 [22:48:17]save to /storage/0547/doc_00063526 [22:48:17]save last doc name /storage/0547/doc_00063526 to /storage/kkm_last_doc_name [22:48:17]save OK [22:48:17]Clear old archive folders... [22:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=269 [22:48:17]tlvbuf is 00C13CD0 [22:48:17]SAM_PROTO_ClearQueue [22:48:17]wFMCommunicate request_size=4 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 09 00 00 [22:48:17]Write to MH i2c: E2 08 00 92 37 80 09 00 00 00 00 00 00 3B [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 92 37 00 90 00 3D [22:48:17]RAPDU: 90 00 [22:48:17]wFMCommunicate OK [22:48:17]SAM_PROTO_ClearQueue done [22:48:17]KKMCreateOFDPacket [22:48:17]OFDProtocolAddRootSTLVToBuf [22:48:17]FM_MakeSignedData [22:48:17]FM_MakeSignedData [22:48:17]SAM_PROTO_SignData [22:48:17]wFMCommunicate request_size=4 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 0D 01 02 [22:48:17]Write to MH i2c: E2 08 00 93 37 80 0D 01 02 00 00 00 00 43 [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 93 37 00 90 00 3E [22:48:17]RAPDU: 90 00 [22:48:17]wFMCommunicate OK [22:48:17]wFMCommunicate request_size=255 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B8 CE 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [22:48:17]Write to MH i2c: E2 02 01 94 37 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B8 CE 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 4B [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 94 37 00 90 00 3F [22:48:17]RAPDU: 90 00 [22:48:17]wFMCommunicate OK [22:48:17]wFMCommunicate request_size=28 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 0D 02 02 17 37 34 36 37 36 10 04 04 00 26 F8 00 00 35 04 06 00 08 60 37 84 4E F1 [22:48:17]Write to MH i2c: E2 1F 00 95 37 80 0D 02 02 17 00 37 34 36 37 36 10 04 04 00 26 F8 00 00 35 04 06 00 08 60 37 84 4E F1 00 00 59 [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 03 00 95 37 00 90 00 40 [22:48:17]RAPDU: 90 00 [22:48:17]wFMCommunicate OK [22:48:17]wFMCommunicate request_size=4 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 0D 03 02 [22:48:17]Write to MH i2c: E2 08 00 96 37 80 0D 03 02 00 00 00 00 48 [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 0B 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 0B 00 96 37 00 CA 05 20 61 27 97 94 74 90 00 5F [22:48:17]RAPDU: CA 05 20 61 27 97 94 74 90 00 [22:48:17]wFMCommunicate OK [22:48:17]SAM_PROTO_SignData done [22:48:17]FM_MakeSignedData done [22:48:17]CreateOFDProtocolMessage [22:48:17]wFMCommunicate request_size=4 [22:48:17]MH_SAM_APDU [22:48:17]CAPDU: 80 11 00 00 [22:48:17]Write to MH i2c: E2 08 00 97 37 80 11 00 00 00 00 00 00 48 [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:17]Read from MH i2c: E2 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 17 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: E2 17 00 97 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A1 [22:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:48:17]wFMCommunicate OK [22:48:17]CreateOFDProtocolMessage done [22:48:17]OFDSenderStorePacket 63526 [22:48:17]StoreOFDPacket docnum=63526 [22:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 80 CD 19 01 CC EC 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B8 CE 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 26 F8 00 00 35 04 06 00 08 60 37 84 4E F1 CA 05 20 61 27 97 94 74 [22:48:17]CheckFolder [22:48:17]dirname=/storage/ofd_packets [22:48:17]CheckFolder done [22:48:17]ProducePacketName [22:48:17]name=ofd_packets/00063526 [22:48:17]NVStorageSaveData ofd_packets/00063526 [22:48:17]File name is /storage/ofd_packets/00063526 [22:48:17]Write 319 bytes [22:48:17]NVStorageSaveData done [22:48:17]OFDSenderStorePacket done [22:48:17]KKMCreateOFDPacket done [22:48:17]NVStorageSaveData kkm_last_timestamp [22:48:17]File name is /storage/kkm_last_timestamp [22:48:17]Write 4 bytes [22:48:17]NVStorageSaveData done [22:48:17]ExternCall_PrintAddStr [22:48:17]wPrintStart [22:48:17]Write to MH i2c: 01 00 00 98 37 CF [22:48:17]Write i2c OK [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: 01 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: 01 07 00 [22:48:17]MH_I2C_Read... [22:48:17]Read from MH i2c: 01 07 00 98 37 00 00 00 00 00 FF 0F E4 [22:48:17]RasterBufferAndPrint [22:48:17]line Счет N : (3)47832 [22:48:17]line ИНН: 02508201610067 [22:48:17]line Контрольно-Кассовый Чек [22:48:17]line ПРОДАЖА [22:48:17]line Товар: 4620006996716 [22:48:17]line Водка Талка 0,1л [22:48:17]line 1.000 * 128.85 [22:48:17]line = 128.85 [22:48:17]line НДС 12% НСП 1% [22:48:17]line > о реализуемом товаре [22:48:17]line ИТОГО: 128.85 [22:48:17]line НСП 1% : 1.14 [22:48:17]line НДС 12% : 13.68 [22:48:17]line Наличными: 0.00 [22:48:17]line Безнал.: 128.85 [22:48:17]line Место: АЗС № 86 "Партнер Нефть" [22:48:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:48:17]line СНО: Общий режим [22:48:17]line Чек 140 24.10.2024 22:48 [22:48:17]line Смена: 547 ФФД: 1.0 [22:48:17]line ЗНМ: 0300000154 [22:48:17]line РНМ: 0000000000091619 [22:48:17]line Версия ККМ: 001 [22:48:17]line Платежная система: Бакай Банк [22:48:17]line ФМ: 0000000000874676 [22:48:17]line ФД: 63526 [22:48:17]line ФПД: 9209341300465 [22:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T224824&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63526&fm=9209341300465&tin=02508201610067®Number=0000000000091619&sum=12885 [22:48:17]line 0 [22:48:17]written 0, free lines is 4095 [22:48:17]OFD Sender: Processing packet 63526 [packets to send 232, broken 231] [22:48:17]ProducePacketName [22:48:17]name=ofd_packets/00063526 [22:48:17]OFD Sender: To server: pG, [22:48:17]CommunicateWithHost lk.salyk.kg:30040 [22:48:17]ConnectInit lk.salyk.kg [22:48:18]Connected sock=7 [22:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 80 CD 19 01 CC EC 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B8 CE 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 26 F8 00 00 35 04 06 00 08 60 37 84 4E F1 CA 05 20 61 27 97 94 74 [22:48:18]Write to MH i2c: 01 00 00 C2 37 F9 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 C2 37 00 00 00 00 00 03 0D 10 [22:48:18]RasterBufferAndPrint [22:48:18]line [22:48:18]line [22:48:18]line [22:48:18]line [22:48:18]line [22:48:18]written 0, free lines is 3337 [22:48:18]MH_Cut [22:48:18]Write to MH i2c: D1 01 00 C9 37 01 D2 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: D1 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: D1 01 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: D1 01 00 C9 37 00 D1 [22:48:18]Write to MH i2c: 01 00 00 CA 37 01 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 43 46 47 00 D1 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 26 F8 00 00 F4 03 04 00 AB 78 1A 67 B6 04 01 00 00 37 53 C0 C3 96 B1 2B 75 [22:48:18]CommunicateWithHost err = 0 [22:48:18]CheckOFDResponse [22:48:18]1017 (14) - 77093643461234 [22:48:18]1041 (16) - 0000000000874676 [22:48:18]1040 (4) - 63526 [22:48:18]1012 (4) - 24.10.2024 16:41 [22:48:18]1206 (1) - 0 [22:48:18]OFD Sender: Remove packet 63526 [22:48:18]ProducePacketName [22:48:18]name=ofd_packets/00063526 [22:48:18]NVStorageDeleteData [22:48:18]*** Cut start [22:48:18]*** Partial cut [22:48:18]*** CUTSNS_PIN = 1 [22:48:18]*** CUTSNS_PIN = 0 [22:48:18]OFD Sender: No OFD packet to send [22:48:19]*** Brake cut motor [22:48:19]Read from MH i2c: 01 [22:48:19]MH_I2C_Read... [22:48:19]*** Stop cut motor [22:48:19]*** Cut end [22:48:19]Read from MH i2c: 01 07 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 07 00 CA 37 00 00 00 00 00 FF 0F 16 [22:48:19]process_action close_receipt done [22:48:19]requested_data is exist [22:48:19]produce_requested_data [22:48:19]requested_item fm.sn is exist - process it [22:48:19]wFMCommunicate request_size=4 [22:48:19]MH_SAM_APDU [22:48:19]CAPDU: 80 11 00 00 [22:48:19]Write to MH i2c: E2 08 00 CB 37 80 11 00 00 00 00 00 00 7C [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:19]Read from MH i2c: E2 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 17 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 17 00 CB 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D5 [22:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:48:19]wFMCommunicate OK [22:48:19]requested_item fd.num is exist - process it [22:48:19]SAM_PROTO_GetFieldsCounters [22:48:19]wFMCommunicate request_size=4 [22:48:19]MH_SAM_APDU [22:48:19]CAPDU: 80 13 00 00 [22:48:19]Write to MH i2c: E2 08 00 CC 37 80 13 00 00 00 00 00 00 7F [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:19]Read from MH i2c: E2 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 62 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 62 00 CC 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 26 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [22:48: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 26 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:19]wFMCommunicate OK [22:48:19]SAM_PROTO_GetFieldsCounters done [22:48:19]requested_item shift.num is exist - process it [22:48:19]requested_item shift.opened is exist - process it [22:48:19]req_shift_opened [22:48:19]FM_GetShiftState [22:48:19]SAM_PROTO_GetShiftState [22:48:19]wFMCommunicate request_size=4 [22:48:19]MH_SAM_APDU [22:48:19]CAPDU: 80 13 01 00 [22:48:19]Write to MH i2c: E2 08 00 CD 37 80 13 01 00 00 00 00 00 81 [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:19]Read from MH i2c: E2 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 0E 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: E2 0E 00 CD 37 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 62 [22:48:19]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [22:48:19]wFMCommunicate OK [22:48:19]SAM_PROTO_GetShiftState done [22:48:19]FM_GetShiftState done [22:48:19]req_shift_opened done [22:48:19]requested_item shift.open_date is exist - process it [22:48:19]req_shift_open_date [22:48:19]req_shift_open_date done [22:48:19]produce_requested_data done [22:48:19]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63526,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [22:48:19]process_action_free close_receipt [22:48:19]json_value_free [22:48:19]json_value_free done [22:48:19]process_json_proto returns [22:48:19]Send response to host [22:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63526,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [22:48:19]free response buf [22:48:19]execute_script done [22:48:19]execute_script returns [22:48:19]free content buf [22:48:19]Sock 9.Close socket [22:48:19]Sock 9.Thread stoped [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]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:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:03]accept exits with 10 [23:00:03]New connection [23:00:03]New thread 3066490212 created [23:00:03]Thread 3066633572 joined [23:00:03]Waiting for new connection... [23:00:03] Sock 10.Parse request [23:00:03]Sock 10.Check first char [23:00:03]Sock 10.First char is OK [23:00:03]request: POST /json_proto HTTP/1.0 [23:00:03]Method: POST [23:00:03]URL: /json_proto [23:00:03]Method is POST - this is cgi request [23:00:03]url: /json_proto [23:00:03]query_string will be loaded in cgi processing [23:00:03]execute_cgi json_proto POST (null) [23:00:03]execute_cgi path=json_proto method=POST [23:00:03]POST find Content-Length [23:00:03]Host: 172.17.42.132:8080 [23:00:03]Content-Length: 854 [23:00:03]Content-Type: application/json [23:00:03] [23:00:03]POST finish read [23:00:03]Found Content-Length = 854 [23:00:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47833", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 118.94 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:03]execute_script... [23:00: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)47833", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 118.94, "quantity" : 1.000, "sum" : 118.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 118.94 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:03]POST & json_proto [23:00:03]process_json_proto [23:00:03]json parsed OK: [23:00:03]protocol is kg_v1.0 [23:00:03]action value=close_receipt [23:00:03]process_action close_receipt [23:00:03]cmd_close_receipt [23:00:03]MH_GetDate [23:00:03]Write to MH i2c: F0 00 00 CE 37 F4 [23:00:03]Write i2c OK [23:00:03]MH_I2C_Read... [23:00:03]Read from MH i2c: F0 [23:00:03]MH_I2C_Read... [23:00:03]Read from MH i2c: F0 09 00 [23:00:03]MH_I2C_Read... [23:00:03]Read from MH i2c: F0 09 00 CE 37 00 7C D1 1A 67 4C DF 56 66 B2 [23:00:03]GetLastDocTimeStamp 1729810104 [23:00:03]current date 1729810812 [23:00:03]FM_GetShiftState [23:00:03]SAM_PROTO_GetShiftState [23:00:03]wFMCommunicate request_size=4 [23:00:03]MH_SAM_APDU [23:00:03]CAPDU: 80 13 01 00 [23:00:03]Write to MH i2c: E2 08 00 CF 37 80 13 01 00 00 00 00 00 83 [23:00:03]Write i2c OK [23:00:03]MH_I2C_Read... [23:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:03]Read from MH i2c: E2 [23:00:03]MH_I2C_Read... [23:00:03]Read from MH i2c: E2 0E 00 [23:00:03]MH_I2C_Read... [23:00:03]Read from MH i2c: E2 0E 00 CF 37 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 64 [23:00:03]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:00:03]wFMCommunicate OK [23:00:03]SAM_PROTO_GetShiftState done [23:00:03]FM_GetShiftState done [23:00:03]opened in 1729728964 [23:00:03]opened+sec_in_day 1729815364 [23:00:03]quantity*price = 11894 [23:00:03]sum+1 = 11895 [23:00:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.94 НСП 1% : 1.05 НДС 12% : 12.63 Наличными: 0.00 Безнал.: 118.94 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 141 24.10.2024 23:00 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63527 ФПД: 221977789550399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230012&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63527&fm=221977789550399&tin=02508201610067®Number=0000000000091619&sum=11894 0 [23:00:04]StoreToDocumentArchive [23:00:04]shift 547 fd 63527 [23:00:04]save to /storage/0547/doc_00063527 [23:00:05]save last doc name /storage/0547/doc_00063527 to /storage/kkm_last_doc_name [23:00:05]save OK [23:00:05]Clear old archive folders... [23:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=308 [23:00:05]tlvbuf is 00B65A70 [23:00:05]SAM_PROTO_ClearQueue [23:00:05]wFMCommunicate request_size=4 [23:00:05]MH_SAM_APDU [23:00:05]CAPDU: 80 09 00 00 [23:00:05]Write to MH i2c: E2 08 00 DC 37 80 09 00 00 00 00 00 00 85 [23:00:05]Write i2c OK [23:00:05]MH_I2C_Read... [23:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:05]Read from MH i2c: E2 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 03 00 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 03 00 DC 37 00 90 00 87 [23:00:05]RAPDU: 90 00 [23:00:05]wFMCommunicate OK [23:00:05]SAM_PROTO_ClearQueue done [23:00:05]KKMCreateOFDPacket [23:00:05]OFDProtocolAddRootSTLVToBuf [23:00:05]FM_MakeSignedData [23:00:05]FM_MakeSignedData [23:00:05]SAM_PROTO_SignData [23:00:05]wFMCommunicate request_size=4 [23:00:05]MH_SAM_APDU [23:00:05]CAPDU: 80 0D 01 02 [23:00:05]Write to MH i2c: E2 08 00 DD 37 80 0D 01 02 00 00 00 00 8D [23:00:05]Write i2c OK [23:00:05]MH_I2C_Read... [23:00:05]OFD Sender: No OFD packet to send [23:00:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:05]Read from MH i2c: E2 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 03 00 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 03 00 DD 37 00 90 00 88 [23:00:05]RAPDU: 90 00 [23:00:05]wFMCommunicate OK [23:00:05]wFMCommunicate request_size=255 [23:00:05]MH_SAM_APDU [23:00:05]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7C D1 1A 67 0E 04 04 00 23 02 00 00 B9 [23:00:05]Write to MH i2c: E2 02 01 DE 37 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7C D1 1A 67 0E 04 04 00 23 02 00 00 B9 00 00 89 [23:00:05]Write i2c OK [23:00:05]MH_I2C_Read... [23:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:05]Read from MH i2c: E2 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 03 00 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 03 00 DE 37 00 90 00 89 [23:00:05]RAPDU: 90 00 [23:00:05]wFMCommunicate OK [23:00:05]wFMCommunicate request_size=67 [23:00:05]MH_SAM_APDU [23:00:05]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 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 27 F8 00 00 35 04 06 00 C9 E3 3B 4B 4F 3F [23:00:05]Write to MH i2c: E2 46 00 DF 37 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 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 27 F8 00 00 35 04 06 00 C9 E3 3B 4B 4F 3F 00 00 CE [23:00:05]Write i2c OK [23:00:05]MH_I2C_Read... [23:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:05]Read from MH i2c: E2 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 03 00 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 03 00 DF 37 00 90 00 8A [23:00:05]RAPDU: 90 00 [23:00:05]wFMCommunicate OK [23:00:05]wFMCommunicate request_size=4 [23:00:05]MH_SAM_APDU [23:00:05]CAPDU: 80 0D 03 02 [23:00:05]Write to MH i2c: E2 08 00 E0 37 80 0D 03 02 00 00 00 00 92 [23:00:05]Write i2c OK [23:00:05]MH_I2C_Read... [23:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:05]Read from MH i2c: E2 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 0B 00 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 0B 00 E0 37 00 EC 80 01 C7 6D BB E8 2E 90 00 05 [23:00:05]RAPDU: EC 80 01 C7 6D BB E8 2E 90 00 [23:00:05]wFMCommunicate OK [23:00:05]SAM_PROTO_SignData done [23:00:05]FM_MakeSignedData done [23:00:05]CreateOFDProtocolMessage [23:00:05]wFMCommunicate request_size=4 [23:00:05]MH_SAM_APDU [23:00:05]CAPDU: 80 11 00 00 [23:00:05]Write to MH i2c: E2 08 00 E1 37 80 11 00 00 00 00 00 00 92 [23:00:05]Write i2c OK [23:00:05]MH_I2C_Read... [23:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:05]Read from MH i2c: E2 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 17 00 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 17 00 E1 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EB [23:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:00:05]wFMCommunicate OK [23:00:05]CreateOFDProtocolMessage done [23:00:05]OFDSenderStorePacket 63527 [23:00:05]StoreOFDPacket docnum=63527 [23:00:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 48 01 00 00 E4 03 40 01 62 9B 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7C D1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 27 F8 00 00 35 04 06 00 C9 E3 3B 4B 4F 3F EC 80 01 C7 6D BB E8 2E [23:00:05]CheckFolder [23:00:05]dirname=/storage/ofd_packets [23:00:05]CheckFolder done [23:00:05]ProducePacketName [23:00:05]name=ofd_packets/00063527 [23:00:05]NVStorageSaveData ofd_packets/00063527 [23:00:05]File name is /storage/ofd_packets/00063527 [23:00:05]Write 358 bytes [23:00:05]NVStorageSaveData done [23:00:05]OFDSenderStorePacket done [23:00:05]KKMCreateOFDPacket done [23:00:05]NVStorageSaveData kkm_last_timestamp [23:00:05]File name is /storage/kkm_last_timestamp [23:00:05]Write 4 bytes [23:00:05]NVStorageSaveData done [23:00:05]ExternCall_PrintAddStr [23:00:05]wPrintStart [23:00:05]Write to MH i2c: 01 00 00 E2 37 19 [23:00:05]Write i2c OK [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: 01 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: 01 07 00 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: 01 07 00 E2 37 00 00 00 00 00 FF 0F 2E [23:00:05]RasterBufferAndPrint [23:00:05]line Счет N : (3)47833 [23:00:05]line ИНН: 02508201610067 [23:00:05]line Контрольно-Кассовый Чек [23:00:05]line ПРОДАЖА [23:00:05]line Товар: 5449000027474 [23:00:05]line Напиток FuzeTea зел чай манго,ромашка 1л [23:00:05]line 1.000 * 118.94 [23:00:05]line = 118.94 [23:00:05]line НДС 12% НСП 1% [23:00:05]line > о реализуемом товаре [23:00:05]line ИТОГО: 118.94 [23:00:05]line НСП 1% : 1.05 [23:00:05]line НДС 12% : 12.63 [23:00:05]line Наличными: 0.00 [23:00:05]line Безнал.: 118.94 [23:00:05]line Место: АЗС № 86 "Партнер Нефть" [23:00:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:00:05]line СНО: Общий режим [23:00:05]line Чек 141 24.10.2024 23:00 [23:00:05]line Смена: 547 ФФД: 1.0 [23:00:05]line ЗНМ: 0300000154 [23:00:05]line РНМ: 0000000000091619 [23:00:05]line Версия ККМ: 001 [23:00:05]line Платежная система: Mbank [23:00:05]line ФМ: 0000000000874676 [23:00:05]line ФД: 63527 [23:00:05]line ФПД: 221977789550399 [23:00:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230012&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63527&fm=221977789550399&tin=02508201610067®Number=0000000000091619&sum=11894 [23:00:05]line 0 [23:00:05]OFD Sender: Processing packet 63527 [packets to send 232, broken 231] [23:00:05]ProducePacketName [23:00:05]name=ofd_packets/00063527 [23:00:05]OFD Sender: To server: pG, [23:00:05]CommunicateWithHost lk.salyk.kg:30040 [23:00:05]ConnectInit lk.salyk.kg [23:00:05]written 0, free lines is 4095 [23:00:06]Connected sock=9 [23: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 34 36 37 36 48 01 00 00 E4 03 40 01 62 9B 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 76 2E 00 00 00 00 13 04 06 00 76 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7C D1 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 27 F8 00 00 35 04 06 00 C9 E3 3B 4B 4F 3F EC 80 01 C7 6D BB E8 2E [23:00:06]Write to MH i2c: 01 00 00 0C 38 44 [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: 01 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: 01 07 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: 01 07 00 0C 38 00 00 00 00 00 00 0D 58 [23:00:06]RasterBufferAndPrint [23:00:06]line [23:00:06]line [23:00:06]line [23:00:06]line [23:00:06]line [23:00:06]written 0, free lines is 3334 [23:00:06]MH_Cut [23:00:06]Write to MH i2c: D1 01 00 13 38 01 1D [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: D1 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: D1 01 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: D1 01 00 13 38 00 1C [23:00:06]Write to MH i2c: 01 00 00 14 38 4C [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 39 4E 47 00 50 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 27 F8 00 00 F4 03 04 00 6F 7B 1A 67 B6 04 01 00 00 60 8B CB CE A5 50 EE B7 [23:00:06]CommunicateWithHost err = 0 [23:00:06]CheckOFDResponse [23:00:06]1017 (14) - 77093643461234 [23:00:06]1041 (16) - 0000000000874676 [23:00:06]1040 (4) - 63527 [23:00:06]1012 (4) - 24.10.2024 16:53 [23:00:06]1206 (1) - 0 [23:00:06]OFD Sender: Remove packet 63527 [23:00:06]ProducePacketName [23:00:06]name=ofd_packets/00063527 [23:00:06]NVStorageDeleteData [23:00:07]OFD Sender: No OFD packet to send [23:00:07]*** Cut start [23:00:07]*** Partial cut [23:00:07]*** CUTSNS_PIN = 1 [23:00:07]*** CUTSNS_PIN = 0 [23:00:07]*** Brake cut motor [23:00:07]Read from MH i2c: 01 [23:00:07]MH_I2C_Read... [23:00:07]*** Stop cut motor [23:00:07]*** Cut end [23:00:07]Read from MH i2c: 01 07 00 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: 01 07 00 14 38 00 00 00 00 00 FF 0F 61 [23:00:07]process_action close_receipt done [23:00:07]requested_data is exist [23:00:07]produce_requested_data [23:00:07]requested_item fm.sn is exist - process it [23:00:07]wFMCommunicate request_size=4 [23:00:07]MH_SAM_APDU [23:00:07]CAPDU: 80 11 00 00 [23:00:07]Write to MH i2c: E2 08 00 15 38 80 11 00 00 00 00 00 00 C7 [23:00:07]Write i2c OK [23:00:07]MH_I2C_Read... [23:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:07]Read from MH i2c: E2 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 17 00 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 17 00 15 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 20 [23:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:00:07]wFMCommunicate OK [23:00:07]requested_item fd.num is exist - process it [23:00:07]SAM_PROTO_GetFieldsCounters [23:00:07]wFMCommunicate request_size=4 [23:00:07]MH_SAM_APDU [23:00:07]CAPDU: 80 13 00 00 [23:00:07]Write to MH i2c: E2 08 00 16 38 80 13 00 00 00 00 00 00 CA [23:00:07]Write i2c OK [23:00:07]MH_I2C_Read... [23:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:07]Read from MH i2c: E2 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 62 00 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 62 00 16 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 27 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [23:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 27 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:07]wFMCommunicate OK [23:00:07]SAM_PROTO_GetFieldsCounters done [23:00:07]requested_item shift.num is exist - process it [23:00:07]requested_item shift.opened is exist - process it [23:00:07]req_shift_opened [23:00:07]FM_GetShiftState [23:00:07]SAM_PROTO_GetShiftState [23:00:07]wFMCommunicate request_size=4 [23:00:07]MH_SAM_APDU [23:00:07]CAPDU: 80 13 01 00 [23:00:07]Write to MH i2c: E2 08 00 17 38 80 13 01 00 00 00 00 00 CC [23:00:07]Write i2c OK [23:00:07]MH_I2C_Read... [23:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:07]Read from MH i2c: E2 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 0E 00 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 0E 00 17 38 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 AD [23:00:07]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:00:07]wFMCommunicate OK [23:00:07]SAM_PROTO_GetShiftState done [23:00:07]FM_GetShiftState done [23:00:07]req_shift_opened done [23:00:07]requested_item shift.open_date is exist - process it [23:00:07]req_shift_open_date [23:00:07]req_shift_open_date done [23:00:07]produce_requested_data done [23:00:07]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63527,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [23:00:07]process_action_free close_receipt [23:00:07]json_value_free [23:00:07]json_value_free done [23:00:07]process_json_proto returns [23:00:07]Send response to host [23:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63527,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [23:00:07]free response buf [23:00:07]execute_script done [23:00:07]execute_script returns [23:00:07]free content buf [23:00:07]Sock 10.Close socket [23:00:07]Sock 10.Thread stoped [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]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:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]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:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]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:55]accept exits with 7 [23:25:55]New connection [23:25:55]New thread 3066633572 created [23:25:55]Thread 3066490212 joined [23:25:55]Waiting for new connection... [23:25:55] Sock 7.Parse request [23:25:55]Sock 7.Check first char [23:25:55]Sock 7.First char is OK [23:25:55]request: POST /json_proto HTTP/1.0 [23:25:55]Method: POST [23:25:55]URL: /json_proto [23:25:55]Method is POST - this is cgi request [23:25:55]url: /json_proto [23:25:55]query_string will be loaded in cgi processing [23:25:55]execute_cgi json_proto POST (null) [23:25:55]execute_cgi path=json_proto method=POST [23:25:55]POST find Content-Length [23:25:55]Host: 172.17.42.132:8080 [23:25:55]Content-Length: 1074 [23:25:55]Content-Type: application/json [23:25:55] [23:25:55]POST finish read [23:25:55]Found Content-Length = 1074 [23:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47834", "tax_sys" : 0, "items" : [ { "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 342.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:55]execute_script... [23:25:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47834", "tax_sys" : 0, "items" : [ { "code": "4870145002155", "name": "\u041F\u0438\u0432\u043E \u0411\u043E\u043B\u044C\u0448\u0430\u044F \u041A\u0440\u0443\u0436\u043A\u0430 \u041C\u044F\u0433\u043A\u043E\u0435 0,64\u043B \u0441\u0442/\u0431", "price" : 141.00, "quantity" : 2.000, "sum" : 282.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 342.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:55]POST & json_proto [23:25:55]process_json_proto [23:25:55]json parsed OK: [23:25:55]protocol is kg_v1.0 [23:25:55]action value=close_receipt [23:25:55]process_action close_receipt [23:25:55]cmd_close_receipt [23:25:55]MH_GetDate [23:25:55]Write to MH i2c: F0 00 00 18 38 3F [23:25:56]Write i2c OK [23:25:56]MH_I2C_Read... [23:25:56]Read from MH i2c: F0 [23:25:56]MH_I2C_Read... [23:25:56]Read from MH i2c: F0 09 00 [23:25:56]MH_I2C_Read... [23:25:56]Read from MH i2c: F0 09 00 18 38 00 8C D7 1A 67 4C DF 56 66 13 [23:25:56]GetLastDocTimeStamp 1729810812 [23:25:56]current date 1729812364 [23:25:56]FM_GetShiftState [23:25:56]SAM_PROTO_GetShiftState [23:25:56]wFMCommunicate request_size=4 [23:25:56]MH_SAM_APDU [23:25:56]CAPDU: 80 13 01 00 [23:25:56]Write to MH i2c: E2 08 00 19 38 80 13 01 00 00 00 00 00 CE [23:25:56]Write i2c OK [23:25:56]MH_I2C_Read... [23:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:56]Read from MH i2c: E2 [23:25:56]MH_I2C_Read... [23:25:56]Read from MH i2c: E2 0E 00 [23:25:56]MH_I2C_Read... [23:25:56]Read from MH i2c: E2 0E 00 19 38 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 AF [23:25:56]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:25:56]wFMCommunicate OK [23:25:56]SAM_PROTO_GetShiftState done [23:25:56]FM_GetShiftState done [23:25:56]opened in 1729728964 [23:25:56]opened+sec_in_day 1729815364 [23:25:56]quantity*price = 28200 [23:25:56]sum+1 = 28201 [23:25:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 342.00 НСП 1% : 3.03 НДС 12% : 36.32 Наличными: 342.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 142 24.10.2024 23:26 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63528 ФПД: 182516396519245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232604&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63528&fm=182516396519245&tin=02508201610067®Number=0000000000091619&sum=34200 0 [23:25:57]StoreToDocumentArchive [23:25:57]shift 547 fd 63528 [23:25:57]save to /storage/0547/doc_00063528 [23:25:57]save last doc name /storage/0547/doc_00063528 to /storage/kkm_last_doc_name [23:25:57]save OK [23:25:57]Clear old archive folders... [23:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=439 [23:25:57]tlvbuf is 00BDB5B0 [23:25:57]SAM_PROTO_ClearQueue [23:25:57]wFMCommunicate request_size=4 [23:25:57]MH_SAM_APDU [23:25:57]CAPDU: 80 09 00 00 [23:25:57]Write to MH i2c: E2 08 00 26 38 80 09 00 00 00 00 00 00 D0 [23:25:57]Write i2c OK [23:25:57]MH_I2C_Read... [23:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:57]Read from MH i2c: E2 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 03 00 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 03 00 26 38 00 90 00 D2 [23:25:57]RAPDU: 90 00 [23:25:57]wFMCommunicate OK [23:25:57]SAM_PROTO_ClearQueue done [23:25:57]KKMCreateOFDPacket [23:25:57]OFDProtocolAddRootSTLVToBuf [23:25:57]FM_MakeSignedData [23:25:57]FM_MakeSignedData [23:25:57]SAM_PROTO_SignData [23:25:57]wFMCommunicate request_size=4 [23:25:57]MH_SAM_APDU [23:25:57]CAPDU: 80 0D 01 02 [23:25:57]Write to MH i2c: E2 08 00 27 38 80 0D 01 02 00 00 00 00 D8 [23:25:57]Write i2c OK [23:25:57]MH_I2C_Read... [23:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:57]Read from MH i2c: E2 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 03 00 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 03 00 27 38 00 90 00 D3 [23:25:57]RAPDU: 90 00 [23:25:57]wFMCommunicate OK [23:25:57]wFMCommunicate request_size=255 [23:25:57]MH_SAM_APDU [23:25:57]CAPDU: 80 0D 02 02 FA 03 00 B7 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 [23:25:57]Write to MH i2c: E2 02 01 28 38 80 0D 02 02 FA 00 03 00 B7 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 96 [23:25:57]Write i2c OK [23:25:57]MH_I2C_Read... [23:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:57]Read from MH i2c: E2 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 03 00 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 03 00 28 38 00 90 00 D4 [23:25:57]RAPDU: 90 00 [23:25:57]wFMCommunicate OK [23:25:57]wFMCommunicate request_size=198 [23:25:57]MH_SAM_APDU [23:25:57]CAPDU: 80 0D 02 02 C1 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8C D7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 28 F8 00 00 35 04 06 00 A5 FF 68 FA EF 4D [23:25:57]Write to MH i2c: E2 C9 00 29 38 80 0D 02 02 C1 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8C D7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 28 F8 00 00 35 04 06 00 A5 FF 68 FA EF 4D 00 00 9F [23:25:57]Write i2c OK [23:25:57]MH_I2C_Read... [23:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:57]Read from MH i2c: E2 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 03 00 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 03 00 29 38 00 90 00 D5 [23:25:57]RAPDU: 90 00 [23:25:57]wFMCommunicate OK [23:25:57]wFMCommunicate request_size=4 [23:25:57]MH_SAM_APDU [23:25:57]CAPDU: 80 0D 03 02 [23:25:57]Write to MH i2c: E2 08 00 2A 38 80 0D 03 02 00 00 00 00 DD [23:25:57]Write i2c OK [23:25:57]MH_I2C_Read... [23:25:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:57]Read from MH i2c: E2 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 0B 00 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 0B 00 2A 38 00 DF 04 B1 0B DB 43 FA 1E 90 00 B3 [23:25:57]RAPDU: DF 04 B1 0B DB 43 FA 1E 90 00 [23:25:57]wFMCommunicate OK [23:25:57]SAM_PROTO_SignData done [23:25:57]FM_MakeSignedData done [23:25:57]CreateOFDProtocolMessage [23:25:57]wFMCommunicate request_size=4 [23:25:57]MH_SAM_APDU [23:25:57]CAPDU: 80 11 00 00 [23:25:57]Write to MH i2c: E2 08 00 2B 38 80 11 00 00 00 00 00 00 DD [23:25:57]Write i2c OK [23:25:57]MH_I2C_Read... [23:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:57]Read from MH i2c: E2 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 17 00 [23:25:57]MH_I2C_Read... [23:25:57]Read from MH i2c: E2 17 00 2B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 36 [23:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:25:57]wFMCommunicate OK [23:25:57]CreateOFDProtocolMessage done [23:25:57]OFDSenderStorePacket 63528 [23:25:57]StoreOFDPacket docnum=63528 [23:25:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 CB 01 00 00 22 89 C3 01 5D 48 5A 03 01 00 03 00 B7 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8C D7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 28 F8 00 00 35 04 06 00 A5 FF 68 FA EF 4D DF 04 B1 0B DB 43 FA 1E [23:25:57]CheckFolder [23:25:57]dirname=/storage/ofd_packets [23:25:57]CheckFolder done [23:25:57]ProducePacketName [23:25:57]name=ofd_packets/00063528 [23:25:57]NVStorageSaveData ofd_packets/00063528 [23:25:57]File name is /storage/ofd_packets/00063528 [23:25:57]Write 489 bytes [23:25:57]NVStorageSaveData done [23:25:57]OFDSenderStorePacket done [23:25:57]KKMCreateOFDPacket done [23:25:57]NVStorageSaveData kkm_last_timestamp [23:25:57]File name is /storage/kkm_last_timestamp [23:25:58]Write 4 bytes [23:25:58]NVStorageSaveData done [23:25:58]ExternCall_PrintAddStr [23:25:58]wPrintStart [23:25:58]Write to MH i2c: 01 00 00 2C 38 64 [23:25:58]OFD Sender: Processing packet 63528 [packets to send 232, broken 231] [23:25:58]ProducePacketName [23:25:58]name=ofd_packets/00063528 [23:25:58]OFD Sender: To server: pG, [23:25:58]CommunicateWithHost lk.salyk.kg:30040 [23:25:58]ConnectInit lk.salyk.kg [23:25:58]Write i2c OK [23:25:58]MH_I2C_Read... [23:25:58]Read from MH i2c: 01 [23:25:58]MH_I2C_Read... [23:25:58]Read from MH i2c: 01 07 00 [23:25:58]MH_I2C_Read... [23:25:58]Read from MH i2c: 01 07 00 2C 38 00 00 00 00 00 FF 0F 79 [23:25:58]RasterBufferAndPrint [23:25:58]line Счет N : (3)47834 [23:25:58]line ИНН: 02508201610067 [23:25:58]line Контрольно-Кассовый Чек [23:25:58]line ПРОДАЖА [23:25:58]line Товар: 4870145002155 [23:25:58]line Пиво Большая Кружка Мягкое 0,64л ст/б [23:25:58]line 2.000 * 141.00 [23:25:58]line = 282.00 [23:25:58]line НДС 12% НСП 1% [23:25:58]line > о реализуемом товаре [23:25:58]line Товар: 4700000160792 [23:25:58]line Снек Курут классический (круглый) [23:25:58]line 1.000 * 60.00 [23:25:58]line = 60.00 [23:25:58]line НДС 12% НСП 1% [23:25:58]line > о реализуемом товаре [23:25:58]line ИТОГО: 342.00 [23:25:58]line НСП 1% : 3.03 [23:25:58]line НДС 12% : 36.32 [23:25:58]line Наличными: 342.00 [23:25:58]line Безнал.: 0.00 [23:25:58]line Место: АЗС № 86 "Партнер Нефть" [23:25:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:25:58]line СНО: Общий режим [23:25:58]line Чек 142 24.10.2024 23:26 [23:25:58]line Смена: 547 ФФД: 1.0 [23:25:58]line ЗНМ: 0300000154 [23:25:58]line РНМ: 0000000000091619 [23:25:58]line Версия ККМ: 001 [23:25:58]line ФМ: 0000000000874676 [23:25:58]line ФД: 63528 [23:25:58]line ФПД: 182516396519245 [23:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232604&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63528&fm=182516396519245&tin=02508201610067®Number=0000000000091619&sum=34200 [23:25:58]line 0 [23:25:58]written 0, free lines is 4095 [23:25:58]Connected sock=10 [23:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 CB 01 00 00 22 89 C3 01 5D 48 5A 03 01 00 03 00 B7 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 32 31 35 35 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 BE D0 BB D1 8C D1 88 D0 B0 D1 8F 20 D0 9A D1 80 D1 83 D0 B6 D0 BA D0 B0 20 D0 9C D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 36 34 D0 BB 20 D1 81 D1 82 2F D0 B1 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 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8C D7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 28 F8 00 00 35 04 06 00 A5 FF 68 FA EF 4D DF 04 B1 0B DB 43 FA 1E [23:25:58]Write to MH i2c: 01 00 00 5C 38 94 [23:25:58]Write i2c OK [23:25:58]MH_I2C_Read... [23:25:58]Read from MH i2c: 01 [23:25:58]MH_I2C_Read... [23:25:58]Read from MH i2c: 01 07 00 [23:25:58]MH_I2C_Read... [23:25:58]Read from MH i2c: 01 07 00 5C 38 00 00 00 00 00 B4 0C 5B [23:25:58]RasterBufferAndPrint [23:25:58]line [23:25:58]line [23:25:58]line [23:25:58]line [23:25:58]line [23:25:58]written 0, free lines is 3263 [23:25:58]MH_Cut [23:25:58]Write to MH i2c: D1 01 00 63 38 01 6D [23:25:58]Write i2c OK [23:25:58]MH_I2C_Read... [23:25:58]Read from MH i2c: D1 [23:25:58]MH_I2C_Read... [23:25:58]Read from MH i2c: D1 01 00 [23:25:58]MH_I2C_Read... [23:25:58]Read from MH i2c: D1 01 00 63 38 00 6C [23:25:58]Write to MH i2c: 01 00 00 64 38 9C [23:25:58]Write i2c OK [23:25:58]MH_I2C_Read... [23:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 8F EA 47 00 0E B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 28 F8 00 00 F4 03 04 00 7F 81 1A 67 B6 04 01 00 00 AE 1B E4 94 5E 6F F3 D6 [23:25:58]CommunicateWithHost err = 0 [23:25:58]CheckOFDResponse [23:25:58]1017 (14) - 77093643461234 [23:25:58]1041 (16) - 0000000000874676 [23:25:58]1040 (4) - 63528 [23:25:58]1012 (4) - 24.10.2024 17:18 [23:25:58]1206 (1) - 0 [23:25:58]OFD Sender: Remove packet 63528 [23:25:58]ProducePacketName [23:25:58]name=ofd_packets/00063528 [23:25:58]NVStorageDeleteData [23:25:59]OFD Sender: No OFD packet to send [23:25:59]*** Cut start [23:25:59]*** Partial cut [23:25:59]*** CUTSNS_PIN = 1 [23:25:59]*** CUTSNS_PIN = 0 [23:25:59]*** Brake cut motor [23:26:00]Read from MH i2c: 01 [23:26:00]MH_I2C_Read... [23:26:00]*** Stop cut motor [23:26:00]*** Cut end [23:26:00]Read from MH i2c: 01 07 00 [23:26:00]MH_I2C_Read... [23:26:00]Read from MH i2c: 01 07 00 64 38 00 00 00 00 00 FF 0F B1 [23:26:00]process_action close_receipt done [23:26:00]requested_data is exist [23:26:00]produce_requested_data [23:26:00]requested_item fm.sn is exist - process it [23:26:00]wFMCommunicate request_size=4 [23:26:00]MH_SAM_APDU [23:26:00]CAPDU: 80 11 00 00 [23:26:00]Write to MH i2c: E2 08 00 65 38 80 11 00 00 00 00 00 00 17 [23:26:00]Write i2c OK [23:26:00]MH_I2C_Read... [23:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:00]Read from MH i2c: E2 [23:26:00]MH_I2C_Read... [23:26:00]Read from MH i2c: E2 17 00 [23:26:00]MH_I2C_Read... [23:26:00]Read from MH i2c: E2 17 00 65 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 70 [23:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:26:00]wFMCommunicate OK [23:26:00]requested_item fd.num is exist - process it [23:26:00]SAM_PROTO_GetFieldsCounters [23:26:00]wFMCommunicate request_size=4 [23:26:00]MH_SAM_APDU [23:26:00]CAPDU: 80 13 00 00 [23:26:00]Write to MH i2c: E2 08 00 66 38 80 13 00 00 00 00 00 00 1A [23:26:00]Write i2c OK [23:26:00]MH_I2C_Read... [23:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:00]Read from MH i2c: E2 [23:26:00]MH_I2C_Read... [23:26:00]Read from MH i2c: E2 62 00 [23:26:00]MH_I2C_Read... [23:26:00]Read from MH i2c: E2 62 00 66 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 28 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [23:26:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 28 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:00]wFMCommunicate OK [23:26:00]SAM_PROTO_GetFieldsCounters done [23:26:00]requested_item shift.num is exist - process it [23:26:00]requested_item shift.opened is exist - process it [23:26:00]req_shift_opened [23:26:00]FM_GetShiftState [23:26:00]SAM_PROTO_GetShiftState [23:26:00]wFMCommunicate request_size=4 [23:26:00]MH_SAM_APDU [23:26:00]CAPDU: 80 13 01 00 [23:26:00]Write to MH i2c: E2 08 00 67 38 80 13 01 00 00 00 00 00 1C [23:26:00]Write i2c OK [23:26:00]MH_I2C_Read... [23:26:00]Read from MH i2c: E2 [23:26:00]MH_I2C_Read... [23:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:00]Read from MH i2c: E2 0E 00 [23:26:00]MH_I2C_Read... [23:26:00]Read from MH i2c: E2 0E 00 67 38 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 FD [23:26:00]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:26:00]wFMCommunicate OK [23:26:00]SAM_PROTO_GetShiftState done [23:26:00]FM_GetShiftState done [23:26:00]req_shift_opened done [23:26:00]requested_item shift.open_date is exist - process it [23:26:00]req_shift_open_date [23:26:00]req_shift_open_date done [23:26:00]produce_requested_data done [23:26:00]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63528,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [23:26:00]process_action_free close_receipt [23:26:00]json_value_free [23:26:00]json_value_free done [23:26:00]process_json_proto returns [23:26:00]Send response to host [23:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63528,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [23:26:00]free response buf [23:26:00]execute_script done [23:26:00]execute_script returns [23:26:00]free content buf [23:26:00]Sock 7.Close socket [23:26:00]Sock 7.Thread stoped [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:24]accept exits with 9 [23:26:24]New connection [23:26:24]New thread 3066490212 created [23:26:24]Thread 3066633572 joined [23:26:24]Waiting for new connection... [23:26:24] Sock 9.Parse request [23:26:24]Sock 9.Check first char [23:26:24]Sock 9.First char is OK [23:26:24]request: POST /json_proto HTTP/1.0 [23:26:24]Method: POST [23:26:24]URL: /json_proto [23:26:24]Method is POST - this is cgi request [23:26:24]url: /json_proto [23:26:24]query_string will be loaded in cgi processing [23:26:24]execute_cgi json_proto POST (null) [23:26:24]execute_cgi path=json_proto method=POST [23:26:24]POST find Content-Length [23:26:24]Host: 172.17.42.132:8080 [23:26:24]Content-Length: 620 [23:26:24]Content-Type: application/json [23:26:24] [23:26:24]POST finish read [23:26:24]Found Content-Length = 620 [23:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47835", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:24]execute_script... [23:26: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)47835", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:24]POST & json_proto [23:26:24]process_json_proto [23:26:24]json parsed OK: [23:26:24]protocol is kg_v1.0 [23:26:24]action value=close_receipt [23:26:24]process_action close_receipt [23:26:24]cmd_close_receipt [23:26:24]MH_GetDate [23:26:24]Write to MH i2c: F0 00 00 68 38 8F [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: F0 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: F0 09 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: F0 09 00 68 38 00 A9 D7 1A 67 4C DF 56 66 80 [23:26:24]GetLastDocTimeStamp 1729812364 [23:26:24]current date 1729812393 [23:26:24]FM_GetShiftState [23:26:24]SAM_PROTO_GetShiftState [23:26:24]wFMCommunicate request_size=4 [23:26:24]MH_SAM_APDU [23:26:24]CAPDU: 80 13 01 00 [23:26:24]Write to MH i2c: E2 08 00 69 38 80 13 01 00 00 00 00 00 1E [23:26:24]Write i2c OK [23:26:24]MH_I2C_Read... [23:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:24]Read from MH i2c: E2 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 0E 00 [23:26:24]MH_I2C_Read... [23:26:24]Read from MH i2c: E2 0E 00 69 38 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 FF [23:26:24]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:26:24]wFMCommunicate OK [23:26:24]SAM_PROTO_GetShiftState done [23:26:24]FM_GetShiftState done [23:26:24]opened in 1729728964 [23:26:24]opened+sec_in_day 1729815364 [23:26:24]quantity*price = 14400 [23:26:24]sum+1 = 14401 [23:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 143 24.10.2024 23:26 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63529 ФПД: 158109711893943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232633&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63529&fm=158109711893943&tin=02508201610067®Number=0000000000091619&sum=14400 0 [23:26:25]StoreToDocumentArchive [23:26:25]shift 547 fd 63529 [23:26:25]save to /storage/0547/doc_00063529 [23:26:25]save last doc name /storage/0547/doc_00063529 to /storage/kkm_last_doc_name [23:26:25]save OK [23:26:25]Clear old archive folders... [23:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=273 [23:26:25]tlvbuf is B6D5A5F0 [23:26:25]SAM_PROTO_ClearQueue [23:26:25]wFMCommunicate request_size=4 [23:26:25]MH_SAM_APDU [23:26:25]CAPDU: 80 09 00 00 [23:26:25]Write to MH i2c: E2 08 00 76 38 80 09 00 00 00 00 00 00 20 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:25]Read from MH i2c: E2 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 03 00 [23:26:25]MH_I2C_Read... [23:26:25]Read from MH i2c: E2 03 00 76 38 00 90 00 22 [23:26:25]RAPDU: 90 00 [23:26:25]wFMCommunicate OK [23:26:25]SAM_PROTO_ClearQueue done [23:26:25]KKMCreateOFDPacket [23:26:25]OFDProtocolAddRootSTLVToBuf [23:26:25]FM_MakeSignedData [23:26:25]FM_MakeSignedData [23:26:25]SAM_PROTO_SignData [23:26:25]wFMCommunicate request_size=4 [23:26:25]MH_SAM_APDU [23:26:25]CAPDU: 80 0D 01 02 [23:26:25]Write to MH i2c: E2 08 00 77 38 80 0D 01 02 00 00 00 00 28 [23:26:25]Write i2c OK [23:26:25]MH_I2C_Read... [23:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:26]Read from MH i2c: E2 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 03 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 03 00 77 38 00 90 00 23 [23:26:26]RAPDU: 90 00 [23:26:26]wFMCommunicate OK [23:26:26]wFMCommunicate request_size=255 [23:26:26]MH_SAM_APDU [23:26:26]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A9 D7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [23:26:26]Write to MH i2c: E2 02 01 78 38 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A9 D7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 48 [23:26:26]Write i2c OK [23:26:26]MH_I2C_Read... [23:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:26]Read from MH i2c: E2 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 03 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 03 00 78 38 00 90 00 24 [23:26:26]RAPDU: 90 00 [23:26:26]wFMCommunicate OK [23:26:26]wFMCommunicate request_size=32 [23:26:26]MH_SAM_APDU [23:26:26]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 29 F8 00 00 35 04 06 00 8F CC C9 36 85 B7 [23:26:26]Write to MH i2c: E2 23 00 79 38 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 29 F8 00 00 35 04 06 00 8F CC C9 36 85 B7 00 00 45 [23:26:26]Write i2c OK [23:26:26]MH_I2C_Read... [23:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:26]Read from MH i2c: E2 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 03 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 03 00 79 38 00 90 00 25 [23:26:26]RAPDU: 90 00 [23:26:26]wFMCommunicate OK [23:26:26]wFMCommunicate request_size=4 [23:26:26]MH_SAM_APDU [23:26:26]CAPDU: 80 0D 03 02 [23:26:26]Write to MH i2c: E2 08 00 7A 38 80 0D 03 02 00 00 00 00 2D [23:26:26]Write i2c OK [23:26:26]MH_I2C_Read... [23:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:26]Read from MH i2c: E2 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 0B 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 0B 00 7A 38 00 17 A0 BE B1 41 4E D2 BA 90 00 6F [23:26:26]RAPDU: 17 A0 BE B1 41 4E D2 BA 90 00 [23:26:26]wFMCommunicate OK [23:26:26]SAM_PROTO_SignData done [23:26:26]FM_MakeSignedData done [23:26:26]CreateOFDProtocolMessage [23:26:26]wFMCommunicate request_size=4 [23:26:26]MH_SAM_APDU [23:26:26]CAPDU: 80 11 00 00 [23:26:26]Write to MH i2c: E2 08 00 7B 38 80 11 00 00 00 00 00 00 2D [23:26:26]Write i2c OK [23:26:26]MH_I2C_Read... [23:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:26]Read from MH i2c: E2 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 17 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: E2 17 00 7B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 86 [23:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:26:26]wFMCommunicate OK [23:26:26]CreateOFDProtocolMessage done [23:26:26]OFDSenderStorePacket 63529 [23:26:26]StoreOFDPacket docnum=63529 [23:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 B1 EA 1D 01 B9 C5 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A9 D7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 29 F8 00 00 35 04 06 00 8F CC C9 36 85 B7 17 A0 BE B1 41 4E D2 BA [23:26:26]CheckFolder [23:26:26]dirname=/storage/ofd_packets [23:26:26]CheckFolder done [23:26:26]ProducePacketName [23:26:26]name=ofd_packets/00063529 [23:26:26]NVStorageSaveData ofd_packets/00063529 [23:26:26]File name is /storage/ofd_packets/00063529 [23:26:26]Write 323 bytes [23:26:26]NVStorageSaveData done [23:26:26]OFDSenderStorePacket done [23:26:26]KKMCreateOFDPacket done [23:26:26]NVStorageSaveData kkm_last_timestamp [23:26:26]File name is /storage/kkm_last_timestamp [23:26:26]Write 4 bytes [23:26:26]NVStorageSaveData done [23:26:26]ExternCall_PrintAddStr [23:26:26]wPrintStart [23:26:26]Write to MH i2c: 01 00 00 7C 38 B4 [23:26:26]Write i2c OK [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: 01 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: 01 07 00 [23:26:26]MH_I2C_Read... [23:26:26]Read from MH i2c: 01 07 00 7C 38 00 00 00 00 00 FF 0F C9 [23:26:26]RasterBufferAndPrint [23:26:26]line Счет N : (3)47835 [23:26:26]line ИНН: 02508201610067 [23:26:26]line Контрольно-Кассовый Чек [23:26:26]line ПРОДАЖА [23:26:26]line Товар: 48743570 [23:26:26]line Сигареты Winston XStyle Blue [23:26:26]line 1.000 * 144.00 [23:26:26]line = 144.00 [23:26:26]line НДС 12% НСП 1% [23:26:26]line > о реализуемом товаре [23:26:26]line ИТОГО: 144.00 [23:26:26]line НСП 1% : 1.27 [23:26:26]line НДС 12% : 15.29 [23:26:26]line Наличными: 144.00 [23:26:26]line Безнал.: 0.00 [23:26:26]line Место: АЗС № 86 "Партнер Нефть" [23:26:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:26:26]line СНО: Общий режим [23:26:26]line Чек 143 24.10.2024 23:26 [23:26:26]line Смена: 547 ФФД: 1.0 [23:26:26]line ЗНМ: 0300000154 [23:26:26]line РНМ: 0000000000091619 [23:26:26]line Версия ККМ: 001 [23:26:26]line ФМ: 0000000000874676 [23:26:26]line ФД: 63529 [23:26:26]line ФПД: 158109711893943 [23:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T232633&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63529&fm=158109711893943&tin=02508201610067®Number=0000000000091619&sum=14400 [23:26:26]line 0 [23:26:26]OFD Sender: Processing packet 63529 [packets to send 232, broken 231] [23:26:26]ProducePacketName [23:26:26]name=ofd_packets/00063529 [23:26:26]OFD Sender: To server: pG, [23:26:26]CommunicateWithHost lk.salyk.kg:30040 [23:26:26]ConnectInit lk.salyk.kg [23:26:26]written 0, free lines is 4095 [23:26:27]Connected sock=10 [23:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 B1 EA 1D 01 B9 C5 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A9 D7 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 29 F8 00 00 35 04 06 00 8F CC C9 36 85 B7 17 A0 BE B1 41 4E D2 BA [23:26:27]Write to MH i2c: 01 00 00 A4 38 DC [23:26:27]Write i2c OK [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: 01 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: 01 07 00 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: 01 07 00 A4 38 00 00 00 00 00 10 0D 00 [23:26:27]RasterBufferAndPrint [23:26:27]line [23:26:27]line [23:26:27]line [23:26:27]line [23:26:27]line [23:26:27]written 0, free lines is 3351 [23:26:27]MH_Cut [23:26:27]Write to MH i2c: D1 01 00 AB 38 01 B5 [23:26:27]Write i2c OK [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: D1 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: D1 01 00 [23:26:27]MH_I2C_Read... [23:26:27]Read from MH i2c: D1 01 00 AB 38 00 B4 [23:26:27]Write to MH i2c: 01 00 00 AC 38 E4 [23:26:27]Write i2c OK [23:26:27]MH_I2C_Read... [23:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 C4 43 47 00 CF BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 29 F8 00 00 F4 03 04 00 9C 81 1A 67 B6 04 01 00 00 D0 6E 15 B0 25 53 D6 E0 [23:26:27]CommunicateWithHost err = 0 [23:26:27]CheckOFDResponse [23:26:27]1017 (14) - 77093643461234 [23:26:27]1041 (16) - 0000000000874676 [23:26:27]1040 (4) - 63529 [23:26:27]1012 (4) - 24.10.2024 17:19 [23:26:27]1206 (1) - 0 [23:26:27]OFD Sender: Remove packet 63529 [23:26:27]ProducePacketName [23:26:27]name=ofd_packets/00063529 [23:26:27]NVStorageDeleteData [23:26:27]*** Cut start [23:26:27]*** Partial cut [23:26:27]*** CUTSNS_PIN = 1 [23:26:27]*** CUTSNS_PIN = 0 [23:26:28]OFD Sender: No OFD packet to send [23:26:28]*** Brake cut motor [23:26:28]Read from MH i2c: 01 [23:26:28]MH_I2C_Read... [23:26:28]*** Stop cut motor [23:26:28]*** Cut end [23:26:28]Read from MH i2c: 01 07 00 [23:26:28]MH_I2C_Read... [23:26:28]Read from MH i2c: 01 07 00 AC 38 00 00 00 00 00 FF 0F F9 [23:26:28]process_action close_receipt done [23:26:28]requested_data is exist [23:26:28]produce_requested_data [23:26:28]requested_item fm.sn is exist - process it [23:26:28]wFMCommunicate request_size=4 [23:26:28]MH_SAM_APDU [23:26:28]CAPDU: 80 11 00 00 [23:26:28]Write to MH i2c: E2 08 00 AD 38 80 11 00 00 00 00 00 00 5F [23:26:28]Write i2c OK [23:26:28]MH_I2C_Read... [23:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:28]Read from MH i2c: E2 [23:26:28]MH_I2C_Read... [23:26:28]Read from MH i2c: E2 17 00 [23:26:28]MH_I2C_Read... [23:26:28]Read from MH i2c: E2 17 00 AD 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B8 [23:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:26:28]wFMCommunicate OK [23:26:28]requested_item fd.num is exist - process it [23:26:28]SAM_PROTO_GetFieldsCounters [23:26:28]wFMCommunicate request_size=4 [23:26:28]MH_SAM_APDU [23:26:28]CAPDU: 80 13 00 00 [23:26:28]Write to MH i2c: E2 08 00 AE 38 80 13 00 00 00 00 00 00 62 [23:26:28]Write i2c OK [23:26:28]MH_I2C_Read... [23:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:28]Read from MH i2c: E2 [23:26:28]MH_I2C_Read... [23:26:28]Read from MH i2c: E2 62 00 [23:26:28]MH_I2C_Read... [23:26:28]Read from MH i2c: E2 62 00 AE 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 29 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [23:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 29 F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:28]wFMCommunicate OK [23:26:28]SAM_PROTO_GetFieldsCounters done [23:26:28]requested_item shift.num is exist - process it [23:26:28]requested_item shift.opened is exist - process it [23:26:28]req_shift_opened [23:26:28]FM_GetShiftState [23:26:28]SAM_PROTO_GetShiftState [23:26:28]wFMCommunicate request_size=4 [23:26:28]MH_SAM_APDU [23:26:28]CAPDU: 80 13 01 00 [23:26:28]Write to MH i2c: E2 08 00 AF 38 80 13 01 00 00 00 00 00 64 [23:26:28]Write i2c OK [23:26:28]MH_I2C_Read... [23:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:28]Read from MH i2c: E2 [23:26:28]MH_I2C_Read... [23:26:28]Read from MH i2c: E2 0E 00 [23:26:28]MH_I2C_Read... [23:26:28]Read from MH i2c: E2 0E 00 AF 38 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 45 [23:26:28]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:26:28]wFMCommunicate OK [23:26:28]SAM_PROTO_GetShiftState done [23:26:28]FM_GetShiftState done [23:26:28]req_shift_opened done [23:26:28]requested_item shift.open_date is exist - process it [23:26:28]req_shift_open_date [23:26:28]req_shift_open_date done [23:26:28]produce_requested_data done [23:26:28]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63529,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [23:26:28]process_action_free close_receipt [23:26:28]json_value_free [23:26:28]json_value_free done [23:26:28]process_json_proto returns [23:26:28]Send response to host [23:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63529,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [23:26:28]free response buf [23:26:28]execute_script done [23:26:28]execute_script returns [23:26:28]free content buf [23:26:28]Sock 9.Close socket [23:26:28]Sock 9.Thread stoped [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:23]accept exits with 7 [23:39:23]New connection [23:39:23]New thread 3066633572 created [23:39:23]Thread 3066490212 joined [23:39:23]Waiting for new connection... [23:39:23] Sock 7.Parse request [23:39:23]Sock 7.Check first char [23:39:23]Sock 7.First char is OK [23:39:23]request: POST /json_proto HTTP/1.0 [23:39:23]Method: POST [23:39:23]URL: /json_proto [23:39:23]Method is POST - this is cgi request [23:39:23]url: /json_proto [23:39:23]query_string will be loaded in cgi processing [23:39:23]execute_cgi json_proto POST (null) [23:39:23]execute_cgi path=json_proto method=POST [23:39:23]POST find Content-Length [23:39:23]Host: 172.17.42.132:8080 [23:39:23]Content-Length: 1348 [23:39:23]Content-Type: application/json [23:39:23] [23:39:23]POST finish read [23:39:23]Found Content-Length = 1348 [23:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47836", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 78.30, "quantity" : 1.000, "sum" : 78.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 104.07, "quantity" : 1.000, "sum" : 104.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 113.98, "quantity" : 1.000, "sum" : 113.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 296.35 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:23]execute_script... [23:39: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)47836", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 78.30, "quantity" : 1.000, "sum" : 78.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 104.07, "quantity" : 1.000, "sum" : 104.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 113.98, "quantity" : 1.000, "sum" : 113.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 296.35 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:23]POST & json_proto [23:39:23]process_json_proto [23:39:23]json parsed OK: [23:39:23]protocol is kg_v1.0 [23:39:23]action value=close_receipt [23:39:23]process_action close_receipt [23:39:23]cmd_close_receipt [23:39:23]MH_GetDate [23:39:23]Write to MH i2c: F0 00 00 B0 38 D7 [23:39:23]Write i2c OK [23:39:23]MH_I2C_Read... [23:39:23]Read from MH i2c: F0 [23:39:23]MH_I2C_Read... [23:39:23]Read from MH i2c: F0 09 00 [23:39:23]MH_I2C_Read... [23:39:23]Read from MH i2c: F0 09 00 B0 38 00 B4 DA 1A 67 4C DF 56 66 D6 [23:39:23]GetLastDocTimeStamp 1729812393 [23:39:23]current date 1729813172 [23:39:23]FM_GetShiftState [23:39:23]SAM_PROTO_GetShiftState [23:39:23]wFMCommunicate request_size=4 [23:39:23]MH_SAM_APDU [23:39:23]CAPDU: 80 13 01 00 [23:39:23]Write to MH i2c: E2 08 00 B1 38 80 13 01 00 00 00 00 00 66 [23:39:23]Write i2c OK [23:39:23]MH_I2C_Read... [23:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:24]Read from MH i2c: E2 [23:39:24]MH_I2C_Read... [23:39:24]Read from MH i2c: E2 0E 00 [23:39:24]MH_I2C_Read... [23:39:24]Read from MH i2c: E2 0E 00 B1 38 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 47 [23:39:24]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:39:24]wFMCommunicate OK [23:39:24]SAM_PROTO_GetShiftState done [23:39:24]FM_GetShiftState done [23:39:24]opened in 1729728964 [23:39:24]opened+sec_in_day 1729815364 [23:39:24]quantity*price = 7830 [23:39:24]sum+1 = 7831 [23:39:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 1.000 * 104.07 = 104.07 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 113.98 = 113.98 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 296.35 НСП 1% : 2.62 НДС 12% : 31.46 Наличными: 0.00 Безнал.: 296.35 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 144 24.10.2024 23:39 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63530 ФПД: 158945457313047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233932&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63530&fm=158945457313047&tin=02508201610067®Number=0000000000091619&sum=29635 0 [23:39:25]StoreToDocumentArchive [23:39:25]shift 547 fd 63530 [23:39:25]save to /storage/0547/doc_00063530 [23:39:25]save last doc name /storage/0547/doc_00063530 to /storage/kkm_last_doc_name [23:39:25]save OK [23:39:25]Clear old archive folders... [23:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=498 [23:39:25]tlvbuf is 00C31090 [23:39:25]SAM_PROTO_ClearQueue [23:39:25]wFMCommunicate request_size=4 [23:39:25]MH_SAM_APDU [23:39:25]CAPDU: 80 09 00 00 [23:39:25]Write to MH i2c: E2 08 00 BE 38 80 09 00 00 00 00 00 00 68 [23:39:25]Write i2c OK [23:39:25]MH_I2C_Read... [23:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:25]Read from MH i2c: E2 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 03 00 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 03 00 BE 38 00 90 00 6A [23:39:25]RAPDU: 90 00 [23:39:25]wFMCommunicate OK [23:39:25]SAM_PROTO_ClearQueue done [23:39:25]KKMCreateOFDPacket [23:39:25]OFDProtocolAddRootSTLVToBuf [23:39:25]FM_MakeSignedData [23:39:25]FM_MakeSignedData [23:39:25]SAM_PROTO_SignData [23:39:25]wFMCommunicate request_size=4 [23:39:25]MH_SAM_APDU [23:39:25]CAPDU: 80 0D 01 02 [23:39:25]Write to MH i2c: E2 08 00 BF 38 80 0D 01 02 00 00 00 00 70 [23:39:25]Write i2c OK [23:39:25]MH_I2C_Read... [23:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:25]Read from MH i2c: E2 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 03 00 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 03 00 BF 38 00 90 00 6B [23:39:25]RAPDU: 90 00 [23:39:25]wFMCommunicate OK [23:39:25]wFMCommunicate request_size=255 [23:39:25]MH_SAM_APDU [23:39:25]CAPDU: 80 0D 02 02 FA 03 00 F2 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 96 1E 00 00 00 00 13 04 06 00 96 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A7 28 00 00 00 00 13 04 06 00 A7 28 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 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 [23:39:25]Write to MH i2c: E2 02 01 C0 38 80 0D 02 02 FA 00 03 00 F2 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 96 1E 00 00 00 00 13 04 06 00 96 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A7 28 00 00 00 00 13 04 06 00 A7 28 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 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 00 00 50 [23:39:25]Write i2c OK [23:39:25]MH_I2C_Read... [23:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:25]Read from MH i2c: E2 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 03 00 [23:39:25]MH_I2C_Read... [23:39:25]Read from MH i2c: E2 03 00 C0 38 00 90 00 6C [23:39:25]RAPDU: 90 00 [23:39:25]wFMCommunicate OK [23:39:25]wFMCommunicate request_size=255 [23:39:25]MH_SAM_APDU [23:39:25]CAPDU: 80 0D 02 02 FA 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B4 DA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2A F8 00 00 35 04 06 00 90 8F 5F 85 [23:39:25]Write to MH i2c: E2 02 01 C1 38 80 0D 02 02 FA 00 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B4 DA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2A F8 00 00 35 04 06 00 90 8F 5F 85 00 00 BE [23:39:25]Write i2c OK [23:39:25]MH_I2C_Read... [23:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:26]Read from MH i2c: E2 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 03 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 03 00 C1 38 00 90 00 6D [23:39:26]RAPDU: 90 00 [23:39:26]wFMCommunicate OK [23:39:26]wFMCommunicate request_size=7 [23:39:26]MH_SAM_APDU [23:39:26]CAPDU: 80 0D 02 02 02 95 17 [23:39:26]Write to MH i2c: E2 0A 00 C2 38 80 0D 02 02 02 00 95 17 00 00 24 [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:26]Read from MH i2c: E2 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 03 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 03 00 C2 38 00 90 00 6E [23:39:26]RAPDU: 90 00 [23:39:26]wFMCommunicate OK [23:39:26]wFMCommunicate request_size=4 [23:39:26]MH_SAM_APDU [23:39:26]CAPDU: 80 0D 03 02 [23:39:26]Write to MH i2c: E2 08 00 C3 38 80 0D 03 02 00 00 00 00 76 [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:26]Read from MH i2c: E2 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 0B 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 0B 00 C3 38 00 0F D0 70 66 CF 98 CF 9E 90 00 00 [23:39:26]RAPDU: 0F D0 70 66 CF 98 CF 9E 90 00 [23:39:26]wFMCommunicate OK [23:39:26]SAM_PROTO_SignData done [23:39:26]FM_MakeSignedData done [23:39:26]CreateOFDProtocolMessage [23:39:26]wFMCommunicate request_size=4 [23:39:26]MH_SAM_APDU [23:39:26]CAPDU: 80 11 00 00 [23:39:26]Write to MH i2c: E2 08 00 C4 38 80 11 00 00 00 00 00 00 76 [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:26]Read from MH i2c: E2 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 17 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: E2 17 00 C4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CF [23:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:39:26]wFMCommunicate OK [23:39:26]CreateOFDProtocolMessage done [23:39:26]OFDSenderStorePacket 63530 [23:39:26]StoreOFDPacket docnum=63530 [23:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 06 02 00 00 9C 4B FE 01 F3 C7 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 96 1E 00 00 00 00 13 04 06 00 96 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A7 28 00 00 00 00 13 04 06 00 A7 28 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 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B4 DA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2A F8 00 00 35 04 06 00 90 8F 5F 85 95 17 0F D0 70 66 CF 98 CF 9E [23:39:26]CheckFolder [23:39:26]dirname=/storage/ofd_packets [23:39:26]CheckFolder done [23:39:26]ProducePacketName [23:39:26]name=ofd_packets/00063530 [23:39:26]NVStorageSaveData ofd_packets/00063530 [23:39:26]File name is /storage/ofd_packets/00063530 [23:39:26]Write 548 bytes [23:39:26]NVStorageSaveData done [23:39:26]OFDSenderStorePacket done [23:39:26]KKMCreateOFDPacket done [23:39:26]NVStorageSaveData kkm_last_timestamp [23:39:26]File name is /storage/kkm_last_timestamp [23:39:26]Write 4 bytes [23:39:26]NVStorageSaveData done [23:39:26]ExternCall_PrintAddStr [23:39:26]wPrintStart [23:39:26]Write to MH i2c: 01 00 00 C5 38 FD [23:39:26]Write i2c OK [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 07 00 [23:39:26]MH_I2C_Read... [23:39:26]Read from MH i2c: 01 07 00 C5 38 00 00 00 00 00 FF 0F 12 [23:39:26]RasterBufferAndPrint [23:39:26]line Счет N : (3)47836 [23:39:26]line ИНН: 02508201610067 [23:39:26]line Контрольно-Кассовый Чек [23:39:26]line ПРОДАЖА [23:39:26]line Товар: 4700000310043 [23:39:26]line Вода Жалалабат 27 1л [23:39:26]line 1.000 * 78.30 [23:39:26]line = 78.30 [23:39:26]line НДС 12% НСП 1% [23:39:26]line > о реализуемом товаре [23:39:26]line Товар: 2000034730018 [23:39:26]line Кофе Американо (GABB TRADE) [23:39:26]line 1.000 * 104.07 [23:39:26]line = 104.07 [23:39:26]line НДС 12% НСП 1% [23:39:26]line > о реализуемом товаре [23:39:26]line Товар: 2000036210013 [23:39:26]line Кофе Капучино (GABB TRADE) [23:39:26]line 1.000 * 113.98 [23:39:26]line = 113.98 [23:39:26]line НДС 12% НСП 1% [23:39:26]line > о реализуемом товаре [23:39:26]line ИТОГО: 296.35 [23:39:26]line НСП 1% : 2.62 [23:39:26]line НДС 12% : 31.46 [23:39:26]line Наличными: 0.00 [23:39:26]line Безнал.: 296.35 [23:39:26]line Место: АЗС № 86 "Партнер Нефть" [23:39:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:39:26]line СНО: Общий режим [23:39:26]line Чек 144 24.10.2024 23:39 [23:39:26]line Смена: 547 ФФД: 1.0 [23:39:26]line ЗНМ: 0300000154 [23:39:26]line РНМ: 0000000000091619 [23:39:26]line Версия ККМ: 001 [23:39:26]line Платежная система: Бакай Банк [23:39:26]line ФМ: 0000000000874676 [23:39:26]line ФД: 63530 [23:39:26]line ФПД: 158945457313047 [23:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233932&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63530&fm=158945457313047&tin=02508201610067®Number=0000000000091619&sum=29635 [23:39:26]line 0 [23:39:26]OFD Sender: Processing packet 63530 [packets to send 232, broken 231] [23:39:26]ProducePacketName [23:39:26]name=ofd_packets/00063530 [23:39:26]OFD Sender: To server: pG, [23:39:26]CommunicateWithHost lk.salyk.kg:30040 [23:39:26]ConnectInit lk.salyk.kg [23:39:26]written 0, free lines is 4095 [23:39:26]Connected sock=10 [23:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 06 02 00 00 9C 4B FE 01 F3 C7 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 96 1E 00 00 00 00 13 04 06 00 96 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A7 28 00 00 00 00 13 04 06 00 A7 28 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 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 73 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B4 DA 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2A F8 00 00 35 04 06 00 90 8F 5F 85 95 17 0F D0 70 66 CF 98 CF 9E [23:39:27]Write to MH i2c: 01 00 00 FC 38 34 [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: 01 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: 01 07 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: 01 07 00 FC 38 00 00 00 00 00 6B 0C B2 [23:39:27]RasterBufferAndPrint [23:39:27]line [23:39:27]line [23:39:27]line [23:39:27]line [23:39:27]line [23:39:27]written 0, free lines is 3188 [23:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 45 38 47 00 BC 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 34 36 37 36 10 04 04 00 2A F8 00 00 F4 03 04 00 A7 84 1A 67 B6 04 01 00 00 20 B0 EA A9 69 19 6D 27 [23:39:27]CommunicateWithHost err = 0 [23:39:27]CheckOFDResponse [23:39:27]1017 (14) - 77093643461234 [23:39:27]1041 (16) - 0000000000874676 [23:39:27]1040 (4) - 63530 [23:39:27]1012 (4) - 24.10.2024 17:32 [23:39:27]1206 (1) - 0 [23:39:27]OFD Sender: Remove packet 63530 [23:39:27]ProducePacketName [23:39:27]name=ofd_packets/00063530 [23:39:27]NVStorageDeleteData [23:39:27]MH_Cut [23:39:27]Write to MH i2c: D1 01 00 03 39 01 0E [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: D1 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: D1 01 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: D1 01 00 03 39 00 0D [23:39:27]Write to MH i2c: 01 00 00 04 39 3D [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]OFD Sender: No OFD packet to send [23:39:27]*** Cut start [23:39:27]*** Partial cut [23:39:27]*** CUTSNS_PIN = 1 [23:39:28]*** CUTSNS_PIN = 0 [23:39:28]*** Brake cut motor [23:39:28]Read from MH i2c: 01 [23:39:28]MH_I2C_Read... [23:39:28]*** Stop cut motor [23:39:28]*** Cut end [23:39:28]Read from MH i2c: 01 07 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: 01 07 00 04 39 00 00 00 00 00 FF 0F 52 [23:39:28]process_action close_receipt done [23:39:28]requested_data is exist [23:39:28]produce_requested_data [23:39:28]requested_item fm.sn is exist - process it [23:39:28]wFMCommunicate request_size=4 [23:39:28]MH_SAM_APDU [23:39:28]CAPDU: 80 11 00 00 [23:39:28]Write to MH i2c: E2 08 00 05 39 80 11 00 00 00 00 00 00 B8 [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:28]Read from MH i2c: E2 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 17 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 17 00 05 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 11 [23:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:39:28]wFMCommunicate OK [23:39:28]requested_item fd.num is exist - process it [23:39:28]SAM_PROTO_GetFieldsCounters [23:39:28]wFMCommunicate request_size=4 [23:39:28]MH_SAM_APDU [23:39:28]CAPDU: 80 13 00 00 [23:39:28]Write to MH i2c: E2 08 00 06 39 80 13 00 00 00 00 00 00 BB [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:28]Read from MH i2c: E2 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 62 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 62 00 06 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2A F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [23:39:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2A F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:39:28]wFMCommunicate OK [23:39:28]SAM_PROTO_GetFieldsCounters done [23:39:28]requested_item shift.num is exist - process it [23:39:28]requested_item shift.opened is exist - process it [23:39:28]req_shift_opened [23:39:28]FM_GetShiftState [23:39:28]SAM_PROTO_GetShiftState [23:39:28]wFMCommunicate request_size=4 [23:39:28]MH_SAM_APDU [23:39:28]CAPDU: 80 13 01 00 [23:39:28]Write to MH i2c: E2 08 00 07 39 80 13 01 00 00 00 00 00 BD [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:28]Read from MH i2c: E2 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 0E 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 0E 00 07 39 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 9E [23:39:28]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:39:28]wFMCommunicate OK [23:39:28]SAM_PROTO_GetShiftState done [23:39:28]FM_GetShiftState done [23:39:28]req_shift_opened done [23:39:28]requested_item shift.open_date is exist - process it [23:39:28]req_shift_open_date [23:39:28]req_shift_open_date done [23:39:28]produce_requested_data done [23:39:28]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63530,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [23:39:28]process_action_free close_receipt [23:39:28]json_value_free [23:39:28]json_value_free done [23:39:28]process_json_proto returns [23:39:28]Send response to host [23:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63530,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [23:39:28]free response buf [23:39:28]execute_script done [23:39:28]execute_script returns [23:39:28]free content buf [23:39:28]Sock 7.Close socket [23:39:28]Sock 7.Thread stoped [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:02]accept exits with 9 [23:46:02]New connection [23:46:02]New thread 3066490212 created [23:46:02]Thread 3066633572 joined [23:46:02]Waiting for new connection... [23:46:02] Sock 9.Parse request [23:46:02]Sock 9.Check first char [23:46:02]Sock 9.First char is OK [23:46:02]request: POST /json_proto HTTP/1.0 [23:46:02]Method: POST [23:46:02]URL: /json_proto [23:46:02]Method is POST - this is cgi request [23:46:02]url: /json_proto [23:46:02]query_string will be loaded in cgi processing [23:46:02]execute_cgi json_proto POST (null) [23:46:02]execute_cgi path=json_proto method=POST [23:46:02]POST find Content-Length [23:46:02]Host: 172.17.42.132:8080 [23:46:02]Content-Length: 619 [23:46:02]Content-Type: application/json [23:46:02] [23:46:02]POST finish read [23:46:02]Found Content-Length = 619 [23:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47837", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:02]execute_script... [23:46: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)47837", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:02]POST & json_proto [23:46:02]process_json_proto [23:46:02]json parsed OK: [23:46:02]protocol is kg_v1.0 [23:46:02]action value=close_receipt [23:46:02]process_action close_receipt [23:46:02]cmd_close_receipt [23:46:02]MH_GetDate [23:46:02]Write to MH i2c: F0 00 00 08 39 30 [23:46:02]Write i2c OK [23:46:02]MH_I2C_Read... [23:46:02]Read from MH i2c: F0 [23:46:02]MH_I2C_Read... [23:46:02]Read from MH i2c: F0 09 00 [23:46:02]MH_I2C_Read... [23:46:02]Read from MH i2c: F0 09 00 08 39 00 43 DC 1A 67 4C DF 56 66 C0 [23:46:02]GetLastDocTimeStamp 1729813172 [23:46:02]current date 1729813571 [23:46:02]FM_GetShiftState [23:46:02]SAM_PROTO_GetShiftState [23:46:02]wFMCommunicate request_size=4 [23:46:02]MH_SAM_APDU [23:46:02]CAPDU: 80 13 01 00 [23:46:02]Write to MH i2c: E2 08 00 09 39 80 13 01 00 00 00 00 00 BF [23:46:02]Write i2c OK [23:46:02]MH_I2C_Read... [23:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:02]Read from MH i2c: E2 [23:46:02]MH_I2C_Read... [23:46:02]Read from MH i2c: E2 0E 00 [23:46:02]MH_I2C_Read... [23:46:02]Read from MH i2c: E2 0E 00 09 39 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 A0 [23:46:02]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:46:02]wFMCommunicate OK [23:46:02]SAM_PROTO_GetShiftState done [23:46:02]FM_GetShiftState done [23:46:02]opened in 1729728964 [23:46:02]opened+sec_in_day 1729815364 [23:46:02]quantity*price = 13900 [23:46:02]sum+1 = 13901 [23:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 145 24.10.2024 23:46 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63531 ФПД: 133012261058951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234611&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63531&fm=133012261058951&tin=02508201610067®Number=0000000000091619&sum=13900 0 [23:46:03]StoreToDocumentArchive [23:46:03]shift 547 fd 63531 [23:46:03]save to /storage/0547/doc_00063531 [23:46:03]save last doc name /storage/0547/doc_00063531 to /storage/kkm_last_doc_name [23:46:03]save OK [23:46:03]Clear old archive folders... [23:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=272 [23:46:03]tlvbuf is 00AFB5B0 [23:46:03]SAM_PROTO_ClearQueue [23:46:03]wFMCommunicate request_size=4 [23:46:03]MH_SAM_APDU [23:46:03]CAPDU: 80 09 00 00 [23:46:03]Write to MH i2c: E2 08 00 16 39 80 09 00 00 00 00 00 00 C1 [23:46:03]Write i2c OK [23:46:03]MH_I2C_Read... [23:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:03]Read from MH i2c: E2 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 03 00 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 03 00 16 39 00 90 00 C3 [23:46:03]RAPDU: 90 00 [23:46:03]wFMCommunicate OK [23:46:03]SAM_PROTO_ClearQueue done [23:46:03]KKMCreateOFDPacket [23:46:03]OFDProtocolAddRootSTLVToBuf [23:46:03]FM_MakeSignedData [23:46:03]FM_MakeSignedData [23:46:03]SAM_PROTO_SignData [23:46:03]wFMCommunicate request_size=4 [23:46:03]MH_SAM_APDU [23:46:03]CAPDU: 80 0D 01 02 [23:46:03]Write to MH i2c: E2 08 00 17 39 80 0D 01 02 00 00 00 00 C9 [23:46:03]Write i2c OK [23:46:03]MH_I2C_Read... [23:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:03]Read from MH i2c: E2 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 03 00 [23:46:03]MH_I2C_Read... [23:46:03]Read from MH i2c: E2 03 00 17 39 00 90 00 C4 [23:46:03]RAPDU: 90 00 [23:46:03]wFMCommunicate OK [23:46:03]wFMCommunicate request_size=255 [23:46:03]MH_SAM_APDU [23:46:03]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 91 00 00 00 F4 03 04 00 43 DC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [23:46:03]Write to MH i2c: E2 02 01 18 39 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 91 00 00 00 F4 03 04 00 43 DC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 51 [23:46:04]Write i2c OK [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: E2 [23:46:04]MH_I2C_Read... [23:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:04]Read from MH i2c: E2 03 00 [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: E2 03 00 18 39 00 90 00 C5 [23:46:04]RAPDU: 90 00 [23:46:04]wFMCommunicate OK [23:46:04]wFMCommunicate request_size=31 [23:46:04]MH_SAM_APDU [23:46:04]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 2B F8 00 00 35 04 06 00 78 F9 54 92 39 87 [23:46:04]Write to MH i2c: E2 22 00 19 39 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 2B F8 00 00 35 04 06 00 78 F9 54 92 39 87 00 00 37 [23:46:04]Write i2c OK [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: E2 [23:46:04]MH_I2C_Read... [23:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:04]Read from MH i2c: E2 03 00 [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: E2 03 00 19 39 00 90 00 C6 [23:46:04]RAPDU: 90 00 [23:46:04]wFMCommunicate OK [23:46:04]wFMCommunicate request_size=4 [23:46:04]MH_SAM_APDU [23:46:04]CAPDU: 80 0D 03 02 [23:46:04]Write to MH i2c: E2 08 00 1A 39 80 0D 03 02 00 00 00 00 CE [23:46:04]Write i2c OK [23:46:04]MH_I2C_Read... [23:46:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:04]Read from MH i2c: E2 [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: E2 0B 00 [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: E2 0B 00 1A 39 00 5E E7 19 49 FA 7B 8B 03 90 00 79 [23:46:04]RAPDU: 5E E7 19 49 FA 7B 8B 03 90 00 [23:46:04]wFMCommunicate OK [23:46:04]SAM_PROTO_SignData done [23:46:04]FM_MakeSignedData done [23:46:04]CreateOFDProtocolMessage [23:46:04]wFMCommunicate request_size=4 [23:46:04]MH_SAM_APDU [23:46:04]CAPDU: 80 11 00 00 [23:46:04]Write to MH i2c: E2 08 00 1B 39 80 11 00 00 00 00 00 00 CE [23:46:04]Write i2c OK [23:46:04]MH_I2C_Read... [23:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:04]Read from MH i2c: E2 [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: E2 17 00 [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: E2 17 00 1B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 27 [23:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:46:04]wFMCommunicate OK [23:46:04]CreateOFDProtocolMessage done [23:46:04]OFDSenderStorePacket 63531 [23:46:04]StoreOFDPacket docnum=63531 [23:46:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 FB D9 1C 01 D7 48 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 91 00 00 00 F4 03 04 00 43 DC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2B F8 00 00 35 04 06 00 78 F9 54 92 39 87 5E E7 19 49 FA 7B 8B 03 [23:46:04]CheckFolder [23:46:04]dirname=/storage/ofd_packets [23:46:04]CheckFolder done [23:46:04]ProducePacketName [23:46:04]name=ofd_packets/00063531 [23:46:04]NVStorageSaveData ofd_packets/00063531 [23:46:04]File name is /storage/ofd_packets/00063531 [23:46:04]Write 322 bytes [23:46:04]NVStorageSaveData done [23:46:04]OFDSenderStorePacket done [23:46:04]KKMCreateOFDPacket done [23:46:04]NVStorageSaveData kkm_last_timestamp [23:46:04]File name is /storage/kkm_last_timestamp [23:46:04]Write 4 bytes [23:46:04]NVStorageSaveData done [23:46:04]ExternCall_PrintAddStr [23:46:04]wPrintStart [23:46:04]Write to MH i2c: 01 00 00 1C 39 55 [23:46:04]Write i2c OK [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: 01 [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: 01 07 00 [23:46:04]MH_I2C_Read... [23:46:04]Read from MH i2c: 01 07 00 1C 39 00 00 00 00 00 FF 0F 6A [23:46:04]RasterBufferAndPrint [23:46:04]line Счет N : (3)47837 [23:46:04]line ИНН: 02508201610067 [23:46:04]line Контрольно-Кассовый Чек [23:46:04]line ПРОДАЖА [23:46:04]line Товар: 48745000 [23:46:04]line Сигареты Winston Purple Mix [23:46:04]line 1.000 * 139.00 [23:46:04]line = 139.00 [23:46:04]line НДС 12% НСП 1% [23:46:04]line > о реализуемом товаре [23:46:04]line ИТОГО: 139.00 [23:46:04]line НСП 1% : 1.23 [23:46:04]line НДС 12% : 14.76 [23:46:04]line Наличными: 139.00 [23:46:04]line Безнал.: 0.00 [23:46:04]line Место: АЗС № 86 "Партнер Нефть" [23:46:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:46:04]line СНО: Общий режим [23:46:04]line Чек 145 24.10.2024 23:46 [23:46:04]line Смена: 547 ФФД: 1.0 [23:46:04]line ЗНМ: 0300000154 [23:46:04]line РНМ: 0000000000091619 [23:46:04]line Версия ККМ: 001 [23:46:04]line ФМ: 0000000000874676 [23:46:04]line ФД: 63531 [23:46:04]line ФПД: 133012261058951 [23:46:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234611&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63531&fm=133012261058951&tin=02508201610067®Number=0000000000091619&sum=13900 [23:46:04]OFD Sender: Processing packet 63531 [packets to send 232, broken 231] [23:46:04]ProducePacketName [23:46:04]name=ofd_packets/00063531 [23:46:04]OFD Sender: To server: pG, [23:46:04]CommunicateWithHost lk.salyk.kg:30040 [23:46:04]ConnectInit lk.salyk.kg [23:46:04]line 0 [23:46:04]written 0, free lines is 4095 [23:46:05]Connected sock=10 [23:46:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 FB D9 1C 01 D7 48 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 91 00 00 00 F4 03 04 00 43 DC 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2B F8 00 00 35 04 06 00 78 F9 54 92 39 87 5E E7 19 49 FA 7B 8B 03 [23:46:05]Write to MH i2c: 01 00 00 44 39 7D [23:46:05]Write i2c OK [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: 01 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: 01 07 00 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: 01 07 00 44 39 00 00 00 00 00 0B 0D 9C [23:46:05]RasterBufferAndPrint [23:46:05]line [23:46:05]line [23:46:05]line [23:46:05]line [23:46:05]line [23:46:05]written 0, free lines is 3345 [23:46:05]MH_Cut [23:46:05]Write to MH i2c: D1 01 00 4B 39 01 56 [23:46:05]Write i2c OK [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: D1 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: D1 01 00 [23:46:05]MH_I2C_Read... [23:46:05]Read from MH i2c: D1 01 00 4B 39 00 55 [23:46:05]Write to MH i2c: 01 00 00 4C 39 85 [23:46:05]Write i2c OK [23:46:05]MH_I2C_Read... [23:46:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 4C C2 47 00 A8 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2B F8 00 00 F4 03 04 00 36 86 1A 67 B6 04 01 00 00 C0 47 11 B3 D6 87 19 75 [23:46:05]CommunicateWithHost err = 0 [23:46:05]CheckOFDResponse [23:46:05]1017 (14) - 77093643461234 [23:46:05]1041 (16) - 0000000000874676 [23:46:05]1040 (4) - 63531 [23:46:05]1012 (4) - 24.10.2024 17:39 [23:46:05]1206 (1) - 0 [23:46:05]OFD Sender: Remove packet 63531 [23:46:05]ProducePacketName [23:46:05]name=ofd_packets/00063531 [23:46:05]NVStorageDeleteData [23:46:05]*** Cut start [23:46:05]*** Partial cut [23:46:05]*** CUTSNS_PIN = 1 [23:46:05]OFD Sender: No OFD packet to send [23:46:05]*** CUTSNS_PIN = 0 [23:46:06]*** Brake cut motor [23:46:06]Read from MH i2c: 01 [23:46:06]MH_I2C_Read... [23:46:06]*** Stop cut motor [23:46:06]*** Cut end [23:46:06]Read from MH i2c: 01 07 00 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: 01 07 00 4C 39 00 00 00 00 00 FF 0F 9A [23:46:06]process_action close_receipt done [23:46:06]requested_data is exist [23:46:06]produce_requested_data [23:46:06]requested_item fm.sn is exist - process it [23:46:06]wFMCommunicate request_size=4 [23:46:06]MH_SAM_APDU [23:46:06]CAPDU: 80 11 00 00 [23:46:06]Write to MH i2c: E2 08 00 4D 39 80 11 00 00 00 00 00 00 00 [23:46:06]Write i2c OK [23:46:06]MH_I2C_Read... [23:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:06]Read from MH i2c: E2 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 17 00 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 17 00 4D 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 59 [23:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:46:06]wFMCommunicate OK [23:46:06]requested_item fd.num is exist - process it [23:46:06]SAM_PROTO_GetFieldsCounters [23:46:06]wFMCommunicate request_size=4 [23:46:06]MH_SAM_APDU [23:46:06]CAPDU: 80 13 00 00 [23:46:06]Write to MH i2c: E2 08 00 4E 39 80 13 00 00 00 00 00 00 03 [23:46:06]Write i2c OK [23:46:06]MH_I2C_Read... [23:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:06]Read from MH i2c: E2 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 62 00 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 62 00 4E 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2B F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [23:46:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2B F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:06]wFMCommunicate OK [23:46:06]SAM_PROTO_GetFieldsCounters done [23:46:06]requested_item shift.num is exist - process it [23:46:06]requested_item shift.opened is exist - process it [23:46:06]req_shift_opened [23:46:06]FM_GetShiftState [23:46:06]SAM_PROTO_GetShiftState [23:46:06]wFMCommunicate request_size=4 [23:46:06]MH_SAM_APDU [23:46:06]CAPDU: 80 13 01 00 [23:46:06]Write to MH i2c: E2 08 00 4F 39 80 13 01 00 00 00 00 00 05 [23:46:06]Write i2c OK [23:46:06]MH_I2C_Read... [23:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:06]Read from MH i2c: E2 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 0E 00 [23:46:06]MH_I2C_Read... [23:46:06]Read from MH i2c: E2 0E 00 4F 39 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 E6 [23:46:06]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [23:46:06]wFMCommunicate OK [23:46:06]SAM_PROTO_GetShiftState done [23:46:06]FM_GetShiftState done [23:46:06]req_shift_opened done [23:46:06]requested_item shift.open_date is exist - process it [23:46:06]req_shift_open_date [23:46:06]req_shift_open_date done [23:46:06]produce_requested_data done [23:46:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63531,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [23:46:06]process_action_free close_receipt [23:46:06]json_value_free [23:46:06]json_value_free done [23:46:06]process_json_proto returns [23:46:06]Send response to host [23:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63531,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [23:46:06]free response buf [23:46:06]execute_script done [23:46:06]execute_script returns [23:46:06]free content buf [23:46:06]Sock 9.Close socket [23:46:06]Sock 9.Thread stoped [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]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 7 [23:49:27]New connection [23:49:27]New thread 3066633572 created [23:49:27]Thread 3066490212 joined [23:49:27]Waiting for new connection... [23:49:27] Sock 7.Parse request [23:49:27]Sock 7.Check first char [23:49:27]Sock 7.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.42.132:8080 [23:49:27]Content-Length: 625 [23:49:27]Content-Type: application/json [23:49:27] [23:49:27]POST finish read [23:49:27]Found Content-Length = 625 [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)47838", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.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)47838", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.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 50 39 78 [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 50 39 00 10 DD 1A 67 4C DF 56 66 D6 [23:49:27]GetLastDocTimeStamp 1729813571 [23:49:27]current date 1729813776 [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 51 39 80 13 01 00 00 00 00 00 07 [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 51 39 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 E8 [23:49:27]RAPDU: 09 00 01 C4 91 19 67 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 1729728964 [23:49:27]opened+sec_in_day 1729815364 [23:49:27]quantity*price = 15900 [23:49:27]sum+1 = 15901 [23:49:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 146 24.10.2024 23:49 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63532 ФПД: 215112550790606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234936&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63532&fm=215112550790606&tin=02508201610067®Number=0000000000091619&sum=15900 0 [23:49:28]StoreToDocumentArchive [23:49:28]shift 547 fd 63532 [23:49:28]save to /storage/0547/doc_00063532 [23:49:28]save last doc name /storage/0547/doc_00063532 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=278 [23:49:28]tlvbuf is 00C41080 [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 5E 39 80 09 00 00 00 00 00 00 09 [23:49:28]Write i2c OK [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 [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 5E 39 00 90 00 0B [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 5F 39 80 0D 01 02 00 00 00 00 11 [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 5F 39 00 90 00 0C [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 16 01 1E 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 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 92 00 00 00 F4 03 04 00 10 DD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [23:49:28]Write to MH i2c: E2 02 01 60 39 80 0D 02 02 FA 00 03 00 16 01 1E 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 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 92 00 00 00 F4 03 04 00 10 DD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 00 00 63 [23:49:28]Write i2c OK [23:49:28]MH_I2C_Read... [23:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:29]Read from MH i2c: E2 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 03 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 03 00 60 39 00 90 00 0D [23:49:29]RAPDU: 90 00 [23:49:29]wFMCommunicate OK [23:49:29]wFMCommunicate request_size=37 [23:49:29]MH_SAM_APDU [23:49:29]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2C F8 00 00 35 04 06 00 C3 A4 CB 2D 35 CE [23:49:29]Write to MH i2c: E2 28 00 61 39 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2C F8 00 00 35 04 06 00 C3 A4 CB 2D 35 CE 00 00 F7 [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:29]Read from MH i2c: E2 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 03 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 03 00 61 39 00 90 00 0E [23:49:29]RAPDU: 90 00 [23:49:29]wFMCommunicate OK [23:49:29]wFMCommunicate request_size=4 [23:49:29]MH_SAM_APDU [23:49:29]CAPDU: 80 0D 03 02 [23:49:29]Write to MH i2c: E2 08 00 62 39 80 0D 03 02 00 00 00 00 16 [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:29]Read from MH i2c: E2 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 0B 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 0B 00 62 39 00 74 C4 BD DA C3 5C 91 EC 90 00 82 [23:49:29]RAPDU: 74 C4 BD DA C3 5C 91 EC 90 00 [23:49:29]wFMCommunicate OK [23:49:29]SAM_PROTO_SignData done [23:49:29]FM_MakeSignedData done [23:49:29]CreateOFDProtocolMessage [23:49:29]wFMCommunicate request_size=4 [23:49:29]MH_SAM_APDU [23:49:29]CAPDU: 80 11 00 00 [23:49:29]Write to MH i2c: E2 08 00 63 39 80 11 00 00 00 00 00 00 16 [23:49:29]Write i2c OK [23:49:29]MH_I2C_Read... [23:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:29]Read from MH i2c: E2 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 17 00 [23:49:29]MH_I2C_Read... [23:49:29]Read from MH i2c: E2 17 00 63 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6F [23:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:49:29]wFMCommunicate OK [23:49:29]CreateOFDProtocolMessage done [23:49:29]OFDSenderStorePacket 63532 [23:49:29]StoreOFDPacket docnum=63532 [23:49:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 5F 16 22 01 4A D3 5A 03 01 00 03 00 16 01 1E 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 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 92 00 00 00 F4 03 04 00 10 DD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2C F8 00 00 35 04 06 00 C3 A4 CB 2D 35 CE 74 C4 BD DA C3 5C 91 EC [23:49:29]CheckFolder [23:49:29]dirname=/storage/ofd_packets [23:49:29]CheckFolder done [23:49:29]ProducePacketName [23:49:29]name=ofd_packets/00063532 [23:49:29]NVStorageSaveData ofd_packets/00063532 [23:49:29]File name is /storage/ofd_packets/00063532 [23:49:29]Write 328 bytes [23:49:29]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 64 39 9D [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 64 39 00 00 00 00 00 FF 0F B2 [23:49:29]RasterBufferAndPrint [23:49:29]line Счет N : (3)47838 [23:49:29]line ИНН: 02508201610067 [23:49:29]line Контрольно-Кассовый Чек [23:49:29]line ПРОДАЖА [23:49:29]line Товар: 48745895 [23:49:29]line Сигареты RICHMOND KS GOLD EDITION [23:49:29]line 1.000 * 159.00 [23:49:29]line = 159.00 [23:49:29]line НДС 12% НСП 1% [23:49:29]line > о реализуемом товаре [23:49:29]line ИТОГО: 159.00 [23:49:29]line НСП 1% : 1.41 [23:49:29]line НДС 12% : 16.88 [23:49:29]line Наличными: 159.00 [23:49:29]line Безнал.: 0.00 [23:49:29]line Место: АЗС № 86 "Партнер Нефть" [23:49:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:49:29]line СНО: Общий режим [23:49:29]line Чек 146 24.10.2024 23:49 [23:49:29]line Смена: 547 ФФД: 1.0 [23:49:29]line ЗНМ: 0300000154 [23:49:29]line РНМ: 0000000000091619 [23:49:29]line Версия ККМ: 001 [23:49:29]line ФМ: 0000000000874676 [23:49:29]line ФД: 63532 [23:49:29]line ФПД: 215112550790606 [23:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234936&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63532&fm=215112550790606&tin=02508201610067®Number=0000000000091619&sum=15900 [23:49:29]OFD Sender: Processing packet 63532 [packets to send 232, broken 231] [23:49:29]ProducePacketName [23:49:29]name=ofd_packets/00063532 [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]line 0 [23:49:29]written 0, free lines is 4095 [23:49:30]Connected sock=11 [23:49:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 5F 16 22 01 4A D3 5A 03 01 00 03 00 16 01 1E 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 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 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 92 00 00 00 F4 03 04 00 10 DD 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2C F8 00 00 35 04 06 00 C3 A4 CB 2D 35 CE 74 C4 BD DA C3 5C 91 EC [23:49:30]Write to MH i2c: 01 00 00 8D 39 C6 [23:49:30]Write i2c OK [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: 01 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: 01 07 00 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: 01 07 00 8D 39 00 00 00 00 00 02 0D DC [23:49:30]RasterBufferAndPrint [23:49:30]line [23:49:30]line [23:49:30]line [23:49:30]line [23:49:30]line [23:49:30]written 0, free lines is 3336 [23:49:30]MH_Cut [23:49:30]Write to MH i2c: D1 01 00 94 39 01 9F [23:49:30]Write i2c OK [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: D1 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: D1 01 00 [23:49:30]MH_I2C_Read... [23:49:30]Read from MH i2c: D1 01 00 94 39 00 9E [23:49:30]Write to MH i2c: 01 00 00 95 39 CE [23:49:30]Write i2c OK [23:49:30]MH_I2C_Read... [23:49:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 3F B2 47 00 BA 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 34 36 37 36 10 04 04 00 2C F8 00 00 F4 03 04 00 03 87 1A 67 B6 04 01 00 00 F1 E8 C0 B6 CF 1F B0 C8 [23:49:30]CommunicateWithHost err = 0 [23:49:30]CheckOFDResponse [23:49:30]1017 (14) - 77093643461234 [23:49:30]1041 (16) - 0000000000874676 [23:49:30]1040 (4) - 63532 [23:49:30]1012 (4) - 24.10.2024 17:42 [23:49:30]1206 (1) - 0 [23:49:30]OFD Sender: Remove packet 63532 [23:49:30]ProducePacketName [23:49:30]name=ofd_packets/00063532 [23:49:30]NVStorageDeleteData [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]OFD Sender: No OFD packet to send [23:49:31]*** 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 95 39 00 00 00 00 00 FF 0F E3 [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 96 39 80 11 00 00 00 00 00 00 49 [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 96 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A2 [23:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 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 97 39 80 13 00 00 00 00 00 00 4C [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 97 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2C F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2C F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 98 39 80 13 01 00 00 00 00 00 4E [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 98 39 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 2F [23:49:31]RAPDU: 09 00 01 C4 91 19 67 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":"0000000000874676","fd.num":63532,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [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":"0000000000874676","fd.num":63532,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [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 7.Close socket [23:49:31]Sock 7.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:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]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:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:13]accept exits with 9 [00:01:13]New connection [00:01:13]New thread 3066490212 created [00:01:13]Thread 3066633572 joined [00:01:13]Waiting for new connection... [00:01:13] Sock 9.Parse request [00:01:13]Sock 9.Check first char [00:01:13]Sock 9.First char is OK [00:01:13]request: POST /json_proto HTTP/1.0 [00:01:13]Method: POST [00:01:13]URL: /json_proto [00:01:13]Method is POST - this is cgi request [00:01:13]url: /json_proto [00:01:13]query_string will be loaded in cgi processing [00:01:13]execute_cgi json_proto POST (null) [00:01:13]execute_cgi path=json_proto method=POST [00:01:13]POST find Content-Length [00:01:13]Host: 172.17.42.132:8080 [00:01:13]Content-Length: 655 [00:01:13]Content-Type: application/json [00:01:13] [00:01:13]POST finish read [00:01:13]Found Content-Length = 655 [00:01:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47839", "tax_sys" : 0, "items" : [ { "code": "2587136579566", "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 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:13]execute_script... [00:01: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)47839", "tax_sys" : 0, "items" : [ { "code": "2587136579566", "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 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:13]POST & json_proto [00:01:13]process_json_proto [00:01:13]json parsed OK: [00:01:13]protocol is kg_v1.0 [00:01:13]action value=close_receipt [00:01:13]process_action close_receipt [00:01:13]cmd_close_receipt [00:01:13]MH_GetDate [00:01:13]Write to MH i2c: F0 00 00 99 39 C1 [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: F0 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: F0 09 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: F0 09 00 99 39 00 D1 DF 1A 67 4C DF 56 66 E2 [00:01:13]GetLastDocTimeStamp 1729813776 [00:01:13]current date 1729814481 [00:01:13]FM_GetShiftState [00:01:13]SAM_PROTO_GetShiftState [00:01:13]wFMCommunicate request_size=4 [00:01:13]MH_SAM_APDU [00:01:13]CAPDU: 80 13 01 00 [00:01:13]Write to MH i2c: E2 08 00 9A 39 80 13 01 00 00 00 00 00 50 [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:13]Read from MH i2c: E2 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 0E 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 0E 00 9A 39 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 31 [00:01:13]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [00:01:13]wFMCommunicate OK [00:01:13]SAM_PROTO_GetShiftState done [00:01:13]FM_GetShiftState done [00:01:13]opened in 1729728964 [00:01:13]opened+sec_in_day 1729815364 [00:01:13]quantity*price = 400 [00:01:13]sum+1 = 401 [00:01:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 147 25.10.2024 00:01 Смена: 547 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63533 ФПД: 201615173886228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000122&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63533&fm=201615173886228&tin=02508201610067®Number=0000000000091619&sum=400 0 [00:01:14]StoreToDocumentArchive [00:01:14]shift 547 fd 63533 [00:01:14]save to /storage/0547/doc_00063533 [00:01:14]save last doc name /storage/0547/doc_00063533 to /storage/kkm_last_doc_name [00:01:14]save OK [00:01:14]Clear old archive folders... [00:01:14]ProcessDocumentItem done err = 0, tmpTLVsize=278 [00:01:14]tlvbuf is 00BA6C20 [00:01:14]SAM_PROTO_ClearQueue [00:01:14]wFMCommunicate request_size=4 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 09 00 00 [00:01:14]Write to MH i2c: E2 08 00 A7 39 80 09 00 00 00 00 00 00 52 [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:14]Read from MH i2c: E2 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 03 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 03 00 A7 39 00 90 00 54 [00:01:14]RAPDU: 90 00 [00:01:14]wFMCommunicate OK [00:01:14]SAM_PROTO_ClearQueue done [00:01:14]KKMCreateOFDPacket [00:01:14]OFDProtocolAddRootSTLVToBuf [00:01:14]FM_MakeSignedData [00:01:14]FM_MakeSignedData [00:01:14]SAM_PROTO_SignData [00:01:14]wFMCommunicate request_size=4 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 0D 01 02 [00:01:14]Write to MH i2c: E2 08 00 A8 39 80 0D 01 02 00 00 00 00 5A [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:14]Read from MH i2c: E2 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 03 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 03 00 A8 39 00 90 00 55 [00:01:14]RAPDU: 90 00 [00:01:14]wFMCommunicate OK [00:01:14]wFMCommunicate request_size=255 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 35 38 37 31 33 36 35 37 39 35 36 36 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D2 DF 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [00:01:14]Write to MH i2c: E2 02 01 A9 39 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 35 38 37 31 33 36 35 37 39 35 36 36 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D2 DF 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 00 00 AC [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:15]Read from MH i2c: E2 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 03 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 03 00 A9 39 00 90 00 56 [00:01:15]RAPDU: 90 00 [00:01:15]wFMCommunicate OK [00:01:15]wFMCommunicate request_size=37 [00:01:15]MH_SAM_APDU [00:01:15]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2D F8 00 00 35 04 06 00 B7 5E 30 D2 21 14 [00:01:15]Write to MH i2c: E2 28 00 AA 39 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2D F8 00 00 35 04 06 00 B7 5E 30 D2 21 14 00 00 2B [00:01:15]Write i2c OK [00:01:15]MH_I2C_Read... [00:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:15]Read from MH i2c: E2 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 03 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 03 00 AA 39 00 90 00 57 [00:01:15]RAPDU: 90 00 [00:01:15]wFMCommunicate OK [00:01:15]wFMCommunicate request_size=4 [00:01:15]MH_SAM_APDU [00:01:15]CAPDU: 80 0D 03 02 [00:01:15]Write to MH i2c: E2 08 00 AB 39 80 0D 03 02 00 00 00 00 5F [00:01:15]Write i2c OK [00:01:15]MH_I2C_Read... [00:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:15]Read from MH i2c: E2 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 0B 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 0B 00 AB 39 00 7B D4 1A 35 17 B4 98 40 90 00 A1 [00:01:15]RAPDU: 7B D4 1A 35 17 B4 98 40 90 00 [00:01:15]wFMCommunicate OK [00:01:15]SAM_PROTO_SignData done [00:01:15]FM_MakeSignedData done [00:01:15]CreateOFDProtocolMessage [00:01:15]wFMCommunicate request_size=4 [00:01:15]MH_SAM_APDU [00:01:15]CAPDU: 80 11 00 00 [00:01:15]Write to MH i2c: E2 08 00 AC 39 80 11 00 00 00 00 00 00 5F [00:01:15]Write i2c OK [00:01:15]MH_I2C_Read... [00:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:15]Read from MH i2c: E2 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 17 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 17 00 AC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B8 [00:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:01:15]wFMCommunicate OK [00:01:15]CreateOFDProtocolMessage done [00:01:15]OFDSenderStorePacket 63533 [00:01:15]StoreOFDPacket docnum=63533 [00:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 C2 BB 22 01 FA DC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 35 38 37 31 33 36 35 37 39 35 36 36 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D2 DF 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2D F8 00 00 35 04 06 00 B7 5E 30 D2 21 14 7B D4 1A 35 17 B4 98 40 [00:01:15]CheckFolder [00:01:15]dirname=/storage/ofd_packets [00:01:15]CheckFolder done [00:01:15]ProducePacketName [00:01:15]name=ofd_packets/00063533 [00:01:15]NVStorageSaveData ofd_packets/00063533 [00:01:15]File name is /storage/ofd_packets/00063533 [00:01:15]Write 328 bytes [00:01:15]NVStorageSaveData done [00:01:15]OFDSenderStorePacket done [00:01:15]KKMCreateOFDPacket done [00:01:15]NVStorageSaveData kkm_last_timestamp [00:01:15]File name is /storage/kkm_last_timestamp [00:01:15]Write 4 bytes [00:01:15]NVStorageSaveData done [00:01:15]ExternCall_PrintAddStr [00:01:15]wPrintStart [00:01:15]Write to MH i2c: 01 00 00 AD 39 E6 [00:01:15]Write i2c OK [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: 01 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: 01 07 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: 01 07 00 AD 39 00 00 00 00 00 FF 0F FB [00:01:15]RasterBufferAndPrint [00:01:15]line Счет N : (3)47839 [00:01:15]line ИНН: 02508201610067 [00:01:15]line Контрольно-Кассовый Чек [00:01:15]line ПРОДАЖА [00:01:15]line Товар: 2587136579566 [00:01:15]line Пакет Партнер Нефть [00:01:15]line 1.000 * 4.00 [00:01:15]line = 4.00 [00:01:15]line НДС 12% НСП 1% [00:01:15]line > о реализуемом товаре [00:01:15]line ИТОГО: 4.00 [00:01:15]line НСП 1% : 0.03 [00:01:15]line НДС 12% : 0.42 [00:01:15]line Наличными: 4.00 [00:01:15]line Безнал.: 0.00 [00:01:15]line Место: АЗС № 86 "Партнер Нефть" [00:01:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:01:15]line СНО: Общий режим [00:01:15]line Чек 147 25.10.2024 00:01 [00:01:15]line Смена: 547 ФФД: 1.0 [00:01:15]line ЗНМ: 0300000154 [00:01:15]line РНМ: 0000000000091619 [00:01:15]line Версия ККМ: 001 [00:01:15]line ФМ: 0000000000874676 [00:01:15]line ФД: 63533 [00:01:15]line ФПД: 201615173886228 [00:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000122&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63533&fm=201615173886228&tin=02508201610067®Number=0000000000091619&sum=400 [00:01:15]OFD Sender: Processing packet 63533 [packets to send 232, broken 231] [00:01:15]ProducePacketName [00:01:15]name=ofd_packets/00063533 [00:01:15]OFD Sender: To server: pG, [00:01:15]CommunicateWithHost lk.salyk.kg:30040 [00:01:15]ConnectInit lk.salyk.kg [00:01:15]line 0 [00:01:15]written 0, free lines is 4095 [00:01:15]Connected sock=11 [00:01:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 C2 BB 22 01 FA DC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 35 38 37 31 33 36 35 37 39 35 36 36 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D2 DF 1A 67 0E 04 04 00 23 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2D F8 00 00 35 04 06 00 B7 5E 30 D2 21 14 7B D4 1A 35 17 B4 98 40 [00:01:16]Write to MH i2c: 01 00 00 D5 39 0E [00:01:16]Write i2c OK [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: 01 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: 01 07 00 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: 01 07 00 D5 39 00 00 00 00 00 1E 0D 40 [00:01:16]RasterBufferAndPrint [00:01:16]line [00:01:16]line [00:01:16]line [00:01:16]line [00:01:16]line [00:01:16]written 0, free lines is 3363 [00:01:16]MH_Cut [00:01:16]Write to MH i2c: D1 01 00 DC 39 01 E7 [00:01:16]Write i2c OK [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: D1 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: D1 01 00 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: D1 01 00 DC 39 00 E6 [00:01:16]Write to MH i2c: 01 00 00 DD 39 16 [00:01:16]Write i2c OK [00:01:16]MH_I2C_Read... [00:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 71 39 47 00 78 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2D F8 00 00 F4 03 04 00 C5 89 1A 67 B6 04 01 00 00 CE B7 27 2D 8E 04 B2 F7 [00:01:16]CommunicateWithHost err = 0 [00:01:16]CheckOFDResponse [00:01:16]1017 (14) - 77093643461234 [00:01:16]1041 (16) - 0000000000874676 [00:01:16]1040 (4) - 63533 [00:01:16]1012 (4) - 24.10.2024 17:54 [00:01:16]1206 (1) - 0 [00:01:16]OFD Sender: Remove packet 63533 [00:01:16]ProducePacketName [00:01:16]name=ofd_packets/00063533 [00:01:16]NVStorageDeleteData [00:01:16]*** Cut start [00:01:16]*** Partial cut [00:01:16]*** CUTSNS_PIN = 1 [00:01:16]*** CUTSNS_PIN = 0 [00:01:16]OFD Sender: No OFD packet to send [00:01:17]*** Brake cut motor [00:01:17]Read from MH i2c: 01 [00:01:17]MH_I2C_Read... [00:01:17]*** Stop cut motor [00:01:17]*** Cut end [00:01:17]Read from MH i2c: 01 07 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: 01 07 00 DD 39 00 00 00 00 00 FF 0F 2B [00:01:17]process_action close_receipt done [00:01:17]requested_data is exist [00:01:17]produce_requested_data [00:01:17]requested_item fm.sn is exist - process it [00:01:17]wFMCommunicate request_size=4 [00:01:17]MH_SAM_APDU [00:01:17]CAPDU: 80 11 00 00 [00:01:17]Write to MH i2c: E2 08 00 DE 39 80 11 00 00 00 00 00 00 91 [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:17]Read from MH i2c: E2 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 17 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 17 00 DE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EA [00:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:01:17]wFMCommunicate OK [00:01:17]requested_item fd.num is exist - process it [00:01:17]SAM_PROTO_GetFieldsCounters [00:01:17]wFMCommunicate request_size=4 [00:01:17]MH_SAM_APDU [00:01:17]CAPDU: 80 13 00 00 [00:01:17]Write to MH i2c: E2 08 00 DF 39 80 13 00 00 00 00 00 00 94 [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:17]Read from MH i2c: E2 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 62 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 62 00 DF 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [00:01:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:17]wFMCommunicate OK [00:01:17]SAM_PROTO_GetFieldsCounters done [00:01:17]requested_item shift.num is exist - process it [00:01:17]requested_item shift.opened is exist - process it [00:01:17]req_shift_opened [00:01:17]FM_GetShiftState [00:01:17]SAM_PROTO_GetShiftState [00:01:17]wFMCommunicate request_size=4 [00:01:17]MH_SAM_APDU [00:01:17]CAPDU: 80 13 01 00 [00:01:17]Write to MH i2c: E2 08 00 E0 39 80 13 01 00 00 00 00 00 96 [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:17]Read from MH i2c: E2 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 0E 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 0E 00 E0 39 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 77 [00:01:17]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [00:01:17]wFMCommunicate OK [00:01:17]SAM_PROTO_GetShiftState done [00:01:17]FM_GetShiftState done [00:01:17]req_shift_opened done [00:01:17]requested_item shift.open_date is exist - process it [00:01:17]req_shift_open_date [00:01:17]req_shift_open_date done [00:01:17]produce_requested_data done [00:01:17]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63533,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [00:01:17]process_action_free close_receipt [00:01:17]json_value_free [00:01:17]json_value_free done [00:01:17]process_json_proto returns [00:01:17]Send response to host [00:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63533,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [00:01:17]free response buf [00:01:17]execute_script done [00:01:17]execute_script returns [00:01:17]free content buf [00:01:17]Sock 9.Close socket [00:01:17]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]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:06]accept exits with 7 [00:07:06]New connection [00:07:06]New thread 3066633572 created [00:07:06]Thread 3066490212 joined [00:07:06]Waiting for new connection... [00:07:06] Sock 7.Parse request [00:07:06]Sock 7.Check first char [00:07:06]Sock 7.First char is OK [00:07:06]request: POST /json_proto HTTP/1.0 [00:07:06]Method: POST [00:07:06]URL: /json_proto [00:07:06]Method is POST - this is cgi request [00:07:06]url: /json_proto [00:07:06]query_string will be loaded in cgi processing [00:07:06]execute_cgi json_proto POST (null) [00:07:06]execute_cgi path=json_proto method=POST [00:07:06]POST find Content-Length [00:07:06]Host: 172.17.42.132:8080 [00:07:06]Content-Length: 215 [00:07:06]Content-Type: application/json [00:07:06] [00:07:06]POST finish read [00:07:06]Found Content-Length = 215 [00:07:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:06]execute_script... [00:07:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:06]POST & json_proto [00:07:06]process_json_proto [00:07:06]json parsed OK: [00:07:06]protocol is kg_v1.0 [00:07:06]action value=get_value [00:07:06]process_action get_value [00:07:06]cmd_get_value [00:07:06]process_action get_value done [00:07:06]requested_data is exist [00:07:06]produce_requested_data [00:07:06]requested_item kkm.sn is exist - process it [00:07:06]requested_item kkm.ver is exist - process it [00:07:06]requested_item fm.sn is exist - process it [00:07:06]wFMCommunicate request_size=4 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 11 00 00 [00:07:06]Write to MH i2c: E2 08 00 E1 39 80 11 00 00 00 00 00 00 94 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 17 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 17 00 E1 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 ED [00:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:07:06]wFMCommunicate OK [00:07:06]requested_item fd.num is exist - process it [00:07:06]SAM_PROTO_GetFieldsCounters [00:07:06]wFMCommunicate request_size=4 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 13 00 00 [00:07:06]Write to MH i2c: E2 08 00 E2 39 80 13 00 00 00 00 00 00 97 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 62 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 62 00 E2 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [00:07:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_GetFieldsCounters done [00:07:07]requested_item shift.num is exist - process it [00:07:07]requested_item shift.opened is exist - process it [00:07:07]req_shift_opened [00:07:07]FM_GetShiftState [00:07:07]SAM_PROTO_GetShiftState [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 13 01 00 [00:07:07]Write to MH i2c: E2 08 00 E3 39 80 13 01 00 00 00 00 00 99 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 0E 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 0E 00 E3 39 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 7A [00:07:07]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [00:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_GetShiftState done [00:07:07]FM_GetShiftState done [00:07:07]req_shift_opened done [00:07:07]requested_item shift.open_date is exist - process it [00:07:07]req_shift_open_date [00:07:07]req_shift_open_date done [00:07:07]produce_requested_data done [00:07:07]produce_requested_data return {"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63533,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [00:07:07]process_action_free get_value [00:07:07]json_value_free [00:07:07]json_value_free done [00:07:07]process_json_proto returns [00:07:07]Send response to host [00:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63533,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [00:07:07]free response buf [00:07:07]execute_script done [00:07:07]execute_script returns [00:07:07]free content buf [00:07:07]Sock 7.Close socket [00:07:07]Sock 7.Thread stoped [00:07:07]accept exits with 9 [00:07:07]New connection [00:07:07]New thread 3066490212 created [00:07:07]Thread 3066633572 joined [00:07:07]Waiting for new connection... [00:07:07] Sock 9.Parse request [00:07:07]Sock 9.Check first char [00:07:07]Sock 9.First char is OK [00:07:07]request: POST /json_proto HTTP/1.0 [00:07:07]Method: POST [00:07:07]URL: /json_proto [00:07:07]Method is POST - this is cgi request [00:07:07]url: /json_proto [00:07:07]query_string will be loaded in cgi processing [00:07:07]execute_cgi json_proto POST (null) [00:07:07]execute_cgi path=json_proto method=POST [00:07:07]POST find Content-Length [00:07:07]Host: 172.17.42.132:8080 [00:07:07]Content-Length: 331 [00:07:07]Content-Type: application/json [00:07:07] [00:07:07]POST finish read [00:07:07]Found Content-Length = 331 [00:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:07]execute_script... [00:07:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:07]POST & json_proto [00:07:07]process_json_proto [00:07:07]json parsed OK: [00:07:07]protocol is kg_v1.0 [00:07:07]action value=get_value [00:07:07]process_action get_value [00:07:07]cmd_get_value [00:07:07]process_action get_value done [00:07:07]requested_data is exist [00:07:07]produce_requested_data [00:07:07]requested_item fm.sale.total is exist - process it [00:07:07]SAM_PROTO_GetFMData [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 13 03 00 [00:07:07]Write to MH i2c: E2 08 00 E4 39 80 13 03 00 00 00 00 00 9C [00:07:07]OFD Sender: No OFD packet to send [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 FD 00 E4 39 00 C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 AC [00:07:07]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 [00:07:07]wFMCommunicate OK [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 17 00 00 [00:07:07]Write to MH i2c: E2 08 00 E5 39 80 17 00 00 00 00 00 00 9E [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 E5 39 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 CE [00:07:08]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 [00:07:08]wFMCommunicate OK [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 17 00 00 [00:07:08]Write to MH i2c: E2 08 00 E6 39 80 17 00 00 00 00 00 00 9F [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 E6 39 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [00:07:08]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:08]wFMCommunicate OK [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 17 00 00 [00:07:08]Write to MH i2c: E2 08 00 E7 39 80 17 00 00 00 00 00 00 A0 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 FD 00 E7 39 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [00:07:08]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:08]wFMCommunicate OK [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 17 00 00 [00:07:08]Write to MH i2c: E2 08 00 E8 39 80 17 00 00 00 00 00 00 A1 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:07:08]Read from MH i2c: E2 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 DF 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: E2 DF 00 E8 39 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [00:07:08]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:08]wFMCommunicate OK [00:07:08]SAM_PROTO_GetFMData done [00:07:08]requested_item fm.sale_refund.total is exist - process it [00:07:08]requested_item fm.buy.total is exist - process it [00:07:08]requested_item shift.sale.total is exist - process it [00:07:08]SAM_PROTO_GetShiftData [00:07:08]wFMCommunicate request_size=4 [00:07:08]MH_SAM_APDU [00:07:08]CAPDU: 80 13 02 00 [00:07:08]Write to MH i2c: E2 08 00 E9 39 80 13 02 00 00 00 00 00 A0 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 E9 39 00 B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 8F [00:07:09]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:07:09]wFMCommunicate OK [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 17 00 00 [00:07:09]Write to MH i2c: E2 08 00 EA 39 80 17 00 00 00 00 00 00 A3 [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 EA 39 00 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 2C [00:07:09]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 [00:07:09]wFMCommunicate OK [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:09]CAPDU: 80 17 00 00 [00:07:09]Write to MH i2c: E2 08 00 EB 39 80 17 00 00 00 00 00 00 A4 [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:09]Read from MH i2c: E2 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: E2 FD 00 EB 39 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 46 [00:07:09]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:09]wFMCommunicate OK [00:07:09]wFMCommunicate request_size=4 [00:07:09]MH_SAM_APDU [00:07:10]CAPDU: 80 17 00 00 [00:07:10]Write to MH i2c: E2 08 00 EC 39 80 17 00 00 00 00 00 00 A5 [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 FD 00 EC 39 00 03 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 90 00 2E [00:07:10]RAPDU: 03 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 90 00 [00:07:10]wFMCommunicate OK [00:07:10]wFMCommunicate request_size=4 [00:07:10]MH_SAM_APDU [00:07:10]CAPDU: 80 17 00 00 [00:07:10]Write to MH i2c: E2 08 00 ED 39 80 17 00 00 00 00 00 00 A6 [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:10]Read from MH i2c: E2 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 D5 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: E2 D5 00 ED 39 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 [00:07:10]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:10]wFMCommunicate OK [00:07:10]SAM_PROTO_GetShiftData done [00:07:10]requested_item shift.sale.total_cash is exist - process it [00:07:10]requested_item shift.sale_refund.total is exist - process it [00:07:10]requested_item shift.sale_refund.total_cash is exist - process it [00:07:10]requested_item shift.buy.total is exist - process it [00:07:10]requested_item shift.buy.total_cash is exist - process it [00:07:10]produce_requested_data done [00:07:10]produce_requested_data return {"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:10]process_action_free get_value [00:07:10]json_value_free [00:07:10]json_value_free done [00:07:10]process_json_proto returns [00:07:10]Send response to host [00:07:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:10]free response buf [00:07:10]execute_script done [00:07:10]execute_script returns [00:07:10]free content buf [00:07:10]Sock 9.Close socket [00:07:10]Sock 9.Thread stoped [00:07:10]accept exits with 7 [00:07:10]New connection [00:07:10]New thread 3066633572 created [00:07:10]Thread 3066490212 joined [00:07:10]Waiting for new connection... [00:07:10] Sock 7.Parse request [00:07:10]Sock 7.Check first char [00:07:10]Sock 7.First char is OK [00:07:10]request: POST /json_proto HTTP/1.0 [00:07:10]Method: POST [00:07:10]URL: /json_proto [00:07:10]Method is POST - this is cgi request [00:07:10]url: /json_proto [00:07:10]query_string will be loaded in cgi processing [00:07:10]execute_cgi json_proto POST (null) [00:07:10]execute_cgi path=json_proto method=POST [00:07:10]POST find Content-Length [00:07:10]Host: 172.17.42.132:8080 [00:07:10]Content-Length: 331 [00:07:10]Content-Type: application/json [00:07:10] [00:07:10]POST finish read [00:07:10]Found Content-Length = 331 [00:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:10]execute_script... [00:07: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:07:10]POST & json_proto [00:07:10]process_json_proto [00:07:10]json parsed OK: [00:07:10]protocol is kg_v1.0 [00:07:10]action value=get_value [00:07:10]process_action get_value [00:07:10]cmd_get_value [00:07:10]process_action get_value done [00:07:10]requested_data is exist [00:07:10]produce_requested_data [00:07:10]requested_item fm.sale.total is exist - process it [00:07:10]SAM_PROTO_GetFMData [00:07:10]wFMCommunicate request_size=4 [00:07:10]MH_SAM_APDU [00:07:10]CAPDU: 80 13 03 00 [00:07:10]Write to MH i2c: E2 08 00 EE 39 80 13 03 00 00 00 00 00 A6 [00:07:10]Write i2c OK [00:07:10]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 EE 39 00 C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 B6 [00:07:11]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 [00:07:11]wFMCommunicate OK [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 17 00 00 [00:07:11]Write to MH i2c: E2 08 00 EF 39 80 17 00 00 00 00 00 00 A8 [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 EF 39 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 D8 [00:07:11]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 [00:07:11]wFMCommunicate OK [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 17 00 00 [00:07:11]Write to MH i2c: E2 08 00 F0 39 80 17 00 00 00 00 00 00 A9 [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 FD 00 F0 39 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [00:07:11]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:11]wFMCommunicate OK [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 17 00 00 [00:07:11]Write to MH i2c: E2 08 00 F1 39 80 17 00 00 00 00 00 00 AA [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:12]Read from MH i2c: E2 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 FD 00 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 FD 00 F1 39 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [00:07:12]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:12]wFMCommunicate OK [00:07:12]wFMCommunicate request_size=4 [00:07:12]MH_SAM_APDU [00:07:12]CAPDU: 80 17 00 00 [00:07:12]Write to MH i2c: E2 08 00 F2 39 80 17 00 00 00 00 00 00 AB [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:07:12]Read from MH i2c: E2 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 DF 00 [00:07:12]MH_I2C_Read... [00:07:12]OFD Sender: No OFD packet to send [00:07:12]Read from MH i2c: E2 DF 00 F2 39 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [00:07:12]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:12]wFMCommunicate OK [00:07:12]SAM_PROTO_GetFMData done [00:07:12]requested_item fm.sale_refund.total is exist - process it [00:07:12]requested_item fm.buy.total is exist - process it [00:07:12]requested_item shift.sale.total is exist - process it [00:07:12]SAM_PROTO_GetShiftData [00:07:12]wFMCommunicate request_size=4 [00:07:12]MH_SAM_APDU [00:07:12]CAPDU: 80 13 02 00 [00:07:12]Write to MH i2c: E2 08 00 F3 39 80 13 02 00 00 00 00 00 AA [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:13]Read from MH i2c: E2 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 F3 39 00 B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 99 [00:07:13]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:07:13]wFMCommunicate OK [00:07:13]wFMCommunicate request_size=4 [00:07:13]MH_SAM_APDU [00:07:13]CAPDU: 80 17 00 00 [00:07:13]Write to MH i2c: E2 08 00 F4 39 80 17 00 00 00 00 00 00 AD [00:07:13]Write i2c OK [00:07:13]MH_I2C_Read... [00:07:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:13]Read from MH i2c: E2 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 [00:07:13]MH_I2C_Read... [00:07:13]Read from MH i2c: E2 FD 00 F4 39 00 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 36 [00:07:13]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 [00:07:13]wFMCommunicate OK [00:07:13]wFMCommunicate request_size=4 [00:07:13]MH_SAM_APDU [00:07:13]CAPDU: 80 17 00 00 [00:07:13]Write to MH i2c: E2 08 00 F5 39 80 17 00 00 00 00 00 00 AE [00:07:13]Write i2c OK [00:07:13]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 F5 39 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 50 [00:07:14]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:14]wFMCommunicate OK [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 17 00 00 [00:07:14]Write to MH i2c: E2 08 00 F6 39 80 17 00 00 00 00 00 00 AF [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 FD 00 F6 39 00 03 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 90 00 38 [00:07:14]RAPDU: 03 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 90 00 [00:07:14]wFMCommunicate OK [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 17 00 00 [00:07:14]Write to MH i2c: E2 08 00 F7 39 80 17 00 00 00 00 00 00 B0 [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 D5 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 D5 00 F7 39 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 [00:07:14]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:14]wFMCommunicate OK [00:07:14]SAM_PROTO_GetShiftData done [00:07:14]requested_item shift.sale.total_cash is exist - process it [00:07:14]requested_item shift.sale_refund.total is exist - process it [00:07:14]requested_item shift.sale_refund.total_cash is exist - process it [00:07:14]requested_item shift.buy.total is exist - process it [00:07:14]requested_item shift.buy.total_cash is exist - process it [00:07:14]produce_requested_data done [00:07:14]produce_requested_data return {"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:14]process_action_free get_value [00:07:14]json_value_free [00:07:14]json_value_free done [00:07:14]process_json_proto returns [00:07:14]Send response to host [00:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:14]free response buf [00:07:14]execute_script done [00:07:14]execute_script returns [00:07:14]free content buf [00:07:14]Sock 7.Close socket [00:07:14]Sock 7.Thread stoped [00:07:14]accept exits with 9 [00:07:14]New connection [00:07:14]New thread 3066490212 created [00:07:14]Thread 3066633572 joined [00:07:14]Waiting for new connection... [00:07:14] Sock 9.Parse request [00:07:14]Sock 9.Check first char [00:07:14]Sock 9.First char is OK [00:07:14]request: POST /json_proto HTTP/1.0 [00:07:14]Method: POST [00:07:14]URL: /json_proto [00:07:14]Method is POST - this is cgi request [00:07:14]url: /json_proto [00:07:14]query_string will be loaded in cgi processing [00:07:14]execute_cgi json_proto POST (null) [00:07:14]execute_cgi path=json_proto method=POST [00:07:14]POST find Content-Length [00:07:14]Host: 172.17.42.132:8080 [00:07:14]Content-Length: 257 [00:07:14]Content-Type: application/json [00:07:14] [00:07:14]POST finish read [00:07:14]Found Content-Length = 257 [00:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:14]execute_script... [00:07:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:14]POST & json_proto [00:07:14]process_json_proto [00:07:14]json parsed OK: [00:07:14]protocol is kg_v1.0 [00:07:15]action value=x_report [00:07:15]process_action x_report [00:07:15]cmd_x_report [00:07:15]MH_GetDate [00:07:15]Write to MH i2c: F0 00 00 F8 39 20 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: F0 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: F0 09 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: F0 09 00 F8 39 00 3B E1 1A 67 4C DF 56 66 AD [00:07:15]GetLastDocTimeStamp 1729814482 [00:07:15]current date 1729814843 [00:07:15]FM_GetShiftState [00:07:15]SAM_PROTO_GetShiftState [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 13 01 00 [00:07:15]Write to MH i2c: E2 08 00 F9 39 80 13 01 00 00 00 00 00 AF [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 0E 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 0E 00 F9 39 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 90 [00:07:15]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [00:07:15]wFMCommunicate OK [00:07:15]SAM_PROTO_GetShiftState done [00:07:15]FM_GetShiftState done [00:07:15]KKMCreateXReportDocument [00:07:15]Load OK [00:07:15]Malloc new data [00:07:15]MH_GetDate [00:07:15]Write to MH i2c: F0 00 00 FA 39 22 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: F0 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: F0 09 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: F0 09 00 FA 39 00 3B E1 1A 67 4C DF 56 66 AF [00:07:15]Malloc new data [00:07:15]Malloc new data [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 11 00 00 [00:07:15]Write to MH i2c: E2 08 00 FB 39 80 11 00 00 00 00 00 00 AE [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 17 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 17 00 FB 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 07 [00:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:07:15]wFMCommunicate OK [00:07:15]SAM_PROTO_GetFieldsCounters [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 13 00 00 [00:07:15]Write to MH i2c: E2 08 00 FC 39 80 13 00 00 00 00 00 00 B1 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 62 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 62 00 FC 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [00:07:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:15]wFMCommunicate OK [00:07:15]SAM_PROTO_GetFieldsCounters done [00:07:15]Malloc new data [00:07:15]Malloc new data [00:07:15]Malloc new data [00:07:15]KKMCreateXReportDocument OK [00:07:15]KKMSetXReportData OK [00:07:15]KKMPrepareXReportFMData [00:07:15]SAM_PROTO_GetShiftData [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 13 02 00 [00:07:15]Write to MH i2c: E2 08 00 FD 39 80 13 02 00 00 00 00 00 B4 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 FD 39 00 B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 A3 [00:07:15]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 FE 39 80 17 00 00 00 00 00 00 B7 [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 FE 39 00 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 40 [00:07:16]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 [00:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 FF 39 80 17 00 00 00 00 00 00 B8 [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 FF 39 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5A [00:07:16]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 00 3A 80 17 00 00 00 00 00 00 BA [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 00 3A 00 03 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 90 00 43 [00:07:17]RAPDU: 03 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 90 00 [00:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 17 00 00 [00:07:17]Write to MH i2c: E2 08 00 01 3A 80 17 00 00 00 00 00 00 BB [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 D5 00 [00:07:17]MH_I2C_Read... [00:07:17]OFD Sender: No OFD packet to send [00:07:17]Read from MH i2c: E2 D5 00 01 3A 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [00:07:17]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:17]wFMCommunicate OK [00:07:17]SAM_PROTO_GetShiftData done [00:07:17]1194 (1204) - счетчики итогов смены [00:07:17] 1134 (4) - 147 - количество чеков со всеми признаками расчетов [00:07:17] 1129 (155) - счетчики операций «приход» [00:07:17] 1135 (4) - 145 - количество чеков по признаку расчетов [00:07:17] 1201 (3) - 38516.63 - общая итоговая сумма в чеках [00:07:17] 1136 (3) - 25819.00 - итоговая сумма в чеках наличными [00:07:17] 1138 (3) - 12697.63 - итоговая сумма в чеках безналичными [00:07:17] 1024 (122) - суммы налогов [00:07:17] 1006 (9) - суммы НДС [00:07:17] 1010 (1) - 0% - код ставки НДС [00:07:17] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:17] 1006 (12) - суммы НДС [00:07:17] 1010 (1) - 12% - код ставки НДС [00:07:17] 1011 (3) - 4089.96 - сумма НДС по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 0% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (11) - суммы НСП [00:07:17] 1014 (1) - 1% - код ставки НСП [00:07:17] 1015 (2) - 340.73 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 2% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 3% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 5% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 0,50% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 1,50% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1130 (151) - счетчики операций «возврат прихода» [00:07:17] 1135 (4) - 2 - количество чеков по признаку расчетов [00:07:17] 1201 (3) - 964.00 - общая итоговая сумма в чеках [00:07:17] 1136 (3) - 964.00 - итоговая сумма в чеках наличными [00:07:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:17] 1024 (121) - суммы налогов [00:07:17] 1006 (9) - суммы НДС [00:07:17] 1010 (1) - 0% - код ставки НДС [00:07:17] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:17] 1006 (11) - суммы НДС [00:07:17] 1010 (1) - 12% - код ставки НДС [00:07:17] 1011 (2) - 102.37 - сумма НДС по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 0% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (11) - суммы НСП [00:07:17] 1014 (1) - 1% - код ставки НСП [00:07:17] 1015 (2) - 8.53 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 2% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 3% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 5% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 0,50% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:17] 1014 (1) - 1,50% - код ставки НСП [00:07:17] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:17] 1131 (141) - счетчики операций «расход» [00:07:17] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:17] 1024 (117) - суммы налогов [00:07:17] 1006 (9) - суммы НДС [00:07:17] 1010 (1) - 0% - код ставки НДС [00:07:17] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:17] 1006 (9) - суммы НДС [00:07:17] 1010 (1) - 12% - код ставки НДС [00:07:17] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:17] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 0% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 1% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 2% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 3% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 5% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 0,50% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 1,50% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1132 (141) - счетчики операций «возврат расхода» [00:07:18] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:18] 1024 (117) - суммы налогов [00:07:18] 1006 (9) - суммы НДС [00:07:18] 1010 (1) - 0% - код ставки НДС [00:07:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:18] 1006 (9) - суммы НДС [00:07:18] 1010 (1) - 12% - код ставки НДС [00:07:18] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 0% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 1% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 2% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 3% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 5% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 0,50% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1007 (9) - суммы НСП [00:07:18] 1014 (1) - 1,50% - код ставки НСП [00:07:18] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:18] 1133 (588) - - счетчики коррекции - не используются [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1194 (04AA) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1134 (046E) [00:07:18]Malloc new data [00:07:18]Processing tag 1129 (0469) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1135 (046F) [00:07:18]Malloc new data [00:07:18]Processing tag 1201 (04B1) [00:07:18]Malloc new data [00:07:18]Processing tag 1136 (0470) [00:07:18]Malloc new data [00:07:18]Processing tag 1138 (0472) [00:07:18]Malloc new data [00:07:18]Processing tag 1024 (0400) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1006 (03EE) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1010 (03F2) [00:07:18]Malloc new data [00:07:18]Processing tag 1011 (03F3) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1006 (03EE) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1010 (03F2) [00:07:18]Malloc new data [00:07:18]Processing tag 1011 (03F3) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]SetTLVBufToDocument err=0 [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1130 (046A) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1135 (046F) [00:07:18]Malloc new data [00:07:18]Processing tag 1201 (04B1) [00:07:18]Malloc new data [00:07:18]Processing tag 1136 (0470) [00:07:18]Malloc new data [00:07:18]Processing tag 1138 (0472) [00:07:18]Malloc new data [00:07:18]Processing tag 1024 (0400) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1006 (03EE) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1010 (03F2) [00:07:18]Malloc new data [00:07:18]Processing tag 1011 (03F3) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1006 (03EE) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1010 (03F2) [00:07:18]Malloc new data [00:07:18]Processing tag 1011 (03F3) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]SetTLVBufToDocument err=0 [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1131 (046B) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1135 (046F) [00:07:18]Malloc new data [00:07:18]Processing tag 1201 (04B1) [00:07:18]Malloc new data [00:07:18]Processing tag 1136 (0470) [00:07:18]Malloc new data [00:07:18]Processing tag 1138 (0472) [00:07:18]Malloc new data [00:07:18]Processing tag 1024 (0400) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1006 (03EE) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1010 (03F2) [00:07:18]Malloc new data [00:07:18]Processing tag 1011 (03F3) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1006 (03EE) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1010 (03F2) [00:07:18]Malloc new data [00:07:18]Processing tag 1011 (03F3) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]SetTLVBufToDocument err=0 [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1132 (046C) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1135 (046F) [00:07:18]Malloc new data [00:07:18]Processing tag 1201 (04B1) [00:07:18]Malloc new data [00:07:18]Processing tag 1136 (0470) [00:07:18]Malloc new data [00:07:18]Processing tag 1138 (0472) [00:07:18]Malloc new data [00:07:18]Processing tag 1024 (0400) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1006 (03EE) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1010 (03F2) [00:07:18]Malloc new data [00:07:18]Processing tag 1011 (03F3) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1006 (03EE) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1010 (03F2) [00:07:18]Malloc new data [00:07:18]Processing tag 1011 (03F3) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1007 (03EF) [00:07:18]Load OK [00:07:18]SetTLVBufToDocument [00:07:18]Processing tag 1014 (03F6) [00:07:18]Malloc new data [00:07:18]Processing tag 1015 (03F7) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]SetTLVBufToDocument err=0 [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Processing tag 1133 (046D) [00:07:18]Malloc new data [00:07:18]SetTLVBufToDocument err=0 [00:07:18]SetTLVBufToDocument err=0 [00:07:18]Malloc new data [00:07:18]SAM_PROTO_GetFMData [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 13 03 00 [00:07:18]Write to MH i2c: E2 08 00 02 3A 80 13 03 00 00 00 00 00 BB [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 02 3A 00 C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 CB [00:07:19]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 [00:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 17 00 00 [00:07:19]Write to MH i2c: E2 08 00 03 3A 80 17 00 00 00 00 00 00 BD [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 03 3A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 ED [00:07:20]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 [00:07:20]wFMCommunicate OK [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 17 00 00 [00:07:20]Write to MH i2c: E2 08 00 04 3A 80 17 00 00 00 00 00 00 BE [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 04 3A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [00:07:20]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:20]wFMCommunicate OK [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 17 00 00 [00:07:20]Write to MH i2c: E2 08 00 05 3A 80 17 00 00 00 00 00 00 BF [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 FD 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 FD 00 05 3A 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [00:07:21]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:21]wFMCommunicate OK [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 17 00 00 [00:07:21]Write to MH i2c: E2 08 00 06 3A 80 17 00 00 00 00 00 00 C0 [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 DF 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 DF 00 06 3A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A0 [00:07:21]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:21]wFMCommunicate OK [00:07:21]SAM_PROTO_GetFMData done [00:07:21]FM_GetFMData:85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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:07:22]oper:6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 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:07:22]total:F8 D8 40 94 [00:07:22]Malloc new data [00:07:22]oper:6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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:07:22]total:94 D4 BE [00:07:22]Malloc new data [00:07:22]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 OFD Sender: No OFD packet to send [00:07:23]00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:23]total: [00:07:23]Malloc new data [00:07:23]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:07:23]total: [00:07:23]Malloc new data [00:07:23]KKMPrepareXReportFMData err=0 [00:07:23]Х отчет ИНН: 02508201610067 Кассир: Арыкбаев Н. 25.10.2024 00:07 Смена: 522 РНМ: 0000000000091619 ЗНМ: 0300000154 СНО: Общий режим Всего чеков: 147 ИТОГИ ПРИХОД Чеков: 145 Общий итог: 38516.63 Итого наличными: 25819.00 Итого безнал.: 12697.63 НДС 0% : 0.00 НДС 12% : 4089.96 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 340.73 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 964.00 Итого наличными: 964.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 102.37 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 8.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.00 Сумма выплат: 0.00 Нал. в кассе: 24855.00 НС Приход: 24872778.16 НС Возвр.Прихода: 125062.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874676 [00:07:23]StoreToDocumentArchive [00:07:23]MH_GetDate [00:07:23]Write to MH i2c: F0 00 00 07 3A 30 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: F0 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: F0 09 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: F0 09 00 07 3A 00 43 E1 1A 67 4C DF 56 66 C5 [00:07:23]shift 522 fd 1729814851 [00:07:23]Create dir for shift 0522 [00:07:23]save to /storage/0522/doc_1729814851 [00:07:23]save last doc name /storage/0522/doc_1729814851 to /storage/kkm_last_doc_name [00:07:23]save OK [00:07:23]Clear old archive folders... [00:07:23]NVStorageSaveData kkm_last_timestamp [00:07:23]File name is /storage/kkm_last_timestamp [00:07:23]Write 4 bytes [00:07:23]NVStorageSaveData done [00:07:23]ExternCall_PrintAddStr [00:07:23]wPrintStart [00:07:23]Write to MH i2c: 01 00 00 08 3A 42 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: 01 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: 01 07 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: 01 07 00 08 3A 00 00 00 00 00 FF 0F 57 [00:07:23]RasterBufferAndPrint [00:07:23]line Х отчет [00:07:23]line ИНН: 02508201610067 [00:07:23]line Кассир: Арыкбаев Н. [00:07:23]line 25.10.2024 00:07 [00:07:23]line Смена: 522 [00:07:23]line РНМ: 0000000000091619 [00:07:23]line ЗНМ: 0300000154 [00:07:23]line СНО: Общий режим [00:07:23]line Всего чеков: 147 [00:07:23]line ИТОГИ ПРИХОД [00:07:23]line Чеков: 145 [00:07:23]line Общий итог: 38516.63 [00:07:23]line Итого наличными: 25819.00 [00:07:23]line Итого безнал.: 12697.63 [00:07:23]line НДС 0% : 0.00 [00:07:23]line НДС 12% : 4089.96 [00:07:23]line НСП 0% : 0.00 [00:07:23]line НСП 1,50% : 0.00 [00:07:23]line НСП 0,50% : 0.00 [00:07:23]line НСП 5% : 0.00 [00:07:23]line НСП 3% : 0.00 [00:07:23]line НСП 2% : 0.00 [00:07:23]line НСП 1% : 340.73 [00:07:23]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:23]line Чеков: 2 [00:07:23]line Общий итог: 964.00 [00:07:23]line Итого наличными: 964.00 [00:07:23]line Итого безнал.: 0.00 [00:07:23]line НДС 0% : 0.00 [00:07:23]line НДС 12% : 102.37 [00:07:23]line НСП 0% : 0.00 [00:07:23]line НСП 1,50% : 0.00 [00:07:23]line НСП 0,50% : 0.00 [00:07:23]line НСП 5% : 0.00 [00:07:23]line НСП 3% : 0.00 [00:07:23]line НСП 2% : 0.00 [00:07:23]line НСП 1% : 8.53 [00:07:23]line ИТОГИ РАСХОД [00:07:23]line Чеков: 0 [00:07:23]line Общий итог: 0.00 [00:07:23]line Итого наличными: 0.00 [00:07:23]line Итого безнал.: 0.00 [00:07:23]line НДС 0% : 0.00 [00:07:23]line НДС 12% : 0.00 [00:07:23]line НСП 0% : 0.00 [00:07:23]line НСП 1,50% : 0.00 [00:07:23]line НСП 0,50% : 0.00 [00:07:23]line НСП 5% : 0.00 [00:07:23]line НСП 3% : 0.00 [00:07:23]line НСП 2% : 0.00 [00:07:23]line НСП 1% : 0.00 [00:07:23]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:23]line Чеков: 0 [00:07:23]line Общий итог: 0.00 [00:07:23]line Итого наличными: 0.00 [00:07:23]line Итого безнал.: 0.00 [00:07:23]line НДС 0% : 0.00 [00:07:23]line НДС 12% : 0.00 [00:07:23]line НСП 0% : 0.00 [00:07:23]line НСП 1,50% : 0.00 [00:07:23]line НСП 0,50% : 0.00 [00:07:23]line НСП 5% : 0.00 [00:07:23]line НСП 3% : 0.00 [00:07:23]line НСП 2% : 0.00 [00:07:23]line НСП 1% : 0.00 [00:07:23]line Сумма внесений: 0.00 [00:07:23]line Сумма выплат: 0.00 [00:07:23]line Нал. в кассе: 24855.00 [00:07:23]line НС Приход: 24872778.16 [00:07:23]line НС Возвр.Прихода: 125062.60 [00:07:23]line НС Расход: 0.00 [00:07:23]line НС Возвр.Расхода: 0.00 [00:07:23]line ФМ: 0000000000874676 [00:07:23]written 0, free lines is 4095 [00:07:23]Write to MH i2c: 01 00 00 53 3A 8D [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: 01 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: 01 07 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: 01 07 00 53 3A 00 00 00 00 00 06 0B A5 [00:07:24]RasterBufferAndPrint [00:07:24]line [00:07:24]line [00:07:24]line [00:07:24]line [00:07:24]line [00:07:24]written 0, free lines is 2861 [00:07:24]MH_Cut [00:07:24]Write to MH i2c: D1 01 00 5A 3A 01 66 [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: D1 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: D1 01 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: D1 01 00 5A 3A 00 65 [00:07:24]Write to MH i2c: 01 00 00 5B 3A 95 [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:24]*** Cut start [00:07:24]*** Partial cut [00:07:24]*** CUTSNS_PIN = 1 [00:07:25]*** CUTSNS_PIN = 0 [00:07:25]*** Brake cut motor [00:07:25]Read from MH i2c: 01 [00:07:25]MH_I2C_Read... [00:07:25]*** Stop cut motor [00:07:25]*** Cut end [00:07:25]Read from MH i2c: 01 07 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: 01 07 00 5B 3A 00 00 00 00 00 FF 0F AA [00:07:25]process_action x_report done [00:07:25]requested_data is exist [00:07:25]produce_requested_data [00:07:25]requested_item fd.num is exist - process it [00:07:25]SAM_PROTO_GetFieldsCounters [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 13 00 00 [00:07:25]Write to MH i2c: E2 08 00 5C 3A 80 13 00 00 00 00 00 00 12 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 62 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 62 00 5C 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [00:07:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:25]wFMCommunicate OK [00:07:25]SAM_PROTO_GetFieldsCounters done [00:07:25]requested_item shift.num is exist - process it [00:07:25]requested_item shift.opened is exist - process it [00:07:25]req_shift_opened [00:07:25]FM_GetShiftState [00:07:25]SAM_PROTO_GetShiftState [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 13 01 00 [00:07:25]Write to MH i2c: E2 08 00 5D 3A 80 13 01 00 00 00 00 00 14 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 0E 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 0E 00 5D 3A 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 F5 [00:07:26]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [00:07:26]wFMCommunicate OK [00:07:26]SAM_PROTO_GetShiftState done [00:07:26]FM_GetShiftState done [00:07:26]req_shift_opened done [00:07:26]requested_item shift.open_date is exist - process it [00:07:26]req_shift_open_date [00:07:26]req_shift_open_date done [00:07:26]produce_requested_data done [00:07:26]produce_requested_data return {"fd.num":63533,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [00:07:26]process_action_free x_report [00:07:26]json_value_free [00:07:26]json_value_free done [00:07:26]process_json_proto returns [00:07:26]Send response to host [00:07:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63533,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [00:07:26]free response buf [00:07:26]execute_script done [00:07:26]execute_script returns [00:07:26]free content buf [00:07:26]Sock 9.Close socket [00:07:26]Sock 9.Thread stoped [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:01]accept exits with 7 [00:08:01]New connection [00:08:01]New thread 3066633572 created [00:08:01]Thread 3066490212 joined [00:08:01]Waiting for new connection... [00:08:01] Sock 7.Parse request [00:08:01]Sock 7.Check first char [00:08:01]Sock 7.First char is OK [00:08:01]request: POST /json_proto HTTP/1.0 [00:08:01]Method: POST [00:08:01]URL: /json_proto [00:08:01]Method is POST - this is cgi request [00:08:01]url: /json_proto [00:08:01]query_string will be loaded in cgi processing [00:08:01]execute_cgi json_proto POST (null) [00:08:01]execute_cgi path=json_proto method=POST [00:08:01]POST find Content-Length [00:08:01]Host: 172.17.42.132:8080 [00:08:01]Content-Length: 215 [00:08:01]Content-Type: application/json [00:08:01] [00:08:01]POST finish read [00:08:01]Found Content-Length = 215 [00:08:01]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:08:01]execute_script... [00:08:01]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:08:01]POST & json_proto [00:08:01]process_json_proto [00:08:01]json parsed OK: [00:08:01]protocol is kg_v1.0 [00:08:01]action value=get_value [00:08:01]process_action get_value [00:08:01]cmd_get_value [00:08:01]process_action get_value done [00:08:01]requested_data is exist [00:08:01]produce_requested_data [00:08:01]requested_item kkm.sn is exist - process it [00:08:01]requested_item kkm.ver is exist - process it [00:08:01]requested_item fm.sn is exist - process it [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 11 00 00 [00:08:01]Write to MH i2c: E2 08 00 5E 3A 80 11 00 00 00 00 00 00 12 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 17 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 17 00 5E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6B [00:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:08:01]wFMCommunicate OK [00:08:01]requested_item fd.num is exist - process it [00:08:01]SAM_PROTO_GetFieldsCounters [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 13 00 00 [00:08:01]Write to MH i2c: E2 08 00 5F 3A 80 13 00 00 00 00 00 00 15 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 62 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 62 00 5F 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [00:08:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2D F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetFieldsCounters done [00:08:01]requested_item shift.num is exist - process it [00:08:01]requested_item shift.opened is exist - process it [00:08:01]req_shift_opened [00:08:01]FM_GetShiftState [00:08:01]SAM_PROTO_GetShiftState [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 13 01 00 [00:08:01]Write to MH i2c: E2 08 00 60 3A 80 13 01 00 00 00 00 00 17 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 0E 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 0E 00 60 3A 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 F8 [00:08:01]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetShiftState done [00:08:01]FM_GetShiftState done [00:08:01]req_shift_opened done [00:08:01]requested_item shift.open_date is exist - process it [00:08:01]req_shift_open_date [00:08:01]req_shift_open_date done [00:08:01]produce_requested_data done [00:08:01]produce_requested_data return {"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63533,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964} [00:08:01]process_action_free get_value [00:08:01]json_value_free [00:08:01]json_value_free done [00:08:01]process_json_proto returns [00:08:01]Send response to host [00:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63533,"shift.num":547,"shift.opened":1,"shift.open_date":1729728964}}} [00:08:01]free response buf [00:08:01]execute_script done [00:08:01]execute_script returns [00:08:01]free content buf [00:08:01]Sock 7.Close socket [00:08:01]Sock 7.Thread stoped [00:08:01]accept exits with 9 [00:08:01]New connection [00:08:01]New thread 3066490212 created [00:08:01]Thread 3066633572 joined [00:08:01]Waiting for new connection... [00:08:01] Sock 9.Parse request [00:08:01]Sock 9.Check first char [00:08:01]Sock 9.First char is OK [00:08:01]request: POST /json_proto HTTP/1.0 [00:08:01]Method: POST [00:08:01]URL: /json_proto [00:08:01]Method is POST - this is cgi request [00:08:01]url: /json_proto [00:08:01]query_string will be loaded in cgi processing [00:08:01]execute_cgi json_proto POST (null) [00:08:01]execute_cgi path=json_proto method=POST [00:08:01]POST find Content-Length [00:08:01]Host: 172.17.42.132:8080 [00:08:01]Content-Length: 331 [00:08:01]Content-Type: application/json [00:08:01] [00:08:01]POST finish read [00:08:01]Found Content-Length = 331 [00:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:01]execute_script... [00:08:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:01]POST & json_proto [00:08:01]process_json_proto [00:08:01]json parsed OK: [00:08:01]protocol is kg_v1.0 [00:08:01]action value=get_value [00:08:02]process_action get_value [00:08:02]cmd_get_value [00:08:02]process_action get_value done [00:08:02]requested_data is exist [00:08:02]produce_requested_data [00:08:02]requested_item fm.sale.total is exist - process it [00:08:02]SAM_PROTO_GetFMData [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 13 03 00 [00:08:02]Write to MH i2c: E2 08 00 61 3A 80 13 03 00 00 00 00 00 1A [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 61 3A 00 C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 2A [00:08:02]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 17 00 00 [00:08:02]Write to MH i2c: E2 08 00 62 3A 80 17 00 00 00 00 00 00 1C [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 62 3A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 4C [00:08:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 17 00 00 [00:08:03]Write to MH i2c: E2 08 00 63 3A 80 17 00 00 00 00 00 00 1D [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]OFD Sender: No OFD packet to send [00:08:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 63 3A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [00:08:03]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 17 00 00 [00:08:03]Write to MH i2c: E2 08 00 64 3A 80 17 00 00 00 00 00 00 1E [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 FD 00 64 3A 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [00:08:03]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 17 00 00 [00:08:03]Write to MH i2c: E2 08 00 65 3A 80 17 00 00 00 00 00 00 1F [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 DF 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 DF 00 65 3A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FF [00:08:03]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:03]wFMCommunicate OK [00:08:03]SAM_PROTO_GetFMData done [00:08:03]requested_item fm.sale_refund.total is exist - process it [00:08:03]requested_item fm.buy.total is exist - process it [00:08:03]requested_item shift.sale.total is exist - process it [00:08:03]SAM_PROTO_GetShiftData [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 13 02 00 [00:08:03]Write to MH i2c: E2 08 00 66 3A 80 13 02 00 00 00 00 00 1E [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 66 3A 00 B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 0D [00:08:04]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 17 00 00 [00:08:04]Write to MH i2c: E2 08 00 67 3A 80 17 00 00 00 00 00 00 21 [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 67 3A 00 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 AA [00:08:04]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 17 00 00 [00:08:04]Write to MH i2c: E2 08 00 68 3A 80 17 00 00 00 00 00 00 22 [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 FD 00 68 3A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C4 [00:08:05]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:05]wFMCommunicate OK [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 17 00 00 [00:08:05]Write to MH i2c: E2 08 00 69 3A 80 17 00 00 00 00 00 00 23 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 FD 00 69 3A 00 03 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 90 00 AC [00:08:05]RAPDU: 03 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 90 00 [00:08:05]wFMCommunicate OK [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 17 00 00 [00:08:05]Write to MH i2c: E2 08 00 6A 3A 80 17 00 00 00 00 00 00 24 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 D5 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 D5 00 6A 3A 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 05 [00:08:05]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:05]wFMCommunicate OK [00:08:05]SAM_PROTO_GetShiftData done [00:08:05]requested_item shift.sale.total_cash is exist - process it [00:08:05]requested_item shift.sale_refund.total is exist - process it [00:08:05]requested_item shift.sale_refund.total_cash is exist - process it [00:08:05]requested_item shift.buy.total is exist - process it [00:08:05]requested_item shift.buy.total_cash is exist - process it [00:08:05]produce_requested_data done [00:08:05]produce_requested_data return {"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:05]process_action_free get_value [00:08:05]json_value_free [00:08:05]json_value_free done [00:08:05]process_json_proto returns [00:08:05]Send response to host [00:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:05]free response buf [00:08:05]execute_script done [00:08:05]execute_script returns [00:08:05]free content buf [00:08:05]Sock 9.Close socket [00:08:05]Sock 9.Thread stoped [00:08:05]accept exits with 7 [00:08:05]New connection [00:08:05]New thread 3066633572 created [00:08:05]Thread 3066490212 joined [00:08:05]Waiting for new connection... [00:08:05] Sock 7.Parse request [00:08:05]Sock 7.Check first char [00:08:05]Sock 7.First char is OK [00:08:05]request: POST /json_proto HTTP/1.0 [00:08:05]Method: POST [00:08:05]URL: /json_proto [00:08:05]Method is POST - this is cgi request [00:08:05]url: /json_proto [00:08:05]query_string will be loaded in cgi processing [00:08:05]execute_cgi json_proto POST (null) [00:08:05]execute_cgi path=json_proto method=POST [00:08:05]POST find Content-Length [00:08:05]Host: 172.17.42.132:8080 [00:08:05]Content-Length: 331 [00:08:05]Content-Type: application/json [00:08:05] [00:08:05]POST finish read [00:08:05]Found Content-Length = 331 [00:08:05]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:08:05]execute_script... [00:08:05]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:08:05]POST & json_proto [00:08:05]process_json_proto [00:08:05]json parsed OK: [00:08:05]protocol is kg_v1.0 [00:08:05]action value=get_value [00:08:05]process_action get_value [00:08:05]cmd_get_value [00:08:05]process_action get_value done [00:08:05]requested_data is exist [00:08:05]produce_requested_data [00:08:05]requested_item fm.sale.total is exist - process it [00:08:05]SAM_PROTO_GetFMData [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 13 03 00 [00:08:05]Write to MH i2c: E2 08 00 6B 3A 80 13 03 00 00 00 00 00 24 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 6B 3A 00 C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 34 [00:08:06]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 6C 3A 80 17 00 00 00 00 00 00 26 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 FD 00 6C 3A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 56 [00:08:06]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 6D 3A 80 17 00 00 00 00 00 00 27 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 6D 3A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [00:08:07]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 17 00 00 [00:08:07]Write to MH i2c: E2 08 00 6E 3A 80 17 00 00 00 00 00 00 28 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 6E 3A 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A3 [00:08:07]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 17 00 00 [00:08:07]Write to MH i2c: E2 08 00 6F 3A 80 17 00 00 00 00 00 00 29 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 DF 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 DF 00 6F 3A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 09 [00:08:08]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:08]wFMCommunicate OK [00:08:08]SAM_PROTO_GetFMData done [00:08:08]requested_item fm.sale_refund.total is exist - process it [00:08:08]requested_item fm.buy.total is exist - process it [00:08:08]requested_item shift.sale.total is exist - process it [00:08:08]SAM_PROTO_GetShiftData [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 13 02 00 [00:08:08]Write to MH i2c: E2 08 00 70 3A 80 13 02 00 00 00 00 00 28 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]OFD Sender: No OFD packet to send [00:08:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 70 3A 00 B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 17 [00:08:08]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:08:08]wFMCommunicate OK [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 17 00 00 [00:08:08]Write to MH i2c: E2 08 00 71 3A 80 17 00 00 00 00 00 00 2B [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:09]Read from MH i2c: E2 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 FD 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 FD 00 71 3A 00 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 B4 [00:08:09]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 [00:08:09]wFMCommunicate OK [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 17 00 00 [00:08:09]Write to MH i2c: E2 08 00 72 3A 80 17 00 00 00 00 00 00 2C [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:09]Read from MH i2c: E2 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 FD 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 FD 00 72 3A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CE [00:08:09]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:09]wFMCommunicate OK [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 17 00 00 [00:08:09]Write to MH i2c: E2 08 00 73 3A 80 17 00 00 00 00 00 00 2D [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 73 3A 00 03 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 90 00 B6 [00:08:10]RAPDU: 03 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 90 00 [00:08:10]wFMCommunicate OK [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 17 00 00 [00:08:10]Write to MH i2c: E2 08 00 74 3A 80 17 00 00 00 00 00 00 2E [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 D5 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 D5 00 74 3A 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0F [00:08:10]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetShiftData done [00:08:10]requested_item shift.sale.total_cash is exist - process it [00:08:10]requested_item shift.sale_refund.total is exist - process it [00:08:10]requested_item shift.sale_refund.total_cash is exist - process it [00:08:10]requested_item shift.buy.total is exist - process it [00:08:10]requested_item shift.buy.total_cash is exist - process it [00:08:10]produce_requested_data done [00:08:10]produce_requested_data return {"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:10]process_action_free get_value [00:08:10]json_value_free [00:08:10]json_value_free done [00:08:10]process_json_proto returns [00:08:10]Send response to host [00:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:10]free response buf [00:08:10]execute_script done [00:08:10]execute_script returns [00:08:10]free content buf [00:08:10]Sock 7.Close socket [00:08:10]Sock 7.Thread stoped [00:08:10]accept exits with 9 [00:08:10]New connection [00:08:10]New thread 3066490212 created [00:08:10]Thread 3066633572 joined [00:08:10]Waiting for new connection... [00:08:10] Sock 9.Parse request [00:08:10]Sock 9.Check first char [00:08:10]Sock 9.First char is OK [00:08:10]request: POST /json_proto HTTP/1.0 [00:08:10]Method: POST [00:08:10]URL: /json_proto [00:08:10]Method is POST - this is cgi request [00:08:10]url: /json_proto [00:08:10]query_string will be loaded in cgi processing [00:08:10]execute_cgi json_proto POST (null) [00:08:10]execute_cgi path=json_proto method=POST [00:08:10]POST find Content-Length [00:08:10]Host: 172.17.42.132:8080 [00:08:10]Content-Length: 260 [00:08:10]Content-Type: application/json [00:08:10] [00:08:10]POST finish read [00:08:10]Found Content-Length = 260 [00:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:10]execute_script... [00:08:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:10]POST & json_proto [00:08:10]process_json_proto [00:08:10]json parsed OK: [00:08:10]protocol is kg_v1.0 [00:08:10]action value=close_shift [00:08:10]process_action close_shift [00:08:10]cmd_close_shift [00:08:10]MH_GetDate [00:08:10]Write to MH i2c: F0 00 00 75 3A 9E [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: F0 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: F0 09 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: F0 09 00 75 3A 00 73 E1 1A 67 4C DF 56 66 63 [00:08:10]GetLastDocTimeStamp 1729814843 [00:08:10]current date 1729814899 [00:08:10]FM_GetShiftState [00:08:10]SAM_PROTO_GetShiftState [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 01 00 [00:08:10]Write to MH i2c: E2 08 00 76 3A 80 13 01 00 00 00 00 00 2D [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 76 3A 00 09 00 01 C4 91 19 67 00 00 00 00 90 00 0E [00:08:10]RAPDU: 09 00 01 C4 91 19 67 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetShiftState done [00:08:10]FM_GetShiftState done [00:08:10]KKMCreateCloseShiftDocument [00:08:10]Load OK [00:08:10]Malloc new data [00:08:10]MH_GetDate [00:08:10]Write to MH i2c: F0 00 00 77 3A A0 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: F0 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: F0 09 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: F0 09 00 77 3A 00 73 E1 1A 67 4C DF 56 66 65 [00:08:10]Malloc new data [00:08:10]Malloc new data [00:08:10]Malloc new data [00:08:10]Malloc new data [00:08:10]KKMCreateCloseShiftDocument OK [00:08:10]KKMSetCloseShiftData OK [00:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:08:10]tlvbuf is 00B7F400 [00:08:10]KKMLoadAndSignCloseShiftData [00:08:10]SAM_PROTO_ProcessDocument [00:08:10]wFMCommunicate request_size=9 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 15 01 00 04 05 00 47 00 [00:08:10]Write to MH i2c: E2 0C 00 78 3A 80 15 01 00 04 00 05 00 47 00 00 00 85 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 03 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 03 00 78 3A 00 90 00 26 [00:08:10]RAPDU: 90 00 [00:08:10]wFMCommunicate OK [00:08:10]wFMCommunicate request_size=23 [00:08:10]MH_SAM_APDU [00:08:10]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:08:10]Write to MH i2c: E2 1A 00 79 3A 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 28 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 79 3A 00 90 00 27 [00:08:11]RAPDU: 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=30 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 [00:08:11]Write to MH i2c: E2 21 00 7A 3A 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 00 00 F5 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 7A 3A 00 90 00 28 [00:08:11]RAPDU: 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=13 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 15 02 00 08 F4 03 04 00 73 E1 1A 67 [00:08:11]Write to MH i2c: E2 10 00 7B 3A 80 15 02 00 08 00 F4 03 04 00 73 E1 1A 67 00 00 15 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 7B 3A 00 90 00 29 [00:08:11]RAPDU: 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=25 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 [00:08:11]Write to MH i2c: E2 1C 00 7C 3A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 00 00 99 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 03 00 7C 3A 00 90 00 2A [00:08:11]RAPDU: 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 15 03 00 [00:08:11]Write to MH i2c: E2 08 00 7D 3A 80 15 03 00 00 00 00 00 38 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 FD 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 FD 00 7D 3A 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2E F8 00 00 0E 04 04 00 23 02 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 90 00 FE [00:08:11]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2E F8 00 00 0E 04 04 00 23 02 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 90 00 [00:08:12]wFMCommunicate OK [00:08:12]SAM_PROTO_ProcessDocument answer len = 1275 [00:08:12]SAM_PROTO_ProcessDocument remain to read = 1027 [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 17 00 00 [00:08:12]Write to MH i2c: E2 08 00 7E 3A 80 17 00 00 00 00 00 00 38 [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 7E 3A 00 04 03 00 90 78 01 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 FD 27 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 55 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 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 90 00 2B [00:08:12]RAPDU: 04 03 00 90 78 01 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 FD 27 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 55 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 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 90 00 [00:08:12]wFMCommunicate OK [00:08:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:12]SAM_PROTO_ProcessDocument remain to read = 777 [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 17 00 00 [00:08:12]Write to MH i2c: E2 08 00 7F 3A 80 17 00 00 00 00 00 00 39 [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 7F 3A 00 F7 03 00 00 EF 03 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 90 00 9B [00:08:12]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:08:13]wFMCommunicate OK [00:08:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:13]SAM_PROTO_ProcessDocument remain to read = 527 [00:08:13]wFMCommunicate request_size=4 [00:08:13]MH_SAM_APDU [00:08:13]CAPDU: 80 17 00 00 [00:08:13]Write to MH i2c: E2 08 00 80 3A 80 17 00 00 00 00 00 00 3A [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:13]OFD Sender: No OFD packet to send [00:08:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:13]Read from MH i2c: E2 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 80 3A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [00:08:13]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:13]wFMCommunicate OK [00:08:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:13]SAM_PROTO_ProcessDocument remain to read = 277 [00:08:13]wFMCommunicate request_size=4 [00:08:13]MH_SAM_APDU [00:08:13]CAPDU: 80 17 00 00 [00:08:13]Write to MH i2c: E2 08 00 81 3A 80 17 00 00 00 00 00 00 3B [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:13]Read from MH i2c: E2 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 81 3A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 7A [00:08:14]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:08:14]wFMCommunicate OK [00:08:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:14]SAM_PROTO_ProcessDocument remain to read = 27 [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 17 00 00 [00:08:14]Write to MH i2c: E2 08 00 82 3A 80 17 00 00 00 00 00 00 3C [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 27! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 1E 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 1E 00 82 3A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 16 FD F5 A0 59 B6 90 00 30 [00:08:14]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 16 FD F5 A0 59 B6 90 00 [00:08:14]wFMCommunicate OK [00:08:14]SAM_PROTO_ProcessDocument received (without SW) 27 bytes [00:08:14]SAM_PROTO_ProcessDocument done [00:08:14]1209 (1) - 1.0 - номер версии ФФД [00:08:14]1041 (16) - 0000000000874676 - номер ФМ [00:08:14]1040 (4) - 63534 - номер ФД [00:08:14]1038 (4) - 547 - номер смены [00:08:14]1118 (4) - 147 - количество кассовых чеков за смену [00:08:14]1111 (4) - 149 - общее количество ФД за смену [00:08:14]1194 (1204) - счетчики итогов смены [00:08:14] 1134 (4) - 147 - количество чеков со всеми признаками расчетов [00:08:14] 1129 (155) - счетчики операций «приход» [00:08:14] 1135 (4) - 145 - количество чеков по признаку расчетов [00:08:14] 1201 (3) - 38516.63 - общая итоговая сумма в чеках [00:08:14] 1136 (3) - 25819.00 - итоговая сумма в чеках наличными [00:08:14] 1138 (3) - 12697.63 - итоговая сумма в чеках безналичными [00:08:14] 1024 (122) - суммы налогов [00:08:14] 1006 (9) - суммы НДС [00:08:14] 1010 (1) - 0% - код ставки НДС [00:08:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:14] 1006 (12) - суммы НДС [00:08:14] 1010 (1) - 12% - код ставки НДС [00:08:14] 1011 (3) - 4089.96 - сумма НДС по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 0% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (11) - суммы НСП [00:08:14] 1014 (1) - 1% - код ставки НСП [00:08:14] 1015 (2) - 340.73 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 2% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 3% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 5% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 0,50% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 1,50% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1130 (151) - счетчики операций «возврат прихода» [00:08:14] 1135 (4) - 2 - количество чеков по признаку расчетов [00:08:14] 1201 (3) - 964.00 - общая итоговая сумма в чеках [00:08:14] 1136 (3) - 964.00 - итоговая сумма в чеках наличными [00:08:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:14] 1024 (121) - суммы налогов [00:08:14] 1006 (9) - суммы НДС [00:08:14] 1010 (1) - 0% - код ставки НДС [00:08:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:14] 1006 (11) - суммы НДС [00:08:14] 1010 (1) - 12% - код ставки НДС [00:08:14] 1011 (2) - 102.37 - сумма НДС по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 0% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (11) - суммы НСП [00:08:14] 1014 (1) - 1% - код ставки НСП [00:08:14] 1015 (2) - 8.53 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 2% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 3% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 5% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 0,50% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 1,50% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1131 (141) - счетчики операций «расход» [00:08:14] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:14] 1024 (117) - суммы налогов [00:08:14] 1006 (9) - суммы НДС [00:08:14] 1010 (1) - 0% - код ставки НДС [00:08:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:14] 1006 (9) - суммы НДС [00:08:14] 1010 (1) - 12% - код ставки НДС [00:08:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 0% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 1% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 2% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 3% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 5% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 0,50% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 1,50% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1132 (141) - счетчики операций «возврат расхода» [00:08:14] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:14] 1024 (117) - суммы налогов [00:08:14] 1006 (9) - суммы НДС [00:08:14] 1010 (1) - 0% - код ставки НДС [00:08:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:14] 1006 (9) - суммы НДС [00:08:14] 1010 (1) - 12% - код ставки НДС [00:08:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 0% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 1% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 2% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 3% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 5% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 0,50% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1007 (9) - суммы НСП [00:08:14] 1014 (1) - 1,50% - код ставки НСП [00:08:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:14] 1133 (588) - - счетчики коррекции - не используются [00:08:14]1077 (6) - 25280003463606 - ФПД [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1209 (04B9) [00:08:14]Malloc new data [00:08:14]Processing tag 1041 (0411) [00:08:14]Processing tag 1040 (0410) [00:08:14]Malloc new data [00:08:14]Processing tag 1038 (040E) [00:08:14]Malloc new data [00:08:14]Processing tag 1118 (045E) [00:08:14]Malloc new data [00:08:14]Processing tag 1111 (0457) [00:08:14]Malloc new data [00:08:14]Processing tag 1194 (04AA) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1134 (046E) [00:08:14]Malloc new data [00:08:14]Processing tag 1129 (0469) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1135 (046F) [00:08:14]Malloc new data [00:08:14]Processing tag 1201 (04B1) [00:08:14]Malloc new data [00:08:14]Processing tag 1136 (0470) [00:08:14]Malloc new data [00:08:14]Processing tag 1138 (0472) [00:08:14]Malloc new data [00:08:14]Processing tag 1024 (0400) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1006 (03EE) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1010 (03F2) [00:08:14]Malloc new data [00:08:14]Processing tag 1011 (03F3) [00:08:14]Malloc new data [00:08:14]SetTLVBufToDocument err=0 [00:08:14]Processing tag 1006 (03EE) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1010 (03F2) [00:08:14]Malloc new data [00:08:14]Processing tag 1011 (03F3) [00:08:14]Malloc new data [00:08:14]SetTLVBufToDocument err=0 [00:08:14]Processing tag 1007 (03EF) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1014 (03F6) [00:08:14]Malloc new data [00:08:14]Processing tag 1015 (03F7) [00:08:14]Malloc new data [00:08:14]SetTLVBufToDocument err=0 [00:08:14]Processing tag 1007 (03EF) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1014 (03F6) [00:08:14]Malloc new data [00:08:14]Processing tag 1015 (03F7) [00:08:14]Malloc new data [00:08:14]SetTLVBufToDocument err=0 [00:08:14]Processing tag 1007 (03EF) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1014 (03F6) [00:08:14]Malloc new data [00:08:14]Processing tag 1015 (03F7) [00:08:14]Malloc new data [00:08:14]SetTLVBufToDocument err=0 [00:08:14]Processing tag 1007 (03EF) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1014 (03F6) [00:08:14]Malloc new data [00:08:14]Processing tag 1015 (03F7) [00:08:14]Malloc new data [00:08:14]SetTLVBufToDocument err=0 [00:08:14]Processing tag 1007 (03EF) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1014 (03F6) [00:08:14]Malloc new data [00:08:14]Processing tag 1015 (03F7) [00:08:14]Malloc new data [00:08:14]SetTLVBufToDocument err=0 [00:08:14]Processing tag 1007 (03EF) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1014 (03F6) [00:08:14]Malloc new data [00:08:14]Processing tag 1015 (03F7) [00:08:14]Malloc new data [00:08:14]SetTLVBufToDocument err=0 [00:08:14]Processing tag 1007 (03EF) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1014 (03F6) [00:08:14]Malloc new data [00:08:14]Processing tag 1015 (03F7) [00:08:14]Malloc new data [00:08:14]SetTLVBufToDocument err=0 [00:08:14]SetTLVBufToDocument err=0 [00:08:14]SetTLVBufToDocument err=0 [00:08:14]Processing tag 1130 (046A) [00:08:14]Load OK [00:08:14]SetTLVBufToDocument [00:08:14]Processing tag 1135 (046F) [00:08:14]Malloc new data [00:08:14]Processing tag 1201 (04B1) [00:08:14]Malloc new data [00:08:15]Processing tag 1136 (0470) [00:08:15]Malloc new data [00:08:15]Processing tag 1138 (0472) [00:08:15]Malloc new data [00:08:15]Processing tag 1024 (0400) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1006 (03EE) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1010 (03F2) [00:08:15]Malloc new data [00:08:15]Processing tag 1011 (03F3) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1006 (03EE) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1010 (03F2) [00:08:15]Malloc new data [00:08:15]Processing tag 1011 (03F3) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]SetTLVBufToDocument err=0 [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1131 (046B) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1135 (046F) [00:08:15]Malloc new data [00:08:15]Processing tag 1201 (04B1) [00:08:15]Malloc new data [00:08:15]Processing tag 1136 (0470) [00:08:15]Malloc new data [00:08:15]Processing tag 1138 (0472) [00:08:15]Malloc new data [00:08:15]Processing tag 1024 (0400) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1006 (03EE) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1010 (03F2) [00:08:15]Malloc new data [00:08:15]Processing tag 1011 (03F3) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1006 (03EE) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1010 (03F2) [00:08:15]Malloc new data [00:08:15]Processing tag 1011 (03F3) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]SetTLVBufToDocument err=0 [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1132 (046C) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1135 (046F) [00:08:15]Malloc new data [00:08:15]Processing tag 1201 (04B1) [00:08:15]Malloc new data [00:08:15]Processing tag 1136 (0470) [00:08:15]Malloc new data [00:08:15]Processing tag 1138 (0472) [00:08:15]Malloc new data [00:08:15]Processing tag 1024 (0400) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1006 (03EE) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1010 (03F2) [00:08:15]Malloc new data [00:08:15]Processing tag 1011 (03F3) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1006 (03EE) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1010 (03F2) [00:08:15]Malloc new data [00:08:15]Processing tag 1011 (03F3) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1007 (03EF) [00:08:15]Load OK [00:08:15]SetTLVBufToDocument [00:08:15]Processing tag 1014 (03F6) [00:08:15]Malloc new data [00:08:15]Processing tag 1015 (03F7) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]SetTLVBufToDocument err=0 [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1133 (046D) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Processing tag 1077 (0435) [00:08:15]Malloc new data [00:08:15]SetTLVBufToDocument err=0 [00:08:15]Malloc new data [00:08:15]SAM_PROTO_GetFMData [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 13 03 00 [00:08:15]Write to MH i2c: E2 08 00 83 3A 80 13 03 00 00 00 00 00 3C [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 83 3A 00 C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 4C [00:08:15]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 [00:08:16]wFMCommunicate OK [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 17 00 00 [00:08:16]Write to MH i2c: E2 08 00 84 3A 80 17 00 00 00 00 00 00 3E [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 84 3A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 6E [00:08:16]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 [00:08:16]wFMCommunicate OK [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 17 00 00 [00:08:16]Write to MH i2c: E2 08 00 85 3A 80 17 00 00 00 00 00 00 3F [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 85 3A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [00:08:17]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:17]wFMCommunicate OK [00:08:17]wFMCommunicate request_size=4 [00:08:17]MH_SAM_APDU [00:08:17]CAPDU: 80 17 00 00 [00:08:17]Write to MH i2c: E2 08 00 86 3A 80 17 00 00 00 00 00 00 40 [00:08:17]Write i2c OK [00:08:17]MH_I2C_Read... [00:08:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:17]Read from MH i2c: E2 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 86 3A 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [00:08:17]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:17]wFMCommunicate OK [00:08:17]wFMCommunicate request_size=4 [00:08:17]MH_SAM_APDU [00:08:17]CAPDU: 80 17 00 00 [00:08:17]Write to MH i2c: E2 08 00 87 3A 80 17 00 00 00 00 00 00 41 [00:08:17]Write i2c OK [00:08:17]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 DF 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 DF 00 87 3A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 21 OFD Sender: No OFD packet to send [00:08:18] [00:08:18]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:18]wFMCommunicate OK [00:08:18]SAM_PROTO_GetFMData done [00:08:18]Malloc new data [00:08:18]Malloc new data [00:08:18]Malloc new data [00:08:18]Malloc new data [00:08:18]KKMLoadAndSignCloseShiftData err=0 [00:08:18]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арыкбаев Н. 25.10.2024 00:08 Смена: 547 РНМ: 0000000000091619 ЗНМ: 0300000154 СНО: Общий режим Чеков за смену: 147 ФД за смену: 149 Всего чеков: 147 ИТОГИ ПРИХОД Чеков: 145 Общий итог: 38516.63 Итого наличными: 25819.00 Итого безнал.: 12697.63 НДС 0% : 0.00 НДС 12% : 4089.96 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 340.73 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 964.00 Итого наличными: 964.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 102.37 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 8.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.00 Сумма выплат: 0.00 Нал. в кассе: 24855.00 НС Приход: 24872778.16 НС Возвр.Прихода: 125062.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 63534 ФМ: 0000000000874676 ФПД: 25280003463606 [00:08:18]StoreToDocumentArchive [00:08:18]shift 547 fd 63534 [00:08:18]save to /storage/0547/doc_00063534 [00:08:18]save last doc name /storage/0547/doc_00063534 to /storage/kkm_last_doc_name [00:08:18]save OK [00:08:18]Clear old archive folders... [00:08:18]Remove dir /storage/0522 [00:08:18]opendir ok [00:08:18]file . [00:08:18]file .. [00:08:18]file doc_1729814851 [00:08:18]remove file /storage/0522/doc_1729814851 [00:08:18]remove dir /storage/0522 [00:08:18]NVStorageSaveData kkm_registers [00:08:18]File name is /storage/kkm_registers [00:08:18]Write 24 bytes [00:08:18]NVStorageSaveData done [00:08:18]NVStorageSaveData kkm_registers [00:08:18]File name is /storage/kkm_registers [00:08:18]Write 24 bytes [00:08:18]NVStorageSaveData done [00:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [00:08:18]tlvbuf is 00CB4880 [00:08:18]SAM_PROTO_ClearQueue [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 09 00 00 [00:08:18]Write to MH i2c: E2 08 00 88 3A 80 09 00 00 00 00 00 00 34 [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 03 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 03 00 88 3A 00 90 00 36 [00:08:18]RAPDU: 90 00 [00:08:18]wFMCommunicate OK [00:08:18]SAM_PROTO_ClearQueue done [00:08:18]KKMCreateOFDPacket [00:08:18]OFDProtocolAddRootSTLVToBuf [00:08:18]FM_MakeSignedData [00:08:18]FM_MakeSignedData [00:08:18]SAM_PROTO_SignData [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 0D 01 02 [00:08:18]Write to MH i2c: E2 08 00 89 3A 80 0D 01 02 00 00 00 00 3C [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 03 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 03 00 89 3A 00 90 00 37 [00:08:18]RAPDU: 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=255 [00:08:18]MH_SAM_APDU [00:08:18]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 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 73 E1 1A 67 0E 04 04 00 23 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 AA 04 DB 04 6E 04 04 00 93 00 00 00 69 04 A2 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 [00:08:18]Write to MH i2c: E2 02 01 8A 3A 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 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 73 E1 1A 67 0E 04 04 00 23 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 AA 04 DB 04 6E 04 04 00 93 00 00 00 69 04 A2 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 70 [00:08:19]Write i2c OK [00:08:19]MH_I2C_Read... [00:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:19]Read from MH i2c: E2 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 03 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 03 00 8A 3A 00 90 00 38 [00:08:19]RAPDU: 90 00 [00:08:19]wFMCommunicate OK [00:08:19]wFMCommunicate request_size=255 [00:08:19]MH_SAM_APDU [00:08:19]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FD 27 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 55 03 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:08:19]Write to MH i2c: E2 02 01 8B 3A 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FD 27 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 55 03 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 E9 [00:08:19]Write i2c OK [00:08:19]MH_I2C_Read... [00:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:19]Read from MH i2c: E2 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 03 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 03 00 8B 3A 00 90 00 39 [00:08:19]RAPDU: 90 00 [00:08:19]wFMCommunicate OK [00:08:19]wFMCommunicate request_size=255 [00:08:19]MH_SAM_APDU [00:08:19]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:08:20]Write to MH i2c: E2 02 01 8C 3A 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 06 [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 8C 3A 00 90 00 3A [00:08:20]RAPDU: 90 00 [00:08:20]wFMCommunicate OK [00:08:20]wFMCommunicate request_size=255 [00:08:20]MH_SAM_APDU [00:08:20]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:08:20]Write to MH i2c: E2 02 01 8D 3A 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 10 [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 8D 3A 00 90 00 3B [00:08:21]RAPDU: 90 00 [00:08:21]wFMCommunicate OK [00:08:21]wFMCommunicate request_size=255 [00:08:21]MH_SAM_APDU [00:08:21]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:08:21]Write to MH i2c: E2 02 01 8E 3A 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 D1 [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 8E 3A 00 90 00 3C [00:08:21]RAPDU: 90 00 [00:08:21]wFMCommunicate OK [00:08:21]wFMCommunicate request_size=144 [00:08:21]MH_SAM_APDU [00:08:21]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 2E F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 16 FD F5 A0 59 B6 [00:08:22]Write to MH i2c: E2 93 00 8F 3A 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 2E F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 16 FD F5 A0 59 B6 00 00 63 [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 03 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 03 00 8F 3A 00 90 00 3D [00:08:22]RAPDU: 90 00 [00:08:22]wFMCommunicate OK [00:08:22]wFMCommunicate request_size=4 [00:08:22]MH_SAM_APDU [00:08:22]CAPDU: 80 0D 03 02 [00:08:22]Write to MH i2c: E2 08 00 90 3A 80 0D 03 02 00 00 00 00 45 [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 0B 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 0B 00 90 3A 00 B4 34 1F A7 90 86 96 1E 90 00 BE [00:08:22]RAPDU: B4 34 1F A7 90 86 96 1E 90 00 [00:08:22]wFMCommunicate OK [00:08:22]SAM_PROTO_SignData done [00:08:22]FM_MakeSignedData done [00:08:22]CreateOFDProtocolMessage [00:08:22]wFMCommunicate request_size=4 [00:08:22]MH_SAM_APDU [00:08:22]CAPDU: 80 11 00 00 [00:08:22]Write to MH i2c: E2 08 00 91 3A 80 11 00 00 00 00 00 00 45 [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 17 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 17 00 91 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9E [00:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:08:22]wFMCommunicate OK [00:08:22]CreateOFDProtocolMessage done [00:08:22]OFDSenderStorePacket 63534 [00:08:22]StoreOFDPacket docnum=63534 [00:08:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 7D 05 00 00 26 05 75 05 29 1A 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 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 73 E1 1A 67 0E 04 04 00 23 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 AA 04 DB 04 6E 04 04 00 93 00 00 00 69 04 A2 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 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 19 85 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FD 27 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 55 03 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 2E F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 16 FD F5 A0 59 B6 B4 34 1F A7 90 86 96 1E [00:08:22]CheckFolder [00:08:22]dirname=/storage/ofd_packets [00:08:22]CheckFolder done [00:08:22]ProducePacketName [00:08:22]name=ofd_packets/00063534 [00:08:22]NVStorageSaveData ofd_packets/00063534 [00:08:22]File name is /storage/ofd_packets/00063534 [00:08:22]Write 1435 bytes [00:08:22]NVStorageSaveData done [00:08:22]OFDSenderStorePacket done [00:08:22]KKMCreateOFDPacket done [00:08:22]NVStorageSaveData kkm_last_timestamp [00:08:22]File name is /storage/kkm_last_timestamp [00:08:22]Write 4 bytes [00:08:22]NVStorageSaveData done [00:08:22]ExternCall_PrintAddStr [00:08:22]wPrintStart [00:08:22]Write to MH i2c: 01 00 00 92 3A CC [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: 01 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: 01 07 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: 01 07 00 92 3A 00 00 00 00 00 FF 0F E1 [00:08:22]RasterBufferAndPrint [00:08:22]line Отчет о закрытии смены [00:08:22]line ФФД: 1.0 [00:08:22]line ИНН: 02508201610067 [00:08:22]line Кассир: Арыкбаев Н. [00:08:22]line 25.10.2024 00:08 [00:08:22]line Смена: 547 [00:08:22]line РНМ: 0000000000091619 [00:08:22]line ЗНМ: 0300000154 [00:08:22]line СНО: Общий режим [00:08:22]line Чеков за смену: 147 [00:08:22]line ФД за смену: 149 [00:08:22]line Всего чеков: 147 [00:08:22]line ИТОГИ ПРИХОД [00:08:22]line Чеков: 145 [00:08:22]line Общий итог: 38516.63 [00:08:22]line Итого наличными: 25819.00 [00:08:22]line Итого безнал.: 12697.63 [00:08:22]line НДС 0% : 0.00 [00:08:22]line НДС 12% : 4089.96 [00:08:22]line НСП 0% : 0.00 [00:08:22]line НСП 1,50% : 0.00 [00:08:22]line НСП 0,50% : 0.00 [00:08:22]line НСП 5% : 0.00 [00:08:22]line НСП 3% : 0.00 [00:08:22]line НСП 2% : 0.00 [00:08:22]line НСП 1% : 340.73 [00:08:22]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:22]line Чеков: 2 [00:08:22]line Общий итог: 964.00 [00:08:22]line Итого наличными: 964.00 [00:08:22]line Итого безнал.: 0.00 [00:08:22]line НДС 0% : 0.00 [00:08:22]line НДС 12% : 102.37 [00:08:22]line НСП 0% : 0.00 [00:08:22]line НСП 1,50% : 0.00 [00:08:22]line НСП 0,50% : 0.00 [00:08:22]line НСП 5% : 0.00 [00:08:22]line НСП 3% : 0.00 [00:08:22]line НСП 2% : 0.00 [00:08:22]line НСП 1% : 8.53 [00:08:22]line ИТОГИ РАСХОД [00:08:22]line Чеков: 0 [00:08:22]line Общий итог: 0.00 [00:08:22]line Итого наличными: 0.00 [00:08:22]line Итого безнал.: 0.00 [00:08:22]line НДС 0% : 0.00 [00:08:22]line НДС 12% : 0.00 [00:08:22]line НСП 0% : 0.00 [00:08:22]line НСП 1,50% : 0.00 [00:08:22]line НСП 0,50% : 0.00 [00:08:22]line НСП 5% : 0.00 [00:08:22]line НСП 3% : 0.00 [00:08:22]line НСП 2% : 0.00 [00:08:22]line НСП 1% : 0.00 [00:08:22]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:22]line Чеков: 0 [00:08:22]line Общий итог: 0.00 [00:08:22]line Итого наличными: 0.00 [00:08:22]line Итого безнал.: 0.00 [00:08:22]line НДС 0% : 0.00 [00:08:22]line НДС 12% : 0.00 [00:08:22]line НСП 0% : 0.00 [00:08:22]line НСП 1,50% : 0.00 [00:08:22]line НСП 0,50% : 0.00 [00:08:22]line НСП 5% : 0.00 [00:08:22]line НСП 3% : 0.00 [00:08:22]line НСП 2% : 0.00 [00:08:22]line НСП 1% : 0.00 [00:08:22]line Сумма внесений: 0.00 [00:08:22]line Сумма выплат: 0.00 [00:08:22]line Нал. в кассе: 24855.00 [00:08:22]line НС Приход: 24872778.16 [00:08:22]line НС Возвр.Прихода: 125062.60 [00:08:22]line НС Расход: 0.00 [00:08:22]line НС Возвр.Расхода: 0.00 [00:08:22]line ФД: 63534 [00:08:22]line ФМ: 0000000000874676 [00:08:22]line ФПД: 25280003463606 [00:08:22]OFD Sender: Processing packet 63534 [packets to send 232, broken 231] [00:08:22]ProducePacketName [00:08:22]name=ofd_packets/00063534 [00:08:22]written 0, free lines is 4095 [00:08:22]OFD Sender: To server: pG, [00:08:22]CommunicateWithHost lk.salyk.kg:30040 [00:08:22]ConnectInit lk.salyk.kg [00:08:23]Connected sock=10 [00:08:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 7D 05 00 00 26 05 75 05 29 1A 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 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 73 E1 1A 67 0E 04 04 00 23 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 AA 04 DB 04 6E 04 04 00 93 00 00 00 69 04 A2 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 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 19 85 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 FD 27 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 55 03 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 Write to MH i2c: EF 01 03 00 0A 00 00 E2 F6 3A 03 1C 01 [00:08:23]00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 Write i2c OK [00:08:23]00 MH_I2C_Read... [00:08:23]00 Read from MH i2c: EF 01 03 [00:08:23]0A MH_I2C_Read... [00:08:23]00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 Read from MH i2c: F6 01 03 07 01 00 00 [00:08:23]02 MH_I2C_Read... [00:08:23]F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 Read from MH i2c: 00 01 00 07 6D 00 04 E2 4C 3A 02 00 78 00 04 00 04 00 00 00 00 03 00 0B 00 31 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 [00:08:23]04 RasterBufferAndPrint [00:08:23]00 line [00:08:23]00 line [00:08:23]70 line [00:08:23]04 line [00:08:23]00 line [00:08:23]00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 written 0, free lines is 2987 [00:08:23]01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 MH_Cut [00:08:23]EF Write to MH i2c: 03 D1 09 00 01 F6 00 03 E9 01 3A 00 01 01 F5 F7 [00:08:23]03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 Write i2c OK [00:08:23]00 MH_I2C_Read... [00:08:23]00 Read from MH i2c: EF D1 03 [00:08:23]09 MH_I2C_Read... [00:08:23]00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 D1 01 01 00 00 04 [00:08:24]F7 MH_I2C_Read... [00:08:24]03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 E9 F6 3A 03 00 01 F4 00 [00:08:24]06 Write to MH i2c: F7 01 03 00 00 00 00 EA D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 3A 00 24 00 [00:08:24]70 04 00 00 72 04 00 00 00 04 Write i2c OK [00:08:24]75 MH_I2C_Read... [00:08:24]00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2E F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 16 FD F5 A0 59 B6 B4 34 1F A7 90 86 96 1E [00:08:24]*** Cut start [00:08:24]*** Partial cut [00:08:24]*** CUTSNS_PIN = 1 [00:08:24]*** CUTSNS_PIN = 0 [00:08:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CF F0 47 00 EE C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2E F8 00 00 F4 03 04 00 71 8B 1A 67 B6 04 01 00 00 E4 14 73 8E 01 64 67 85 [00:08:25]CommunicateWithHost err = 0 [00:08:25]CheckOFDResponse [00:08:25]1017 (14) - 77093643461234 [00:08:25]1041 (16) - 0000000000874676 [00:08:25]1040 (4) - 63534 [00:08:25]1012 (4) - 24.10.2024 18:01 [00:08:25]1206 (1) - 0 [00:08:25]OFD Sender: Remove packet 63534 [00:08:25]ProducePacketName [00:08:25]name=ofd_packets/00063534 [00:08:25]NVStorageDeleteData [00:08:25]*** Brake cut motor [00:08:25]Read from MH i2c: 01 [00:08:25]MH_I2C_Read... [00:08:25]*** Stop cut motor [00:08:25]*** Cut end [00:08:25]Read from MH i2c: 01 07 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: 01 07 00 EA 3A 00 00 00 00 00 FF 0F 39 [00:08:25]process_action close_shift done [00:08:25]requested_data is exist [00:08:25]produce_requested_data [00:08:25]requested_item fd.num is exist - process it [00:08:25]SAM_PROTO_GetFieldsCounters [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 13 00 00 [00:08:25]Write to MH i2c: E2 08 00 EB 3A 80 13 00 00 00 00 00 00 A1 [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:25]OFD Sender: No OFD packet to send [00:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 62 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 62 00 EB 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2E F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [00:08:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2E F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:25]wFMCommunicate OK [00:08:25]SAM_PROTO_GetFieldsCounters done [00:08:25]requested_item shift.num is exist - process it [00:08:25]requested_item shift.opened is exist - process it [00:08:25]req_shift_opened [00:08:25]FM_GetShiftState [00:08:25]SAM_PROTO_GetShiftState [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 13 01 00 [00:08:25]Write to MH i2c: E2 08 00 EC 3A 80 13 01 00 00 00 00 00 A3 [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 0E 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 0E 00 EC 3A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AE [00:08:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:25]wFMCommunicate OK [00:08:25]SAM_PROTO_GetShiftState done [00:08:25]FM_GetShiftState done [00:08:25]req_shift_opened done [00:08:25]requested_item shift.open_date is exist - process it [00:08:25]req_shift_open_date [00:08:25]FM_GetShiftState [00:08:25]SAM_PROTO_GetShiftState [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 13 01 00 [00:08:25]Write to MH i2c: E2 08 00 ED 3A 80 13 01 00 00 00 00 00 A4 [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 0E 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 0E 00 ED 3A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AF [00:08:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:25]wFMCommunicate OK [00:08:25]SAM_PROTO_GetShiftState done [00:08:25]FM_GetShiftState done [00:08:25]req_shift_open_date done [00:08:25]produce_requested_data done [00:08:25]produce_requested_data return {"fd.num":63534,"shift.num":547,"shift.opened":0,"shift.open_date":0} [00:08:25]process_action_free close_shift [00:08:25]json_value_free [00:08:25]json_value_free done [00:08:25]process_json_proto returns [00:08:25]Send response to host [00:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63534,"shift.num":547,"shift.opened":0,"shift.open_date":0}}} [00:08:25]free response buf [00:08:25]execute_script done [00:08:25]execute_script returns [00:08:25]free content buf [00:08:25]Sock 9.Close socket [00:08:25]Sock 9.Thread stoped [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:07]accept exits with 7 [00:15:07]New connection [00:15:07]New thread 3066633572 created [00:15:07]Thread 3066490212 joined [00:15:07]Waiting for new connection... [00:15:07] Sock 7.Parse request [00:15:07]Sock 7.Check first char [00:15:07]Sock 7.First char is OK [00:15:07]request: POST /json_proto HTTP/1.0 [00:15:07]Method: POST [00:15:07]URL: /json_proto [00:15:07]Method is POST - this is cgi request [00:15:07]url: /json_proto [00:15:07]query_string will be loaded in cgi processing [00:15:07]execute_cgi json_proto POST (null) [00:15:07]execute_cgi path=json_proto method=POST [00:15:07]POST find Content-Length [00:15:07]Host: 172.17.42.132:8080 [00:15:07]Content-Length: 215 [00:15:07]Content-Type: application/json [00:15:07] [00:15:07]POST finish read [00:15:07]Found Content-Length = 215 [00:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:07]execute_script... [00:15:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:07]POST & json_proto [00:15:07]process_json_proto [00:15:07]json parsed OK: [00:15:07]protocol is kg_v1.0 [00:15:07]action value=get_value [00:15:07]process_action get_value [00:15:07]cmd_get_value [00:15:07]process_action get_value done [00:15:07]requested_data is exist [00:15:07]produce_requested_data [00:15:07]requested_item kkm.sn is exist - process it [00:15:07]requested_item kkm.ver is exist - process it [00:15:07]requested_item fm.sn is exist - process it [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 11 00 00 [00:15:07]Write to MH i2c: E2 08 00 EE 3A 80 11 00 00 00 00 00 00 A2 [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 17 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 17 00 EE 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FB [00:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:15:08]wFMCommunicate OK [00:15:08]requested_item fd.num is exist - process it [00:15:08]SAM_PROTO_GetFieldsCounters [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 13 00 00 [00:15:08]Write to MH i2c: E2 08 00 EF 3A 80 13 00 00 00 00 00 00 A5 [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 62 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 62 00 EF 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2E F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [00:15:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2E F8 00 00 0E 04 04 00 23 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:08]wFMCommunicate OK [00:15:08]SAM_PROTO_GetFieldsCounters done [00:15:08]requested_item shift.num is exist - process it [00:15:08]requested_item shift.opened is exist - process it [00:15:08]req_shift_opened [00:15:08]FM_GetShiftState [00:15:08]SAM_PROTO_GetShiftState [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 13 01 00 [00:15:08]Write to MH i2c: E2 08 00 F0 3A 80 13 01 00 00 00 00 00 A7 [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 0E 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 0E 00 F0 3A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B2 [00:15:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:08]wFMCommunicate OK [00:15:08]SAM_PROTO_GetShiftState done [00:15:08]FM_GetShiftState done [00:15:08]req_shift_opened done [00:15:08]requested_item shift.open_date is exist - process it [00:15:08]req_shift_open_date [00:15:08]FM_GetShiftState [00:15:08]SAM_PROTO_GetShiftState [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 13 01 00 [00:15:08]Write to MH i2c: E2 08 00 F1 3A 80 13 01 00 00 00 00 00 A8 [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 0E 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 0E 00 F1 3A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B3 [00:15:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:08]wFMCommunicate OK [00:15:08]SAM_PROTO_GetShiftState done [00:15:08]FM_GetShiftState done [00:15:08]req_shift_open_date done [00:15:08]produce_requested_data done [00:15:08]produce_requested_data return {"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63534,"shift.num":547,"shift.opened":0,"shift.open_date":0} [00:15:08]process_action_free get_value [00:15:08]json_value_free [00:15:08]json_value_free done [00:15:08]process_json_proto returns [00:15:08]Send response to host [00:15:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63534,"shift.num":547,"shift.opened":0,"shift.open_date":0}}} [00:15:08]free response buf [00:15:08]execute_script done [00:15:08]execute_script returns [00:15:08]free content buf [00:15:08]Sock 7.Close socket [00:15:08]Sock 7.Thread stoped [00:15:08]accept exits with 9 [00:15:08]New connection [00:15:08]New thread 3066490212 created [00:15:08]Thread 3066633572 joined [00:15:08]Waiting for new connection... [00:15:08] Sock 9.Parse request [00:15:08]Sock 9.Check first char [00:15:08]Sock 9.First char is OK [00:15:08]request: POST /json_proto HTTP/1.0 [00:15:08]Method: POST [00:15:08]URL: /json_proto [00:15:08]Method is POST - this is cgi request [00:15:08]url: /json_proto [00:15:08]query_string will be loaded in cgi processing [00:15:08]execute_cgi json_proto POST (null) [00:15:08]execute_cgi path=json_proto method=POST [00:15:08]POST find Content-Length [00:15:08]Host: 172.17.42.132:8080 [00:15:08]Content-Length: 331 [00:15:08]Content-Type: application/json [00:15:08] [00:15:08]POST finish read [00:15:08]Found Content-Length = 331 [00:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:08]execute_script... [00:15:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:08]POST & json_proto [00:15:08]process_json_proto [00:15:08]json parsed OK: [00:15:08]protocol is kg_v1.0 [00:15:08]action value=get_value [00:15:08]process_action get_value [00:15:08]cmd_get_value [00:15:08]process_action get_value done [00:15:08]requested_data is exist [00:15:08]produce_requested_data [00:15:08]requested_item fm.sale.total is exist - process it [00:15:08]SAM_PROTO_GetFMData [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 13 03 00 [00:15:08]Write to MH i2c: E2 08 00 F2 3A 80 13 03 00 00 00 00 00 AB [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 F2 3A 00 C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 BB [00:15:09]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 [00:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 F3 3A 80 17 00 00 00 00 00 00 AD [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 F3 3A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 DD [00:15:09]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 [00:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 F4 3A 80 17 00 00 00 00 00 00 AE [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 F4 3A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [00:15:09]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 F5 3A 80 17 00 00 00 00 00 00 AF [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 F5 3A 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [00:15:09]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 F6 3A 80 17 00 00 00 00 00 00 B0 [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 DF 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 DF 00 F6 3A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 90 [00:15:10]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:10]wFMCommunicate OK [00:15:10]SAM_PROTO_GetFMData done [00:15:10]requested_item fm.sale_refund.total is exist - process it [00:15:10]requested_item fm.buy.total is exist - process it [00:15:10]requested_item shift.sale.total is exist - process it [00:15:10]SAM_PROTO_GetShiftData [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 13 02 00 [00:15:10]Write to MH i2c: E2 08 00 F7 3A 80 13 02 00 00 00 00 00 AF [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 F7 3A 00 B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 9E [00:15:10]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 93 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 8F C5 3A 70 04 03 00 8C 65 27 72 04 03 00 03 60 13 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 A4 3D 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 78 01 70 04 03 00 90 78 01 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 FD 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 17 00 00 [00:15:10]Write to MH i2c: E2 08 00 F8 3A 80 17 00 00 00 00 00 00 B2 [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 F8 3A 00 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 3B [00:15:10]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 55 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 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 90 00 [00:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 17 00 00 [00:15:10]Write to MH i2c: E2 08 00 F9 3A 80 17 00 00 00 00 00 00 B3 [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 F9 3A 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 55 [00:15:11]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 17 00 00 [00:15:11]Write to MH i2c: E2 08 00 FA 3A 80 17 00 00 00 00 00 00 B4 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]OFD Sender: No OFD packet to send [00:15:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 FA 3A 00 03 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 90 00 3D [00:15:11]RAPDU: 03 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 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 17 00 00 [00:15:11]Write to MH i2c: E2 08 00 FB 3A 80 17 00 00 00 00 00 00 B5 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 D5 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 D5 00 FB 3A 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 96 [00:15:11]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:11]wFMCommunicate OK [00:15:11]SAM_PROTO_GetShiftData done [00:15:11]requested_item shift.sale.total_cash is exist - process it [00:15:11]requested_item shift.sale_refund.total is exist - process it [00:15:11]requested_item shift.sale_refund.total_cash is exist - process it [00:15:11]requested_item shift.buy.total is exist - process it [00:15:11]requested_item shift.buy.total_cash is exist - process it [00:15:11]produce_requested_data done [00:15:11]produce_requested_data return {"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:15:11]process_action_free get_value [00:15:11]json_value_free [00:15:11]json_value_free done [00:15:11]process_json_proto returns [00:15:11]Send response to host [00:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"fm.buy.total":0.00,"shift.sale.total":38516.63,"shift.sale.total_cash":25819.00,"shift.sale_refund.total":964.00,"shift.sale_refund.total_cash":964.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:15:11]free response buf [00:15:11]execute_script done [00:15:11]execute_script returns [00:15:11]free content buf [00:15:11]Sock 9.Close socket [00:15:11]Sock 9.Thread stoped [00:15:11]accept exits with 7 [00:15:11]New connection [00:15:11]New thread 3066633572 created [00:15:11]Thread 3066490212 joined [00:15:11]Waiting for new connection... [00:15:11] Sock 7.Parse request [00:15:11]Sock 7.Check first char [00:15:11]Sock 7.First char is OK [00:15:11]request: POST /json_proto HTTP/1.0 [00:15:11]Method: POST [00:15:11]URL: /json_proto [00:15:11]Method is POST - this is cgi request [00:15:11]url: /json_proto [00:15:11]query_string will be loaded in cgi processing [00:15:11]execute_cgi json_proto POST (null) [00:15:11]execute_cgi path=json_proto method=POST [00:15:11]POST find Content-Length [00:15:11]Host: 172.17.42.132:8080 [00:15:11]Content-Length: 284 [00:15:11]Content-Type: application/json [00:15:11] [00:15:11]POST finish read [00:15:11]Found Content-Length = 284 [00:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:11]execute_script... [00:15:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:11]POST & json_proto [00:15:11]process_json_proto [00:15:11]json parsed OK: [00:15:11]protocol is kg_v1.0 [00:15:11]action value=open_shift [00:15:11]process_action open_shift [00:15:11]cmd_open_shift [00:15:11]MH_GetDate [00:15:11]Write to MH i2c: F0 00 00 FC 3A 25 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 09 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 09 00 FC 3A 00 18 E3 1A 67 4C DF 56 66 91 [00:15:11]GetLastDocTimeStamp 1729814899 [00:15:11]current date 1729815320 [00:15:11]FM_GetShiftState [00:15:11]SAM_PROTO_GetShiftState [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 13 01 00 [00:15:11]Write to MH i2c: E2 08 00 FD 3A 80 13 01 00 00 00 00 00 B4 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 0E 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 0E 00 FD 3A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BF [00:15:11]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:11]wFMCommunicate OK [00:15:11]SAM_PROTO_GetShiftState done [00:15:11]FM_GetShiftState done [00:15:11]KKMCreateOpenShiftDocument [00:15:11]Load OK [00:15:11]Malloc new data [00:15:11]MH_GetDate [00:15:11]Write to MH i2c: F0 00 00 FE 3A 27 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 09 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: F0 09 00 FE 3A 00 18 E3 1A 67 4C DF 56 66 93 [00:15:11]Malloc new data [00:15:11]KKMCreateOpenShiftDocument OK [00:15:11]KKMSetOpenShiftData OK [00:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=212 [00:15:11]tlvbuf is 00B0C540 [00:15:11]KKMLoadAndSignOpenShiftData [00:15:11]SAM_PROTO_ProcessDocument [00:15:11]wFMCommunicate request_size=9 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 01 00 04 02 00 D4 00 [00:15:11]Write to MH i2c: E2 0C 00 FF 3A 80 15 01 00 04 00 02 00 D4 00 00 00 96 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 FF 3A 00 90 00 AD [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=23 [00:15:11]MH_SAM_APDU [00:15:11]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:15:11]Write to MH i2c: E2 1A 00 00 3B 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 B0 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 03 00 00 3B 00 90 00 AF [00:15:11]RAPDU: 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=39 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 [00:15:12]Write to MH i2c: E2 2A 00 01 3B 80 15 02 00 22 00 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 00 00 54 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 01 3B 00 90 00 B0 [00:15:12]RAPDU: 90 00 [00:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=92 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 [00:15:12]Write to MH i2c: E2 5F 00 02 3B 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 00 00 E1 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 02 3B 00 90 00 B1 [00:15:12]RAPDU: 90 00 [00:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=50 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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:15:12]Write to MH i2c: E2 35 00 03 3B 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 3B [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 03 3B 00 90 00 B2 [00:15:12]RAPDU: 90 00 [00:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=13 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 15 02 00 08 F4 03 04 00 18 E3 1A 67 [00:15:12]Write to MH i2c: E2 10 00 04 3B 80 15 02 00 08 00 F4 03 04 00 18 E3 1A 67 00 00 46 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 04 3B 00 90 00 B3 [00:15:12]RAPDU: 90 00 [00:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=25 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 [00:15:12]Write to MH i2c: E2 1C 00 05 3B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 00 00 23 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 03 00 05 3B 00 90 00 B4 [00:15:12]RAPDU: 90 00 [00:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=4 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 15 03 00 [00:15:12]Write to MH i2c: E2 08 00 06 3B 80 15 03 00 00 00 00 00 C2 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 38 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 38 00 06 3B 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2F F8 00 00 0E 04 04 00 24 02 00 00 35 04 06 00 D7 62 10 EB 01 8C 90 00 A2 [00:15:12]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2F F8 00 00 0E 04 04 00 24 02 00 00 35 04 06 00 D7 62 10 EB 01 8C 90 00 [00:15:12]wFMCommunicate OK [00:15:12]SAM_PROTO_ProcessDocument answer len = 51 [00:15:12]SAM_PROTO_ProcessDocument done [00:15:12]SetTLVBufToDocument [00:15:12]Processing tag 1209 (04B9) [00:15:12]Malloc new data [00:15:12]Processing tag 1041 (0411) [00:15:12]Processing tag 1040 (0410) [00:15:12]Malloc new data [00:15:12]Processing tag 1038 (040E) [00:15:12]Malloc new data [00:15:12]Processing tag 1077 (0435) [00:15:12]Malloc new data [00:15:12]SetTLVBufToDocument err=0 [00:15:12]KKMLoadAndSignOpenShiftData store KKM data [00:15:12]KKMLoadAndSignOpenShiftData err=0 [00:15:12]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Суйунбай уулу И. Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 Место: АЗС № 86 "Партнер Нефть" 25.10.2024 00:15 Смена: 548 РНМ: 0000000000091619 ЗНМ: 0300000154 ФД: 63535 ФМ: 0000000000874676 ФПД: 236816190603660 [00:15:12]StoreToDocumentArchive [00:15:12]shift 548 fd 63535 [00:15:12]Create dir for shift 0548 [00:15:12]save to /storage/0548/doc_00063535 [00:15:12]save last doc name /storage/0548/doc_00063535 to /storage/kkm_last_doc_name [00:15:12]save OK [00:15:12]Clear old archive folders... [00:15:12]Remove dir /storage/0547 [00:15:12]opendir ok [00:15:12]file . [00:15:12]file .. [00:15:12]file doc_00063386 [00:15:12]remove file /storage/0547/doc_00063386 [00:15:12]file doc_00063387 [00:15:12]remove file /storage/0547/doc_00063387 [00:15:12]file doc_00063388 [00:15:12]remove file /storage/0547/doc_00063388 [00:15:12]file doc_00063389 [00:15:12]remove file /storage/0547/doc_00063389 [00:15:12]file doc_00063390 [00:15:12]remove file /storage/0547/doc_00063390 [00:15:12]file doc_00063391 [00:15:12]remove file /storage/0547/doc_00063391 [00:15:12]file doc_00063392 [00:15:12]remove file /storage/0547/doc_00063392 [00:15:12]file doc_00063393 [00:15:12]remove file /storage/0547/doc_00063393 [00:15:12]file doc_00063394 [00:15:12]remove file /storage/0547/doc_00063394 [00:15:12]file doc_00063395 [00:15:12]remove file /storage/0547/doc_00063395 [00:15:12]file doc_00063396 [00:15:12]remove file /storage/0547/doc_00063396 [00:15:12]file doc_00063397 [00:15:12]remove file /storage/0547/doc_00063397 [00:15:12]file doc_00063398 [00:15:12]remove file /storage/0547/doc_00063398 [00:15:12]file doc_00063399 [00:15:12]remove file /storage/0547/doc_00063399 [00:15:12]file doc_00063400 [00:15:12]remove file /storage/0547/doc_00063400 [00:15:12]file doc_00063401 [00:15:12]remove file /storage/0547/doc_00063401 [00:15:12]file doc_00063402 [00:15:12]remove file /storage/0547/doc_00063402 [00:15:12]file doc_00063403 [00:15:12]remove file /storage/0547/doc_00063403 [00:15:12]file doc_00063404 [00:15:12]remove file /storage/0547/doc_00063404 [00:15:12]file doc_00063405 [00:15:12]remove file /storage/0547/doc_00063405 [00:15:12]file doc_00063406 [00:15:12]remove file /storage/0547/doc_00063406 [00:15:12]file doc_00063407 [00:15:12]remove file /storage/0547/doc_00063407 [00:15:12]file doc_00063408 [00:15:12]remove file /storage/0547/doc_00063408 [00:15:12]file doc_00063409 [00:15:12]remove file /storage/0547/doc_00063409 [00:15:12]file doc_00063410 [00:15:12]remove file /storage/0547/doc_00063410 [00:15:12]file doc_00063411 [00:15:12]remove file /storage/0547/doc_00063411 [00:15:12]file doc_00063412 [00:15:12]remove file /storage/0547/doc_00063412 [00:15:12]file doc_00063413 [00:15:12]remove file /storage/0547/doc_00063413 [00:15:12]file doc_00063414 [00:15:12]remove file /storage/0547/doc_00063414 [00:15:12]file doc_00063415 [00:15:12]remove file /storage/0547/doc_00063415 [00:15:12]file doc_00063416 [00:15:12]remove file /storage/0547/doc_00063416 [00:15:12]file doc_00063417 [00:15:12]remove file /storage/0547/doc_00063417 [00:15:12]file doc_00063418 [00:15:12]remove file /storage/0547/doc_00063418 [00:15:12]file doc_00063419 [00:15:12]remove file /storage/0547/doc_00063419 [00:15:12]file doc_00063420 [00:15:12]remove file /storage/0547/doc_00063420 [00:15:12]file doc_00063421 [00:15:12]remove file /storage/0547/doc_00063421 [00:15:12]file doc_00063422 [00:15:12]remove file /storage/0547/doc_00063422 [00:15:12]file doc_00063423 [00:15:12]remove file /storage/0547/doc_00063423 [00:15:12]file doc_00063424 [00:15:12]remove file /storage/0547/doc_00063424 [00:15:12]file doc_00063425 [00:15:12]remove file /storage/0547/doc_00063425 [00:15:12]file doc_00063426 [00:15:12]remove file /storage/0547/doc_00063426 [00:15:12]file doc_00063427 [00:15:12]remove file /storage/0547/doc_00063427 [00:15:12]file doc_00063428 [00:15:12]remove file /storage/0547/doc_00063428 [00:15:12]file doc_00063429 [00:15:12]remove file /storage/0547/doc_00063429 [00:15:12]file doc_00063430 [00:15:12]remove file /storage/0547/doc_00063430 [00:15:12]file doc_00063431 [00:15:12]remove file /storage/0547/doc_00063431 [00:15:12]file doc_00063432 [00:15:12]remove file /storage/0547/doc_00063432 [00:15:12]file doc_00063433 [00:15:12]remove file /storage/0547/doc_00063433 [00:15:12]file doc_00063434 [00:15:12]remove file /storage/0547/doc_00063434 [00:15:12]file doc_00063435 [00:15:12]remove file /storage/0547/doc_00063435 [00:15:12]file doc_00063436 [00:15:12]remove file /storage/0547/doc_00063436 [00:15:12]file doc_00063437 [00:15:12]remove file /storage/0547/doc_00063437 [00:15:12]file doc_00063438 [00:15:12]remove file /storage/0547/doc_00063438 [00:15:12]file doc_00063439 [00:15:12]remove file /storage/0547/doc_00063439 [00:15:12]file doc_00063440 [00:15:12]remove file /storage/0547/doc_00063440 [00:15:12]file doc_00063441 [00:15:12]remove file /storage/0547/doc_00063441 [00:15:12]file doc_00063442 [00:15:12]remove file /storage/0547/doc_00063442 [00:15:12]file doc_00063443 [00:15:12]remove file /storage/0547/doc_00063443 [00:15:12]file doc_00063444 [00:15:12]remove file /storage/0547/doc_00063444 [00:15:12]file doc_00063445 [00:15:12]remove file /storage/0547/doc_00063445 [00:15:12]file doc_00063446 [00:15:13]remove file /storage/0547/doc_00063446 [00:15:13]file doc_00063447 [00:15:13]remove file /storage/0547/doc_00063447 [00:15:13]file doc_00063448 [00:15:13]remove file /storage/0547/doc_00063448 [00:15:13]file doc_00063449 [00:15:13]remove file /storage/0547/doc_00063449 [00:15:13]file doc_00063450 [00:15:13]remove file /storage/0547/doc_00063450 [00:15:13]file doc_00063451 [00:15:13]remove file /storage/0547/doc_00063451 [00:15:13]file doc_00063452 [00:15:13]remove file /storage/0547/doc_00063452 [00:15:13]file doc_00063453 [00:15:13]remove file /storage/0547/doc_00063453 [00:15:13]file doc_00063454 [00:15:13]remove file /storage/0547/doc_00063454 [00:15:13]file doc_00063455 [00:15:13]remove file /storage/0547/doc_00063455 [00:15:13]file doc_00063456 [00:15:13]remove file /storage/0547/doc_00063456 [00:15:13]file doc_00063457 [00:15:13]remove file /storage/0547/doc_00063457 [00:15:13]file doc_00063458 [00:15:13]remove file /storage/0547/doc_00063458 [00:15:13]file doc_00063459 [00:15:13]remove file /storage/0547/doc_00063459 [00:15:13]file doc_00063460 [00:15:13]remove file /storage/0547/doc_00063460 [00:15:13]file doc_00063461 [00:15:13]remove file /storage/0547/doc_00063461 [00:15:13]file doc_00063462 [00:15:13]remove file /storage/0547/doc_00063462 [00:15:13]file doc_00063463 [00:15:13]remove file /storage/0547/doc_00063463 [00:15:13]file doc_00063464 [00:15:13]remove file /storage/0547/doc_00063464 [00:15:13]file doc_00063465 [00:15:13]remove file /storage/0547/doc_00063465 [00:15:13]file doc_00063466 [00:15:13]remove file /storage/0547/doc_00063466 [00:15:13]file doc_00063467 [00:15:13]remove file /storage/0547/doc_00063467 [00:15:13]file doc_00063468 [00:15:13]remove file /storage/0547/doc_00063468 [00:15:13]file doc_00063469 [00:15:13]remove file /storage/0547/doc_00063469 [00:15:13]file doc_00063470 [00:15:13]remove file /storage/0547/doc_00063470 [00:15:13]file doc_00063471 [00:15:13]remove file /storage/0547/doc_00063471 [00:15:13]file doc_00063472 [00:15:13]remove file /storage/0547/doc_00063472 [00:15:13]file doc_00063473 [00:15:13]remove file /storage/0547/doc_00063473 [00:15:13]file doc_00063474 [00:15:13]remove file /storage/0547/doc_00063474 [00:15:13]file doc_00063475 [00:15:13]remove file /storage/0547/doc_00063475 [00:15:13]file doc_00063476 [00:15:13]remove file /storage/0547/doc_00063476 [00:15:13]file doc_00063477 [00:15:13]remove file /storage/0547/doc_00063477 [00:15:13]file doc_00063478 [00:15:13]remove file /storage/0547/doc_00063478 [00:15:13]file doc_00063479 [00:15:13]remove file /storage/0547/doc_00063479 [00:15:13]file doc_00063480 [00:15:13]remove file /storage/0547/doc_00063480 [00:15:13]file doc_00063481 [00:15:13]remove file /storage/0547/doc_00063481 [00:15:13]file doc_00063482 [00:15:13]remove file /storage/0547/doc_00063482 [00:15:13]file doc_00063483 [00:15:13]remove file /storage/0547/doc_00063483 [00:15:13]file doc_00063484 [00:15:13]remove file /storage/0547/doc_00063484 [00:15:13]file doc_00063485 [00:15:13]remove file /storage/0547/doc_00063485 [00:15:13]file doc_00063486 [00:15:13]remove file /storage/0547/doc_00063486 [00:15:13]file doc_00063487 [00:15:13]remove file /storage/0547/doc_00063487 [00:15:13]file doc_00063488 [00:15:13]remove file /storage/0547/doc_00063488 [00:15:13]file doc_00063489 [00:15:13]remove file /storage/0547/doc_00063489 [00:15:13]file doc_00063490 [00:15:13]remove file /storage/0547/doc_00063490 [00:15:13]file doc_00063491 [00:15:13]remove file /storage/0547/doc_00063491 [00:15:13]file doc_00063492 [00:15:13]remove file /storage/0547/doc_00063492 [00:15:13]file doc_00063493 [00:15:13]remove file /storage/0547/doc_00063493 [00:15:13]file doc_00063494 [00:15:13]remove file /storage/0547/doc_00063494 [00:15:13]file doc_00063495 [00:15:13]remove file /storage/0547/doc_00063495 [00:15:13]file doc_00063496 [00:15:13]remove file /storage/0547/doc_00063496 [00:15:13]file doc_00063497 [00:15:13]remove file /storage/0547/doc_00063497 [00:15:13]file doc_00063498 [00:15:13]remove file /storage/0547/doc_00063498 [00:15:13]file doc_00063499 [00:15:13]remove file /storage/0547/doc_00063499 [00:15:13]file doc_00063500 [00:15:13]remove file /storage/0547/doc_00063500 [00:15:13]file doc_00063501 [00:15:13]remove file /storage/0547/doc_00063501 [00:15:13]file doc_00063502 [00:15:13]remove file /storage/0547/doc_00063502 [00:15:13]file doc_00063503 [00:15:13]remove file /storage/0547/doc_00063503 [00:15:13]file doc_00063504 [00:15:13]remove file /storage/0547/doc_00063504 [00:15:13]file doc_00063505 [00:15:13]remove file /storage/0547/doc_00063505 [00:15:13]file doc_00063506 [00:15:13]remove file /storage/0547/doc_00063506 [00:15:13]file doc_00063507 [00:15:13]remove file /storage/0547/doc_00063507 [00:15:13]file doc_00063508 [00:15:13]remove file /storage/0547/doc_00063508 [00:15:13]file doc_00063509 [00:15:13]remove file /storage/0547/doc_00063509 [00:15:13]file doc_00063510 [00:15:13]remove file /storage/0547/doc_00063510 [00:15:13]file doc_00063511 [00:15:13]remove file /storage/0547/doc_00063511 [00:15:13]file doc_00063512 [00:15:13]remove file /storage/0547/doc_00063512 [00:15:13]file doc_00063513 [00:15:13]remove file /storage/0547/doc_00063513 [00:15:13]file doc_00063514 [00:15:13]remove file /storage/0547/doc_00063514 [00:15:13]file doc_00063515 [00:15:13]remove file /storage/0547/doc_00063515 [00:15:13]file doc_00063516 [00:15:13]remove file /storage/0547/doc_00063516 [00:15:13]file doc_00063517 [00:15:13]remove file /storage/0547/doc_00063517 [00:15:13]file doc_00063518 [00:15:13]remove file /storage/0547/doc_00063518 [00:15:13]file doc_00063519 [00:15:13]remove file /storage/0547/doc_00063519 [00:15:13]file doc_00063520 [00:15:13]remove file /storage/0547/doc_00063520 [00:15:13]file doc_00063521 [00:15:13]remove file /storage/0547/doc_00063521 [00:15:13]file doc_00063522 [00:15:13]remove file /storage/0547/doc_00063522 [00:15:13]file doc_00063523 [00:15:13]remove file /storage/0547/doc_00063523 [00:15:13]file doc_00063524 [00:15:13]remove file /storage/0547/doc_00063524 [00:15:13]file doc_00063525 [00:15:13]remove file /storage/0547/doc_00063525 [00:15:13]file doc_00063526 [00:15:13]remove file /storage/0547/doc_00063526 [00:15:13]file doc_00063527 [00:15:13]remove file /storage/0547/doc_00063527 [00:15:13]file doc_00063528 [00:15:13]remove file /storage/0547/doc_00063528 [00:15:13]file doc_00063529 [00:15:13]remove file /storage/0547/doc_00063529 [00:15:13]file doc_00063530 [00:15:13]remove file /storage/0547/doc_00063530 [00:15:13]file doc_00063531 [00:15:13]remove file /storage/0547/doc_00063531 [00:15:13]file doc_00063532 [00:15:13]remove file /storage/0547/doc_00063532 [00:15:13]file doc_00063533 [00:15:13]remove file /storage/0547/doc_00063533 [00:15:13]file doc_00063534 [00:15:13]remove file /storage/0547/doc_00063534 [00:15:13]remove dir /storage/0547 [00:15:13]ProcessDocumentItem done err = 0, tmpTLVsize=263 [00:15:13]tlvbuf is 00BD6DB0 [00:15:13]SAM_PROTO_ClearQueue [00:15:13]wFMCommunicate request_size=4 [00:15:13]MH_SAM_APDU [00:15:13]CAPDU: 80 09 00 00 [00:15:13]Write to MH i2c: E2 08 00 07 3B 80 09 00 00 00 00 00 00 B4 [00:15:13]Write i2c OK [00:15:13]MH_I2C_Read... [00:15:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:13]Read from MH i2c: E2 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 03 00 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 03 00 07 3B 00 90 00 B6 [00:15:13]RAPDU: 90 00 [00:15:13]wFMCommunicate OK [00:15:13]SAM_PROTO_ClearQueue done [00:15:13]KKMCreateOFDPacket [00:15:13]OFDProtocolAddRootSTLVToBuf [00:15:13]FM_MakeSignedData [00:15:13]FM_MakeSignedData [00:15:13]SAM_PROTO_SignData [00:15:13]wFMCommunicate request_size=4 [00:15:13]MH_SAM_APDU [00:15:13]CAPDU: 80 0D 01 02 [00:15:13]Write to MH i2c: E2 08 00 08 3B 80 0D 01 02 00 00 00 00 BC [00:15:13]Write i2c OK [00:15:13]MH_I2C_Read... [00:15:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:13]Read from MH i2c: E2 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 03 00 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 03 00 08 3B 00 90 00 B7 [00:15:13]RAPDU: 90 00 [00:15:13]wFMCommunicate OK [00:15:13]wFMCommunicate request_size=255 [00:15:13]MH_SAM_APDU [00:15:13]CAPDU: 80 0D 02 02 FA 02 00 07 01 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 18 E3 1A 67 0E 04 04 00 24 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2F F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:15:13]Write to MH i2c: E2 02 01 09 3B 80 0D 02 02 FA 00 02 00 07 01 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 18 E3 1A 67 0E 04 04 00 24 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2F F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 3C [00:15:13]Write i2c OK [00:15:13]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 03 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 03 00 09 3B 00 90 00 B8 [00:15:14]RAPDU: 90 00 [00:15:14]wFMCommunicate OK [00:15:14]wFMCommunicate request_size=22 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 0D 02 02 11 30 38 37 34 36 37 36 35 04 06 00 D7 62 10 EB 01 8C [00:15:14]Write to MH i2c: E2 19 00 0A 3B 80 0D 02 02 11 00 30 38 37 34 36 37 36 35 04 06 00 D7 62 10 EB 01 8C 00 00 57 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 03 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 03 00 0A 3B 00 90 00 B9 [00:15:14]RAPDU: 90 00 [00:15:14]wFMCommunicate OK [00:15:14]wFMCommunicate request_size=4 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 0D 03 02 [00:15:14]Write to MH i2c: E2 08 00 0B 3B 80 0D 03 02 00 00 00 00 C1 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 0B 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 0B 00 0B 3B 00 6D 5B A9 83 7E 0F 6A 17 90 00 C4 [00:15:14]RAPDU: 6D 5B A9 83 7E 0F 6A 17 90 00 [00:15:14]wFMCommunicate OK [00:15:14]SAM_PROTO_SignData done [00:15:14]FM_MakeSignedData done [00:15:14]CreateOFDProtocolMessage [00:15:14]wFMCommunicate request_size=4 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 11 00 00 [00:15:14]Write to MH i2c: E2 08 00 0C 3B 80 11 00 00 00 00 00 00 C1 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 17 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 17 00 0C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1A [00:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:15:14]wFMCommunicate OK [00:15:14]CreateOFDProtocolMessage done [00:15:14]OFDSenderStorePacket 63535 [00:15:14]StoreOFDPacket docnum=63535 [00:15:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 1B 01 00 00 D0 45 13 01 F8 BB 5A 02 01 00 02 00 07 01 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 18 E3 1A 67 0E 04 04 00 24 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2F F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 D7 62 10 EB 01 8C 6D 5B A9 83 7E 0F 6A 17 [00:15:14]CheckFolder [00:15:14]dirname=/storage/ofd_packets [00:15:14]CheckFolder done [00:15:14]ProducePacketName [00:15:14]name=ofd_packets/00063535 [00:15:14]NVStorageSaveData ofd_packets/00063535 [00:15:14]File name is /storage/ofd_packets/00063535 [00:15:14]Write 313 bytes [00:15:14]NVStorageSaveData done [00:15:14]OFDSenderStorePacket done [00:15:14]KKMCreateOFDPacket done [00:15:14]NVStorageSaveData kkm_last_timestamp [00:15:14]File name is /storage/kkm_last_timestamp [00:15:14]Write 4 bytes [00:15:14]NVStorageSaveData done [00:15:14]ExternCall_PrintAddStr [00:15:14]wPrintStart [00:15:14]Write to MH i2c: 01 00 00 0D 3B 48 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: 01 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: 01 07 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: 01 07 00 0D 3B 00 00 00 00 00 FF 0F 5D [00:15:14]RasterBufferAndPrint [00:15:14]line Отчет об открытии смены [00:15:14]line ФФД: 1.0 [00:15:14]line ИНН: 02508201610067 [00:15:14]line Кассир: Суйунбай уулу И. [00:15:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:15:14]line Место: АЗС № 86 "Партнер Нефть" [00:15:14]line 25.10.2024 00:15 [00:15:14]line Смена: 548 [00:15:14]line РНМ: 0000000000091619 [00:15:14]line ЗНМ: 0300000154 [00:15:14]line ФД: 63535 [00:15:14]line ФМ: 0000000000874676 [00:15:14]line ФПД: 236816190603660 [00:15:14]written 0, free lines is 4095 [00:15:14]OFD Sender: Processing packet 63535 [packets to send 232, broken 231] [00:15:14]ProducePacketName [00:15:14]name=ofd_packets/00063535 [00:15:14]OFD Sender: To server: pG, [00:15:14]CommunicateWithHost lk.salyk.kg:30040 [00:15:14]ConnectInit lk.salyk.kg [00:15:14]Write to MH i2c: 01 00 00 1F 3B 5A [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: 01 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: 01 07 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: 01 07 00 1F 3B 00 00 00 00 00 54 0E C3 [00:15:14]RasterBufferAndPrint [00:15:14]line [00:15:14]line [00:15:14]line [00:15:14]line [00:15:14]line [00:15:14]written 0, free lines is 3681 [00:15:14]MH_Cut [00:15:14]Write to MH i2c: D1 01 00 26 3B 01 33 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: D1 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: D1 01 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: D1 01 00 26 3B 00 32 [00:15:14]Write to MH i2c: 01 00 00 27 3B 62 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]Connected sock=10 [00: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 34 36 37 36 1B 01 00 00 D0 45 13 01 F8 BB 5A 02 01 00 02 00 07 01 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 18 E3 1A 67 0E 04 04 00 24 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2F F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 35 04 06 00 D7 62 10 EB 01 8C 6D 5B A9 83 7E 0F 6A 17 [00:15:15]*** Cut start [00:15:15]*** Partial cut [00:15:15]*** CUTSNS_PIN = 1 [00:15:15]*** CUTSNS_PIN = 0 [00:15:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 E6 16 47 00 4F 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 2F F8 00 00 F4 03 04 00 0B 8D 1A 67 B6 04 01 00 00 70 3D AB F7 4C 0E 67 4A [00:15:15]CommunicateWithHost err = 0 [00:15:15]CheckOFDResponse [00:15:15]1017 (14) - 77093643461234 [00:15:15]1041 (16) - 0000000000874676 [00:15:15]1040 (4) - 63535 [00:15:15]1012 (4) - 24.10.2024 18:08 [00:15:15]1206 (1) - 0 [00:15:15]OFD Sender: Remove packet 63535 [00:15:15]ProducePacketName [00:15:15]name=ofd_packets/00063535 [00:15:15]NVStorageDeleteData [00:15:15]*** Brake cut motor [00:15:15]OFD Sender: No OFD packet to send [00:15:15]*** Stop cut motor [00:15:15]*** Cut end [00:15:15]Read from MH i2c: 01 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: 01 07 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: 01 07 00 27 3B 00 00 00 00 00 FF 0F 77 [00:15:15]process_action open_shift done [00:15:15]requested_data is exist [00:15:15]produce_requested_data [00:15:15]requested_item fd.num is exist - process it [00:15:15]SAM_PROTO_GetFieldsCounters [00:15:15]wFMCommunicate request_size=4 [00:15:15]MH_SAM_APDU [00:15:15]CAPDU: 80 13 00 00 [00:15:15]Write to MH i2c: E2 08 00 28 3B 80 13 00 00 00 00 00 00 DF [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:15]Read from MH i2c: E2 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 62 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 62 00 28 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2F F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [00:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 2F F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:15]wFMCommunicate OK [00:15:15]SAM_PROTO_GetFieldsCounters done [00:15:15]requested_item shift.num is exist - process it [00:15:15]requested_item shift.opened is exist - process it [00:15:15]req_shift_opened [00:15:15]FM_GetShiftState [00:15:15]SAM_PROTO_GetShiftState [00:15:15]wFMCommunicate request_size=4 [00:15:15]MH_SAM_APDU [00:15:15]CAPDU: 80 13 01 00 [00:15:15]Write to MH i2c: E2 08 00 29 3B 80 13 01 00 00 00 00 00 E1 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:15]Read from MH i2c: E2 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 0E 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 0E 00 29 3B 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 69 [00:15:15]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:15:15]wFMCommunicate OK [00:15:15]SAM_PROTO_GetShiftState done [00:15:15]FM_GetShiftState done [00:15:15]req_shift_opened done [00:15:15]requested_item shift.open_date is exist - process it [00:15:15]req_shift_open_date [00:15:15]req_shift_open_date done [00:15:15]produce_requested_data done [00:15:15]produce_requested_data return {"fd.num":63535,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [00:15:15]process_action_free open_shift [00:15:15]json_value_free [00:15:15]json_value_free done [00:15:15]process_json_proto returns [00:15:15]Send response to host [00:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63535,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [00:15:15]free response buf [00:15:15]execute_script done [00:15:15]execute_script returns [00:15:15]free content buf [00:15:15]Sock 7.Close socket [00:15:15]Sock 7.Thread stoped [00:15:15]accept exits with 9 [00:15:15]New connection [00:15:15]New thread 3066490212 created [00:15:15]Thread 3066633572 joined [00:15:15]Waiting for new connection... [00:15:15] Sock 9.Parse request [00:15:15]Sock 9.Check first char [00:15:15]Sock 9.First char is OK [00:15:15]request: POST /json_proto HTTP/1.0 [00:15:15]Method: POST [00:15:15]URL: /json_proto [00:15:15]Method is POST - this is cgi request [00:15:15]url: /json_proto [00:15:15]query_string will be loaded in cgi processing [00:15:15]execute_cgi json_proto POST (null) [00:15:15]execute_cgi path=json_proto method=POST [00:15:15]POST find Content-Length [00:15:15]Host: 172.17.42.132:8080 [00:15:15]Content-Length: 331 [00:15:15]Content-Type: application/json [00:15:15] [00:15:15]POST finish read [00:15:15]Found Content-Length = 331 [00:15: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" ] } } [00:15:15]execute_script... [00:15: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" ] } } [00:15:15]POST & json_proto [00:15:15]process_json_proto [00:15:15]json parsed OK: [00:15:16]protocol is kg_v1.0 [00:15:16]action value=get_value [00:15:16]process_action get_value [00:15:16]cmd_get_value [00:15:16]process_action get_value done [00:15:16]requested_data is exist [00:15:16]produce_requested_data [00:15:16]requested_item fm.sale.total is exist - process it [00:15:16]SAM_PROTO_GetFMData [00:15:16]wFMCommunicate request_size=4 [00:15:16]MH_SAM_APDU [00:15:16]CAPDU: 80 13 03 00 [00:15:16]Write to MH i2c: E2 08 00 2A 3B 80 13 03 00 00 00 00 00 E4 [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:16]Read from MH i2c: E2 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 FD 00 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 FD 00 2A 3B 00 C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 F4 [00:15:16]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 E7 F3 00 00 69 04 A1 00 6F 04 04 00 AE F3 00 00 B1 04 04 00 F8 D8 40 94 70 04 04 00 E0 6A D9 85 72 04 04 00 18 6E 67 0E 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 FD D7 BE 0F 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 A0 CB 4F 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 39 00 00 00 B1 04 03 00 94 D4 BE 70 04 03 00 A8 6B BE 72 04 02 00 EC 68 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 44 14 EF 03 09 00 F6 03 90 00 [00:15:16]wFMCommunicate OK [00:15:16]wFMCommunicate request_size=4 [00:15:16]MH_SAM_APDU [00:15:16]CAPDU: 80 17 00 00 [00:15:16]Write to MH i2c: E2 08 00 2B 3B 80 17 00 00 00 00 00 00 E6 [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:16]Read from MH i2c: E2 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 FD 00 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 FD 00 2B 3B 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 16 [00:15:16]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 52 B0 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 90 00 [00:15:16]wFMCommunicate OK [00:15:16]wFMCommunicate request_size=4 [00:15:16]MH_SAM_APDU [00:15:16]CAPDU: 80 17 00 00 [00:15:16]Write to MH i2c: E2 08 00 2C 3B 80 17 00 00 00 00 00 00 E7 [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 2C 3B 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 95 [00:15:17]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:17]wFMCommunicate OK [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 17 00 00 [00:15:17]Write to MH i2c: E2 08 00 2D 3B 80 17 00 00 00 00 00 00 E8 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 2D 3B 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [00:15:17]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:17]wFMCommunicate OK [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 17 00 00 [00:15:17]Write to MH i2c: E2 08 00 2E 3B 80 17 00 00 00 00 00 00 E9 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 DF 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 DF 00 2E 3B 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [00:15:18]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:18]wFMCommunicate OK [00:15:18]SAM_PROTO_GetFMData done [00:15:18]requested_item fm.sale_refund.total is exist - process it [00:15:18]requested_item fm.buy.total is exist - process it [00:15:18]requested_item shift.sale.total is exist - process it [00:15:18]SAM_PROTO_GetShiftData [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 13 02 00 [00:15:18]Write to MH i2c: E2 08 00 2F 3B 80 13 02 00 00 00 00 00 E8 [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:18]Read from MH i2c: E2 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 2F 3B 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 5B [00:15:18]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:15:18]wFMCommunicate OK [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 17 00 00 [00:15:18]Write to MH i2c: E2 08 00 30 3B 80 17 00 00 00 00 00 00 EB [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:19]Read from MH i2c: E2 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 30 3B 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 F3 [00:15:19]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:15:19]wFMCommunicate OK [00:15:19]wFMCommunicate request_size=4 [00:15:19]MH_SAM_APDU [00:15:19]CAPDU: 80 17 00 00 [00:15:19]Write to MH i2c: E2 08 00 31 3B 80 17 00 00 00 00 00 00 EC [00:15:19]Write i2c OK [00:15:19]MH_I2C_Read... [00:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:19]Read from MH i2c: E2 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 31 3B 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 BE [00:15:19]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:15:19]wFMCommunicate OK [00:15:19]wFMCommunicate request_size=4 [00:15:19]MH_SAM_APDU [00:15:19]CAPDU: 80 17 00 00 [00:15:19]Write to MH i2c: E2 08 00 32 3B 80 17 00 00 00 00 00 00 ED [00:15:19]Write i2c OK [00:15:19]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 32 3B 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 5F [00:15:20]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:15:20]wFMCommunicate OK [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 17 00 00 [00:15:20]Write to MH i2c: E2 08 00 33 3B 80 17 00 00 00 00 00 00 EE [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 BD 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 BD 00 33 3B 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 D4 [00:15:20]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:15:20]wFMCommunicate OK [00:15:20]SAM_PROTO_GetShiftData done [00:15:20]requested_item shift.sale.total_cash is exist - process it [00:15:20]requested_item shift.sale_refund.total is exist - process it [00:15:20]requested_item shift.sale_refund.total_cash is exist - process it [00:15:20]requested_item shift.buy.total is exist - process it [00:15:20]requested_item shift.buy.total_cash is exist - process it [00:15:20]produce_requested_data done [00:15:20]produce_requested_data return {"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"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:15:20]process_action_free get_value [00:15:20]json_value_free [00:15:20]json_value_free done [00:15:20]process_json_proto returns [00:15:20]Send response to host [00:15:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24872778.16,"fm.sale_refund.total":125062.60,"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:15:20]free response buf [00:15:20]execute_script done [00:15:20]execute_script returns [00:15:20]free content buf [00:15:20]Sock 9.Close socket [00:15:20]Sock 9.Thread stoped [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:35]accept exits with 7 [00:22:35]New connection [00:22:35]New thread 3066633572 created [00:22:35]Thread 3066490212 joined [00:22:35]Waiting for new connection... [00:22:35] Sock 7.Parse request [00:22:35]Sock 7.Check first char [00:22:35]Sock 7.First char is OK [00:22:35]request: POST /json_proto HTTP/1.0 [00:22:35]Method: POST [00:22:35]URL: /json_proto [00:22:35]Method is POST - this is cgi request [00:22:35]url: /json_proto [00:22:35]query_string will be loaded in cgi processing [00:22:35]execute_cgi json_proto POST (null) [00:22:35]execute_cgi path=json_proto method=POST [00:22:35]POST find Content-Length [00:22:35]Host: 172.17.42.132:8080 [00:22:35]Content-Length: 645 [00:22:35]Content-Type: application/json [00:22:35] [00:22:35]POST finish read [00:22:35]Found Content-Length = 645 [00:22:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47841", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:35]execute_script... [00:22:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47841", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:35]POST & json_proto [00:22:35]process_json_proto [00:22:35]json parsed OK: [00:22:35]protocol is kg_v1.0 [00:22:35]action value=close_receipt [00:22:35]process_action close_receipt [00:22:35]cmd_close_receipt [00:22:35]MH_GetDate [00:22:35]Write to MH i2c: F0 00 00 34 3B 5E [00:22:35]Write i2c OK [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: F0 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: F0 09 00 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: F0 09 00 34 3B 00 D3 E4 1A 67 4C DF 56 66 86 [00:22:35]GetLastDocTimeStamp 1729815320 [00:22:35]current date 1729815763 [00:22:35]FM_GetShiftState [00:22:35]SAM_PROTO_GetShiftState [00:22:35]wFMCommunicate request_size=4 [00:22:35]MH_SAM_APDU [00:22:35]CAPDU: 80 13 01 00 [00:22:35]Write to MH i2c: E2 08 00 35 3B 80 13 01 00 00 00 00 00 ED [00:22:35]Write i2c OK [00:22:35]MH_I2C_Read... [00:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:35]Read from MH i2c: E2 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: E2 0E 00 [00:22:35]MH_I2C_Read... [00:22:35]Read from MH i2c: E2 0E 00 35 3B 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 75 [00:22:35]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:22:35]wFMCommunicate OK [00:22:35]SAM_PROTO_GetShiftState done [00:22:35]FM_GetShiftState done [00:22:35]opened in 1729815320 [00:22:35]opened+sec_in_day 1729901720 [00:22:35]quantity*price = 26000 [00:22:35]sum+1 = 26001 [00:22:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 1 25.10.2024 00:22 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63536 ФПД: 81030563342460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002244&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63536&fm=81030563342460&tin=02508201610067®Number=0000000000091619&sum=26000 0 [00:22:36]StoreToDocumentArchive [00:22:36]shift 548 fd 63536 [00:22:36]save to /storage/0548/doc_00063536 [00:22:36]save last doc name /storage/0548/doc_00063536 to /storage/kkm_last_doc_name [00:22:36]save OK [00:22:36]Clear old archive folders... [00:22:36]ProcessDocumentItem done err = 0, tmpTLVsize=282 [00:22:36]tlvbuf is 00B900D0 [00:22:36]SAM_PROTO_ClearQueue [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 09 00 00 [00:22:36]Write to MH i2c: E2 08 00 42 3B 80 09 00 00 00 00 00 00 EF [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:36]Read from MH i2c: E2 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 03 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 03 00 42 3B 00 90 00 F1 [00:22:36]RAPDU: 90 00 [00:22:36]wFMCommunicate OK [00:22:36]SAM_PROTO_ClearQueue done [00:22:36]KKMCreateOFDPacket [00:22:36]OFDProtocolAddRootSTLVToBuf [00:22:36]FM_MakeSignedData [00:22:36]FM_MakeSignedData [00:22:36]SAM_PROTO_SignData [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 0D 01 02 [00:22:36]Write to MH i2c: E2 08 00 43 3B 80 0D 01 02 00 00 00 00 F7 [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:36]Read from MH i2c: E2 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 03 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 03 00 43 3B 00 90 00 F2 [00:22:36]RAPDU: 90 00 [00:22:36]wFMCommunicate OK [00:22:36]wFMCommunicate request_size=255 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D4 E4 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [00:22:36]Write to MH i2c: E2 02 01 44 3B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D4 E4 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 21 [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:37]Read from MH i2c: E2 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 03 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 03 00 44 3B 00 90 00 F3 [00:22:37]RAPDU: 90 00 [00:22:37]wFMCommunicate OK [00:22:37]wFMCommunicate request_size=41 [00:22:37]MH_SAM_APDU [00:22:37]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 30 F8 00 00 35 04 06 00 49 B2 65 F1 A8 7C [00:22:37]Write to MH i2c: E2 2C 00 45 3B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 30 F8 00 00 35 04 06 00 49 B2 65 F1 A8 7C 00 00 6C [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:37]Read from MH i2c: E2 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 03 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 03 00 45 3B 00 90 00 F4 [00:22:37]RAPDU: 90 00 [00:22:37]wFMCommunicate OK [00:22:37]wFMCommunicate request_size=4 [00:22:37]MH_SAM_APDU [00:22:37]CAPDU: 80 0D 03 02 [00:22:37]Write to MH i2c: E2 08 00 46 3B 80 0D 03 02 00 00 00 00 FC [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:37]Read from MH i2c: E2 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 0B 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 0B 00 46 3B 00 BD B1 C1 6C 15 C3 0F C3 90 00 42 [00:22:37]RAPDU: BD B1 C1 6C 15 C3 0F C3 90 00 [00:22:37]wFMCommunicate OK [00:22:37]SAM_PROTO_SignData done [00:22:37]FM_MakeSignedData done [00:22:37]CreateOFDProtocolMessage [00:22:37]wFMCommunicate request_size=4 [00:22:37]MH_SAM_APDU [00:22:37]CAPDU: 80 11 00 00 [00:22:37]Write to MH i2c: E2 08 00 47 3B 80 11 00 00 00 00 00 00 FC [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:37]Read from MH i2c: E2 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 17 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: E2 17 00 47 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 55 [00:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:22:37]wFMCommunicate OK [00:22:37]CreateOFDProtocolMessage done [00:22:37]OFDSenderStorePacket 63536 [00:22:37]StoreOFDPacket docnum=63536 [00:22:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 18 7D 26 01 B2 8B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D4 E4 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 30 F8 00 00 35 04 06 00 49 B2 65 F1 A8 7C BD B1 C1 6C 15 C3 0F C3 [00:22:37]CheckFolder [00:22:37]dirname=/storage/ofd_packets [00:22:37]CheckFolder done [00:22:37]ProducePacketName [00:22:37]name=ofd_packets/00063536 [00:22:37]NVStorageSaveData ofd_packets/00063536 [00:22:37]File name is /storage/ofd_packets/00063536 [00:22:37]Write 332 bytes [00:22:37]NVStorageSaveData done [00:22:37]OFDSenderStorePacket done [00:22:37]KKMCreateOFDPacket done [00:22:37]NVStorageSaveData kkm_last_timestamp [00:22:37]File name is /storage/kkm_last_timestamp [00:22:37]Write 4 bytes [00:22:37]NVStorageSaveData done [00:22:37]ExternCall_PrintAddStr [00:22:37]wPrintStart [00:22:37]Write to MH i2c: 01 00 00 48 3B 83 [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: 01 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: 01 07 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: 01 07 00 48 3B 00 00 00 00 00 FF 0F 98 [00:22:37]RasterBufferAndPrint [00:22:37]line Счет N : (3)47841 [00:22:37]line ИНН: 02508201610067 [00:22:37]line Контрольно-Кассовый Чек [00:22:37]line ПРОДАЖА [00:22:37]line Товар: 2000036220012 [00:22:37]line Кофе Капучино XL(GABB TRADE) [00:22:37]line 2.000 * 130.00 [00:22:37]line = 260.00 [00:22:37]line НДС 12% НСП 1% [00:22:37]line > о реализуемом товаре [00:22:37]line ИТОГО: 260.00 [00:22:37]line НСП 1% : 2.30 [00:22:37]line НДС 12% : 27.61 [00:22:37]line Наличными: 260.00 [00:22:37]line Безнал.: 0.00 [00:22:37]line Место: АЗС № 86 "Партнер Нефть" [00:22:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:22:37]line СНО: Общий режим [00:22:37]line Чек 1 25.10.2024 00:22 [00:22:37]line Смена: 548 ФФД: 1.0 [00:22:37]line ЗНМ: 0300000154 [00:22:37]line РНМ: 0000000000091619 [00:22:37]line Версия ККМ: 001 [00:22:37]line ФМ: 0000000000874676 [00:22:37]line ФД: 63536 [00:22:37]line ФПД: 81030563342460 [00:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002244&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63536&fm=81030563342460&tin=02508201610067®Number=0000000000091619&sum=26000 [00:22:37]line 0 [00:22:37]OFD Sender: Processing packet 63536 [packets to send 232, broken 231] [00:22:37]ProducePacketName [00:22:37]name=ofd_packets/00063536 [00:22:37]OFD Sender: To server: pG, [00:22:37]CommunicateWithHost lk.salyk.kg:30040 [00:22:37]ConnectInit lk.salyk.kg [00:22:37]written 0, free lines is 4095 [00:22:37]Connected sock=10 [00:22:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 18 7D 26 01 B2 8B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D4 E4 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 30 F8 00 00 35 04 06 00 49 B2 65 F1 A8 7C BD B1 C1 6C 15 C3 0F C3 [00:22:37]Write to MH i2c: 01 00 00 71 3B AC [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: 01 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: 01 07 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: 01 07 00 71 3B 00 00 00 00 00 0F 0D CF [00:22:37]RasterBufferAndPrint [00:22:37]line [00:22:37]line [00:22:37]line [00:22:37]line [00:22:37]line [00:22:37]written 0, free lines is 3349 [00:22:37]MH_Cut [00:22:37]Write to MH i2c: D1 01 00 78 3B 01 85 [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: D1 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: D1 01 00 [00:22:37]MH_I2C_Read... [00:22:37]Read from MH i2c: D1 01 00 78 3B 00 84 [00:22:37]Write to MH i2c: 01 00 00 79 3B B4 [00:22:37]Write i2c OK [00:22:37]MH_I2C_Read... [00:22:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 54 AD 47 00 30 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 30 F8 00 00 F4 03 04 00 C6 8E 1A 67 B6 04 01 00 00 AD 90 6F 55 FB 64 53 BF [00:22:38]CommunicateWithHost err = 0 [00:22:38]CheckOFDResponse [00:22:38]1017 (14) - 77093643461234 [00:22:38]1041 (16) - 0000000000874676 [00:22:38]1040 (4) - 63536 [00:22:38]1012 (4) - 24.10.2024 18:15 [00:22:38]1206 (1) - 0 [00:22:38]OFD Sender: Remove packet 63536 [00:22:38]ProducePacketName [00:22:38]name=ofd_packets/00063536 [00:22:38]NVStorageDeleteData [00:22:38]*** Cut start [00:22:38]*** Partial cut [00:22:38]*** CUTSNS_PIN = 1 [00:22:38]*** CUTSNS_PIN = 0 [00:22:38]OFD Sender: No OFD packet to send [00:22:38]*** Brake cut motor [00:22:39]Read from MH i2c: 01 [00:22:39]MH_I2C_Read... [00:22:39]*** Stop cut motor [00:22:39]*** Cut end [00:22:39]Read from MH i2c: 01 07 00 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: 01 07 00 79 3B 00 00 00 00 00 FF 0F C9 [00:22:39]process_action close_receipt done [00:22:39]requested_data is exist [00:22:39]produce_requested_data [00:22:39]requested_item fm.sn is exist - process it [00:22:39]wFMCommunicate request_size=4 [00:22:39]MH_SAM_APDU [00:22:39]CAPDU: 80 11 00 00 [00:22:39]Write to MH i2c: E2 08 00 7A 3B 80 11 00 00 00 00 00 00 2F [00:22:39]Write i2c OK [00:22:39]MH_I2C_Read... [00:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:39]Read from MH i2c: E2 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 17 00 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 17 00 7A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 88 [00:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:22:39]wFMCommunicate OK [00:22:39]requested_item fd.num is exist - process it [00:22:39]SAM_PROTO_GetFieldsCounters [00:22:39]wFMCommunicate request_size=4 [00:22:39]MH_SAM_APDU [00:22:39]CAPDU: 80 13 00 00 [00:22:39]Write to MH i2c: E2 08 00 7B 3B 80 13 00 00 00 00 00 00 32 [00:22:39]Write i2c OK [00:22:39]MH_I2C_Read... [00:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:39]Read from MH i2c: E2 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 62 00 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 62 00 7B 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 30 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [00:22:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 30 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:22:39]wFMCommunicate OK [00:22:39]SAM_PROTO_GetFieldsCounters done [00:22:39]requested_item shift.num is exist - process it [00:22:39]requested_item shift.opened is exist - process it [00:22:39]req_shift_opened [00:22:39]FM_GetShiftState [00:22:39]SAM_PROTO_GetShiftState [00:22:39]wFMCommunicate request_size=4 [00:22:39]MH_SAM_APDU [00:22:39]CAPDU: 80 13 01 00 [00:22:39]Write to MH i2c: E2 08 00 7C 3B 80 13 01 00 00 00 00 00 34 [00:22:39]Write i2c OK [00:22:39]MH_I2C_Read... [00:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:39]Read from MH i2c: E2 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 0E 00 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 0E 00 7C 3B 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 BC [00:22:39]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:22:39]wFMCommunicate OK [00:22:39]SAM_PROTO_GetShiftState done [00:22:39]FM_GetShiftState done [00:22:39]req_shift_opened done [00:22:39]requested_item shift.open_date is exist - process it [00:22:39]req_shift_open_date [00:22:39]req_shift_open_date done [00:22:39]produce_requested_data done [00:22:39]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63536,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [00:22:39]process_action_free close_receipt [00:22:39]json_value_free [00:22:39]json_value_free done [00:22:39]process_json_proto returns [00:22:39]Send response to host [00:22:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63536,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [00:22:39]free response buf [00:22:39]execute_script done [00:22:39]execute_script returns [00:22:39]free content buf [00:22:39]Sock 7.Close socket [00:22:39]Sock 7.Thread stoped [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]accept exits with 9 [00:23:43]New connection [00:23:43]New thread 3066490212 created [00:23:43]Thread 3066633572 joined [00:23:43]Waiting for new connection... [00:23:43] Sock 9.Parse request [00:23:43]Sock 9.Check first char [00:23:43]Sock 9.First char is OK [00:23:43]request: POST /json_proto HTTP/1.0 [00:23:43]Method: POST [00:23:43]URL: /json_proto [00:23:43]Method is POST - this is cgi request [00:23:43]url: /json_proto [00:23:43]query_string will be loaded in cgi processing [00:23:43]execute_cgi json_proto POST (null) [00:23:43]execute_cgi path=json_proto method=POST [00:23:43]POST find Content-Length [00:23:43]Host: 172.17.42.132:8080 [00:23:43]Content-Length: 784 [00:23:43]Content-Type: application/json [00:23:43] [00:23:43]POST finish read [00:23:43]Found Content-Length = 784 [00:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47842", "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" : 123.89, "quantity" : 1.000, "sum" : 123.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 123.89 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:43]execute_script... [00:23: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)47842", "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" : 123.89, "quantity" : 1.000, "sum" : 123.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 123.89 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:43]POST & json_proto [00:23:43]process_json_proto [00:23:43]json parsed OK: [00:23:43]protocol is kg_v1.0 [00:23:43]action value=close_receipt [00:23:43]process_action close_receipt [00:23:43]cmd_close_receipt [00:23:43]MH_GetDate [00:23:43]Write to MH i2c: F0 00 00 7D 3B A7 [00:23:43]Write i2c OK [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: F0 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: F0 09 00 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: F0 09 00 7D 3B 00 17 E5 1A 67 4C DF 56 66 14 [00:23:43]GetLastDocTimeStamp 1729815764 [00:23:43]current date 1729815831 [00:23:43]FM_GetShiftState [00:23:43]SAM_PROTO_GetShiftState [00:23:43]wFMCommunicate request_size=4 [00:23:43]MH_SAM_APDU [00:23:43]CAPDU: 80 13 01 00 [00:23:43]Write to MH i2c: E2 08 00 7E 3B 80 13 01 00 00 00 00 00 36 [00:23:43]Write i2c OK [00:23:43]MH_I2C_Read... [00:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:43]Read from MH i2c: E2 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 0E 00 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 0E 00 7E 3B 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 BE [00:23:43]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:23:43]wFMCommunicate OK [00:23:43]SAM_PROTO_GetShiftState done [00:23:43]FM_GetShiftState done [00:23:43]opened in 1729815320 [00:23:43]opened+sec_in_day 1729901720 [00:23:43]quantity*price = 12389 [00:23:43]sum+1 = 12390 [00:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 123.89 НСП 1% : 1.10 НДС 12% : 13.16 Наличными: 0.00 Безнал.: 123.89 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 2 25.10.2024 00:23 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63537 ФПД: 11065813023394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002351&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63537&fm=11065813023394&tin=02508201610067®Number=0000000000091619&sum=12389 0 [00:23:44]StoreToDocumentArchive [00:23:44]shift 548 fd 63537 [00:23:44]save to /storage/0548/doc_00063537 [00:23:44]save last doc name /storage/0548/doc_00063537 to /storage/kkm_last_doc_name [00:23:44]save OK [00:23:44]Clear old archive folders... [00:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=278 [00:23:44]tlvbuf is 00B8FC90 [00:23:44]SAM_PROTO_ClearQueue [00:23:44]wFMCommunicate request_size=4 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 09 00 00 [00:23:44]Write to MH i2c: E2 08 00 8B 3B 80 09 00 00 00 00 00 00 38 [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 03 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 03 00 8B 3B 00 90 00 3A [00:23:44]RAPDU: 90 00 [00:23:44]wFMCommunicate OK [00:23:44]SAM_PROTO_ClearQueue done [00:23:44]KKMCreateOFDPacket [00:23:44]OFDProtocolAddRootSTLVToBuf [00:23:44]FM_MakeSignedData [00:23:44]FM_MakeSignedData [00:23:44]SAM_PROTO_SignData [00:23:44]wFMCommunicate request_size=4 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 0D 01 02 [00:23:44]Write to MH i2c: E2 08 00 8C 3B 80 0D 01 02 00 00 00 00 40 [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 03 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 03 00 8C 3B 00 90 00 3B [00:23:44]RAPDU: 90 00 [00:23:44]wFMCommunicate OK [00:23:44]wFMCommunicate request_size=255 [00:23:44]MH_SAM_APDU [00:23:44]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 65 30 00 00 00 00 13 04 06 00 65 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 17 E5 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [00:23:44]Write to MH i2c: E2 02 01 8D 3B 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 65 30 00 00 00 00 13 04 06 00 65 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 17 E5 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 00 00 CA [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 03 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 03 00 8D 3B 00 90 00 3C [00:23:44]RAPDU: 90 00 [00:23:44]wFMCommunicate OK [00:23:44]wFMCommunicate request_size=37 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F8 00 00 35 04 06 00 0A 10 75 DA BA A2 [00:23:44]Write to MH i2c: E2 28 00 8E 3B 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F8 00 00 35 04 06 00 0A 10 75 DA BA A2 00 00 8E [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 03 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 03 00 8E 3B 00 90 00 3D [00:23:44]RAPDU: 90 00 [00:23:44]wFMCommunicate OK [00:23:44]wFMCommunicate request_size=4 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 0D 03 02 [00:23:44]Write to MH i2c: E2 08 00 8F 3B 80 0D 03 02 00 00 00 00 45 [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 0B 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 0B 00 8F 3B 00 2C 68 4E 0E 57 A8 BE B7 90 00 AA [00:23:44]RAPDU: 2C 68 4E 0E 57 A8 BE B7 90 00 [00:23:44]wFMCommunicate OK [00:23:44]SAM_PROTO_SignData done [00:23:44]FM_MakeSignedData done [00:23:44]CreateOFDProtocolMessage [00:23:44]wFMCommunicate request_size=4 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 11 00 00 [00:23:44]Write to MH i2c: E2 08 00 90 3B 80 11 00 00 00 00 00 00 45 [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:45]Read from MH i2c: E2 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 17 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 17 00 90 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9E [00:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:23:45]wFMCommunicate OK [00:23:45]CreateOFDProtocolMessage done [00:23:45]OFDSenderStorePacket 63537 [00:23:45]StoreOFDPacket docnum=63537 [00:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 4D 64 22 01 B1 42 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 65 30 00 00 00 00 13 04 06 00 65 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 17 E5 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F8 00 00 35 04 06 00 0A 10 75 DA BA A2 2C 68 4E 0E 57 A8 BE B7 [00:23:45]CheckFolder [00:23:45]dirname=/storage/ofd_packets [00:23:45]CheckFolder done [00:23:45]ProducePacketName [00:23:45]name=ofd_packets/00063537 [00:23:45]NVStorageSaveData ofd_packets/00063537 [00:23:45]File name is /storage/ofd_packets/00063537 [00:23:45]Write 328 bytes [00:23:45]NVStorageSaveData done [00:23:45]OFDSenderStorePacket done [00:23:45]KKMCreateOFDPacket done [00:23:45]NVStorageSaveData kkm_last_timestamp [00:23:45]File name is /storage/kkm_last_timestamp [00:23:45]Write 4 bytes [00:23:45]NVStorageSaveData done [00:23:45]ExternCall_PrintAddStr [00:23:45]wPrintStart [00:23:45]Write to MH i2c: 01 00 00 91 3B CC [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: 01 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: 01 07 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: 01 07 00 91 3B 00 00 00 00 00 FF 0F E1 [00:23:45]RasterBufferAndPrint [00:23:45]line Счет N : (3)47842 [00:23:45]line ИНН: 02508201610067 [00:23:45]line Контрольно-Кассовый Чек [00:23:45]line ПРОДАЖА [00:23:45]line Товар: 5449000054227 [00:23:45]line Напиток Кока-Кола 1л [00:23:45]line 1.000 * 123.89 [00:23:45]line = 123.89 [00:23:45]line НДС 12% НСП 1% [00:23:45]line > о реализуемом товаре [00:23:45]line ИТОГО: 123.89 [00:23:45]line НСП 1% : 1.10 [00:23:45]line НДС 12% : 13.16 [00:23:45]line Наличными: 0.00 [00:23:45]line Безнал.: 123.89 [00:23:45]line Место: АЗС № 86 "Партнер Нефть" [00:23:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:23:45]line СНО: Общий режим [00:23:45]line Чек 2 25.10.2024 00:23 [00:23:45]line Смена: 548 ФФД: 1.0 [00:23:45]line ЗНМ: 0300000154 [00:23:45]line РНМ: 0000000000091619 [00:23:45]line Версия ККМ: 001 [00:23:45]line Платежная система: Mbank [00:23:45]line ФМ: 0000000000874676 [00:23:45]line ФД: 63537 [00:23:45]line ФПД: 11065813023394 [00:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002351&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63537&fm=11065813023394&tin=02508201610067®Number=0000000000091619&sum=12389 [00:23:45]OFD Sender: Processing packet 63537 [packets to send 232, broken 231] [00:23:45]ProducePacketName [00:23:45]name=ofd_packets/00063537 [00:23:45]OFD Sender: To server: pG, [00:23:45]CommunicateWithHost lk.salyk.kg:30040 [00:23:45]ConnectInit lk.salyk.kg [00:23:45]line 0 [00:23:45]written 0, free lines is 4095 [00:23:45]Connected sock=10 [00:23:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 4D 64 22 01 B1 42 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 65 30 00 00 00 00 13 04 06 00 65 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 17 E5 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F8 00 00 35 04 06 00 0A 10 75 DA BA A2 2C 68 4E 0E 57 A8 BE B7 [00:23:45]Write to MH i2c: 01 00 00 BA 3B F5 [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: 01 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: 01 07 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: 01 07 00 BA 3B 00 00 00 00 00 13 0D 1C [00:23:45]RasterBufferAndPrint [00:23:45]line [00:23:45]line [00:23:45]line [00:23:45]line [00:23:45]line [00:23:45]written 0, free lines is 3354 [00:23:45]MH_Cut [00:23:45]Write to MH i2c: D1 01 00 C1 3B 01 CE [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: D1 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: D1 01 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: D1 01 00 C1 3B 00 CD [00:23:45]Write to MH i2c: 01 00 00 C2 3B FD [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 6C 0C 47 00 2E DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 31 F8 00 00 F4 03 04 00 0A 8F 1A 67 B6 04 01 00 00 30 2F 30 1C A9 E7 30 67 [00:23:45]CommunicateWithHost err = 0 [00:23:45]CheckOFDResponse [00:23:45]1017 (14) - 77093643461234 [00:23:45]1041 (16) - 0000000000874676 [00:23:45]1040 (4) - 63537 [00:23:45]1012 (4) - 24.10.2024 18:16 [00:23:45]1206 (1) - 0 [00:23:45]OFD Sender: Remove packet 63537 [00:23:45]ProducePacketName [00:23:45]name=ofd_packets/00063537 [00:23:45]NVStorageDeleteData [00:23:46]OFD Sender: No OFD packet to send [00:23:46]*** Cut start [00:23:46]*** Partial cut [00:23:46]*** CUTSNS_PIN = 1 [00:23:46]*** CUTSNS_PIN = 0 [00:23:46]*** Brake cut motor [00:23:47]Read from MH i2c: 01 [00:23:47]MH_I2C_Read... [00:23:47]*** Stop cut motor [00:23:47]*** Cut end [00:23:47]Read from MH i2c: 01 07 00 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: 01 07 00 C2 3B 00 00 00 00 00 FF 0F 12 [00:23:47]process_action close_receipt done [00:23:47]requested_data is exist [00:23:47]produce_requested_data [00:23:47]requested_item fm.sn is exist - process it [00:23:47]wFMCommunicate request_size=4 [00:23:47]MH_SAM_APDU [00:23:47]CAPDU: 80 11 00 00 [00:23:47]Write to MH i2c: E2 08 00 C3 3B 80 11 00 00 00 00 00 00 78 [00:23:47]Write i2c OK [00:23:47]MH_I2C_Read... [00:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:47]Read from MH i2c: E2 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 17 00 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 17 00 C3 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D1 [00:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:23:47]wFMCommunicate OK [00:23:47]requested_item fd.num is exist - process it [00:23:47]SAM_PROTO_GetFieldsCounters [00:23:47]wFMCommunicate request_size=4 [00:23:47]MH_SAM_APDU [00:23:47]CAPDU: 80 13 00 00 [00:23:47]Write to MH i2c: E2 08 00 C4 3B 80 13 00 00 00 00 00 00 7B [00:23:47]Write i2c OK [00:23:47]MH_I2C_Read... [00:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:47]Read from MH i2c: E2 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 62 00 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 62 00 C4 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 31 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [00:23:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 31 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:47]wFMCommunicate OK [00:23:47]SAM_PROTO_GetFieldsCounters done [00:23:47]requested_item shift.num is exist - process it [00:23:47]requested_item shift.opened is exist - process it [00:23:47]req_shift_opened [00:23:47]FM_GetShiftState [00:23:47]SAM_PROTO_GetShiftState [00:23:47]wFMCommunicate request_size=4 [00:23:47]MH_SAM_APDU [00:23:47]CAPDU: 80 13 01 00 [00:23:47]Write to MH i2c: E2 08 00 C5 3B 80 13 01 00 00 00 00 00 7D [00:23:47]Write i2c OK [00:23:47]MH_I2C_Read... [00:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:47]Read from MH i2c: E2 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 0E 00 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 0E 00 C5 3B 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 05 [00:23:47]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:23:47]wFMCommunicate OK [00:23:47]SAM_PROTO_GetShiftState done [00:23:47]FM_GetShiftState done [00:23:47]req_shift_opened done [00:23:47]requested_item shift.open_date is exist - process it [00:23:47]req_shift_open_date [00:23:47]req_shift_open_date done [00:23:47]produce_requested_data done [00:23:47]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63537,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [00:23:47]process_action_free close_receipt [00:23:47]json_value_free [00:23:47]json_value_free done [00:23:47]process_json_proto returns [00:23:47]Send response to host [00:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63537,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [00:23:47]free response buf [00:23:47]execute_script done [00:23:47]execute_script returns [00:23:47]free content buf [00:23:47]Sock 9.Close socket [00:23:47]Sock 9.Thread stoped [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:30:58]accept exits with 7 [00:30:58]New connection [00:30:58]New thread 3066633572 created [00:30:58]Thread 3066490212 joined [00:30:58]Waiting for new connection... [00:30:58] Sock 7.Parse request [00:30:58]Sock 7.Check first char [00:30:58]Sock 7.First char is OK [00:30:58]request: POST /json_proto HTTP/1.0 [00:30:58]Method: POST [00:30:58]URL: /json_proto [00:30:58]Method is POST - this is cgi request [00:30:58]url: /json_proto [00:30:58]query_string will be loaded in cgi processing [00:30:58]execute_cgi json_proto POST (null) [00:30:58]execute_cgi path=json_proto method=POST [00:30:58]POST find Content-Length [00:30:58]Host: 172.17.42.132:8080 [00:30:58]Content-Length: 913 [00:30:58]Content-Type: application/json [00:30:58] [00:30:58]POST finish read [00:30:58]Found Content-Length = 913 [00:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47843", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 342.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:58]execute_script... [00:30: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)47843", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 342.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:58]POST & json_proto [00:30:58]process_json_proto [00:30:58]json parsed OK: [00:30:58]protocol is kg_v1.0 [00:30:58]action value=close_receipt [00:30:58]process_action close_receipt [00:30:58]cmd_close_receipt [00:30:58]MH_GetDate [00:30:58]Write to MH i2c: F0 00 00 C6 3B F0 [00:30:58]Write i2c OK [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: F0 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: F0 09 00 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: F0 09 00 C6 3B 00 CB E6 1A 67 4C DF 56 66 12 [00:30:58]GetLastDocTimeStamp 1729815831 [00:30:58]current date 1729816267 [00:30:58]FM_GetShiftState [00:30:58]SAM_PROTO_GetShiftState [00:30:58]wFMCommunicate request_size=4 [00:30:58]MH_SAM_APDU [00:30:58]CAPDU: 80 13 01 00 [00:30:58]Write to MH i2c: E2 08 00 C7 3B 80 13 01 00 00 00 00 00 7F [00:30:58]Write i2c OK [00:30:58]MH_I2C_Read... [00:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:58]Read from MH i2c: E2 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 0E 00 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 0E 00 C7 3B 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 07 [00:30:58]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:30:58]wFMCommunicate OK [00:30:58]SAM_PROTO_GetShiftState done [00:30:58]FM_GetShiftState done [00:30:58]opened in 1729815320 [00:30:58]opened+sec_in_day 1729901720 [00:30:58]quantity*price = 14400 [00:30:58]sum+1 = 14401 [00:30:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003312 Gorilla эн нап манго-кокос 0,45 ж/б 2.000 * 99.00 = 198.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 342.00 НСП 1% : 3.02 НДС 12% : 36.32 Наличными: 342.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 3 25.10.2024 00:31 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63538 ФПД: 256472135193231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003107&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63538&fm=256472135193231&tin=02508201610067®Number=0000000000091619&sum=34200 0 [00:30:59]StoreToDocumentArchive [00:30:59]shift 548 fd 63538 [00:30:59]save to /storage/0548/doc_00063538 [00:30:59]save last doc name /storage/0548/doc_00063538 to /storage/kkm_last_doc_name [00:30:59]save OK [00:30:59]Clear old archive folders... [00:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=397 [00:30:59]tlvbuf is 00C310F0 [00:30:59]SAM_PROTO_ClearQueue [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 09 00 00 [00:30:59]Write to MH i2c: E2 08 00 D4 3B 80 09 00 00 00 00 00 00 81 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 03 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 03 00 D4 3B 00 90 00 83 [00:30:59]RAPDU: 90 00 [00:30:59]wFMCommunicate OK [00:30:59]SAM_PROTO_ClearQueue done [00:30:59]KKMCreateOFDPacket [00:30:59]OFDProtocolAddRootSTLVToBuf [00:30:59]FM_MakeSignedData [00:30:59]FM_MakeSignedData [00:30:59]SAM_PROTO_SignData [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 0D 01 02 [00:30:59]Write to MH i2c: E2 08 00 D5 3B 80 0D 01 02 00 00 00 00 89 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 03 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 03 00 D5 3B 00 90 00 84 [00:30:59]RAPDU: 90 00 [00:30:59]wFMCommunicate OK [00:30:59]wFMCommunicate request_size=255 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 0D 02 02 FA 03 00 8D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 [00:30:59]Write to MH i2c: E2 02 01 D6 3B 80 0D 02 02 FA 00 03 00 8D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 00 00 D7 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 03 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 03 00 D6 3B 00 90 00 85 [00:31:00]RAPDU: 90 00 [00:31:00]wFMCommunicate OK [00:31:00]wFMCommunicate request_size=156 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 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 CB E6 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F8 00 00 35 04 06 00 E9 42 92 83 52 8F [00:31:00]Write to MH i2c: E2 9F 00 D7 3B 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 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 CB E6 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F8 00 00 35 04 06 00 E9 42 92 83 52 8F 00 00 1A [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 03 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 03 00 D7 3B 00 90 00 86 [00:31:00]RAPDU: 90 00 [00:31:00]wFMCommunicate OK [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 0D 03 02 [00:31:00]Write to MH i2c: E2 08 00 D8 3B 80 0D 03 02 00 00 00 00 8E [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0B 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0B 00 D8 3B 00 F3 A7 F9 40 E1 A9 64 9D 90 00 ED [00:31:00]RAPDU: F3 A7 F9 40 E1 A9 64 9D 90 00 [00:31:00]wFMCommunicate OK [00:31:00]SAM_PROTO_SignData done [00:31:00]FM_MakeSignedData done [00:31:00]CreateOFDProtocolMessage [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 11 00 00 [00:31:00]Write to MH i2c: E2 08 00 D9 3B 80 11 00 00 00 00 00 00 8E [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 17 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 17 00 D9 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E7 [00:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:31:00]wFMCommunicate OK [00:31:00]CreateOFDProtocolMessage done [00:31:00]OFDSenderStorePacket 63538 [00:31:00]StoreOFDPacket docnum=63538 [00:31:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A1 01 00 00 C2 63 99 01 F6 90 5A 03 01 00 03 00 8D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 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 CB E6 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F8 00 00 35 04 06 00 E9 42 92 83 52 8F F3 A7 F9 40 E1 A9 64 9D [00:31:00]CheckFolder [00:31:00]dirname=/storage/ofd_packets [00:31:00]CheckFolder done [00:31:00]ProducePacketName [00:31:00]name=ofd_packets/00063538 [00:31:00]NVStorageSaveData ofd_packets/00063538 [00:31:00]File name is /storage/ofd_packets/00063538 [00:31:00]Write 447 bytes [00:31:00]NVStorageSaveData done [00:31:00]OFDSenderStorePacket done [00:31:00]KKMCreateOFDPacket done [00:31:00]NVStorageSaveData kkm_last_timestamp [00:31:00]File name is /storage/kkm_last_timestamp [00:31:00]Write 4 bytes [00:31:00]NVStorageSaveData done [00:31:00]ExternCall_PrintAddStr [00:31:00]wPrintStart [00:31:00]Write to MH i2c: 01 00 00 DA 3B 15 [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: 01 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: 01 07 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: 01 07 00 DA 3B 00 00 00 00 00 FF 0F 2A [00:31:00]RasterBufferAndPrint [00:31:00]line Счет N : (3)47843 [00:31:00]line ИНН: 02508201610067 [00:31:00]line Контрольно-Кассовый Чек [00:31:00]line ПРОДАЖА [00:31:00]line Товар: 48743570 [00:31:00]line Сигареты Winston XStyle Blue [00:31:00]line 1.000 * 144.00 [00:31:00]line = 144.00 [00:31:00]line НДС 12% НСП 1% [00:31:00]line > о реализуемом товаре [00:31:00]line Товар: 4870022003312 [00:31:00]line Gorilla эн нап манго-кокос 0,45 ж/б [00:31:00]line 2.000 * 99.00 [00:31:00]line = 198.00 [00:31:00]line НДС 12% НСП 1% [00:31:00]line > о реализуемом товаре [00:31:00]line ИТОГО: 342.00 [00:31:00]line НСП 1% : 3.02 [00:31:00]line НДС 12% : 36.32 [00:31:00]line Наличными: 342.00 [00:31:00]line Безнал.: 0.00 [00:31:00]line Место: АЗС № 86 "Партнер Нефть" [00:31:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:31:00]line СНО: Общий режим [00:31:00]line Чек 3 25.10.2024 00:31 [00:31:00]line Смена: 548 ФФД: 1.0 [00:31:00]line ЗНМ: 0300000154 [00:31:00]line РНМ: 0000000000091619 [00:31:00]line Версия ККМ: 001 [00:31:00]line ФМ: 0000000000874676 [00:31:00]line ФД: 63538 [00:31:00]line ФПД: 256472135193231 [00:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003107&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63538&fm=256472135193231&tin=02508201610067®Number=0000000000091619&sum=34200 [00:31:00]OFD Sender: Processing packet 63538 [packets to send 232, broken 231] [00:31:00]ProducePacketName [00:31:00]name=ofd_packets/00063538 [00:31:00]OFD Sender: To server: pG, [00:31:00]CommunicateWithHost lk.salyk.kg:30040 [00:31:00]ConnectInit lk.salyk.kg [00:31:00]line 0 [00:31:00]written 0, free lines is 4095 [00:31:00]Connected sock=10 [00:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A1 01 00 00 C2 63 99 01 F6 90 5A 03 01 00 03 00 8D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 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 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0E 00 00 00 00 07 04 06 00 98 85 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 CB E6 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F8 00 00 35 04 06 00 E9 42 92 83 52 8F F3 A7 F9 40 E1 A9 64 9D [00:31:01]Write to MH i2c: 01 00 00 09 3C 45 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: 01 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: 01 07 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: 01 07 00 09 3C 00 00 00 00 00 C3 0C 1B [00:31:01]RasterBufferAndPrint [00:31:01]line [00:31:01]line [00:31:01]line [00:31:01]line [00:31:01]line [00:31:01]written 0, free lines is 3273 [00:31:01]MH_Cut [00:31:01]Write to MH i2c: D1 01 00 10 3C 01 1E [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: D1 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: D1 01 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: D1 01 00 10 3C 00 1D [00:31:01]Write to MH i2c: 01 00 00 11 3C 4D [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 20 E6 47 00 83 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 32 F8 00 00 F4 03 04 00 BE 90 1A 67 B6 04 01 00 00 1E 1C 68 4A B7 CB 4D 83 [00:31:01]CommunicateWithHost err = 0 [00:31:01]CheckOFDResponse [00:31:01]1017 (14) - 77093643461234 [00:31:01]1041 (16) - 0000000000874676 [00:31:01]1040 (4) - 63538 [00:31:01]1012 (4) - 24.10.2024 18:23 [00:31:01]1206 (1) - 0 [00:31:01]OFD Sender: Remove packet 63538 [00:31:01]ProducePacketName [00:31:01]name=ofd_packets/00063538 [00:31:01]NVStorageDeleteData [00:31:01]OFD Sender: No OFD packet to send [00:31:01]*** Cut start [00:31:01]*** Partial cut [00:31:01]*** CUTSNS_PIN = 1 [00:31:01]*** CUTSNS_PIN = 0 [00:31:02]*** Brake cut motor [00:31:02]Read from MH i2c: 01 [00:31:02]MH_I2C_Read... [00:31:02]*** Stop cut motor [00:31:02]*** Cut end [00:31:02]Read from MH i2c: 01 07 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: 01 07 00 11 3C 00 00 00 00 00 FF 0F 62 [00:31:02]process_action close_receipt done [00:31:02]requested_data is exist [00:31:02]produce_requested_data [00:31:02]requested_item fm.sn is exist - process it [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 11 00 00 [00:31:02]Write to MH i2c: E2 08 00 12 3C 80 11 00 00 00 00 00 00 C8 [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 17 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 17 00 12 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 21 [00:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:31:02]wFMCommunicate OK [00:31:02]requested_item fd.num is exist - process it [00:31:02]SAM_PROTO_GetFieldsCounters [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 13 00 00 [00:31:02]Write to MH i2c: E2 08 00 13 3C 80 13 00 00 00 00 00 00 CB [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 62 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 62 00 13 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 32 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [00:31:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 32 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:02]wFMCommunicate OK [00:31:02]SAM_PROTO_GetFieldsCounters done [00:31:02]requested_item shift.num is exist - process it [00:31:02]requested_item shift.opened is exist - process it [00:31:02]req_shift_opened [00:31:02]FM_GetShiftState [00:31:02]SAM_PROTO_GetShiftState [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 13 01 00 [00:31:02]Write to MH i2c: E2 08 00 14 3C 80 13 01 00 00 00 00 00 CD [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 0E 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 0E 00 14 3C 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 55 [00:31:02]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:31:02]wFMCommunicate OK [00:31:02]SAM_PROTO_GetShiftState done [00:31:02]FM_GetShiftState done [00:31:02]req_shift_opened done [00:31:02]requested_item shift.open_date is exist - process it [00:31:02]req_shift_open_date [00:31:02]req_shift_open_date done [00:31:02]produce_requested_data done [00:31:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63538,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [00:31:02]process_action_free close_receipt [00:31:02]json_value_free [00:31:02]json_value_free done [00:31:02]process_json_proto returns [00:31:02]Send response to host [00:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63538,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [00:31:02]free response buf [00:31:02]execute_script done [00:31:02]execute_script returns [00:31:02]free content buf [00:31:02]Sock 7.Close socket [00:31:02]Sock 7.Thread stoped [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]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:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:44]accept exits with 9 [00:39:44]New connection [00:39:44]New thread 3066490212 created [00:39:44]Thread 3066633572 joined [00:39:44]Waiting for new connection... [00:39:44] Sock 9.Parse request [00:39:44]Sock 9.Check first char [00:39:44]Sock 9.First char is OK [00:39:44]request: POST /json_proto HTTP/1.0 [00:39:44]Method: POST [00:39:44]URL: /json_proto [00:39:44]Method is POST - this is cgi request [00:39:44]url: /json_proto [00:39:44]query_string will be loaded in cgi processing [00:39:44]execute_cgi json_proto POST (null) [00:39:44]execute_cgi path=json_proto method=POST [00:39:44]POST find Content-Length [00:39:44]Host: 172.17.42.132:8080 [00:39:44]Content-Length: 620 [00:39:44]Content-Type: application/json [00:39:44] [00:39:44]POST finish read [00:39:44]Found Content-Length = 620 [00:39:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47844", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:44]execute_script... [00:39: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)47844", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:44]POST & json_proto [00:39:44]process_json_proto [00:39:44]json parsed OK: [00:39:44]protocol is kg_v1.0 [00:39:44]action value=close_receipt [00:39:44]process_action close_receipt [00:39:44]cmd_close_receipt [00:39:44]MH_GetDate [00:39:44]Write to MH i2c: F0 00 00 15 3C 40 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: F0 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: F0 09 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: F0 09 00 15 3C 00 D8 E8 1A 67 4C DF 56 66 71 [00:39:44]GetLastDocTimeStamp 1729816267 [00:39:44]current date 1729816792 [00:39:44]FM_GetShiftState [00:39:44]SAM_PROTO_GetShiftState [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 13 01 00 [00:39:44]Write to MH i2c: E2 08 00 16 3C 80 13 01 00 00 00 00 00 CF [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 0E 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 0E 00 16 3C 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 57 [00:39:44]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:39:44]wFMCommunicate OK [00:39:44]SAM_PROTO_GetShiftState done [00:39:44]FM_GetShiftState done [00:39:44]opened in 1729815320 [00:39:44]opened+sec_in_day 1729901720 [00:39:44]quantity*price = 14400 [00:39:44]sum+1 = 14401 [00:39:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 4 25.10.2024 00:39 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63539 ФПД: 153694176696141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003952&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63539&fm=153694176696141&tin=02508201610067®Number=0000000000091619&sum=14400 0 [00:39:45]StoreToDocumentArchive [00:39:45]shift 548 fd 63539 [00:39:45]save to /storage/0548/doc_00063539 [00:39:45]save last doc name /storage/0548/doc_00063539 to /storage/kkm_last_doc_name [00:39:45]save OK [00:39:45]Clear old archive folders... [00:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:39:45]tlvbuf is 00C2C950 [00:39:45]SAM_PROTO_ClearQueue [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 09 00 00 [00:39:45]Write to MH i2c: E2 08 00 23 3C 80 09 00 00 00 00 00 00 D1 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 23 3C 00 90 00 D3 [00:39:45]RAPDU: 90 00 [00:39:45]wFMCommunicate OK [00:39:45]SAM_PROTO_ClearQueue done [00:39:45]KKMCreateOFDPacket [00:39:45]OFDProtocolAddRootSTLVToBuf [00:39:45]FM_MakeSignedData [00:39:45]FM_MakeSignedData [00:39:45]SAM_PROTO_SignData [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 0D 01 02 [00:39:45]Write to MH i2c: E2 08 00 24 3C 80 0D 01 02 00 00 00 00 D9 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 24 3C 00 90 00 D4 [00:39:45]RAPDU: 90 00 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=255 [00:39:45]MH_SAM_APDU [00:39: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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D8 E8 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [00:39:45]Write to MH i2c: E2 02 01 25 3C 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D8 E8 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 AF [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 25 3C 00 90 00 D5 [00:39:45]RAPDU: 90 00 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=32 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F8 00 00 35 04 06 00 8B C8 B6 CE 57 4D [00:39:45]Write to MH i2c: E2 23 00 26 3C 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F8 00 00 35 04 06 00 8B C8 B6 CE 57 4D 00 00 E5 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 26 3C 00 90 00 D6 [00:39:45]RAPDU: 90 00 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 0D 03 02 [00:39:45]Write to MH i2c: E2 08 00 27 3C 80 0D 03 02 00 00 00 00 DE [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 0B 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 0B 00 27 3C 00 E8 70 2A F4 D6 CD E9 C7 90 00 A8 [00:39:45]RAPDU: E8 70 2A F4 D6 CD E9 C7 90 00 [00:39:45]wFMCommunicate OK [00:39:45]SAM_PROTO_SignData done [00:39:45]FM_MakeSignedData done [00:39:45]CreateOFDProtocolMessage [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 11 00 00 [00:39:45]Write to MH i2c: E2 08 00 28 3C 80 11 00 00 00 00 00 00 DE [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:46]Read from MH i2c: E2 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 17 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: E2 17 00 28 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 37 [00:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:39:46]wFMCommunicate OK [00:39:46]CreateOFDProtocolMessage done [00:39:46]OFDSenderStorePacket 63539 [00:39:46]StoreOFDPacket docnum=63539 [00:39:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 8C 4B 1D 01 BE 07 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D8 E8 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F8 00 00 35 04 06 00 8B C8 B6 CE 57 4D E8 70 2A F4 D6 CD E9 C7 [00:39:46]CheckFolder [00:39:46]dirname=/storage/ofd_packets [00:39:46]CheckFolder done [00:39:46]ProducePacketName [00:39:46]name=ofd_packets/00063539 [00:39:46]NVStorageSaveData ofd_packets/00063539 [00:39:46]File name is /storage/ofd_packets/00063539 [00:39:46]Write 323 bytes [00:39:46]NVStorageSaveData done [00:39:46]OFDSenderStorePacket done [00:39:46]KKMCreateOFDPacket done [00:39:46]NVStorageSaveData kkm_last_timestamp [00:39:46]File name is /storage/kkm_last_timestamp [00:39:46]Write 4 bytes [00:39:46]NVStorageSaveData done [00:39:46]ExternCall_PrintAddStr [00:39:46]wPrintStart [00:39:46]Write to MH i2c: 01 00 00 29 3C 65 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: 01 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: 01 07 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: 01 07 00 29 3C 00 00 00 00 00 FF 0F 7A [00:39:46]RasterBufferAndPrint [00:39:46]line Счет N : (3)47844 [00:39:46]line ИНН: 02508201610067 [00:39:46]line Контрольно-Кассовый Чек [00:39:46]line ПРОДАЖА [00:39:46]line Товар: 48743570 [00:39:46]line Сигареты Winston XStyle Blue [00:39:46]line 1.000 * 144.00 [00:39:46]line = 144.00 [00:39:46]line НДС 12% НСП 1% [00:39:46]line > о реализуемом товаре [00:39:46]line ИТОГО: 144.00 [00:39:46]line НСП 1% : 1.27 [00:39:46]line НДС 12% : 15.29 [00:39:46]line Наличными: 144.00 [00:39:46]line Безнал.: 0.00 [00:39:46]line Место: АЗС № 86 "Партнер Нефть" [00:39:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:39:46]line СНО: Общий режим [00:39:46]line Чек 4 25.10.2024 00:39 [00:39:46]line Смена: 548 ФФД: 1.0 [00:39:46]line ЗНМ: 0300000154 [00:39:46]line РНМ: 0000000000091619 [00:39:46]line Версия ККМ: 001 [00:39:46]line ФМ: 0000000000874676 [00:39:46]line ФД: 63539 [00:39:46]line ФПД: 153694176696141 [00:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003952&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63539&fm=153694176696141&tin=02508201610067®Number=0000000000091619&sum=14400 [00:39:46]line 0 [00:39:46]written 0, free lines is 4095 [00:39:46]OFD Sender: Processing packet 63539 [packets to send 232, broken 231] [00:39:46]ProducePacketName [00:39:46]name=ofd_packets/00063539 [00:39:46]OFD Sender: To server: pG, [00:39:46]CommunicateWithHost lk.salyk.kg:30040 [00:39:46]ConnectInit lk.salyk.kg [00:39:46]Write to MH i2c: 01 00 00 51 3C 8D [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: 01 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: 01 07 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: 01 07 00 51 3C 00 00 00 00 00 09 0D AA [00:39:46]RasterBufferAndPrint [00:39:46]line [00:39:46]line [00:39:46]line [00:39:46]line [00:39:46]line [00:39:46]written 0, free lines is 3343 [00:39:46]MH_Cut [00:39:46]Write to MH i2c: D1 01 00 58 3C 01 66 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: D1 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: D1 01 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: D1 01 00 58 3C 00 65 [00:39:46]Write to MH i2c: 01 00 00 59 3C 95 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]Connected sock=11 [00:39:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 8C 4B 1D 01 BE 07 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 D8 E8 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F8 00 00 35 04 06 00 8B C8 B6 CE 57 4D E8 70 2A F4 D6 CD E9 C7 [00:39:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 62 1C 47 00 7F 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 33 F8 00 00 F4 03 04 00 CB 92 1A 67 B6 04 01 00 00 64 45 72 C0 35 1A FB 4F [00:39:46]CommunicateWithHost err = 0 [00:39:46]CheckOFDResponse [00:39:46]1017 (14) - 77093643461234 [00:39:46]1041 (16) - 0000000000874676 [00:39:46]1040 (4) - 63539 [00:39:46]1012 (4) - 24.10.2024 18:32 [00:39:46]1206 (1) - 0 [00:39:46]OFD Sender: Remove packet 63539 [00:39:46]ProducePacketName [00:39:46]name=ofd_packets/00063539 [00:39:46]NVStorageDeleteData [00:39:47]*** Cut start [00:39:47]*** Partial cut [00:39:47]*** CUTSNS_PIN = 1 [00:39:47]*** CUTSNS_PIN = 0 [00:39:47]OFD Sender: No OFD packet to send [00:39:47]*** Brake cut motor [00:39:47]Read from MH i2c: 01 [00:39:47]MH_I2C_Read... [00:39:47]*** Stop cut motor [00:39:47]*** Cut end [00:39:47]Read from MH i2c: 01 07 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: 01 07 00 59 3C 00 00 00 00 00 FF 0F AA [00:39:47]process_action close_receipt done [00:39:47]requested_data is exist [00:39:47]produce_requested_data [00:39:47]requested_item fm.sn is exist - process it [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 11 00 00 [00:39:47]Write to MH i2c: E2 08 00 5A 3C 80 11 00 00 00 00 00 00 10 [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 17 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 17 00 5A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 69 [00:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:39:47]wFMCommunicate OK [00:39:47]requested_item fd.num is exist - process it [00:39:47]SAM_PROTO_GetFieldsCounters [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 13 00 00 [00:39:47]Write to MH i2c: E2 08 00 5B 3C 80 13 00 00 00 00 00 00 13 [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 62 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 62 00 5B 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 33 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [00:39:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 33 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:47]wFMCommunicate OK [00:39:47]SAM_PROTO_GetFieldsCounters done [00:39:47]requested_item shift.num is exist - process it [00:39:47]requested_item shift.opened is exist - process it [00:39:47]req_shift_opened [00:39:47]FM_GetShiftState [00:39:47]SAM_PROTO_GetShiftState [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 13 01 00 [00:39:47]Write to MH i2c: E2 08 00 5C 3C 80 13 01 00 00 00 00 00 15 [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:48]Read from MH i2c: E2 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 0E 00 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 0E 00 5C 3C 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 9D [00:39:48]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:39:48]wFMCommunicate OK [00:39:48]SAM_PROTO_GetShiftState done [00:39:48]FM_GetShiftState done [00:39:48]req_shift_opened done [00:39:48]requested_item shift.open_date is exist - process it [00:39:48]req_shift_open_date [00:39:48]req_shift_open_date done [00:39:48]produce_requested_data done [00:39:48]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63539,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [00:39:48]process_action_free close_receipt [00:39:48]json_value_free [00:39:48]json_value_free done [00:39:48]process_json_proto returns [00:39:48]Send response to host [00:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63539,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [00:39:48]free response buf [00:39:48]execute_script done [00:39:48]execute_script returns [00:39:48]free content buf [00:39:48]Sock 9.Close socket [00:39:48]Sock 9.Thread stoped [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:31]accept exits with 7 [00:43:31]New connection [00:43:31]New thread 3066633572 created [00:43:31]Thread 3066490212 joined [00:43:31]Waiting for new connection... [00:43:31] Sock 7.Parse request [00:43:31]Sock 7.Check first char [00:43:31]Sock 7.First char is OK [00:43:31]request: POST /json_proto HTTP/1.0 [00:43:31]Method: POST [00:43:31]URL: /json_proto [00:43:31]Method is POST - this is cgi request [00:43:31]url: /json_proto [00:43:31]query_string will be loaded in cgi processing [00:43:31]execute_cgi json_proto POST (null) [00:43:31]execute_cgi path=json_proto method=POST [00:43:31]POST find Content-Length [00:43:31]Host: 172.17.42.132:8080 [00:43:31]Content-Length: 748 [00:43:31]Content-Type: application/json [00:43:31] [00:43:31]POST finish read [00:43:31]Found Content-Length = 748 [00:43:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47845", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 158.58, "quantity" : 1.000, "sum" : 158.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 158.58 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:31]execute_script... [00:43:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47845", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 158.58, "quantity" : 1.000, "sum" : 158.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 158.58 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:31]POST & json_proto [00:43:31]process_json_proto [00:43:31]json parsed OK: [00:43:31]protocol is kg_v1.0 [00:43:31]action value=close_receipt [00:43:31]process_action close_receipt [00:43:31]cmd_close_receipt [00:43:31]MH_GetDate [00:43:31]Write to MH i2c: F0 00 00 5D 3C 88 [00:43:31]Write i2c OK [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: F0 [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: F0 09 00 [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: F0 09 00 5D 3C 00 BB E9 1A 67 4C DF 56 66 9D [00:43:31]GetLastDocTimeStamp 1729816792 [00:43:31]current date 1729817019 [00:43:31]FM_GetShiftState [00:43:31]SAM_PROTO_GetShiftState [00:43:31]wFMCommunicate request_size=4 [00:43:31]MH_SAM_APDU [00:43:31]CAPDU: 80 13 01 00 [00:43:31]Write to MH i2c: E2 08 00 5E 3C 80 13 01 00 00 00 00 00 17 [00:43:31]Write i2c OK [00:43:31]MH_I2C_Read... [00:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:31]Read from MH i2c: E2 [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: E2 0E 00 [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: E2 0E 00 5E 3C 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 9F [00:43:31]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:43:31]wFMCommunicate OK [00:43:31]SAM_PROTO_GetShiftState done [00:43:31]FM_GetShiftState done [00:43:31]opened in 1729815320 [00:43:31]opened+sec_in_day 1729901720 [00:43:31]quantity*price = 15858 [00:43:31]sum+1 = 15859 [00:43:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 158.58 НСП 1% : 1.40 НДС 12% : 16.84 Наличными: 0.00 Безнал.: 158.58 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 5 25.10.2024 00:43 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63540 ФПД: 174216324991609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T004339&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63540&fm=174216324991609&tin=02508201610067®Number=0000000000091619&sum=15858 0 [00:43:32]StoreToDocumentArchive [00:43:32]shift 548 fd 63540 [00:43:32]save to /storage/0548/doc_00063540 [00:43:32]save last doc name /storage/0548/doc_00063540 to /storage/kkm_last_doc_name [00:43:32]save OK [00:43:32]Clear old archive folders... [00:43:32]ProcessDocumentItem done err = 0, tmpTLVsize=274 [00:43:32]tlvbuf is 00B1F240 [00:43:32]SAM_PROTO_ClearQueue [00:43:32]wFMCommunicate request_size=4 [00:43:32]MH_SAM_APDU [00:43:32]CAPDU: 80 09 00 00 [00:43:32]Write to MH i2c: E2 08 00 6B 3C 80 09 00 00 00 00 00 00 19 [00:43:32]Write i2c OK [00:43:32]MH_I2C_Read... [00:43:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:32]Read from MH i2c: E2 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 03 00 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 03 00 6B 3C 00 90 00 1B [00:43:32]RAPDU: 90 00 [00:43:32]wFMCommunicate OK [00:43:32]SAM_PROTO_ClearQueue done [00:43:32]KKMCreateOFDPacket [00:43:32]OFDProtocolAddRootSTLVToBuf [00:43:32]FM_MakeSignedData [00:43:32]FM_MakeSignedData [00:43:32]SAM_PROTO_SignData [00:43:32]wFMCommunicate request_size=4 [00:43:32]MH_SAM_APDU [00:43:32]CAPDU: 80 0D 01 02 [00:43:32]Write to MH i2c: E2 08 00 6C 3C 80 0D 01 02 00 00 00 00 21 [00:43:32]Write i2c OK [00:43:32]MH_I2C_Read... [00:43:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:32]Read from MH i2c: E2 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 03 00 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 03 00 6C 3C 00 90 00 1C [00:43:32]RAPDU: 90 00 [00:43:32]wFMCommunicate OK [00:43:32]wFMCommunicate request_size=255 [00:43:32]MH_SAM_APDU [00:43:32]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BB E9 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [00:43:32]Write to MH i2c: E2 02 01 6D 3C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BB E9 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 76 [00:43:32]Write i2c OK [00:43:32]MH_I2C_Read... [00:43:32]OFD Sender: No OFD packet to send [00:43:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:32]Read from MH i2c: E2 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 03 00 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 03 00 6D 3C 00 90 00 1D [00:43:32]RAPDU: 90 00 [00:43:32]wFMCommunicate OK [00:43:32]wFMCommunicate request_size=33 [00:43:32]MH_SAM_APDU [00:43:32]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 34 F8 00 00 35 04 06 00 9E 72 E6 2A 4A 79 [00:43:32]Write to MH i2c: E2 24 00 6E 3C 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 34 F8 00 00 35 04 06 00 9E 72 E6 2A 4A 79 00 00 C8 [00:43:32]Write i2c OK [00:43:32]MH_I2C_Read... [00:43:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:32]Read from MH i2c: E2 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 03 00 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 03 00 6E 3C 00 90 00 1E [00:43:32]RAPDU: 90 00 [00:43:32]wFMCommunicate OK [00:43:32]wFMCommunicate request_size=4 [00:43:32]MH_SAM_APDU [00:43:32]CAPDU: 80 0D 03 02 [00:43:32]Write to MH i2c: E2 08 00 6F 3C 80 0D 03 02 00 00 00 00 26 [00:43:32]Write i2c OK [00:43:32]MH_I2C_Read... [00:43:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:32]Read from MH i2c: E2 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 0B 00 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 0B 00 6F 3C 00 78 A3 8B 35 9A 1B BC 9C 90 00 0F [00:43:32]RAPDU: 78 A3 8B 35 9A 1B BC 9C 90 00 [00:43:32]wFMCommunicate OK [00:43:32]SAM_PROTO_SignData done [00:43:32]FM_MakeSignedData done [00:43:32]CreateOFDProtocolMessage [00:43:32]wFMCommunicate request_size=4 [00:43:32]MH_SAM_APDU [00:43:32]CAPDU: 80 11 00 00 [00:43:32]Write to MH i2c: E2 08 00 70 3C 80 11 00 00 00 00 00 00 26 [00:43:32]Write i2c OK [00:43:32]MH_I2C_Read... [00:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:33]Read from MH i2c: E2 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: E2 17 00 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: E2 17 00 70 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7F [00:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:43:33]wFMCommunicate OK [00:43:33]CreateOFDProtocolMessage done [00:43:33]OFDSenderStorePacket 63540 [00:43:33]StoreOFDPacket docnum=63540 [00:43:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 92 24 1E 01 3C 8F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BB E9 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 34 F8 00 00 35 04 06 00 9E 72 E6 2A 4A 79 78 A3 8B 35 9A 1B BC 9C [00:43:33]CheckFolder [00:43:33]dirname=/storage/ofd_packets [00:43:33]CheckFolder done [00:43:33]ProducePacketName [00:43:33]name=ofd_packets/00063540 [00:43:33]NVStorageSaveData ofd_packets/00063540 [00:43:33]File name is /storage/ofd_packets/00063540 [00:43:33]Write 324 bytes [00:43:33]NVStorageSaveData done [00:43:33]OFDSenderStorePacket done [00:43:33]KKMCreateOFDPacket done [00:43:33]NVStorageSaveData kkm_last_timestamp [00:43:33]File name is /storage/kkm_last_timestamp [00:43:33]Write 4 bytes [00:43:33]NVStorageSaveData done [00:43:33]ExternCall_PrintAddStr [00:43:33]wPrintStart [00:43:33]Write to MH i2c: 01 00 00 71 3C AD [00:43:33]Write i2c OK [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: 01 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: 01 07 00 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: 01 07 00 71 3C 00 00 00 00 00 FF 0F C2 [00:43:33]RasterBufferAndPrint [00:43:33]line Счет N : (3)47845 [00:43:33]line ИНН: 02508201610067 [00:43:33]line Контрольно-Кассовый Чек [00:43:33]line ПРОДАЖА [00:43:33]line Товар: 48741958 [00:43:33]line Сигареты Parliament Aqua Blue [00:43:33]line 1.000 * 158.58 [00:43:33]line = 158.58 [00:43:33]line НДС 12% НСП 1% [00:43:33]line > о реализуемом товаре [00:43:33]line ИТОГО: 158.58 [00:43:33]line НСП 1% : 1.40 [00:43:33]line НДС 12% : 16.84 [00:43:33]line Наличными: 0.00 [00:43:33]line Безнал.: 158.58 [00:43:33]line Место: АЗС № 86 "Партнер Нефть" [00:43:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:43:33]line СНО: Общий режим [00:43:33]line Чек 5 25.10.2024 00:43 [00:43:33]line Смена: 548 ФФД: 1.0 [00:43:33]line ЗНМ: 0300000154 [00:43:33]line РНМ: 0000000000091619 [00:43:33]line Версия ККМ: 001 [00:43:33]line Платежная система: Mbank [00:43:33]line ФМ: 0000000000874676 [00:43:33]line ФД: 63540 [00:43:33]line ФПД: 174216324991609 [00:43:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T004339&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63540&fm=174216324991609&tin=02508201610067®Number=0000000000091619&sum=15858 [00:43:33]OFD Sender: Processing packet 63540 [packets to send 232, broken 231] [00:43:33]ProducePacketName [00:43:33]name=ofd_packets/00063540 [00:43:33]OFD Sender: To server: pG, [00:43:33]CommunicateWithHost lk.salyk.kg:30040 [00:43:33]ConnectInit lk.salyk.kg [00:43:33]line 0 [00:43:33]written 0, free lines is 4095 [00:43:33]Connected sock=10 [00:43:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 92 24 1E 01 3C 8F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BB E9 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 34 F8 00 00 35 04 06 00 9E 72 E6 2A 4A 79 78 A3 8B 35 9A 1B BC 9C [00:43:33]Write to MH i2c: 01 00 00 9B 3C D7 [00:43:33]Write i2c OK [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: 01 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: 01 07 00 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: 01 07 00 9B 3C 00 00 00 00 00 F8 0C E2 [00:43:33]RasterBufferAndPrint [00:43:33]line [00:43:33]line [00:43:33]line [00:43:33]line [00:43:33]line [00:43:33]written 0, free lines is 3327 [00:43:33]MH_Cut [00:43:33]Write to MH i2c: D1 01 00 A2 3C 01 B0 [00:43:33]Write i2c OK [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: D1 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: D1 01 00 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: D1 01 00 A2 3C 00 AF [00:43:33]Write to MH i2c: 01 00 00 A3 3C DF [00:43:33]Write i2c OK [00:43:33]MH_I2C_Read... [00:43:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CE E6 47 00 41 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 34 36 37 36 10 04 04 00 34 F8 00 00 F4 03 04 00 AE 93 1A 67 B6 04 01 00 00 CF 33 3A C3 FF 53 3D 56 [00:43:33]CommunicateWithHost err = 0 [00:43:33]CheckOFDResponse [00:43:33]1017 (14) - 77093643461234 [00:43:33]1041 (16) - 0000000000874676 [00:43:33]1040 (4) - 63540 [00:43:33]1012 (4) - 24.10.2024 18:36 [00:43:33]1206 (1) - 0 [00:43:33]OFD Sender: Remove packet 63540 [00:43:33]ProducePacketName [00:43:33]name=ofd_packets/00063540 [00:43:33]NVStorageDeleteData [00:43:34]OFD Sender: No OFD packet to send [00:43:34]*** Cut start [00:43:34]*** Partial cut [00:43:34]*** CUTSNS_PIN = 1 [00:43:34]*** CUTSNS_PIN = 0 [00:43:34]*** Brake cut motor [00:43:35]Read from MH i2c: 01 [00:43:35]MH_I2C_Read... [00:43:35]*** Stop cut motor [00:43:35]*** Cut end [00:43:35]Read from MH i2c: 01 07 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: 01 07 00 A3 3C 00 00 00 00 00 FF 0F F4 [00:43:35]process_action close_receipt done [00:43:35]requested_data is exist [00:43:35]produce_requested_data [00:43:35]requested_item fm.sn is exist - process it [00:43:35]wFMCommunicate request_size=4 [00:43:35]MH_SAM_APDU [00:43:35]CAPDU: 80 11 00 00 [00:43:35]Write to MH i2c: E2 08 00 A4 3C 80 11 00 00 00 00 00 00 5A [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:35]Read from MH i2c: E2 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 17 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 17 00 A4 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B3 [00:43:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:43:35]wFMCommunicate OK [00:43:35]requested_item fd.num is exist - process it [00:43:35]SAM_PROTO_GetFieldsCounters [00:43:35]wFMCommunicate request_size=4 [00:43:35]MH_SAM_APDU [00:43:35]CAPDU: 80 13 00 00 [00:43:35]Write to MH i2c: E2 08 00 A5 3C 80 13 00 00 00 00 00 00 5D [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:35]Read from MH i2c: E2 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 62 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 62 00 A5 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 34 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [00:43:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 34 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:35]wFMCommunicate OK [00:43:35]SAM_PROTO_GetFieldsCounters done [00:43:35]requested_item shift.num is exist - process it [00:43:35]requested_item shift.opened is exist - process it [00:43:35]req_shift_opened [00:43:35]FM_GetShiftState [00:43:35]SAM_PROTO_GetShiftState [00:43:35]wFMCommunicate request_size=4 [00:43:35]MH_SAM_APDU [00:43:35]CAPDU: 80 13 01 00 [00:43:35]Write to MH i2c: E2 08 00 A6 3C 80 13 01 00 00 00 00 00 5F [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:35]Read from MH i2c: E2 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 0E 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 0E 00 A6 3C 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 E7 [00:43:35]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:43:35]wFMCommunicate OK [00:43:35]SAM_PROTO_GetShiftState done [00:43:35]FM_GetShiftState done [00:43:35]req_shift_opened done [00:43:35]requested_item shift.open_date is exist - process it [00:43:35]req_shift_open_date [00:43:35]req_shift_open_date done [00:43:35]produce_requested_data done [00:43:35]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63540,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [00:43:35]process_action_free close_receipt [00:43:35]json_value_free [00:43:35]json_value_free done [00:43:35]process_json_proto returns [00:43:35]Send response to host [00:43:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63540,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [00:43:35]free response buf [00:43:35]execute_script done [00:43:35]execute_script returns [00:43:35]free content buf [00:43:35]Sock 7.Close socket [00:43:35]Sock 7.Thread stoped [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:02]accept exits with 9 [00:45:02]New connection [00:45:02]New thread 3066490212 created [00:45:02]Thread 3066633572 joined [00:45:02]Waiting for new connection... [00:45:02] Sock 9.Parse request [00:45:02]Sock 9.Check first char [00:45:02]Sock 9.First char is OK [00:45:02]request: POST /json_proto HTTP/1.0 [00:45:02]Method: POST [00:45:02]URL: /json_proto [00:45:02]Method is POST - this is cgi request [00:45:02]url: /json_proto [00:45:02]query_string will be loaded in cgi processing [00:45:02]execute_cgi json_proto POST (null) [00:45:02]execute_cgi path=json_proto method=POST [00:45:02]POST find Content-Length [00:45:02]Host: 172.17.42.132:8080 [00:45:02]Content-Length: 636 [00:45:02]Content-Type: application/json [00:45:02] [00:45:02]POST finish read [00:45:02]Found Content-Length = 636 [00:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47846", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:02]execute_script... [00:45: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)47846", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:02]POST & json_proto [00:45:02]process_json_proto [00:45:02]json parsed OK: [00:45:02]protocol is kg_v1.0 [00:45:02]action value=close_receipt [00:45:02]process_action close_receipt [00:45:02]cmd_close_receipt [00:45:02]MH_GetDate [00:45:02]Write to MH i2c: F0 00 00 A7 3C D2 [00:45:02]Write i2c OK [00:45:02]MH_I2C_Read... [00:45:02]Read from MH i2c: F0 [00:45:02]MH_I2C_Read... [00:45:02]Read from MH i2c: F0 09 00 [00:45:02]MH_I2C_Read... [00:45:02]Read from MH i2c: F0 09 00 A7 3C 00 16 EA 1A 67 4C DF 56 66 43 [00:45:02]GetLastDocTimeStamp 1729817019 [00:45:02]current date 1729817110 [00:45:02]FM_GetShiftState [00:45:02]SAM_PROTO_GetShiftState [00:45:02]wFMCommunicate request_size=4 [00:45:02]MH_SAM_APDU [00:45:02]CAPDU: 80 13 01 00 [00:45:02]Write to MH i2c: E2 08 00 A8 3C 80 13 01 00 00 00 00 00 61 [00:45:02]Write i2c OK [00:45:02]MH_I2C_Read... [00:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:02]Read from MH i2c: E2 [00:45:02]MH_I2C_Read... [00:45:02]Read from MH i2c: E2 0E 00 [00:45:02]MH_I2C_Read... [00:45:02]Read from MH i2c: E2 0E 00 A8 3C 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 E9 [00:45:02]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:45:02]wFMCommunicate OK [00:45:02]SAM_PROTO_GetShiftState done [00:45:02]FM_GetShiftState done [00:45:02]opened in 1729815320 [00:45:02]opened+sec_in_day 1729901720 [00:45:02]quantity*price = 10000 [00:45:02]sum+1 = 10001 [00:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 6 25.10.2024 00:45 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63541 ФПД: 53686302852396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T004510&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63541&fm=53686302852396&tin=02508201610067®Number=0000000000091619&sum=10000 0 [00:45:03]StoreToDocumentArchive [00:45:03]shift 548 fd 63541 [00:45:03]save to /storage/0548/doc_00063541 [00:45:03]save last doc name /storage/0548/doc_00063541 to /storage/kkm_last_doc_name [00:45:03]save OK [00:45:03]Clear old archive folders... [00:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=277 [00:45:03]tlvbuf is 00C13C70 [00:45:03]SAM_PROTO_ClearQueue [00:45:03]wFMCommunicate request_size=4 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 09 00 00 [00:45:03]Write to MH i2c: E2 08 00 B5 3C 80 09 00 00 00 00 00 00 63 [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 03 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 03 00 B5 3C 00 90 00 65 [00:45:03]RAPDU: 90 00 [00:45:03]wFMCommunicate OK [00:45:03]SAM_PROTO_ClearQueue done [00:45:03]KKMCreateOFDPacket [00:45:03]OFDProtocolAddRootSTLVToBuf [00:45:03]FM_MakeSignedData [00:45:03]FM_MakeSignedData [00:45:03]SAM_PROTO_SignData [00:45:03]wFMCommunicate request_size=4 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 0D 01 02 [00:45:03]Write to MH i2c: E2 08 00 B6 3C 80 0D 01 02 00 00 00 00 6B [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 03 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 03 00 B6 3C 00 90 00 66 [00:45:03]RAPDU: 90 00 [00:45:03]wFMCommunicate OK [00:45:03]wFMCommunicate request_size=255 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 16 EA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 [00:45:03]Write to MH i2c: E2 02 01 B7 3C 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 16 EA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 00 00 6C [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 03 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 03 00 B7 3C 00 90 00 67 [00:45:03]RAPDU: 90 00 [00:45:03]wFMCommunicate OK [00:45:03]wFMCommunicate request_size=36 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F8 00 00 35 04 06 00 30 D3 D1 02 C5 2C [00:45:03]Write to MH i2c: E2 27 00 B8 3C 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F8 00 00 35 04 06 00 30 D3 D1 02 C5 2C 00 00 8D [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 03 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 03 00 B8 3C 00 90 00 68 [00:45:03]RAPDU: 90 00 [00:45:03]wFMCommunicate OK [00:45:03]wFMCommunicate request_size=4 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 0D 03 02 [00:45:03]Write to MH i2c: E2 08 00 B9 3C 80 0D 03 02 00 00 00 00 70 [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 0B 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 0B 00 B9 3C 00 75 A7 92 F4 AF E3 97 7F 90 00 BB [00:45:03]RAPDU: 75 A7 92 F4 AF E3 97 7F 90 00 [00:45:03]wFMCommunicate OK [00:45:03]SAM_PROTO_SignData done [00:45:03]FM_MakeSignedData done [00:45:03]CreateOFDProtocolMessage [00:45:03]wFMCommunicate request_size=4 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 11 00 00 [00:45:03]Write to MH i2c: E2 08 00 BA 3C 80 11 00 00 00 00 00 00 70 [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 17 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 17 00 BA 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C9 [00:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:45:03]wFMCommunicate OK [00:45:03]CreateOFDProtocolMessage done [00:45:03]OFDSenderStorePacket 63541 [00:45:03]StoreOFDPacket docnum=63541 [00:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 29 01 00 00 BB FD 21 01 DD 64 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 16 EA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F8 00 00 35 04 06 00 30 D3 D1 02 C5 2C 75 A7 92 F4 AF E3 97 7F [00:45:03]CheckFolder [00:45:03]dirname=/storage/ofd_packets [00:45:03]CheckFolder done [00:45:03]ProducePacketName [00:45:03]name=ofd_packets/00063541 [00:45:03]NVStorageSaveData ofd_packets/00063541 [00:45:03]File name is /storage/ofd_packets/00063541 [00:45:03]Write 327 bytes [00:45:03]NVStorageSaveData done [00:45:03]OFDSenderStorePacket done [00:45:03]KKMCreateOFDPacket done [00:45:03]NVStorageSaveData kkm_last_timestamp [00:45:03]File name is /storage/kkm_last_timestamp [00:45:03]Write 4 bytes [00:45:03]NVStorageSaveData done [00:45:03]ExternCall_PrintAddStr [00:45:03]wPrintStart [00:45:03]Write to MH i2c: 01 00 00 BB 3C F7 [00:45:03]OFD Sender: Processing packet 63541 [packets to send 232, broken 231] [00:45:03]ProducePacketName [00:45:03]name=ofd_packets/00063541 [00:45:03]OFD Sender: To server: pG, [00:45:03]CommunicateWithHost lk.salyk.kg:30040 [00:45:03]ConnectInit lk.salyk.kg [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: 01 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: 01 07 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: 01 07 00 BB 3C 00 00 00 00 00 FF 0F 0C [00:45:03]RasterBufferAndPrint [00:45:03]line Счет N : (3)47846 [00:45:03]line ИНН: 02508201610067 [00:45:03]line Контрольно-Кассовый Чек [00:45:03]line ПРОДАЖА [00:45:03]line Товар: 4700003610546 [00:45:03]line Вода Сorona Ice негаз 6л [00:45:03]line 1.000 * 100.00 [00:45:03]line = 100.00 [00:45:03]line НДС 12% НСП 1% [00:45:03]line > о реализуемом товаре [00:45:03]line ИТОГО: 100.00 [00:45:03]line НСП 1% : 0.88 [00:45:03]line НДС 12% : 10.62 [00:45:03]line Наличными: 100.00 [00:45:03]line Безнал.: 0.00 [00:45:03]line Место: АЗС № 86 "Партнер Нефть" [00:45:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:45:03]line СНО: Общий режим [00:45:03]line Чек 6 25.10.2024 00:45 [00:45:03]line Смена: 548 ФФД: 1.0 [00:45:03]line ЗНМ: 0300000154 [00:45:03]line РНМ: 0000000000091619 [00:45:03]line Версия ККМ: 001 [00:45:03]line ФМ: 0000000000874676 [00:45:03]line ФД: 63541 [00:45:03]line ФПД: 53686302852396 [00:45:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T004510&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63541&fm=53686302852396&tin=02508201610067®Number=0000000000091619&sum=10000 [00:45:03]line 0 [00:45:03]written 0, free lines is 4095 [00:45:04]Connected sock=10 [00:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 29 01 00 00 BB FD 21 01 DD 64 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 16 EA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F8 00 00 35 04 06 00 30 D3 D1 02 C5 2C 75 A7 92 F4 AF E3 97 7F [00:45:04]Write to MH i2c: 01 00 00 E3 3C 1F [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: 01 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: 01 07 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: 01 07 00 E3 3C 00 00 00 00 00 15 0D 48 [00:45:04]RasterBufferAndPrint [00:45:04]line [00:45:04]line [00:45:04]line [00:45:04]line [00:45:04]line [00:45:04]written 0, free lines is 3356 [00:45:04]MH_Cut [00:45:04]Write to MH i2c: D1 01 00 EA 3C 01 F8 [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: D1 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: D1 01 00 [00:45:04]MH_I2C_Read... [00:45:04]Read from MH i2c: D1 01 00 EA 3C 00 F7 [00:45:04]Write to MH i2c: 01 00 00 EB 3C 27 [00:45:04]Write i2c OK [00:45:04]MH_I2C_Read... [00:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 0C 59 47 00 3B 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F8 00 00 F4 03 04 00 09 94 1A 67 B6 04 01 00 00 00 D5 D1 2B F5 6B C4 1F [00:45:04]CommunicateWithHost err = 0 [00:45:04]CheckOFDResponse [00:45:04]1017 (14) - 77093643461234 [00:45:04]1041 (16) - 0000000000874676 [00:45:04]1040 (4) - 63541 [00:45:04]1012 (4) - 24.10.2024 18:38 [00:45:04]1206 (1) - 0 [00:45:04]OFD Sender: Remove packet 63541 [00:45:04]ProducePacketName [00:45:04]name=ofd_packets/00063541 [00:45:04]NVStorageDeleteData [00:45:05]*** Cut start [00:45:05]*** Partial cut [00:45:05]*** CUTSNS_PIN = 1 [00:45:05]OFD Sender: No OFD packet to send [00:45:05]*** CUTSNS_PIN = 0 [00:45:05]*** Brake cut motor [00:45:05]Read from MH i2c: 01 [00:45:05]MH_I2C_Read... [00:45:05]*** Stop cut motor [00:45:05]*** Cut end [00:45:05]Read from MH i2c: 01 07 00 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: 01 07 00 EB 3C 00 00 00 00 00 FF 0F 3C [00:45:05]process_action close_receipt done [00:45:05]requested_data is exist [00:45:05]produce_requested_data [00:45:05]requested_item fm.sn is exist - process it [00:45:05]wFMCommunicate request_size=4 [00:45:05]MH_SAM_APDU [00:45:05]CAPDU: 80 11 00 00 [00:45:05]Write to MH i2c: E2 08 00 EC 3C 80 11 00 00 00 00 00 00 A2 [00:45:05]Write i2c OK [00:45:05]MH_I2C_Read... [00:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:05]Read from MH i2c: E2 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: E2 17 00 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: E2 17 00 EC 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FB [00:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:45:05]wFMCommunicate OK [00:45:05]requested_item fd.num is exist - process it [00:45:05]SAM_PROTO_GetFieldsCounters [00:45:05]wFMCommunicate request_size=4 [00:45:05]MH_SAM_APDU [00:45:05]CAPDU: 80 13 00 00 [00:45:05]Write to MH i2c: E2 08 00 ED 3C 80 13 00 00 00 00 00 00 A5 [00:45:05]Write i2c OK [00:45:05]MH_I2C_Read... [00:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:05]Read from MH i2c: E2 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: E2 62 00 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: E2 62 00 ED 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 35 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [00:45:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 35 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:05]wFMCommunicate OK [00:45:05]SAM_PROTO_GetFieldsCounters done [00:45:05]requested_item shift.num is exist - process it [00:45:05]requested_item shift.opened is exist - process it [00:45:05]req_shift_opened [00:45:05]FM_GetShiftState [00:45:05]SAM_PROTO_GetShiftState [00:45:05]wFMCommunicate request_size=4 [00:45:05]MH_SAM_APDU [00:45:05]CAPDU: 80 13 01 00 [00:45:05]Write to MH i2c: E2 08 00 EE 3C 80 13 01 00 00 00 00 00 A7 [00:45:05]Write i2c OK [00:45:05]MH_I2C_Read... [00:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:05]Read from MH i2c: E2 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: E2 0E 00 [00:45:05]MH_I2C_Read... [00:45:05]Read from MH i2c: E2 0E 00 EE 3C 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 2F [00:45:05]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:45:05]wFMCommunicate OK [00:45:05]SAM_PROTO_GetShiftState done [00:45:05]FM_GetShiftState done [00:45:05]req_shift_opened done [00:45:05]requested_item shift.open_date is exist - process it [00:45:05]req_shift_open_date [00:45:05]req_shift_open_date done [00:45:05]produce_requested_data done [00:45:05]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63541,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [00:45:05]process_action_free close_receipt [00:45:05]json_value_free [00:45:05]json_value_free done [00:45:05]process_json_proto returns [00:45:05]Send response to host [00:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63541,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [00:45:05]free response buf [00:45:05]execute_script done [00:45:05]execute_script returns [00:45:05]free content buf [00:45:05]Sock 9.Close socket [00:45:05]Sock 9.Thread stoped [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:16]ConnectInit Can't connect to host [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:24]accept exits with 7 [00:56:24]New connection [00:56:24]New thread 3066633572 created [00:56:24]Thread 3066490212 joined [00:56:24]Waiting for new connection... [00:56:24] Sock 7.Parse request [00:56:24]Sock 7.Check first char [00:56:24]Sock 7.First char is OK [00:56:24]request: POST /json_proto HTTP/1.0 [00:56:24]Method: POST [00:56:24]URL: /json_proto [00:56:24]Method is POST - this is cgi request [00:56:24]url: /json_proto [00:56:24]query_string will be loaded in cgi processing [00:56:24]execute_cgi json_proto POST (null) [00:56:24]execute_cgi path=json_proto method=POST [00:56:24]POST find Content-Length [00:56:24]Host: 172.17.42.132:8080 [00:56:24]Content-Length: 974 [00:56:24]Content-Type: application/json [00:56:24] [00:56:24]POST finish read [00:56:24]Found Content-Length = 974 [00:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47847", "tax_sys" : 0, "items" : [ { "code": "4603290004817", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D \u041A\u0440\u0435\u043C 182\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:24]execute_script... [00:56: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)47847", "tax_sys" : 0, "items" : [ { "code": "4603290004817", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D \u041A\u0440\u0435\u043C 182\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:24]POST & json_proto [00:56:24]process_json_proto [00:56:24]json parsed OK: [00:56:24]protocol is kg_v1.0 [00:56:24]action value=close_receipt [00:56:24]process_action close_receipt [00:56:24]cmd_close_receipt [00:56:24]MH_GetDate [00:56:24]Write to MH i2c: F0 00 00 EF 3C 1A [00:56:24]Write i2c OK [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: F0 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: F0 09 00 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: F0 09 00 EF 3C 00 C1 EC 1A 67 4C DF 56 66 38 [00:56:24]GetLastDocTimeStamp 1729817110 [00:56:24]current date 1729817793 [00:56:24]FM_GetShiftState [00:56:24]SAM_PROTO_GetShiftState [00:56:24]wFMCommunicate request_size=4 [00:56:24]MH_SAM_APDU [00:56:24]CAPDU: 80 13 01 00 [00:56:24]Write to MH i2c: E2 08 00 F0 3C 80 13 01 00 00 00 00 00 A9 [00:56:24]Write i2c OK [00:56:24]MH_I2C_Read... [00:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:24]Read from MH i2c: E2 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: E2 0E 00 [00:56:24]MH_I2C_Read... [00:56:24]Read from MH i2c: E2 0E 00 F0 3C 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 31 [00:56:24]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:56:24]wFMCommunicate OK [00:56:24]SAM_PROTO_GetShiftState done [00:56:24]FM_GetShiftState done [00:56:24]opened in 1729815320 [00:56:24]opened+sec_in_day 1729901720 [00:56:24]quantity*price = 8000 [00:56:24]sum+1 = 8001 [00:56:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 7 25.10.2024 00:56 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63542 ФПД: 61484568947410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005633&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63542&fm=61484568947410&tin=02508201610067®Number=0000000000091619&sum=25000 0 [00:56:25]StoreToDocumentArchive [00:56:25]shift 548 fd 63542 [00:56:25]save to /storage/0548/doc_00063542 [00:56:25]save last doc name /storage/0548/doc_00063542 to /storage/kkm_last_doc_name [00:56:25]save OK [00:56:25]Clear old archive folders... [00:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=411 [00:56:25]tlvbuf is 00C31420 [00:56:25]SAM_PROTO_ClearQueue [00:56:25]wFMCommunicate request_size=4 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 09 00 00 [00:56:25]Write to MH i2c: E2 08 00 FD 3C 80 09 00 00 00 00 00 00 AB [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 FD 3C 00 90 00 AD [00:56:25]RAPDU: 90 00 [00:56:25]wFMCommunicate OK [00:56:25]SAM_PROTO_ClearQueue done [00:56:25]KKMCreateOFDPacket [00:56:25]OFDProtocolAddRootSTLVToBuf [00:56:25]FM_MakeSignedData [00:56:25]FM_MakeSignedData [00:56:25]SAM_PROTO_SignData [00:56:25]wFMCommunicate request_size=4 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 0D 01 02 [00:56:25]Write to MH i2c: E2 08 00 FE 3C 80 0D 01 02 00 00 00 00 B3 [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 FE 3C 00 90 00 AE [00:56:25]RAPDU: 90 00 [00:56:25]wFMCommunicate OK [00:56:25]wFMCommunicate request_size=255 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 [00:56:25]Write to MH i2c: E2 02 01 FF 3C 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 34 [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:25]Read from MH i2c: E2 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 [00:56:25]MH_I2C_Read... [00:56:25]Read from MH i2c: E2 03 00 FF 3C 00 90 00 AF [00:56:25]RAPDU: 90 00 [00:56:25]wFMCommunicate OK [00:56:25]wFMCommunicate request_size=170 [00:56:25]MH_SAM_APDU [00:56:25]CAPDU: 80 0D 02 02 A5 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 C1 EC 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F8 00 00 35 04 06 00 37 EB 7D E4 2A D2 [00:56:25]Write to MH i2c: E2 AD 00 00 3D 80 0D 02 02 A5 00 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 C1 EC 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F8 00 00 35 04 06 00 37 EB 7D E4 2A D2 00 00 AA [00:56:25]Write i2c OK [00:56:25]MH_I2C_Read... [00:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:26]Read from MH i2c: E2 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 03 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 03 00 00 3D 00 90 00 B1 [00:56:26]RAPDU: 90 00 [00:56:26]wFMCommunicate OK [00:56:26]wFMCommunicate request_size=4 [00:56:26]MH_SAM_APDU [00:56:26]CAPDU: 80 0D 03 02 [00:56:26]Write to MH i2c: E2 08 00 01 3D 80 0D 03 02 00 00 00 00 B9 [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:26]OFD Sender: No OFD packet to send [00:56:26]Read from MH i2c: E2 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 0B 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 0B 00 01 3D 00 F1 B8 9A B7 5B 2D 31 4F 90 00 BC [00:56:26]RAPDU: F1 B8 9A B7 5B 2D 31 4F 90 00 [00:56:26]wFMCommunicate OK [00:56:26]SAM_PROTO_SignData done [00:56:26]FM_MakeSignedData done [00:56:26]CreateOFDProtocolMessage [00:56:26]wFMCommunicate request_size=4 [00:56:26]MH_SAM_APDU [00:56:26]CAPDU: 80 11 00 00 [00:56:26]Write to MH i2c: E2 08 00 02 3D 80 11 00 00 00 00 00 00 B9 [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:26]Read from MH i2c: E2 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 17 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: E2 17 00 02 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 12 [00:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:56:26]wFMCommunicate OK [00:56:26]CreateOFDProtocolMessage done [00:56:26]OFDSenderStorePacket 63542 [00:56:26]StoreOFDPacket docnum=63542 [00:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AF 01 00 00 E4 7B A7 01 3E AC 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 C1 EC 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F8 00 00 35 04 06 00 37 EB 7D E4 2A D2 F1 B8 9A B7 5B 2D 31 4F [00:56:26]CheckFolder [00:56:26]dirname=/storage/ofd_packets [00:56:26]CheckFolder done [00:56:26]ProducePacketName [00:56:26]name=ofd_packets/00063542 [00:56:26]NVStorageSaveData ofd_packets/00063542 [00:56:26]File name is /storage/ofd_packets/00063542 [00:56:26]Write 461 bytes [00:56:26]NVStorageSaveData done [00:56:26]OFDSenderStorePacket done [00:56:26]KKMCreateOFDPacket done [00:56:26]NVStorageSaveData kkm_last_timestamp [00:56:26]File name is /storage/kkm_last_timestamp [00:56:26]Write 4 bytes [00:56:26]NVStorageSaveData done [00:56:26]ExternCall_PrintAddStr [00:56:26]wPrintStart [00:56:26]Write to MH i2c: 01 00 00 03 3D 40 [00:56:26]Write i2c OK [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 07 00 [00:56:26]MH_I2C_Read... [00:56:26]Read from MH i2c: 01 07 00 03 3D 00 00 00 00 00 FF 0F 55 [00:56:26]RasterBufferAndPrint [00:56:26]line Счет N : (3)47847 [00:56:26]line ИНН: 02508201610067 [00:56:26]line Контрольно-Кассовый Чек [00:56:26]line ПРОДАЖА [00:56:26]line Товар: 4603290004817 [00:56:26]line Печ зат Яшкино клубн Крем 182г [00:56:26]line 1.000 * 80.00 [00:56:26]line = 80.00 [00:56:26]line НДС 12% НСП 1% [00:56:26]line > о реализуемом товаре [00:56:26]line Товар: 5449000176448 [00:56:26]line Сок Piko Pulpy апельсин ПЭТ 1л [00:56:26]line 1.000 * 170.00 [00:56:26]line = 170.00 [00:56:26]line НДС 12% НСП 1% [00:56:26]line > о реализуемом товаре [00:56:26]line ИТОГО: 250.00 [00:56:26]line НСП 1% : 2.21 [00:56:26]line НДС 12% : 26.55 [00:56:26]line Наличными: 250.00 [00:56:26]line Безнал.: 0.00 [00:56:26]line Место: АЗС № 86 "Партнер Нефть" [00:56:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:56:26]line СНО: Общий режим [00:56:26]line Чек 7 25.10.2024 00:56 [00:56:26]line Смена: 548 ФФД: 1.0 [00:56:26]line ЗНМ: 0300000154 [00:56:26]line РНМ: 0000000000091619 [00:56:26]line Версия ККМ: 001 [00:56:26]line ФМ: 0000000000874676 [00:56:26]line ФД: 63542 [00:56:26]line ФПД: 61484568947410 [00:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005633&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63542&fm=61484568947410&tin=02508201610067®Number=0000000000091619&sum=25000 [00:56:26]line 0 [00:56:26]OFD Sender: Processing packet 63542 [packets to send 232, broken 231] [00:56:26]ProducePacketName [00:56:26]name=ofd_packets/00063542 [00:56:26]OFD Sender: To server: pG, [00:56:26]CommunicateWithHost lk.salyk.kg:30040 [00:56:26]ConnectInit lk.salyk.kg [00:56:26]written 0, free lines is 4095 [00:56:26]Connected sock=10 [00:56:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AF 01 00 00 E4 7B A7 01 3E AC 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 C1 EC 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F8 00 00 35 04 06 00 37 EB 7D E4 2A D2 F1 B8 9A B7 5B 2D 31 4F [00:56:27]Write to MH i2c: 01 00 00 33 3D 70 [00:56:27]Write i2c OK [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: 01 [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: 01 07 00 [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: 01 07 00 33 3D 00 00 00 00 00 B3 0C 36 [00:56:27]RasterBufferAndPrint [00:56:27]line [00:56:27]line [00:56:27]line [00:56:27]line [00:56:27]line [00:56:27]written 0, free lines is 3262 [00:56:27]MH_Cut [00:56:27]Write to MH i2c: D1 01 00 3A 3D 01 49 [00:56:27]Write i2c OK [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: D1 [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: D1 01 00 [00:56:27]MH_I2C_Read... [00:56:27]Read from MH i2c: D1 01 00 3A 3D 00 48 [00:56:27]Write to MH i2c: 01 00 00 3B 3D 78 [00:56:27]Write i2c OK [00:56:27]MH_I2C_Read... [00:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 1D F0 47 00 E3 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F8 00 00 F4 03 04 00 B3 96 1A 67 B6 04 01 00 00 68 11 E3 34 8A EE 1D B7 [00:56:27]CommunicateWithHost err = 0 [00:56:27]CheckOFDResponse [00:56:27]1017 (14) - 77093643461234 [00:56:27]1041 (16) - 0000000000874676 [00:56:27]1040 (4) - 63542 [00:56:27]1012 (4) - 24.10.2024 18:49 [00:56:27]1206 (1) - 0 [00:56:27]OFD Sender: Remove packet 63542 [00:56:27]ProducePacketName [00:56:27]name=ofd_packets/00063542 [00:56:27]NVStorageDeleteData [00:56:27]OFD Sender: No OFD packet to send [00:56:27]*** Cut start [00:56:27]*** Partial cut [00:56:27]*** CUTSNS_PIN = 1 [00:56:27]*** CUTSNS_PIN = 0 [00:56:28]*** Brake cut motor [00:56:28]Read from MH i2c: 01 [00:56:28]MH_I2C_Read... [00:56:28]*** Stop cut motor [00:56:28]*** Cut end [00:56:28]Read from MH i2c: 01 07 00 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: 01 07 00 3B 3D 00 00 00 00 00 FF 0F 8D [00:56:28]process_action close_receipt done [00:56:28]requested_data is exist [00:56:28]produce_requested_data [00:56:28]requested_item fm.sn is exist - process it [00:56:28]wFMCommunicate request_size=4 [00:56:28]MH_SAM_APDU [00:56:28]CAPDU: 80 11 00 00 [00:56:28]Write to MH i2c: E2 08 00 3C 3D 80 11 00 00 00 00 00 00 F3 [00:56:28]Write i2c OK [00:56:28]MH_I2C_Read... [00:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:28]Read from MH i2c: E2 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 17 00 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 17 00 3C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4C [00:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:56:28]wFMCommunicate OK [00:56:28]requested_item fd.num is exist - process it [00:56:28]SAM_PROTO_GetFieldsCounters [00:56:28]wFMCommunicate request_size=4 [00:56:28]MH_SAM_APDU [00:56:28]CAPDU: 80 13 00 00 [00:56:28]Write to MH i2c: E2 08 00 3D 3D 80 13 00 00 00 00 00 00 F6 [00:56:28]Write i2c OK [00:56:28]MH_I2C_Read... [00:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:28]Read from MH i2c: E2 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 62 00 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 62 00 3D 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 36 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [00:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 36 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:56:28]wFMCommunicate OK [00:56:28]SAM_PROTO_GetFieldsCounters done [00:56:28]requested_item shift.num is exist - process it [00:56:28]requested_item shift.opened is exist - process it [00:56:28]req_shift_opened [00:56:28]FM_GetShiftState [00:56:28]SAM_PROTO_GetShiftState [00:56:28]wFMCommunicate request_size=4 [00:56:28]MH_SAM_APDU [00:56:28]CAPDU: 80 13 01 00 [00:56:28]Write to MH i2c: E2 08 00 3E 3D 80 13 01 00 00 00 00 00 F8 [00:56:28]Write i2c OK [00:56:28]MH_I2C_Read... [00:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:28]Read from MH i2c: E2 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 0E 00 [00:56:28]MH_I2C_Read... [00:56:28]Read from MH i2c: E2 0E 00 3E 3D 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 80 [00:56:28]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:56:28]wFMCommunicate OK [00:56:28]SAM_PROTO_GetShiftState done [00:56:28]FM_GetShiftState done [00:56:28]req_shift_opened done [00:56:28]requested_item shift.open_date is exist - process it [00:56:28]req_shift_open_date [00:56:28]req_shift_open_date done [00:56:28]produce_requested_data done [00:56:28]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63542,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [00:56:28]process_action_free close_receipt [00:56:28]json_value_free [00:56:28]json_value_free done [00:56:28]process_json_proto returns [00:56:28]Send response to host [00:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63542,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [00:56:28]free response buf [00:56:28]execute_script done [00:56:28]execute_script returns [00:56:28]free content buf [00:56:28]Sock 7.Close socket [00:56:28]Sock 7.Thread stoped [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]accept exits with 9 [00:58:47]New connection [00:58:47]New thread 3066490212 created [00:58:47]Thread 3066633572 joined [00:58:47]Waiting for new connection... [00:58:47] Sock 9.Parse request [00:58:47]Sock 9.Check first char [00:58:47]Sock 9.First char is OK [00:58:47]request: POST /json_proto HTTP/1.0 [00:58:47]Method: POST [00:58:47]URL: /json_proto [00:58:47]Method is POST - this is cgi request [00:58:47]url: /json_proto [00:58:47]query_string will be loaded in cgi processing [00:58:47]execute_cgi json_proto POST (null) [00:58:47]execute_cgi path=json_proto method=POST [00:58:47]POST find Content-Length [00:58:47]Host: 172.17.42.132:8080 [00:58:47]Content-Length: 756 [00:58:47]Content-Type: application/json [00:58:47] [00:58:47]POST finish read [00:58:47]Found Content-Length = 756 [00:58:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47848", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 49.56, "quantity" : 1.000, "sum" : 49.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 49.56 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:47]execute_script... [00:58:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47848", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 49.56, "quantity" : 1.000, "sum" : 49.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 49.56 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:47]POST & json_proto [00:58:47]process_json_proto [00:58:47]json parsed OK: [00:58:47]protocol is kg_v1.0 [00:58:47]action value=close_receipt [00:58:47]process_action close_receipt [00:58:47]cmd_close_receipt [00:58:47]MH_GetDate [00:58:47]Write to MH i2c: F0 00 00 3F 3D 6B [00:58:47]Write i2c OK [00:58:47]MH_I2C_Read... [00:58:47]Read from MH i2c: F0 [00:58:47]MH_I2C_Read... [00:58:47]Read from MH i2c: F0 09 00 [00:58:47]MH_I2C_Read... [00:58:47]Read from MH i2c: F0 09 00 3F 3D 00 50 ED 1A 67 4C DF 56 66 19 [00:58:47]GetLastDocTimeStamp 1729817793 [00:58:47]current date 1729817936 [00:58:47]FM_GetShiftState [00:58:47]SAM_PROTO_GetShiftState [00:58:47]wFMCommunicate request_size=4 [00:58:47]MH_SAM_APDU [00:58:47]CAPDU: 80 13 01 00 [00:58:47]Write to MH i2c: E2 08 00 40 3D 80 13 01 00 00 00 00 00 FA [00:58:47]Write i2c OK [00:58:47]MH_I2C_Read... [00:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:47]Read from MH i2c: E2 [00:58:47]MH_I2C_Read... [00:58:47]Read from MH i2c: E2 0E 00 [00:58:47]MH_I2C_Read... [00:58:47]Read from MH i2c: E2 0E 00 40 3D 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 82 [00:58:47]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:58:47]wFMCommunicate OK [00:58:47]SAM_PROTO_GetShiftState done [00:58:47]FM_GetShiftState done [00:58:47]opened in 1729815320 [00:58:47]opened+sec_in_day 1729901720 [00:58:47]quantity*price = 4956 [00:58:47]sum+1 = 4957 [00:58:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.56 НСП 1% : 0.44 НДС 12% : 5.26 Наличными: 0.00 Безнал.: 49.56 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 8 25.10.2024 00:58 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63543 ФПД: 275682434108802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005856&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63543&fm=275682434108802&tin=02508201610067®Number=0000000000091619&sum=4956 0 [00:58:48]StoreToDocumentArchive [00:58:48]shift 548 fd 63543 [00:58:48]save to /storage/0548/doc_00063543 [00:58:48]save last doc name /storage/0548/doc_00063543 to /storage/kkm_last_doc_name [00:58:48]save OK [00:58:48]Clear old archive folders... [00:58:48]ProcessDocumentItem done err = 0, tmpTLVsize=269 [00:58:48]tlvbuf is 00C7A800 [00:58:48]SAM_PROTO_ClearQueue [00:58:48]wFMCommunicate request_size=4 [00:58:48]MH_SAM_APDU [00:58:48]CAPDU: 80 09 00 00 [00:58:48]Write to MH i2c: E2 08 00 4D 3D 80 09 00 00 00 00 00 00 FC [00:58:48]Write i2c OK [00:58:48]MH_I2C_Read... [00:58:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:48]Read from MH i2c: E2 [00:58:48]MH_I2C_Read... [00:58:48]Read from MH i2c: E2 03 00 [00:58:48]MH_I2C_Read... [00:58:48]Read from MH i2c: E2 03 00 4D 3D 00 90 00 FE [00:58:48]RAPDU: 90 00 [00:58:48]wFMCommunicate OK [00:58:48]SAM_PROTO_ClearQueue done [00:58:48]KKMCreateOFDPacket [00:58:48]OFDProtocolAddRootSTLVToBuf [00:58:48]FM_MakeSignedData [00:58:48]FM_MakeSignedData [00:58:48]SAM_PROTO_SignData [00:58:48]wFMCommunicate request_size=4 [00:58:48]MH_SAM_APDU [00:58:48]CAPDU: 80 0D 01 02 [00:58:48]Write to MH i2c: E2 08 00 4E 3D 80 0D 01 02 00 00 00 00 04 [00:58:48]Write i2c OK [00:58:48]MH_I2C_Read... [00:58:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:48]Read from MH i2c: E2 [00:58:48]MH_I2C_Read... [00:58:48]Read from MH i2c: E2 03 00 [00:58:48]MH_I2C_Read... [00:58:48]Read from MH i2c: E2 03 00 4E 3D 00 90 00 FF [00:58:48]RAPDU: 90 00 [00:58:48]wFMCommunicate OK [00:58:48]wFMCommunicate request_size=255 [00:58:48]MH_SAM_APDU [00:58:48]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 50 ED 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [00:58:48]Write to MH i2c: E2 02 01 4F 3D 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 50 ED 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 53 [00:58:48]Write i2c OK [00:58:48]MH_I2C_Read... [00:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:49]Read from MH i2c: E2 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 03 00 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 03 00 4F 3D 00 90 00 00 [00:58:49]RAPDU: 90 00 [00:58:49]wFMCommunicate OK [00:58:49]wFMCommunicate request_size=28 [00:58:49]MH_SAM_APDU [00:58:49]CAPDU: 80 0D 02 02 17 37 34 36 37 36 10 04 04 00 37 F8 00 00 35 04 06 00 FA BB 51 8E 4D 82 [00:58:49]Write to MH i2c: E2 1F 00 50 3D 80 0D 02 02 17 00 37 34 36 37 36 10 04 04 00 37 F8 00 00 35 04 06 00 FA BB 51 8E 4D 82 00 00 2C [00:58:49]Write i2c OK [00:58:49]MH_I2C_Read... [00:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:49]Read from MH i2c: E2 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 03 00 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 03 00 50 3D 00 90 00 01 [00:58:49]RAPDU: 90 00 [00:58:49]wFMCommunicate OK [00:58:49]wFMCommunicate request_size=4 [00:58:49]MH_SAM_APDU [00:58:49]CAPDU: 80 0D 03 02 [00:58:49]Write to MH i2c: E2 08 00 51 3D 80 0D 03 02 00 00 00 00 09 [00:58:49]Write i2c OK [00:58:49]MH_I2C_Read... [00:58:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:49]Read from MH i2c: E2 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 0B 00 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 0B 00 51 3D 00 D8 12 BE E6 37 C9 8A D8 90 00 FA [00:58:49]RAPDU: D8 12 BE E6 37 C9 8A D8 90 00 [00:58:49]wFMCommunicate OK [00:58:49]SAM_PROTO_SignData done [00:58:49]FM_MakeSignedData done [00:58:49]CreateOFDProtocolMessage [00:58:49]wFMCommunicate request_size=4 [00:58:49]MH_SAM_APDU [00:58:49]CAPDU: 80 11 00 00 [00:58:49]Write to MH i2c: E2 08 00 52 3D 80 11 00 00 00 00 00 00 09 [00:58:49]Write i2c OK [00:58:49]MH_I2C_Read... [00:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:49]Read from MH i2c: E2 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 17 00 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: E2 17 00 52 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 62 [00:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:58:49]wFMCommunicate OK [00:58:49]CreateOFDProtocolMessage done [00:58:49]OFDSenderStorePacket 63543 [00:58:49]StoreOFDPacket docnum=63543 [00:58:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 18 ED 19 01 DD E4 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 50 ED 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 37 F8 00 00 35 04 06 00 FA BB 51 8E 4D 82 D8 12 BE E6 37 C9 8A D8 [00:58:49]CheckFolder [00:58:49]dirname=/storage/ofd_packets [00:58:49]CheckFolder done [00:58:49]ProducePacketName [00:58:49]name=ofd_packets/00063543 [00:58:49]NVStorageSaveData ofd_packets/00063543 [00:58:49]File name is /storage/ofd_packets/00063543 [00:58:49]Write 319 bytes [00:58:49]NVStorageSaveData done [00:58:49]OFDSenderStorePacket done [00:58:49]KKMCreateOFDPacket done [00:58:49]NVStorageSaveData kkm_last_timestamp [00:58:49]File name is /storage/kkm_last_timestamp [00:58:49]Write 4 bytes [00:58:49]NVStorageSaveData done [00:58:49]ExternCall_PrintAddStr [00:58:49]wPrintStart [00:58:49]Write to MH i2c: 01 00 00 53 3D 90 [00:58:49]Write i2c OK [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: 01 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: 01 07 00 [00:58:49]MH_I2C_Read... [00:58:49]Read from MH i2c: 01 07 00 53 3D 00 00 00 00 00 FF 0F A5 [00:58:49]RasterBufferAndPrint [00:58:49]line Счет N : (3)47848 [00:58:49]line ИНН: 02508201610067 [00:58:49]line Контрольно-Кассовый Чек [00:58:49]line ПРОДАЖА [00:58:49]line Товар: 4700000160358 [00:58:49]line Вода Легенда 1л [00:58:49]line 1.000 * 49.56 [00:58:49]line = 49.56 [00:58:49]line НДС 12% НСП 1% [00:58:49]line > о реализуемом товаре [00:58:49]line ИТОГО: 49.56 [00:58:49]line НСП 1% : 0.44 [00:58:49]line НДС 12% : 5.26 [00:58:49]line Наличными: 0.00 [00:58:49]line Безнал.: 49.56 [00:58:49]line Место: АЗС № 86 "Партнер Нефть" [00:58:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:58:49]line СНО: Общий режим [00:58:49]line Чек 8 25.10.2024 00:58 [00:58:49]line Смена: 548 ФФД: 1.0 [00:58:49]line ЗНМ: 0300000154 [00:58:49]line РНМ: 0000000000091619 [00:58:49]line Версия ККМ: 001 [00:58:49]line Платежная система: Mbank [00:58:49]line ФМ: 0000000000874676 [00:58:49]line ФД: 63543 [00:58:49]line ФПД: 275682434108802 [00:58:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005856&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63543&fm=275682434108802&tin=02508201610067®Number=0000000000091619&sum=4956 [00:58:49]line 0 [00:58:49]written 0, free lines is 4095 [00:58:49]OFD Sender: Processing packet 63543 [packets to send 232, broken 231] [00:58:49]ProducePacketName [00:58:49]name=ofd_packets/00063543 [00:58:49]OFD Sender: To server: pG, [00:58:49]CommunicateWithHost lk.salyk.kg:30040 [00:58:49]ConnectInit lk.salyk.kg [00:58:49]Connected sock=10 [00:58:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 18 ED 19 01 DD E4 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 5C 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 50 ED 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 37 F8 00 00 35 04 06 00 FA BB 51 8E 4D 82 D8 12 BE E6 37 C9 8A D8 [00:58:50]Write to MH i2c: 01 00 00 7C 3D B9 [00:58:50]Write i2c OK [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: 01 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: 01 07 00 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: 01 07 00 7C 3D 00 00 00 00 00 16 0D E3 [00:58:50]RasterBufferAndPrint [00:58:50]line [00:58:50]line [00:58:50]line [00:58:50]line [00:58:50]line [00:58:50]written 0, free lines is 3357 [00:58:50]MH_Cut [00:58:50]Write to MH i2c: D1 01 00 83 3D 01 92 [00:58:50]Write i2c OK [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: D1 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: D1 01 00 [00:58:50]MH_I2C_Read... [00:58:50]Read from MH i2c: D1 01 00 83 3D 00 91 [00:58:50]Write to MH i2c: 01 00 00 84 3D C1 [00:58:50]Write i2c OK [00:58:50]MH_I2C_Read... [00:58:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 C0 E2 47 00 1E 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 37 F8 00 00 F4 03 04 00 42 97 1A 67 B6 04 01 00 00 74 C3 78 7B 7F 27 52 18 [00:58:50]CommunicateWithHost err = 0 [00:58:50]CheckOFDResponse [00:58:50]1017 (14) - 77093643461234 [00:58:50]1041 (16) - 0000000000874676 [00:58:50]1040 (4) - 63543 [00:58:50]1012 (4) - 24.10.2024 18:51 [00:58:50]1206 (1) - 0 [00:58:50]OFD Sender: Remove packet 63543 [00:58:50]ProducePacketName [00:58:50]name=ofd_packets/00063543 [00:58:50]NVStorageDeleteData [00:58:50]OFD Sender: No OFD packet to send [00:58:50]*** Cut start [00:58:50]*** Partial cut [00:58:50]*** CUTSNS_PIN = 1 [00:58:50]*** CUTSNS_PIN = 0 [00:58:51]*** Brake cut motor [00:58:51]Read from MH i2c: 01 [00:58:51]MH_I2C_Read... [00:58:51]*** Stop cut motor [00:58:51]*** Cut end [00:58:51]Read from MH i2c: 01 07 00 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: 01 07 00 84 3D 00 00 00 00 00 FF 0F D6 [00:58:51]process_action close_receipt done [00:58:51]requested_data is exist [00:58:51]produce_requested_data [00:58:51]requested_item fm.sn is exist - process it [00:58:51]wFMCommunicate request_size=4 [00:58:51]MH_SAM_APDU [00:58:51]CAPDU: 80 11 00 00 [00:58:51]Write to MH i2c: E2 08 00 85 3D 80 11 00 00 00 00 00 00 3C [00:58:51]Write i2c OK [00:58:51]MH_I2C_Read... [00:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:51]Read from MH i2c: E2 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: E2 17 00 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: E2 17 00 85 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 95 [00:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [00:58:51]wFMCommunicate OK [00:58:51]requested_item fd.num is exist - process it [00:58:51]SAM_PROTO_GetFieldsCounters [00:58:51]wFMCommunicate request_size=4 [00:58:51]MH_SAM_APDU [00:58:51]CAPDU: 80 13 00 00 [00:58:51]Write to MH i2c: E2 08 00 86 3D 80 13 00 00 00 00 00 00 3F [00:58:51]Write i2c OK [00:58:51]MH_I2C_Read... [00:58:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:51]Read from MH i2c: E2 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: E2 62 00 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: E2 62 00 86 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 37 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [00:58:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 37 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:58:51]wFMCommunicate OK [00:58:51]SAM_PROTO_GetFieldsCounters done [00:58:51]requested_item shift.num is exist - process it [00:58:51]requested_item shift.opened is exist - process it [00:58:51]req_shift_opened [00:58:51]FM_GetShiftState [00:58:51]SAM_PROTO_GetShiftState [00:58:51]wFMCommunicate request_size=4 [00:58:51]MH_SAM_APDU [00:58:51]CAPDU: 80 13 01 00 [00:58:51]Write to MH i2c: E2 08 00 87 3D 80 13 01 00 00 00 00 00 41 [00:58:51]Write i2c OK [00:58:51]MH_I2C_Read... [00:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:51]Read from MH i2c: E2 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: E2 0E 00 [00:58:51]MH_I2C_Read... [00:58:51]Read from MH i2c: E2 0E 00 87 3D 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 C9 [00:58:51]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [00:58:51]wFMCommunicate OK [00:58:51]SAM_PROTO_GetShiftState done [00:58:51]FM_GetShiftState done [00:58:51]req_shift_opened done [00:58:51]requested_item shift.open_date is exist - process it [00:58:51]req_shift_open_date [00:58:51]req_shift_open_date done [00:58:51]produce_requested_data done [00:58:51]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63543,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [00:58:51]process_action_free close_receipt [00:58:51]json_value_free [00:58:51]json_value_free done [00:58:51]process_json_proto returns [00:58:51]Send response to host [00:58:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63543,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [00:58:51]free response buf [00:58:51]execute_script done [00:58:51]execute_script returns [00:58:51]free content buf [00:58:51]Sock 9.Close socket [00:58:51]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:18]recv_with_timeout no data received [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11: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:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:43]accept exits with 7 [01:15:43]New connection [01:15:43]New thread 3066633572 created [01:15:43]Thread 3066490212 joined [01:15:43]Waiting for new connection... [01:15:43] Sock 7.Parse request [01:15:43]Sock 7.Check first char [01:15:43]Sock 7.First char is OK [01:15:43]request: POST /json_proto HTTP/1.0 [01:15:43]Method: POST [01:15:43]URL: /json_proto [01:15:43]Method is POST - this is cgi request [01:15:43]url: /json_proto [01:15:43]query_string will be loaded in cgi processing [01:15:43]execute_cgi json_proto POST (null) [01:15:43]execute_cgi path=json_proto method=POST [01:15:43]POST find Content-Length [01:15:43]Host: 172.17.42.132:8080 [01:15:43]Content-Length: 950 [01:15:43]Content-Type: application/json [01:15:43] [01:15:43]POST finish read [01:15:43]Found Content-Length = 950 [01:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47849", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030017", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:43]execute_script... [01:15: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)47849", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030017", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:43]POST & json_proto [01:15:43]process_json_proto [01:15:43]json parsed OK: [01:15:43]protocol is kg_v1.0 [01:15:43]action value=close_receipt [01:15:43]process_action close_receipt [01:15:43]cmd_close_receipt [01:15:43]MH_GetDate [01:15:43]Write to MH i2c: F0 00 00 88 3D B4 [01:15:43]Write i2c OK [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: F0 [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: F0 09 00 [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: F0 09 00 88 3D 00 47 F1 1A 67 4C DF 56 66 5D [01:15:43]GetLastDocTimeStamp 1729817936 [01:15:43]current date 1729818951 [01:15:43]FM_GetShiftState [01:15:43]SAM_PROTO_GetShiftState [01:15:43]wFMCommunicate request_size=4 [01:15:43]MH_SAM_APDU [01:15:43]CAPDU: 80 13 01 00 [01:15:43]Write to MH i2c: E2 08 00 89 3D 80 13 01 00 00 00 00 00 43 [01:15:43]Write i2c OK [01:15:43]MH_I2C_Read... [01:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:43]Read from MH i2c: E2 [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: E2 0E 00 [01:15:43]MH_I2C_Read... [01:15:43]Read from MH i2c: E2 0E 00 89 3D 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 CB [01:15:43]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:15:43]wFMCommunicate OK [01:15:43]SAM_PROTO_GetShiftState done [01:15:43]FM_GetShiftState done [01:15:43]opened in 1729815320 [01:15:43]opened+sec_in_day 1729901720 [01:15:43]quantity*price = 9500 [01:15:43]sum+1 = 9501 [01:15:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700026030017 Курут классический 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 9 25.10.2024 01:15 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63544 ФПД: 143300099806200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T011551&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63544&fm=143300099806200&tin=02508201610067®Number=0000000000091619&sum=14400 0 [01:15:44]StoreToDocumentArchive [01:15:44]shift 548 fd 63544 [01:15:44]save to /storage/0548/doc_00063544 [01:15:44]save last doc name /storage/0548/doc_00063544 to /storage/kkm_last_doc_name [01:15:44]save OK [01:15:44]Clear old archive folders... [01:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=397 [01:15:44]tlvbuf is 00BCF0F0 [01:15:44]SAM_PROTO_ClearQueue [01:15:44]wFMCommunicate request_size=4 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 09 00 00 [01:15:44]Write to MH i2c: E2 08 00 96 3D 80 09 00 00 00 00 00 00 45 [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 96 3D 00 90 00 47 [01:15:44]RAPDU: 90 00 [01:15:44]wFMCommunicate OK [01:15:44]SAM_PROTO_ClearQueue done [01:15:44]KKMCreateOFDPacket [01:15:44]OFDProtocolAddRootSTLVToBuf [01:15:44]FM_MakeSignedData [01:15:44]FM_MakeSignedData [01:15:44]SAM_PROTO_SignData [01:15:44]wFMCommunicate request_size=4 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 0D 01 02 [01:15:44]Write to MH i2c: E2 08 00 97 3D 80 0D 01 02 00 00 00 00 4D [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 97 3D 00 90 00 48 [01:15:44]RAPDU: 90 00 [01:15:44]wFMCommunicate OK [01:15:44]wFMCommunicate request_size=255 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 [01:15:44]Write to MH i2c: E2 02 01 98 3D 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 00 00 0B [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 98 3D 00 90 00 49 [01:15:44]RAPDU: 90 00 [01:15:44]wFMCommunicate OK [01:15:44]wFMCommunicate request_size=156 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 0D 02 02 97 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 09 00 00 00 F4 03 04 00 47 F1 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F8 00 00 35 04 06 00 82 54 A7 8B 93 F8 [01:15:44]Write to MH i2c: E2 9F 00 99 3D 80 0D 02 02 97 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 09 00 00 00 F4 03 04 00 47 F1 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F8 00 00 35 04 06 00 82 54 A7 8B 93 F8 00 00 4E [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 03 00 99 3D 00 90 00 4A [01:15:44]RAPDU: 90 00 [01:15:44]wFMCommunicate OK [01:15:44]wFMCommunicate request_size=4 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 0D 03 02 [01:15:44]Write to MH i2c: E2 08 00 9A 3D 80 0D 03 02 00 00 00 00 52 [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:44]Read from MH i2c: E2 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 0B 00 [01:15:44]MH_I2C_Read... [01:15:44]Read from MH i2c: E2 0B 00 9A 3D 00 C8 89 9F FE 38 45 87 4B 90 00 90 [01:15:44]RAPDU: C8 89 9F FE 38 45 87 4B 90 00 [01:15:44]wFMCommunicate OK [01:15:44]SAM_PROTO_SignData done [01:15:44]FM_MakeSignedData done [01:15:44]CreateOFDProtocolMessage [01:15:44]wFMCommunicate request_size=4 [01:15:44]MH_SAM_APDU [01:15:44]CAPDU: 80 11 00 00 [01:15:44]Write to MH i2c: E2 08 00 9B 3D 80 11 00 00 00 00 00 00 52 [01:15:44]Write i2c OK [01:15:44]MH_I2C_Read... [01:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:45]Read from MH i2c: E2 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: E2 17 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: E2 17 00 9B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AB [01:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:15:45]wFMCommunicate OK [01:15:45]CreateOFDProtocolMessage done [01:15:45]OFDSenderStorePacket 63544 [01:15:45]StoreOFDPacket docnum=63544 [01:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A1 01 00 00 DD 31 99 01 15 E5 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 00 00 00 F4 03 04 00 47 F1 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F8 00 00 35 04 06 00 82 54 A7 8B 93 F8 C8 89 9F FE 38 45 87 4B [01:15:45]CheckFolder [01:15:45]dirname=/storage/ofd_packets [01:15:45]CheckFolder done [01:15:45]ProducePacketName [01:15:45]name=ofd_packets/00063544 [01:15:45]NVStorageSaveData ofd_packets/00063544 [01:15:45]File name is /storage/ofd_packets/00063544 [01:15:45]Write 447 bytes [01:15:45]NVStorageSaveData done [01:15:45]OFDSenderStorePacket done [01:15:45]KKMCreateOFDPacket done [01:15:45]NVStorageSaveData kkm_last_timestamp [01:15:45]File name is /storage/kkm_last_timestamp [01:15:45]Write 4 bytes [01:15:45]NVStorageSaveData done [01:15:45]ExternCall_PrintAddStr [01:15:45]wPrintStart [01:15:45]Write to MH i2c: 01 00 00 9C 3D D9 [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 07 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 07 00 9C 3D 00 00 00 00 00 FF 0F EE [01:15:45]RasterBufferAndPrint [01:15:45]line Счет N : (3)47849 [01:15:45]line ИНН: 02508201610067 [01:15:45]line Контрольно-Кассовый Чек [01:15:45]line ПРОДАЖА [01:15:45]line Товар: 4870235681376 [01:15:45]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [01:15:45]line 1.000 * 95.00 [01:15:45]line = 95.00 [01:15:45]line НДС 12% НСП 1% [01:15:45]line > о реализуемом товаре [01:15:45]line Товар: 4700026030017 [01:15:45]line Курут классический [01:15:45]line 1.000 * 49.00 [01:15:45]line = 49.00 [01:15:45]line НДС 12% НСП 1% [01:15:45]line > о реализуемом товаре [01:15:45]line ИТОГО: 144.00 [01:15:45]line НСП 1% : 1.27 [01:15:45]line НДС 12% : 15.29 [01:15:45]line Наличными: 144.00 [01:15:45]line Безнал.: 0.00 [01:15:45]line Место: АЗС № 86 "Партнер Нефть" [01:15:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:15:45]line СНО: Общий режим [01:15:45]line Чек 9 25.10.2024 01:15 [01:15:45]line Смена: 548 ФФД: 1.0 [01:15:45]line ЗНМ: 0300000154 [01:15:45]line РНМ: 0000000000091619 [01:15:45]line Версия ККМ: 001 [01:15:45]line ФМ: 0000000000874676 [01:15:45]line ФД: 63544 [01:15:45]line ФПД: 143300099806200 [01:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T011551&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63544&fm=143300099806200&tin=02508201610067®Number=0000000000091619&sum=14400 [01:15:45]line 0 [01:15:45]OFD Sender: Processing packet 63544 [packets to send 232, broken 231] [01:15:45]ProducePacketName [01:15:45]name=ofd_packets/00063544 [01:15:45]OFD Sender: To server: pG, [01:15:45]CommunicateWithHost lk.salyk.kg:30040 [01:15:45]ConnectInit lk.salyk.kg [01:15:45]written 0, free lines is 4095 [01:15:45]Connected sock=10 [01:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A1 01 00 00 DD 31 99 01 15 E5 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 09 00 00 00 F4 03 04 00 47 F1 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F8 00 00 35 04 06 00 82 54 A7 8B 93 F8 C8 89 9F FE 38 45 87 4B [01:15:45]Write to MH i2c: 01 00 00 CB 3D 08 [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 07 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: 01 07 00 CB 3D 00 00 00 00 00 B3 0C CE [01:15:45]RasterBufferAndPrint [01:15:45]line [01:15:45]line [01:15:45]line [01:15:45]line [01:15:45]line [01:15:45]written 0, free lines is 3262 [01:15:45]MH_Cut [01:15:45]Write to MH i2c: D1 01 00 D2 3D 01 E1 [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: D1 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: D1 01 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: D1 01 00 D2 3D 00 E0 [01:15:45]Write to MH i2c: 01 00 00 D3 3D 10 [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 19 9B 47 00 71 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F8 00 00 F4 03 04 00 3A 9B 1A 67 B6 04 01 00 00 85 43 ED C4 F1 79 88 F2 [01:15:45]CommunicateWithHost err = 0 [01:15:45]CheckOFDResponse [01:15:45]1017 (14) - 77093643461234 [01:15:45]1041 (16) - 0000000000874676 [01:15:45]1040 (4) - 63544 [01:15:45]1012 (4) - 24.10.2024 19:08 [01:15:45]1206 (1) - 0 [01:15:45]OFD Sender: Remove packet 63544 [01:15:45]ProducePacketName [01:15:45]name=ofd_packets/00063544 [01:15:45]NVStorageDeleteData [01:15:46]OFD Sender: No OFD packet to send [01:15:46]*** Cut start [01:15:46]*** Partial cut [01:15:46]*** CUTSNS_PIN = 1 [01:15:46]*** CUTSNS_PIN = 0 [01:15:46]*** Brake cut motor [01:15:47]Read from MH i2c: 01 [01:15:47]MH_I2C_Read... [01:15:47]*** Stop cut motor [01:15:47]*** Cut end [01:15:47]Read from MH i2c: 01 07 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: 01 07 00 D3 3D 00 00 00 00 00 FF 0F 25 [01:15:47]process_action close_receipt done [01:15:47]requested_data is exist [01:15:47]produce_requested_data [01:15:47]requested_item fm.sn is exist - process it [01:15:47]wFMCommunicate request_size=4 [01:15:47]MH_SAM_APDU [01:15:47]CAPDU: 80 11 00 00 [01:15:47]Write to MH i2c: E2 08 00 D4 3D 80 11 00 00 00 00 00 00 8B [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:47]Read from MH i2c: E2 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 17 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 17 00 D4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E4 [01:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:15:47]wFMCommunicate OK [01:15:47]requested_item fd.num is exist - process it [01:15:47]SAM_PROTO_GetFieldsCounters [01:15:47]wFMCommunicate request_size=4 [01:15:47]MH_SAM_APDU [01:15:47]CAPDU: 80 13 00 00 [01:15:47]Write to MH i2c: E2 08 00 D5 3D 80 13 00 00 00 00 00 00 8E [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:47]Read from MH i2c: E2 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 62 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 62 00 D5 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 38 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [01:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 38 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:15:47]wFMCommunicate OK [01:15:47]SAM_PROTO_GetFieldsCounters done [01:15:47]requested_item shift.num is exist - process it [01:15:47]requested_item shift.opened is exist - process it [01:15:47]req_shift_opened [01:15:47]FM_GetShiftState [01:15:47]SAM_PROTO_GetShiftState [01:15:47]wFMCommunicate request_size=4 [01:15:47]MH_SAM_APDU [01:15:47]CAPDU: 80 13 01 00 [01:15:47]Write to MH i2c: E2 08 00 D6 3D 80 13 01 00 00 00 00 00 90 [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:47]Read from MH i2c: E2 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 0E 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: E2 0E 00 D6 3D 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 18 [01:15:47]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:15:47]wFMCommunicate OK [01:15:47]SAM_PROTO_GetShiftState done [01:15:47]FM_GetShiftState done [01:15:47]req_shift_opened done [01:15:47]requested_item shift.open_date is exist - process it [01:15:47]req_shift_open_date [01:15:47]req_shift_open_date done [01:15:47]produce_requested_data done [01:15:47]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63544,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [01:15:47]process_action_free close_receipt [01:15:47]json_value_free [01:15:47]json_value_free done [01:15:47]process_json_proto returns [01:15:47]Send response to host [01:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63544,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [01:15:47]free response buf [01:15:47]execute_script done [01:15:47]execute_script returns [01:15:47]free content buf [01:15:47]Sock 7.Close socket [01:15:47]Sock 7.Thread stoped [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:43]accept exits with 9 [01:19:43]New connection [01:19:43]New thread 3066490212 created [01:19:43]Thread 3066633572 joined [01:19:43]Waiting for new connection... [01:19:43] Sock 9.Parse request [01:19:43]Sock 9.Check first char [01:19:43]Sock 9.First char is OK [01:19:43]request: POST /json_proto HTTP/1.0 [01:19:43]Method: POST [01:19:43]URL: /json_proto [01:19:43]Method is POST - this is cgi request [01:19:43]url: /json_proto [01:19:43]query_string will be loaded in cgi processing [01:19:43]execute_cgi json_proto POST (null) [01:19:43]execute_cgi path=json_proto method=POST [01:19:43]POST find Content-Length [01:19:43]Host: 172.17.42.132:8080 [01:19:43]Content-Length: 1134 [01:19:43]Content-Type: application/json [01:19:43] [01:19:43]POST finish read [01:19:43]Found Content-Length = 1134 [01:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47850", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 429.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:43]execute_script... [01:19: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)47850", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 429.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:43]POST & json_proto [01:19:43]process_json_proto [01:19:43]json parsed OK: [01:19:43]protocol is kg_v1.0 [01:19:43]action value=close_receipt [01:19:43]process_action close_receipt [01:19:43]cmd_close_receipt [01:19:43]MH_GetDate [01:19:43]Write to MH i2c: F0 00 00 D7 3D 03 [01:19:43]Write i2c OK [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: F0 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: F0 09 00 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: F0 09 00 D7 3D 00 38 F2 1A 67 4C DF 56 66 9E [01:19:43]GetLastDocTimeStamp 1729818951 [01:19:43]current date 1729819192 [01:19:43]FM_GetShiftState [01:19:43]SAM_PROTO_GetShiftState [01:19:43]wFMCommunicate request_size=4 [01:19:43]MH_SAM_APDU [01:19:43]CAPDU: 80 13 01 00 [01:19:43]Write to MH i2c: E2 08 00 D8 3D 80 13 01 00 00 00 00 00 92 [01:19:43]Write i2c OK [01:19:43]MH_I2C_Read... [01:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:43]Read from MH i2c: E2 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 0E 00 [01:19:43]MH_I2C_Read... [01:19:43]Read from MH i2c: E2 0E 00 D8 3D 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 1A [01:19:43]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:19:43]wFMCommunicate OK [01:19:43]SAM_PROTO_GetShiftState done [01:19:43]FM_GetShiftState done [01:19:43]opened in 1729815320 [01:19:43]opened+sec_in_day 1729901720 [01:19:43]quantity*price = 16000 [01:19:43]sum+1 = 16001 [01:19:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 429.00 НСП 1% : 3.80 НДС 12% : 45.55 Наличными: 429.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 10 25.10.2024 01:19 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63545 ФПД: 6011187929149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T011952&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63545&fm=6011187929149&tin=02508201610067®Number=0000000000091619&sum=42900 0 [01:19:44]StoreToDocumentArchive [01:19:44]shift 548 fd 63545 [01:19:44]save to /storage/0548/doc_00063545 [01:19:44]save last doc name /storage/0548/doc_00063545 to /storage/kkm_last_doc_name [01:19:44]save OK [01:19:44]Clear old archive folders... [01:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=487 [01:19:44]tlvbuf is 00C49CF0 [01:19:44]SAM_PROTO_ClearQueue [01:19:44]wFMCommunicate request_size=4 [01:19:44]MH_SAM_APDU [01:19:44]CAPDU: 80 09 00 00 [01:19:44]Write to MH i2c: E2 08 00 E5 3D 80 09 00 00 00 00 00 00 94 [01:19:44]Write i2c OK [01:19:44]MH_I2C_Read... [01:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:19:44]Read from MH i2c: E2 [01:19:44]MH_I2C_Read... [01:19:44]Read from MH i2c: E2 03 00 [01:19:44]MH_I2C_Read... [01:19:44]Read from MH i2c: E2 03 00 E5 3D 00 90 00 96 [01:19:44]RAPDU: 90 00 [01:19:44]wFMCommunicate OK [01:19:44]SAM_PROTO_ClearQueue done [01:19:44]KKMCreateOFDPacket [01:19:44]OFDProtocolAddRootSTLVToBuf [01:19:44]FM_MakeSignedData [01:19:44]FM_MakeSignedData [01:19:44]SAM_PROTO_SignData [01:19:44]wFMCommunicate request_size=4 [01:19:44]MH_SAM_APDU [01:19:44]CAPDU: 80 0D 01 02 [01:19:44]Write to MH i2c: E2 08 00 E6 3D 80 0D 01 02 00 00 00 00 9C [01:19:44]Write i2c OK [01:19:44]MH_I2C_Read... [01:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:19:44]Read from MH i2c: E2 [01:19:44]MH_I2C_Read... [01:19:44]Read from MH i2c: E2 03 00 [01:19:44]MH_I2C_Read... [01:19:44]Read from MH i2c: E2 03 00 E6 3D 00 90 00 97 [01:19:44]RAPDU: 90 00 [01:19:44]wFMCommunicate OK [01:19:44]wFMCommunicate request_size=255 [01:19:44]MH_SAM_APDU [01:19:44]CAPDU: 80 0D 02 02 FA 03 00 E7 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [01:19:44]Write to MH i2c: E2 02 01 E7 3D 80 0D 02 02 FA 00 03 00 E7 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 FB [01:19:45]Write i2c OK [01:19:45]MH_I2C_Read... [01:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:45]Read from MH i2c: E2 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: E2 03 00 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: E2 03 00 E7 3D 00 90 00 98 [01:19:45]RAPDU: 90 00 [01:19:45]wFMCommunicate OK [01:19:45]wFMCommunicate request_size=246 [01:19:45]MH_SAM_APDU [01:19:45]CAPDU: 80 0D 02 02 F1 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 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 94 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 11 00 00 00 00 07 04 06 00 94 A7 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 38 F2 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F8 00 00 35 04 06 00 05 77 96 B8 A0 3D [01:19:45]Write to MH i2c: E2 F9 00 E8 3D 80 0D 02 02 F1 00 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 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 94 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 11 00 00 00 00 07 04 06 00 94 A7 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 38 F2 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F8 00 00 35 04 06 00 05 77 96 B8 A0 3D 00 00 AF [01:19:45]Write i2c OK [01:19:45]MH_I2C_Read... [01:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:45]Read from MH i2c: E2 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: E2 03 00 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: E2 03 00 E8 3D 00 90 00 99 [01:19:45]RAPDU: 90 00 [01:19:45]wFMCommunicate OK [01:19:45]wFMCommunicate request_size=4 [01:19:45]MH_SAM_APDU [01:19:45]CAPDU: 80 0D 03 02 [01:19:45]Write to MH i2c: E2 08 00 E9 3D 80 0D 03 02 00 00 00 00 A1 [01:19:45]Write i2c OK [01:19:45]MH_I2C_Read... [01:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:19:45]Read from MH i2c: E2 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: E2 0B 00 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: E2 0B 00 E9 3D 00 31 A4 1A 4E C8 FF E7 E2 90 00 6F [01:19:45]RAPDU: 31 A4 1A 4E C8 FF E7 E2 90 00 [01:19:45]wFMCommunicate OK [01:19:45]SAM_PROTO_SignData done [01:19:45]FM_MakeSignedData done [01:19:45]CreateOFDProtocolMessage [01:19:45]wFMCommunicate request_size=4 [01:19:45]MH_SAM_APDU [01:19:45]CAPDU: 80 11 00 00 [01:19:45]Write to MH i2c: E2 08 00 EA 3D 80 11 00 00 00 00 00 00 A1 [01:19:45]Write i2c OK [01:19:45]MH_I2C_Read... [01:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:45]Read from MH i2c: E2 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: E2 17 00 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: E2 17 00 EA 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FA [01:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:19:45]wFMCommunicate OK [01:19:45]CreateOFDProtocolMessage done [01:19:45]OFDSenderStorePacket 63545 [01:19:45]StoreOFDPacket docnum=63545 [01:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 FB 01 00 00 03 4C F3 01 2B 7D 5A 03 01 00 03 00 E7 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 94 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 11 00 00 00 00 07 04 06 00 94 A7 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 38 F2 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F8 00 00 35 04 06 00 05 77 96 B8 A0 3D 31 A4 1A 4E C8 FF E7 E2 [01:19:45]CheckFolder [01:19:45]dirname=/storage/ofd_packets [01:19:45]CheckFolder done [01:19:45]ProducePacketName [01:19:45]name=ofd_packets/00063545 [01:19:45]NVStorageSaveData ofd_packets/00063545 [01:19:45]File name is /storage/ofd_packets/00063545 [01:19:45]Write 537 bytes [01:19:45]NVStorageSaveData done [01:19:45]OFDSenderStorePacket done [01:19:45]KKMCreateOFDPacket done [01:19:45]NVStorageSaveData kkm_last_timestamp [01:19:45]File name is /storage/kkm_last_timestamp [01:19:45]Write 4 bytes [01:19:45]NVStorageSaveData done [01:19:45]OFD Sender: Processing packet 63545 [packets to send 232, broken 231] [01:19:45]ProducePacketName [01:19:45]name=ofd_packets/00063545 [01:19:45]OFD Sender: To server: pG, [01:19:45]CommunicateWithHost lk.salyk.kg:30040 [01:19:45]ConnectInit lk.salyk.kg [01:19:45]ExternCall_PrintAddStr [01:19:45]wPrintStart [01:19:45]Write to MH i2c: 01 00 00 EB 3D 28 [01:19:45]Write i2c OK [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: 01 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: 01 07 00 [01:19:45]MH_I2C_Read... [01:19:45]Read from MH i2c: 01 07 00 EB 3D 00 00 00 00 00 FF 0F 3D [01:19:45]RasterBufferAndPrint [01:19:45]line Счет N : (3)47850 [01:19:45]line ИНН: 02508201610067 [01:19:45]line Контрольно-Кассовый Чек [01:19:45]line ПРОДАЖА [01:19:45]line Товар: 48742245 [01:19:45]line Сигареты Parliament Silver Blue [01:19:45]line 1.000 * 160.00 [01:19:45]line = 160.00 [01:19:45]line НДС 12% НСП 1% [01:19:45]line > о реализуемом товаре [01:19:45]line Товар: 48743570 [01:19:45]line Сигареты Winston XStyle Blue [01:19:45]line 1.000 * 144.00 [01:19:45]line = 144.00 [01:19:45]line НДС 12% НСП 1% [01:19:45]line > о реализуемом товаре [01:19:45]line Товар: 5449000054227 [01:19:45]line Напиток Кока-Кола 1л [01:19:45]line 1.000 * 125.00 [01:19:45]line = 125.00 [01:19:45]line НДС 12% НСП 1% [01:19:45]line > о реализуемом товаре [01:19:45]line ИТОГО: 429.00 [01:19:45]line НСП 1% : 3.80 [01:19:45]line НДС 12% : 45.55 [01:19:45]line Наличными: 429.00 [01:19:45]line Безнал.: 0.00 [01:19:45]line Место: АЗС № 86 "Партнер Нефть" [01:19:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:19:45]line СНО: Общий режим [01:19:45]line Чек 10 25.10.2024 01:19 [01:19:45]line Смена: 548 ФФД: 1.0 [01:19:45]line ЗНМ: 0300000154 [01:19:45]line РНМ: 0000000000091619 [01:19:45]line Версия ККМ: 001 [01:19:45]line ФМ: 0000000000874676 [01:19:45]line ФД: 63545 [01:19:45]line ФПД: 6011187929149 [01:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T011952&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63545&fm=6011187929149&tin=02508201610067®Number=0000000000091619&sum=42900 [01:19:45]line 0 [01:19:45]written 0, free lines is 4095 [01:19:45]Connected sock=11 [01:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 FB 01 00 00 03 4C F3 01 2B 7D 5A 03 01 00 03 00 E7 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 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 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 94 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 11 00 00 00 00 07 04 06 00 94 A7 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 38 F2 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F8 00 00 35 04 06 00 05 77 96 B8 A0 3D 31 A4 1A 4E C8 FF E7 E2 [01:19:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 73 7F 47 00 A2 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 34 36 37 36 10 04 04 00 39 F8 00 00 F4 03 04 00 2B 9C 1A 67 B6 04 01 00 00 B0 50 27 A6 50 07 A6 DF [01:19:46]CommunicateWithHost err = 0 [01:19:46]CheckOFDResponse [01:19:46]1017 (14) - 77093643461234 [01:19:46]1041 (16) - 0000000000874676 [01:19:46]1040 (4) - 63545 [01:19:46]1012 (4) - 24.10.2024 19:12 [01:19:46]1206 (1) - 0 [01:19:46]OFD Sender: Remove packet 63545 [01:19:46]ProducePacketName [01:19:46]name=ofd_packets/00063545 [01:19:46]NVStorageDeleteData [01:19:46]Write to MH i2c: 01 00 00 20 3E 5E [01:19:46]Write i2c OK [01:19:46]MH_I2C_Read... [01:19:46]Read from MH i2c: 01 [01:19:46]MH_I2C_Read... [01:19:46]Read from MH i2c: 01 07 00 [01:19:46]MH_I2C_Read... [01:19:46]Read from MH i2c: 01 07 00 20 3E 00 00 00 00 00 5F 0C D0 [01:19:46]RasterBufferAndPrint [01:19:46]line [01:19:46]line [01:19:46]line [01:19:46]line [01:19:46]line [01:19:46]written 0, free lines is 3176 [01:19:46]MH_Cut [01:19:46]Write to MH i2c: D1 01 00 27 3E 01 37 [01:19:46]Write i2c OK [01:19:46]MH_I2C_Read... [01:19:46]Read from MH i2c: D1 [01:19:46]MH_I2C_Read... [01:19:46]Read from MH i2c: D1 01 00 [01:19:46]MH_I2C_Read... [01:19:46]Read from MH i2c: D1 01 00 27 3E 00 36 [01:19:46]Write to MH i2c: 01 00 00 28 3E 66 [01:19:46]Write i2c OK [01:19:46]MH_I2C_Read... [01:19:46]OFD Sender: No OFD packet to send [01:19:47]*** Cut start [01:19:47]*** Partial cut [01:19:47]*** CUTSNS_PIN = 1 [01:19:47]*** CUTSNS_PIN = 0 [01:19:47]*** Brake cut motor [01:19:47]Read from MH i2c: 01 [01:19:47]MH_I2C_Read... [01:19:47]*** Stop cut motor [01:19:47]*** Cut end [01:19:47]Read from MH i2c: 01 07 00 [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: 01 07 00 28 3E 00 00 00 00 00 FF 0F 7B [01:19:47]process_action close_receipt done [01:19:47]requested_data is exist [01:19:47]produce_requested_data [01:19:47]requested_item fm.sn is exist - process it [01:19:47]wFMCommunicate request_size=4 [01:19:47]MH_SAM_APDU [01:19:47]CAPDU: 80 11 00 00 [01:19:47]Write to MH i2c: E2 08 00 29 3E 80 11 00 00 00 00 00 00 E1 [01:19:47]Write i2c OK [01:19:47]MH_I2C_Read... [01:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:47]Read from MH i2c: E2 [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: E2 17 00 [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: E2 17 00 29 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3A [01:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:19:47]wFMCommunicate OK [01:19:47]requested_item fd.num is exist - process it [01:19:47]SAM_PROTO_GetFieldsCounters [01:19:47]wFMCommunicate request_size=4 [01:19:47]MH_SAM_APDU [01:19:47]CAPDU: 80 13 00 00 [01:19:47]Write to MH i2c: E2 08 00 2A 3E 80 13 00 00 00 00 00 00 E4 [01:19:47]Write i2c OK [01:19:47]MH_I2C_Read... [01:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:47]Read from MH i2c: E2 [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: E2 62 00 [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: E2 62 00 2A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 39 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [01:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 39 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:47]wFMCommunicate OK [01:19:47]SAM_PROTO_GetFieldsCounters done [01:19:47]requested_item shift.num is exist - process it [01:19:47]requested_item shift.opened is exist - process it [01:19:47]req_shift_opened [01:19:47]FM_GetShiftState [01:19:47]SAM_PROTO_GetShiftState [01:19:47]wFMCommunicate request_size=4 [01:19:47]MH_SAM_APDU [01:19:47]CAPDU: 80 13 01 00 [01:19:47]Write to MH i2c: E2 08 00 2B 3E 80 13 01 00 00 00 00 00 E6 [01:19:47]Write i2c OK [01:19:47]MH_I2C_Read... [01:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:47]Read from MH i2c: E2 [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: E2 0E 00 [01:19:47]MH_I2C_Read... [01:19:47]Read from MH i2c: E2 0E 00 2B 3E 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 6E [01:19:47]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:19:47]wFMCommunicate OK [01:19:47]SAM_PROTO_GetShiftState done [01:19:47]FM_GetShiftState done [01:19:47]req_shift_opened done [01:19:47]requested_item shift.open_date is exist - process it [01:19:47]req_shift_open_date [01:19:47]req_shift_open_date done [01:19:47]produce_requested_data done [01:19:47]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63545,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [01:19:47]process_action_free close_receipt [01:19:47]json_value_free [01:19:47]json_value_free done [01:19:47]process_json_proto returns [01:19:47]Send response to host [01:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63545,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [01:19:47]free response buf [01:19:47]execute_script done [01:19:47]execute_script returns [01:19:47]free content buf [01:19:47]Sock 9.Close socket [01:19:47]Sock 9.Thread stoped [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:12]accept exits with 7 [01:22:12]New connection [01:22:12]New thread 3066633572 created [01:22:12]Thread 3066490212 joined [01:22:12]Waiting for new connection... [01:22:12] Sock 7.Parse request [01:22:12]Sock 7.Check first char [01:22:12]Sock 7.First char is OK [01:22:12]request: POST /json_proto HTTP/1.0 [01:22:12]Method: POST [01:22:12]URL: /json_proto [01:22:12]Method is POST - this is cgi request [01:22:12]url: /json_proto [01:22:12]query_string will be loaded in cgi processing [01:22:12]execute_cgi json_proto POST (null) [01:22:12]execute_cgi path=json_proto method=POST [01:22:12]POST find Content-Length [01:22:12]Host: 172.17.42.132:8080 [01:22:12]Content-Length: 1119 [01:22:12]Content-Type: application/json [01:22:12] [01:22:12]POST finish read [01:22:12]Found Content-Length = 1119 [01:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47851", "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" : 98.12, "quantity" : 1.000, "sum" : 98.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 50.55, "quantity" : 1.000, "sum" : 50.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 148.67 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:12]execute_script... [01:22:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47851", "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" : 98.12, "quantity" : 1.000, "sum" : 98.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 50.55, "quantity" : 1.000, "sum" : 50.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 148.67 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:12]POST & json_proto [01:22:12]process_json_proto [01:22:12]json parsed OK: [01:22:12]protocol is kg_v1.0 [01:22:12]action value=close_receipt [01:22:12]process_action close_receipt [01:22:12]cmd_close_receipt [01:22:12]MH_GetDate [01:22:12]Write to MH i2c: F0 00 00 2C 3E 59 [01:22:12]Write i2c OK [01:22:12]MH_I2C_Read... [01:22:12]Read from MH i2c: F0 [01:22:12]MH_I2C_Read... [01:22:12]Read from MH i2c: F0 09 00 [01:22:12]MH_I2C_Read... [01:22:12]Read from MH i2c: F0 09 00 2C 3E 00 CD F2 1A 67 4C DF 56 66 89 [01:22:12]GetLastDocTimeStamp 1729819192 [01:22:12]current date 1729819341 [01:22:12]FM_GetShiftState [01:22:12]SAM_PROTO_GetShiftState [01:22:12]wFMCommunicate request_size=4 [01:22:12]MH_SAM_APDU [01:22:12]CAPDU: 80 13 01 00 [01:22:12]Write to MH i2c: E2 08 00 2D 3E 80 13 01 00 00 00 00 00 E8 [01:22:12]Write i2c OK [01:22:12]MH_I2C_Read... [01:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:12]Read from MH i2c: E2 [01:22:12]MH_I2C_Read... [01:22:12]Read from MH i2c: E2 0E 00 [01:22:12]MH_I2C_Read... [01:22:12]Read from MH i2c: E2 0E 00 2D 3E 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 70 [01:22:12]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:22:12]wFMCommunicate OK [01:22:12]SAM_PROTO_GetShiftState done [01:22:12]FM_GetShiftState done [01:22:12]opened in 1729815320 [01:22:12]opened+sec_in_day 1729901720 [01:22:12]quantity*price = 9812 [01:22:12]sum+1 = 9813 [01:22:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46196613 Р/ж Orbit XXL white cочное яблоко 20,4г 1.000 * 50.55 = 50.55 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 148.67 НСП 1% : 1.32 НДС 12% : 15.79 Наличными: 0.00 Безнал.: 148.67 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 11 25.10.2024 01:22 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63546 ФПД: 271134864880971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012221&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63546&fm=271134864880971&tin=02508201610067®Number=0000000000091619&sum=14867 0 [01:22:13]StoreToDocumentArchive [01:22:13]shift 548 fd 63546 [01:22:13]save to /storage/0548/doc_00063546 [01:22:13]save last doc name /storage/0548/doc_00063546 to /storage/kkm_last_doc_name [01:22:13]save OK [01:22:13]Clear old archive folders... [01:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=413 [01:22:13]tlvbuf is 00C49CF0 [01:22:13]SAM_PROTO_ClearQueue [01:22:13]wFMCommunicate request_size=4 [01:22:13]MH_SAM_APDU [01:22:13]CAPDU: 80 09 00 00 [01:22:13]Write to MH i2c: E2 08 00 3A 3E 80 09 00 00 00 00 00 00 EA [01:22:13]Write i2c OK [01:22:13]MH_I2C_Read... [01:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:22:13]Read from MH i2c: E2 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: E2 03 00 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: E2 03 00 3A 3E 00 90 00 EC [01:22:13]RAPDU: 90 00 [01:22:13]wFMCommunicate OK [01:22:13]SAM_PROTO_ClearQueue done [01:22:13]KKMCreateOFDPacket [01:22:13]OFDProtocolAddRootSTLVToBuf [01:22:13]FM_MakeSignedData [01:22:13]FM_MakeSignedData [01:22:13]SAM_PROTO_SignData [01:22:13]wFMCommunicate request_size=4 [01:22:13]MH_SAM_APDU [01:22:13]CAPDU: 80 0D 01 02 [01:22:13]Write to MH i2c: E2 08 00 3B 3E 80 0D 01 02 00 00 00 00 F2 [01:22:13]Write i2c OK [01:22:13]MH_I2C_Read... [01:22:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:22:13]Read from MH i2c: E2 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: E2 03 00 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: E2 03 00 3B 3E 00 90 00 ED [01:22:13]RAPDU: 90 00 [01:22:13]wFMCommunicate OK [01:22:13]wFMCommunicate request_size=255 [01:22:13]MH_SAM_APDU [01:22:13]CAPDU: 80 0D 02 02 FA 03 00 9D 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 54 26 00 00 00 00 13 04 06 00 54 26 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 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BF 13 00 00 00 00 13 04 06 00 BF 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [01:22:13]Write to MH i2c: E2 02 01 3C 3E 80 0D 02 02 FA 00 03 00 9D 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 54 26 00 00 00 00 13 04 06 00 54 26 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 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BF 13 00 00 00 00 13 04 06 00 BF 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 21 [01:22:13]Write i2c OK [01:22:13]MH_I2C_Read... [01:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:13]Read from MH i2c: E2 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: E2 03 00 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: E2 03 00 3C 3E 00 90 00 EE [01:22:13]RAPDU: 90 00 [01:22:13]wFMCommunicate OK [01:22:13]wFMCommunicate request_size=172 [01:22:13]MH_SAM_APDU [01:22:13]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 13 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 CD F2 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F8 00 00 35 04 06 00 F6 98 81 4E B5 4B [01:22:13]Write to MH i2c: E2 AF 00 3D 3E 80 0D 02 02 A7 00 00 01 FC 03 06 00 13 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 CD F2 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F8 00 00 35 04 06 00 F6 98 81 4E B5 4B 00 00 DC [01:22:13]Write i2c OK [01:22:13]MH_I2C_Read... [01:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:13]Read from MH i2c: E2 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: E2 03 00 [01:22:13]MH_I2C_Read... [01:22:13]Read from MH i2c: E2 03 00 3D 3E 00 90 00 EF [01:22:13]RAPDU: 90 00 [01:22:13]wFMCommunicate OK [01:22:13]wFMCommunicate request_size=4 [01:22:13]MH_SAM_APDU [01:22:13]CAPDU: 80 0D 03 02 [01:22:13]Write to MH i2c: E2 08 00 3E 3E 80 0D 03 02 00 00 00 00 F7 [01:22:13]Write i2c OK [01:22:13]MH_I2C_Read... [01:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:22:14]Read from MH i2c: E2 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: E2 0B 00 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: E2 0B 00 3E 3E 00 9A 0B 41 66 6D 0C 17 11 90 00 E5 [01:22:14]RAPDU: 9A 0B 41 66 6D 0C 17 11 90 00 [01:22:14]wFMCommunicate OK [01:22:14]SAM_PROTO_SignData done [01:22:14]FM_MakeSignedData done [01:22:14]CreateOFDProtocolMessage [01:22:14]wFMCommunicate request_size=4 [01:22:14]MH_SAM_APDU [01:22:14]CAPDU: 80 11 00 00 [01:22:14]Write to MH i2c: E2 08 00 3F 3E 80 11 00 00 00 00 00 00 F7 [01:22:14]Write i2c OK [01:22:14]MH_I2C_Read... [01:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:14]Read from MH i2c: E2 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: E2 17 00 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: E2 17 00 3F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 50 [01:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:22:14]wFMCommunicate OK [01:22:14]CreateOFDProtocolMessage done [01:22:14]OFDSenderStorePacket 63546 [01:22:14]StoreOFDPacket docnum=63546 [01:22:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B1 01 00 00 1A 01 A9 01 6F FE 5A 03 01 00 03 00 9D 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 54 26 00 00 00 00 13 04 06 00 54 26 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 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BF 13 00 00 00 00 13 04 06 00 BF 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 CD F2 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F8 00 00 35 04 06 00 F6 98 81 4E B5 4B 9A 0B 41 66 6D 0C 17 11 [01:22:14]CheckFolder [01:22:14]dirname=/storage/ofd_packets [01:22:14]CheckFolder done [01:22:14]ProducePacketName [01:22:14]name=ofd_packets/00063546 [01:22:14]NVStorageSaveData ofd_packets/00063546 [01:22:14]File name is /storage/ofd_packets/00063546 [01:22:14]Write 463 bytes [01:22:14]NVStorageSaveData done [01:22:14]OFDSenderStorePacket done [01:22:14]KKMCreateOFDPacket done [01:22:14]NVStorageSaveData kkm_last_timestamp [01:22:14]File name is /storage/kkm_last_timestamp [01:22:14]Write 4 bytes [01:22:14]NVStorageSaveData done [01:22:14]ExternCall_PrintAddStr [01:22:14]wPrintStart [01:22:14]Write to MH i2c: 01 00 00 40 3E 7E [01:22:14]OFD Sender: Processing packet 63546 [packets to send 232, broken 231] [01:22:14]ProducePacketName [01:22:14]name=ofd_packets/00063546 [01:22:14]OFD Sender: To server: pG, [01:22:14]CommunicateWithHost lk.salyk.kg:30040 [01:22:14]ConnectInit lk.salyk.kg [01:22:14]Write i2c OK [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: 01 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: 01 07 00 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: 01 07 00 40 3E 00 00 00 00 00 FF 0F 93 [01:22:14]RasterBufferAndPrint [01:22:14]line Счет N : (3)47851 [01:22:14]line ИНН: 02508201610067 [01:22:14]line Контрольно-Кассовый Чек [01:22:14]line ПРОДАЖА [01:22:14]line Товар: 4870022003305 [01:22:14]line Напиток Gorilla эн нат ж/б 0,5/0,45л [01:22:14]line 1.000 * 98.12 [01:22:14]line = 98.12 [01:22:14]line НДС 12% НСП 1% [01:22:14]line > о реализуемом товаре [01:22:14]line Товар: 46196613 [01:22:14]line Р/ж Orbit XXL white cочное яблоко 20,4г [01:22:14]line 1.000 * 50.55 [01:22:14]line = 50.55 [01:22:14]line НДС 12% НСП 1% [01:22:14]line > о реализуемом товаре [01:22:14]line ИТОГО: 148.67 [01:22:14]line НСП 1% : 1.32 [01:22:14]line НДС 12% : 15.79 [01:22:14]line Наличными: 0.00 [01:22:14]line Безнал.: 148.67 [01:22:14]line Место: АЗС № 86 "Партнер Нефть" [01:22:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:22:14]line СНО: Общий режим [01:22:14]line Чек 11 25.10.2024 01:22 [01:22:14]line Смена: 548 ФФД: 1.0 [01:22:14]line ЗНМ: 0300000154 [01:22:14]line РНМ: 0000000000091619 [01:22:14]line Версия ККМ: 001 [01:22:14]line Платежная система: Бакай Банк [01:22:14]line ФМ: 0000000000874676 [01:22:14]line ФД: 63546 [01:22:14]line ФПД: 271134864880971 [01:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012221&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63546&fm=271134864880971&tin=02508201610067®Number=0000000000091619&sum=14867 [01:22:14]line 0 [01:22:14]written 0, free lines is 4095 [01:22:14]Connected sock=9 [01:22:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B1 01 00 00 1A 01 A9 01 6F FE 5A 03 01 00 03 00 9D 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 54 26 00 00 00 00 13 04 06 00 54 26 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 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BF 13 00 00 00 00 13 04 06 00 BF 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 CD F2 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F8 00 00 35 04 06 00 F6 98 81 4E B5 4B 9A 0B 41 66 6D 0C 17 11 [01:22:14]Write to MH i2c: 01 00 00 72 3E B0 [01:22:14]Write i2c OK [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: 01 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: 01 07 00 [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: 01 07 00 72 3E 00 00 00 00 00 9A 0C 5D [01:22:14]RasterBufferAndPrint [01:22:14]line [01:22:14]line [01:22:14]line [01:22:14]line [01:22:14]line [01:22:14]written 0, free lines is 3235 [01:22:14]MH_Cut [01:22:14]Write to MH i2c: D1 01 00 79 3E 01 89 [01:22:14]Write i2c OK [01:22:14]MH_I2C_Read... [01:22:14]Read from MH i2c: D1 [01:22:14]MH_I2C_Read... [01:22:15]Read from MH i2c: D1 01 00 [01:22:15]MH_I2C_Read... [01:22:15]Read from MH i2c: D1 01 00 79 3E 00 88 [01:22:15]Write to MH i2c: 01 00 00 7A 3E B8 [01:22:15]Write i2c OK [01:22:15]MH_I2C_Read... [01:22:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 85 40 47 00 29 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F8 00 00 F4 03 04 00 BF 9C 1A 67 B6 04 01 00 00 96 8B 83 E0 29 7B 49 8D [01:22:15]CommunicateWithHost err = 0 [01:22:15]CheckOFDResponse [01:22:15]1017 (14) - 77093643461234 [01:22:15]1041 (16) - 0000000000874676 [01:22:15]1040 (4) - 63546 [01:22:15]1012 (4) - 24.10.2024 19:15 [01:22:15]1206 (1) - 0 [01:22:15]OFD Sender: Remove packet 63546 [01:22:15]ProducePacketName [01:22:15]name=ofd_packets/00063546 [01:22:15]NVStorageDeleteData [01:22:15]OFD Sender: No OFD packet to send [01:22:15]*** Cut start [01:22:15]*** Partial cut [01:22:15]*** CUTSNS_PIN = 1 [01:22:15]*** CUTSNS_PIN = 0 [01:22:16]*** Brake cut motor [01:22:16]Read from MH i2c: 01 [01:22:16]MH_I2C_Read... [01:22:16]*** Stop cut motor [01:22:16]*** Cut end [01:22:16]Read from MH i2c: 01 07 00 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: 01 07 00 7A 3E 00 00 00 00 00 FF 0F CD [01:22:16]process_action close_receipt done [01:22:16]requested_data is exist [01:22:16]produce_requested_data [01:22:16]requested_item fm.sn is exist - process it [01:22:16]wFMCommunicate request_size=4 [01:22:16]MH_SAM_APDU [01:22:16]CAPDU: 80 11 00 00 [01:22:16]Write to MH i2c: E2 08 00 7B 3E 80 11 00 00 00 00 00 00 33 [01:22:16]Write i2c OK [01:22:16]MH_I2C_Read... [01:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:16]Read from MH i2c: E2 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: E2 17 00 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: E2 17 00 7B 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8C [01:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:22:16]wFMCommunicate OK [01:22:16]requested_item fd.num is exist - process it [01:22:16]SAM_PROTO_GetFieldsCounters [01:22:16]wFMCommunicate request_size=4 [01:22:16]MH_SAM_APDU [01:22:16]CAPDU: 80 13 00 00 [01:22:16]Write to MH i2c: E2 08 00 7C 3E 80 13 00 00 00 00 00 00 36 [01:22:16]Write i2c OK [01:22:16]MH_I2C_Read... [01:22:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:22:16]Read from MH i2c: E2 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: E2 62 00 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: E2 62 00 7C 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3A F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [01:22:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3A F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:22:16]wFMCommunicate OK [01:22:16]SAM_PROTO_GetFieldsCounters done [01:22:16]requested_item shift.num is exist - process it [01:22:16]requested_item shift.opened is exist - process it [01:22:16]req_shift_opened [01:22:16]FM_GetShiftState [01:22:16]SAM_PROTO_GetShiftState [01:22:16]wFMCommunicate request_size=4 [01:22:16]MH_SAM_APDU [01:22:16]CAPDU: 80 13 01 00 [01:22:16]Write to MH i2c: E2 08 00 7D 3E 80 13 01 00 00 00 00 00 38 [01:22:16]Write i2c OK [01:22:16]MH_I2C_Read... [01:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:16]Read from MH i2c: E2 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: E2 0E 00 [01:22:16]MH_I2C_Read... [01:22:16]Read from MH i2c: E2 0E 00 7D 3E 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 C0 [01:22:16]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:22:16]wFMCommunicate OK [01:22:16]SAM_PROTO_GetShiftState done [01:22:16]FM_GetShiftState done [01:22:16]req_shift_opened done [01:22:16]requested_item shift.open_date is exist - process it [01:22:16]req_shift_open_date [01:22:16]req_shift_open_date done [01:22:16]produce_requested_data done [01:22:16]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63546,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [01:22:16]process_action_free close_receipt [01:22:16]json_value_free [01:22:16]json_value_free done [01:22:16]process_json_proto returns [01:22:16]Send response to host [01:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63546,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [01:22:16]free response buf [01:22:16]execute_script done [01:22:16]execute_script returns [01:22:16]free content buf [01:22:16]Sock 7.Close socket [01:22:16]Sock 7.Thread stoped [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]ConnectInit Can't connect to host [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:07]accept exits with 10 [01:36:07]New connection [01:36:07]New thread 3066490212 created [01:36:07]Thread 3066633572 joined [01:36:07]Waiting for new connection... [01:36:07] Sock 10.Parse request [01:36:07]Sock 10.Check first char [01:36:07]Sock 10.First char is OK [01:36:07]request: POST /json_proto HTTP/1.0 [01:36:07]Method: POST [01:36:07]URL: /json_proto [01:36:07]Method is POST - this is cgi request [01:36:07]url: /json_proto [01:36:07]query_string will be loaded in cgi processing [01:36:07]execute_cgi json_proto POST (null) [01:36:07]execute_cgi path=json_proto method=POST [01:36:07]POST find Content-Length [01:36:07]Host: 172.17.42.132:8080 [01:36:07]Content-Length: 1790 [01:36:07]Content-Type: application/json [01:36:07] [01:36:07]POST finish read [01:36:07]Found Content-Length = 1790 [01:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47852", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401805", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0414\u0416\u0418\u041D\u041D \u0441\u043E\u043B\u044C 130\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:07]execute_script... [01:36: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)47852", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007401805", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0414\u0416\u0418\u041D\u041D \u0441\u043E\u043B\u044C 130\u0433", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:08]POST & json_proto [01:36:08]process_json_proto [01:36:08]json parsed OK: [01:36:08]protocol is kg_v1.0 [01:36:08]action value=close_receipt [01:36:08]process_action close_receipt [01:36:08]cmd_close_receipt [01:36:08]MH_GetDate [01:36:08]Write to MH i2c: F0 00 00 7E 3E AB [01:36:08]Write i2c OK [01:36:08]MH_I2C_Read... [01:36:08]Read from MH i2c: F0 [01:36:08]MH_I2C_Read... [01:36:08]Read from MH i2c: F0 09 00 [01:36:08]MH_I2C_Read... [01:36:08]Read from MH i2c: F0 09 00 7E 3E 00 10 F6 1A 67 4C DF 56 66 22 [01:36:08]GetLastDocTimeStamp 1729819341 [01:36:08]current date 1729820176 [01:36:08]FM_GetShiftState [01:36:08]SAM_PROTO_GetShiftState [01:36:08]wFMCommunicate request_size=4 [01:36:08]MH_SAM_APDU [01:36:08]CAPDU: 80 13 01 00 [01:36:08]Write to MH i2c: E2 08 00 7F 3E 80 13 01 00 00 00 00 00 3A [01:36:08]Write i2c OK [01:36:08]MH_I2C_Read... [01:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:08]Read from MH i2c: E2 [01:36:08]MH_I2C_Read... [01:36:08]Read from MH i2c: E2 0E 00 [01:36:08]MH_I2C_Read... [01:36:08]Read from MH i2c: E2 0E 00 7F 3E 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 C2 [01:36:08]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:36:08]wFMCommunicate OK [01:36:08]SAM_PROTO_GetShiftState done [01:36:08]FM_GetShiftState done [01:36:08]opened in 1729815320 [01:36:08]opened+sec_in_day 1729901720 [01:36:08]quantity*price = 12000 [01:36:08]sum+1 = 12001 [01:36:08]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 69.00 = 69.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007401805 Арахис ДЖИНН соль 130г 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004848 Печ.зат.TONDI Сэнд.шок-сл.вк 1.000 * 86.00 = 86.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 455.00 НСП 1% : 4.02 НДС 12% : 48.32 Наличными: 455.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 12 25.10.2024 01:36 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63547 ФПД: 30482244269810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T013616&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63547&fm=30482244269810&tin=02508201610067®Number=0000000000091619&sum=45500 0 [01:36:09]StoreToDocumentArchive [01:36:09]shift 548 fd 63547 [01:36:09]save to /storage/0548/doc_00063547 [01:36:09]save last doc name /storage/0548/doc_00063547 to /storage/kkm_last_doc_name [01:36:09]save OK [01:36:09]Clear old archive folders... [01:36:09]ProcessDocumentItem done err = 0, tmpTLVsize=757 [01:36:09]tlvbuf is 00BC6290 [01:36:09]SAM_PROTO_ClearQueue [01:36:09]wFMCommunicate request_size=4 [01:36:09]MH_SAM_APDU [01:36:09]CAPDU: 80 09 00 00 [01:36:09]Write to MH i2c: E2 08 00 8C 3E 80 09 00 00 00 00 00 00 3C [01:36:09]Write i2c OK [01:36:09]MH_I2C_Read... [01:36:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:36:09]Read from MH i2c: E2 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: E2 03 00 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: E2 03 00 8C 3E 00 90 00 3E [01:36:09]RAPDU: 90 00 [01:36:09]wFMCommunicate OK [01:36:09]SAM_PROTO_ClearQueue done [01:36:09]KKMCreateOFDPacket [01:36:09]OFDProtocolAddRootSTLVToBuf [01:36:09]FM_MakeSignedData [01:36:09]FM_MakeSignedData [01:36:09]SAM_PROTO_SignData [01:36:09]wFMCommunicate request_size=4 [01:36:09]MH_SAM_APDU [01:36:09]CAPDU: 80 0D 01 02 [01:36:09]Write to MH i2c: E2 08 00 8D 3E 80 0D 01 02 00 00 00 00 44 [01:36:09]Write i2c OK [01:36:09]MH_I2C_Read... [01:36:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:36:09]Read from MH i2c: E2 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: E2 03 00 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: E2 03 00 8D 3E 00 90 00 3F [01:36:09]RAPDU: 90 00 [01:36:09]wFMCommunicate OK [01:36:09]wFMCommunicate request_size=255 [01:36:09]MH_SAM_APDU [01:36:09]CAPDU: 80 0D 02 02 FA 03 00 F5 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 F4 1A 00 00 00 00 13 04 06 00 [01:36:09]Write to MH i2c: E2 02 01 8E 3E 80 0D 02 02 FA 00 03 00 F5 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 F4 1A 00 00 00 00 13 04 06 00 00 00 6F [01:36:09]Write i2c OK [01:36:09]MH_I2C_Read... [01:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:09]Read from MH i2c: E2 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: E2 03 00 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: E2 03 00 8E 3E 00 90 00 40 [01:36:09]RAPDU: 90 00 [01:36:09]wFMCommunicate OK [01:36:09]wFMCommunicate request_size=255 [01:36:09]MH_SAM_APDU [01:36:09]CAPDU: 80 0D 02 02 FA F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 [01:36:09]Write to MH i2c: E2 02 01 8F 3E 80 0D 02 02 FA 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 00 00 5B [01:36:09]Write i2c OK [01:36:09]MH_I2C_Read... [01:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:09]Read from MH i2c: E2 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: E2 03 00 [01:36:09]MH_I2C_Read... [01:36:09]Read from MH i2c: E2 03 00 8F 3E 00 90 00 41 [01:36:09]RAPDU: 90 00 [01:36:09]wFMCommunicate OK [01:36:09]wFMCommunicate request_size=255 [01:36:09]MH_SAM_APDU [01:36:09]CAPDU: 80 0D 02 02 FA 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 BC B1 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 10 F6 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3B F8 00 [01:36:09]Write to MH i2c: E2 02 01 90 3E 80 0D 02 02 FA 00 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 BC B1 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 10 F6 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3B F8 00 00 00 A8 [01:36:09]Write i2c OK [01:36:09]MH_I2C_Read... [01:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:10]Read from MH i2c: E2 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 03 00 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 03 00 90 3E 00 90 00 42 [01:36:10]RAPDU: 90 00 [01:36:10]wFMCommunicate OK [01:36:10]wFMCommunicate request_size=16 [01:36:10]MH_SAM_APDU [01:36:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1B B9 33 57 76 F2 [01:36:10]Write to MH i2c: E2 13 00 91 3E 80 0D 02 02 0B 00 00 35 04 06 00 1B B9 33 57 76 F2 00 00 64 [01:36:10]Write i2c OK [01:36:10]MH_I2C_Read... [01:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:10]Read from MH i2c: E2 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 03 00 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 03 00 91 3E 00 90 00 43 [01:36:10]RAPDU: 90 00 [01:36:10]wFMCommunicate OK [01:36:10]wFMCommunicate request_size=4 [01:36:10]MH_SAM_APDU [01:36:10]CAPDU: 80 0D 03 02 [01:36:10]Write to MH i2c: E2 08 00 92 3E 80 0D 03 02 00 00 00 00 4B [01:36:10]Write i2c OK [01:36:10]MH_I2C_Read... [01:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:36:10]Read from MH i2c: E2 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 0B 00 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 0B 00 92 3E 00 A5 C0 5C AA CF 9D 6E C9 90 00 5A [01:36:10]RAPDU: A5 C0 5C AA CF 9D 6E C9 90 00 [01:36:10]wFMCommunicate OK [01:36:10]SAM_PROTO_SignData done [01:36:10]FM_MakeSignedData done [01:36:10]CreateOFDProtocolMessage [01:36:10]wFMCommunicate request_size=4 [01:36:10]MH_SAM_APDU [01:36:10]CAPDU: 80 11 00 00 [01:36:10]Write to MH i2c: E2 08 00 93 3E 80 11 00 00 00 00 00 00 4B [01:36:10]Write i2c OK [01:36:10]MH_I2C_Read... [01:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:10]Read from MH i2c: E2 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 17 00 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: E2 17 00 93 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A4 [01:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:36:10]wFMCommunicate OK [01:36:10]CreateOFDProtocolMessage done [01:36:10]OFDSenderStorePacket 63547 [01:36:10]StoreOFDPacket docnum=63547 [01:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 09 03 00 00 0C 58 01 03 34 3B 5A 03 01 00 03 00 F5 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 BC B1 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 10 F6 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3B F8 00 00 35 04 06 00 1B B9 33 57 76 F2 A5 C0 5C AA CF 9D 6E C9 [01:36:10]CheckFolder [01:36:10]dirname=/storage/ofd_packets [01:36:10]CheckFolder done [01:36:10]ProducePacketName [01:36:10]name=ofd_packets/00063547 [01:36:10]NVStorageSaveData ofd_packets/00063547 [01:36:10]File name is /storage/ofd_packets/00063547 [01:36:10]Write 807 bytes [01:36:10]NVStorageSaveData done [01:36:10]OFDSenderStorePacket done [01:36:10]KKMCreateOFDPacket done [01:36:10]NVStorageSaveData kkm_last_timestamp [01:36:10]File name is /storage/kkm_last_timestamp [01:36:10]Write 4 bytes [01:36:10]NVStorageSaveData done [01:36:10]ExternCall_PrintAddStr [01:36:10]wPrintStart [01:36:10]Write to MH i2c: 01 00 00 94 3E D2 [01:36:10]Write i2c OK [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: 01 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: 01 07 00 [01:36:10]MH_I2C_Read... [01:36:10]Read from MH i2c: 01 07 00 94 3E 00 00 00 00 00 FF 0F E7 [01:36:10]RasterBufferAndPrint [01:36:10]line Счет N : (3)47852 [01:36:10]line ИНН: 02508201610067 [01:36:10]line Контрольно-Кассовый Чек [01:36:10]line ПРОДАЖА [01:36:10]line Товар: 5449000027474 [01:36:10]line Напиток FuzeTea зел чай манго,ромашка 1л [01:36:10]line 1.000 * 120.00 [01:36:10]line = 120.00 [01:36:10]line НДС 12% НСП 1% [01:36:10]line > о реализуемом товаре [01:36:10]line Товар: 4600682557456 [01:36:10]line Напиток FLash up energy эн ж/б 0,5/0,45л [01:36:10]line 1.000 * 69.00 [01:36:10]line = 69.00 [01:36:10]line НДС 12% НСП 1% [01:36:10]line > о реализуемом товаре [01:36:10]line Товар: 4870001570057 [01:36:10]line Напиток Pepsi 0,5л [01:36:10]line 1.000 * 80.00 [01:36:10]line = 80.00 [01:36:10]line НДС 12% НСП 1% [01:36:10]line > о реализуемом товаре [01:36:10]line Товар: 4630007401805 [01:36:10]line Арахис ДЖИНН соль 130г [01:36:10]line 1.000 * 100.00 [01:36:10]line = 100.00 [01:36:10]line НДС 12% НСП 1% [01:36:10]line > о реализуемом товаре [01:36:10]line Товар: 4603290004848 [01:36:10]line Печ.зат.TONDI Сэнд.шок-сл.вк [01:36:10]line 1.000 * 86.00 [01:36:10]line = 86.00 [01:36:10]line НДС 12% НСП 1% [01:36:10]line > о реализуемом товаре [01:36:10]line ИТОГО: 455.00 [01:36:10]line НСП 1% : 4.02 [01:36:10]line НДС 12% : 48.32 [01:36:10]line Наличными: 455.00 [01:36:10]line Безнал.: 0.00 [01:36:10]line Место: АЗС № 86 "Партнер Нефть" [01:36:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:36:10]line СНО: Общий режим [01:36:10]line Чек 12 25.10.2024 01:36 [01:36:10]line Смена: 548 ФФД: 1.0 [01:36:10]line ЗНМ: 0300000154 [01:36:10]line РНМ: 0000000000091619 [01:36:10]line Версия ККМ: 001 [01:36:10]line ФМ: 0000000000874676 [01:36:10]line ФД: 63547 [01:36:10]line ФПД: 30482244269810 [01:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T013616&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63547&fm=30482244269810&tin=02508201610067®Number=0000000000091619&sum=45500 [01:36:10]line 0 [01:36:10]written 0, free lines is 4095 [01:36:10]OFD Sender: Processing packet 63547 [packets to send 232, broken 231] [01:36:10]ProducePacketName [01:36:10]name=ofd_packets/00063547 [01:36:10]OFD Sender: To server: pG, [01:36:10]CommunicateWithHost lk.salyk.kg:30040 [01:36:10]ConnectInit lk.salyk.kg [01:36:10]Connected sock=9 [01:36:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 09 03 00 00 0C 58 01 03 34 3B 5A 03 01 00 03 00 F5 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 38 30 35 06 04 26 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D1 81 D0 BE D0 BB D1 8C 20 31 33 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 BC B1 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 10 F6 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3B F8 00 00 35 04 06 00 1B B9 33 57 76 F2 A5 C0 5C AA CF 9D 6E C9 [01:36:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 98 C8 47 00 1E B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3B F8 00 00 F4 03 04 00 04 A0 1A 67 B6 04 01 00 00 B5 49 09 C7 53 86 97 4A [01:36:11]CommunicateWithHost err = 0 [01:36:11]CheckOFDResponse [01:36:11]1017 (14) - 77093643461234 [01:36:11]1041 (16) - 0000000000874676 [01:36:11]1040 (4) - 63547 [01:36:11]1012 (4) - 24.10.2024 19:29 [01:36:11]1206 (1) - 0 [01:36:11]OFD Sender: Remove packet 63547 [01:36:11]ProducePacketName [01:36:11]name=ofd_packets/00063547 [01:36:11]NVStorageDeleteData [01:36:11]Write to MH i2c: 01 00 00 D6 3E 14 [01:36:11]Write i2c OK [01:36:11]MH_I2C_Read... [01:36:11]Read from MH i2c: 01 [01:36:11]MH_I2C_Read... [01:36:11]Read from MH i2c: 01 07 00 [01:36:11]MH_I2C_Read... [01:36:11]Read from MH i2c: 01 07 00 D6 3E 00 00 00 00 00 DE 0B 04 [01:36:11]RasterBufferAndPrint [01:36:11]line [01:36:11]line [01:36:11]line [01:36:11]line [01:36:11]line [01:36:11]written 0, free lines is 3050 [01:36:11]MH_Cut [01:36:11]Write to MH i2c: D1 01 00 DD 3E 01 ED [01:36:11]Write i2c OK [01:36:11]MH_I2C_Read... [01:36:11]Read from MH i2c: D1 [01:36:11]MH_I2C_Read... [01:36:11]Read from MH i2c: D1 01 00 [01:36:11]MH_I2C_Read... [01:36:11]Read from MH i2c: D1 01 00 DD 3E 00 EC [01:36:11]Write to MH i2c: 01 00 00 DE 3E 1C [01:36:11]Write i2c OK [01:36:11]MH_I2C_Read... [01:36:11]OFD Sender: No OFD packet to send [01:36:12]*** Cut start [01:36:12]*** Partial cut [01:36:12]*** CUTSNS_PIN = 1 [01:36:12]*** CUTSNS_PIN = 0 [01:36:12]*** Brake cut motor [01:36:12]Read from MH i2c: 01 [01:36:12]MH_I2C_Read... [01:36:12]*** Stop cut motor [01:36:12]*** Cut end [01:36:12]Read from MH i2c: 01 07 00 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: 01 07 00 DE 3E 00 00 00 00 00 FF 0F 31 [01:36:12]process_action close_receipt done [01:36:12]requested_data is exist [01:36:12]produce_requested_data [01:36:12]requested_item fm.sn is exist - process it [01:36:12]wFMCommunicate request_size=4 [01:36:12]MH_SAM_APDU [01:36:12]CAPDU: 80 11 00 00 [01:36:12]Write to MH i2c: E2 08 00 DF 3E 80 11 00 00 00 00 00 00 97 [01:36:12]Write i2c OK [01:36:12]MH_I2C_Read... [01:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:12]Read from MH i2c: E2 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 17 00 [01:36:12]MH_I2C_Read... [01:36:12]Read from MH i2c: E2 17 00 DF 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F0 [01:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:36:12]wFMCommunicate OK [01:36:12]requested_item fd.num is exist - process it [01:36:12]SAM_PROTO_GetFieldsCounters [01:36:12]wFMCommunicate request_size=4 [01:36:12]MH_SAM_APDU [01:36:12]CAPDU: 80 13 00 00 [01:36:12]Write to MH i2c: E2 08 00 E0 3E 80 13 00 00 00 00 00 00 9A [01:36:12]Write i2c OK [01:36:12]MH_I2C_Read... [01:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:36:13]Read from MH i2c: E2 [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: E2 62 00 [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: E2 62 00 E0 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3B F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [01:36: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3B F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:36:13]wFMCommunicate OK [01:36:13]SAM_PROTO_GetFieldsCounters done [01:36:13]requested_item shift.num is exist - process it [01:36:13]requested_item shift.opened is exist - process it [01:36:13]req_shift_opened [01:36:13]FM_GetShiftState [01:36:13]SAM_PROTO_GetShiftState [01:36:13]wFMCommunicate request_size=4 [01:36:13]MH_SAM_APDU [01:36:13]CAPDU: 80 13 01 00 [01:36:13]Write to MH i2c: E2 08 00 E1 3E 80 13 01 00 00 00 00 00 9C [01:36:13]Write i2c OK [01:36:13]MH_I2C_Read... [01:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:13]Read from MH i2c: E2 [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: E2 0E 00 [01:36:13]MH_I2C_Read... [01:36:13]Read from MH i2c: E2 0E 00 E1 3E 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 24 [01:36:13]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:36:13]wFMCommunicate OK [01:36:13]SAM_PROTO_GetShiftState done [01:36:13]FM_GetShiftState done [01:36:13]req_shift_opened done [01:36:13]requested_item shift.open_date is exist - process it [01:36:13]req_shift_open_date [01:36:13]req_shift_open_date done [01:36:13]produce_requested_data done [01:36:13]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63547,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [01:36:13]process_action_free close_receipt [01:36:13]json_value_free [01:36:13]json_value_free done [01:36:13]process_json_proto returns [01:36:13]Send response to host [01:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63547,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [01:36:13]free response buf [01:36:13]execute_script done [01:36:13]execute_script returns [01:36:13]free content buf [01:36:13]Sock 10.Close socket [01:36:13]Sock 10.Thread stoped [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:24]ConnectInit Can't connect to host [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]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:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:30]accept exits with 7 [01:53:30]New connection [01:53:30]New thread 3066633572 created [01:53:30]Thread 3066490212 joined [01:53:30]Waiting for new connection... [01:53:30] Sock 7.Parse request [01:53:30]Sock 7.Check first char [01:53:30]Sock 7.First char is OK [01:53:30]request: POST /json_proto HTTP/1.0 [01:53:30]Method: POST [01:53:30]URL: /json_proto [01:53:30]Method is POST - this is cgi request [01:53:30]url: /json_proto [01:53:30]query_string will be loaded in cgi processing [01:53:30]execute_cgi json_proto POST (null) [01:53:30]execute_cgi path=json_proto method=POST [01:53:30]POST find Content-Length [01:53:30]Host: 172.17.42.132:8080 [01:53:30]Content-Length: 653 [01:53:30]Content-Type: application/json [01:53:30] [01:53:30]POST finish read [01:53:30]Found Content-Length = 653 [01:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47853", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:30]execute_script... [01:53:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47853", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:30]POST & json_proto [01:53:30]process_json_proto [01:53:30]json parsed OK: [01:53:30]protocol is kg_v1.0 [01:53:30]action value=close_receipt [01:53:30]process_action close_receipt [01:53:30]cmd_close_receipt [01:53:30]MH_GetDate [01:53:30]Write to MH i2c: F0 00 00 E2 3E 0F [01:53:30]Write i2c OK [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: F0 [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: F0 09 00 [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: F0 09 00 E2 3E 00 23 FA 1A 67 4C DF 56 66 9D [01:53:30]GetLastDocTimeStamp 1729820176 [01:53:30]current date 1729821219 [01:53:30]FM_GetShiftState [01:53:30]SAM_PROTO_GetShiftState [01:53:30]wFMCommunicate request_size=4 [01:53:30]MH_SAM_APDU [01:53:30]CAPDU: 80 13 01 00 [01:53:30]Write to MH i2c: E2 08 00 E3 3E 80 13 01 00 00 00 00 00 9E [01:53:30]Write i2c OK [01:53:30]MH_I2C_Read... [01:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:30]Read from MH i2c: E2 [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: E2 0E 00 [01:53:30]MH_I2C_Read... [01:53:30]Read from MH i2c: E2 0E 00 E3 3E 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 26 [01:53:30]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:53:30]wFMCommunicate OK [01:53:30]SAM_PROTO_GetShiftState done [01:53:30]FM_GetShiftState done [01:53:30]opened in 1729815320 [01:53:30]opened+sec_in_day 1729901720 [01:53:30]quantity*price = 9500 [01:53:30]sum+1 = 9501 [01:53:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 13 25.10.2024 01:53 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63548 ФПД: 240023827656981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015339&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63548&fm=240023827656981&tin=02508201610067®Number=0000000000091619&sum=9500 0 [01:53:31]StoreToDocumentArchive [01:53:31]shift 548 fd 63548 [01:53:31]save to /storage/0548/doc_00063548 [01:53:31]save last doc name /storage/0548/doc_00063548 to /storage/kkm_last_doc_name [01:53:31]save OK [01:53:31]Clear old archive folders... [01:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=293 [01:53:31]tlvbuf is 00B56BD0 [01:53:31]SAM_PROTO_ClearQueue [01:53:31]wFMCommunicate request_size=4 [01:53:31]MH_SAM_APDU [01:53:31]CAPDU: 80 09 00 00 [01:53:31]Write to MH i2c: E2 08 00 F0 3E 80 09 00 00 00 00 00 00 A0 [01:53:31]Write i2c OK [01:53:31]MH_I2C_Read... [01:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:53:32]Read from MH i2c: E2 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 03 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 03 00 F0 3E 00 90 00 A2 [01:53:32]RAPDU: 90 00 [01:53:32]wFMCommunicate OK [01:53:32]SAM_PROTO_ClearQueue done [01:53:32]KKMCreateOFDPacket [01:53:32]OFDProtocolAddRootSTLVToBuf [01:53:32]FM_MakeSignedData [01:53:32]FM_MakeSignedData [01:53:32]SAM_PROTO_SignData [01:53:32]wFMCommunicate request_size=4 [01:53:32]MH_SAM_APDU [01:53:32]CAPDU: 80 0D 01 02 [01:53:32]Write to MH i2c: E2 08 00 F1 3E 80 0D 01 02 00 00 00 00 A8 [01:53:32]Write i2c OK [01:53:32]MH_I2C_Read... [01:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:53:32]Read from MH i2c: E2 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 03 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 03 00 F1 3E 00 90 00 A3 [01:53:32]RAPDU: 90 00 [01:53:32]wFMCommunicate OK [01:53:32]wFMCommunicate request_size=255 [01:53:32]MH_SAM_APDU [01:53:32]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 23 FA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [01:53:32]Write to MH i2c: E2 02 01 F2 3E 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 23 FA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 19 [01:53:32]Write i2c OK [01:53:32]MH_I2C_Read... [01:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:32]Read from MH i2c: E2 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 03 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 03 00 F2 3E 00 90 00 A4 [01:53:32]RAPDU: 90 00 [01:53:32]wFMCommunicate OK [01:53:32]wFMCommunicate request_size=52 [01:53:32]MH_SAM_APDU [01:53:32]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3C F8 00 00 35 04 06 00 DA 4C E6 FC 31 15 [01:53:32]Write to MH i2c: E2 37 00 F3 3E 80 0D 02 02 2F 00 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3C F8 00 00 35 04 06 00 DA 4C E6 FC 31 15 00 00 F7 [01:53:32]Write i2c OK [01:53:32]MH_I2C_Read... [01:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:32]Read from MH i2c: E2 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 03 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 03 00 F3 3E 00 90 00 A5 [01:53:32]RAPDU: 90 00 [01:53:32]wFMCommunicate OK [01:53:32]wFMCommunicate request_size=4 [01:53:32]MH_SAM_APDU [01:53:32]CAPDU: 80 0D 03 02 [01:53:32]Write to MH i2c: E2 08 00 F4 3E 80 0D 03 02 00 00 00 00 AD [01:53:32]Write i2c OK [01:53:32]MH_I2C_Read... [01:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:53:32]Read from MH i2c: E2 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 0B 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 0B 00 F4 3E 00 DF 90 B2 07 C2 BB E5 A3 90 00 DB [01:53:32]RAPDU: DF 90 B2 07 C2 BB E5 A3 90 00 [01:53:32]wFMCommunicate OK [01:53:32]SAM_PROTO_SignData done [01:53:32]FM_MakeSignedData done [01:53:32]CreateOFDProtocolMessage [01:53:32]wFMCommunicate request_size=4 [01:53:32]MH_SAM_APDU [01:53:32]CAPDU: 80 11 00 00 [01:53:32]Write to MH i2c: E2 08 00 F5 3E 80 11 00 00 00 00 00 00 AD [01:53:32]Write i2c OK [01:53:32]MH_I2C_Read... [01:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:32]Read from MH i2c: E2 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 17 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: E2 17 00 F5 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 06 [01:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:53:32]wFMCommunicate OK [01:53:32]CreateOFDProtocolMessage done [01:53:32]OFDSenderStorePacket 63548 [01:53:32]StoreOFDPacket docnum=63548 [01:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 39 01 00 00 0B 4F 31 01 FC 6F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 23 FA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3C F8 00 00 35 04 06 00 DA 4C E6 FC 31 15 DF 90 B2 07 C2 BB E5 A3 [01:53:32]CheckFolder [01:53:32]dirname=/storage/ofd_packets [01:53:32]CheckFolder done [01:53:32]ProducePacketName [01:53:32]name=ofd_packets/00063548 [01:53:32]NVStorageSaveData ofd_packets/00063548 [01:53:32]File name is /storage/ofd_packets/00063548 [01:53:32]Write 343 bytes [01:53:32]NVStorageSaveData done [01:53:32]OFDSenderStorePacket done [01:53:32]KKMCreateOFDPacket done [01:53:32]NVStorageSaveData kkm_last_timestamp [01:53:32]File name is /storage/kkm_last_timestamp [01:53:32]Write 4 bytes [01:53:32]NVStorageSaveData done [01:53:32]ExternCall_PrintAddStr [01:53:32]wPrintStart [01:53:32]Write to MH i2c: 01 00 00 F6 3E 34 [01:53:32]Write i2c OK [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: 01 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: 01 07 00 [01:53:32]MH_I2C_Read... [01:53:32]Read from MH i2c: 01 07 00 F6 3E 00 00 00 00 00 FF 0F 49 [01:53:32]RasterBufferAndPrint [01:53:32]line Счет N : (3)47853 [01:53:32]line ИНН: 02508201610067 [01:53:32]line Контрольно-Кассовый Чек [01:53:32]line ПРОДАЖА [01:53:32]line Товар: 4700000480050 [01:53:32]line Напиток Nitro Energy эн green ж/б 0,45л [01:53:32]line 1.000 * 95.00 [01:53:32]line = 95.00 [01:53:32]line НДС 12% НСП 1% [01:53:32]line > о реализуемом товаре [01:53:32]line ИТОГО: 95.00 [01:53:32]line НСП 1% : 0.84 [01:53:32]line НДС 12% : 10.09 [01:53:32]line Наличными: 95.00 [01:53:32]line Безнал.: 0.00 [01:53:32]line Место: АЗС № 86 "Партнер Нефть" [01:53:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:53:32]line СНО: Общий режим [01:53:32]line Чек 13 25.10.2024 01:53 [01:53:32]line Смена: 548 ФФД: 1.0 [01:53:32]line ЗНМ: 0300000154 [01:53:32]line РНМ: 0000000000091619 [01:53:32]line Версия ККМ: 001 [01:53:32]line ФМ: 0000000000874676 [01:53:32]line ФД: 63548 [01:53:32]line ФПД: 240023827656981 [01:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015339&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63548&fm=240023827656981&tin=02508201610067®Number=0000000000091619&sum=9500 [01:53:32]line 0 [01:53:32]OFD Sender: Processing packet 63548 [packets to send 232, broken 231] [01:53:32]ProducePacketName [01:53:32]name=ofd_packets/00063548 [01:53:32]OFD Sender: To server: pG, [01:53:32]CommunicateWithHost lk.salyk.kg:30040 [01:53:32]ConnectInit lk.salyk.kg [01:53:32]written 0, free lines is 4095 [01:53:33]Connected sock=10 [01:53:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 39 01 00 00 0B 4F 31 01 FC 6F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 23 FA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3C F8 00 00 35 04 06 00 DA 4C E6 FC 31 15 DF 90 B2 07 C2 BB E5 A3 [01:53:33]Write to MH i2c: 01 00 00 1F 3F 5E [01:53:33]Write i2c OK [01:53:33]MH_I2C_Read... [01:53:33]Read from MH i2c: 01 [01:53:33]MH_I2C_Read... [01:53:33]Read from MH i2c: 01 07 00 [01:53:33]MH_I2C_Read... [01:53:33]Read from MH i2c: 01 07 00 1F 3F 00 00 00 00 00 0E 0D 80 [01:53:33]RasterBufferAndPrint [01:53:33]line [01:53:33]line [01:53:33]line [01:53:33]line [01:53:33]line [01:53:33]written 0, free lines is 3348 [01:53:33]MH_Cut [01:53:33]Write to MH i2c: D1 01 00 26 3F 01 37 [01:53:33]Write i2c OK [01:53:33]MH_I2C_Read... [01:53:33]Read from MH i2c: D1 [01:53:33]MH_I2C_Read... [01:53:33]Read from MH i2c: D1 01 00 [01:53:33]MH_I2C_Read... [01:53:33]Read from MH i2c: D1 01 00 26 3F 00 36 [01:53:33]Write to MH i2c: 01 00 00 27 3F 66 [01:53:33]Write i2c OK [01:53:33]MH_I2C_Read... [01:53:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 F2 E9 47 00 42 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3C F8 00 00 F4 03 04 00 16 A4 1A 67 B6 04 01 00 00 5C 1B 5B F4 98 5C D0 DC [01:53:33]CommunicateWithHost err = 0 [01:53:33]CheckOFDResponse [01:53:33]1017 (14) - 77093643461234 [01:53:33]1041 (16) - 0000000000874676 [01:53:33]1040 (4) - 63548 [01:53:33]1012 (4) - 24.10.2024 19:46 [01:53:33]1206 (1) - 0 [01:53:33]OFD Sender: Remove packet 63548 [01:53:33]ProducePacketName [01:53:33]name=ofd_packets/00063548 [01:53:33]NVStorageDeleteData [01:53:33]OFD Sender: No OFD packet to send [01:53:33]*** Cut start [01:53:33]*** Partial cut [01:53:33]*** CUTSNS_PIN = 1 [01:53:34]*** CUTSNS_PIN = 0 [01:53:34]*** Brake cut motor [01:53:34]Read from MH i2c: 01 [01:53:34]MH_I2C_Read... [01:53:34]*** Stop cut motor [01:53:34]*** Cut end [01:53:34]Read from MH i2c: 01 07 00 [01:53:34]MH_I2C_Read... [01:53:34]Read from MH i2c: 01 07 00 27 3F 00 00 00 00 00 FF 0F 7B [01:53:34]process_action close_receipt done [01:53:34]requested_data is exist [01:53:34]produce_requested_data [01:53:34]requested_item fm.sn is exist - process it [01:53:34]wFMCommunicate request_size=4 [01:53:34]MH_SAM_APDU [01:53:34]CAPDU: 80 11 00 00 [01:53:34]Write to MH i2c: E2 08 00 28 3F 80 11 00 00 00 00 00 00 E1 [01:53:34]Write i2c OK [01:53:34]MH_I2C_Read... [01:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:34]Read from MH i2c: E2 [01:53:34]MH_I2C_Read... [01:53:34]Read from MH i2c: E2 17 00 [01:53:34]MH_I2C_Read... [01:53:34]Read from MH i2c: E2 17 00 28 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3A [01:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:53:34]wFMCommunicate OK [01:53:34]requested_item fd.num is exist - process it [01:53:34]SAM_PROTO_GetFieldsCounters [01:53:34]wFMCommunicate request_size=4 [01:53:34]MH_SAM_APDU [01:53:34]CAPDU: 80 13 00 00 [01:53:34]Write to MH i2c: E2 08 00 29 3F 80 13 00 00 00 00 00 00 E4 [01:53:34]Write i2c OK [01:53:34]MH_I2C_Read... [01:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:53:34]Read from MH i2c: E2 [01:53:34]MH_I2C_Read... [01:53:34]Read from MH i2c: E2 62 00 [01:53:34]MH_I2C_Read... [01:53:34]Read from MH i2c: E2 62 00 29 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3C F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [01:53:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3C F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:53:34]wFMCommunicate OK [01:53:34]SAM_PROTO_GetFieldsCounters done [01:53:34]requested_item shift.num is exist - process it [01:53:34]requested_item shift.opened is exist - process it [01:53:34]req_shift_opened [01:53:34]FM_GetShiftState [01:53:34]SAM_PROTO_GetShiftState [01:53:34]wFMCommunicate request_size=4 [01:53:34]MH_SAM_APDU [01:53:34]CAPDU: 80 13 01 00 [01:53:34]Write to MH i2c: E2 08 00 2A 3F 80 13 01 00 00 00 00 00 E6 [01:53:34]Write i2c OK [01:53:34]MH_I2C_Read... [01:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:34]Read from MH i2c: E2 [01:53:34]MH_I2C_Read... [01:53:34]Read from MH i2c: E2 0E 00 [01:53:34]MH_I2C_Read... [01:53:34]Read from MH i2c: E2 0E 00 2A 3F 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 6E [01:53:34]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:53:34]wFMCommunicate OK [01:53:34]SAM_PROTO_GetShiftState done [01:53:34]FM_GetShiftState done [01:53:34]req_shift_opened done [01:53:34]requested_item shift.open_date is exist - process it [01:53:34]req_shift_open_date [01:53:34]req_shift_open_date done [01:53:34]produce_requested_data done [01:53:34]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63548,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [01:53:34]process_action_free close_receipt [01:53:34]json_value_free [01:53:34]json_value_free done [01:53:34]process_json_proto returns [01:53:34]Send response to host [01:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63548,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [01:53:34]free response buf [01:53:34]execute_script done [01:53:34]execute_script returns [01:53:34]free content buf [01:53:34]Sock 7.Close socket [01:53:34]Sock 7.Thread stoped [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]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:01]accept exits with 9 [01:57:01]New connection [01:57:01]New thread 3066490212 created [01:57:01]Thread 3066633572 joined [01:57:01]Waiting for new connection... [01:57:01] Sock 9.Parse request [01:57:01]Sock 9.Check first char [01:57:01]Sock 9.First char is OK [01:57:01]request: POST /json_proto HTTP/1.0 [01:57:01]Method: POST [01:57:01]URL: /json_proto [01:57:01]Method is POST - this is cgi request [01:57:01]url: /json_proto [01:57:01]query_string will be loaded in cgi processing [01:57:01]execute_cgi json_proto POST (null) [01:57:01]execute_cgi path=json_proto method=POST [01:57:01]POST find Content-Length [01:57:01]Host: 172.17.42.132:8080 [01:57:01]Content-Length: 667 [01:57:01]Content-Type: application/json [01:57:01] [01:57:01]POST finish read [01:57:01]Found Content-Length = 667 [01:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47854", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:57:01]execute_script... [01:57:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47854", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:57:01]POST & json_proto [01:57:01]process_json_proto [01:57:01]json parsed OK: [01:57:01]protocol is kg_v1.0 [01:57:01]action value=close_receipt [01:57:01]process_action close_receipt [01:57:01]cmd_close_receipt [01:57:01]MH_GetDate [01:57:01]Write to MH i2c: F0 00 00 2B 3F 59 [01:57:01]Write i2c OK [01:57:01]MH_I2C_Read... [01:57:01]Read from MH i2c: F0 [01:57:01]MH_I2C_Read... [01:57:01]Read from MH i2c: F0 09 00 [01:57:01]MH_I2C_Read... [01:57:01]Read from MH i2c: F0 09 00 2B 3F 00 F6 FA 1A 67 4C DF 56 66 BA [01:57:01]GetLastDocTimeStamp 1729821219 [01:57:01]current date 1729821430 [01:57:01]FM_GetShiftState [01:57:01]SAM_PROTO_GetShiftState [01:57:01]wFMCommunicate request_size=4 [01:57:01]MH_SAM_APDU [01:57:01]CAPDU: 80 13 01 00 [01:57:01]Write to MH i2c: E2 08 00 2C 3F 80 13 01 00 00 00 00 00 E8 [01:57:01]Write i2c OK [01:57:01]MH_I2C_Read... [01:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:57:01]Read from MH i2c: E2 [01:57:01]MH_I2C_Read... [01:57:01]Read from MH i2c: E2 0E 00 [01:57:01]MH_I2C_Read... [01:57:01]Read from MH i2c: E2 0E 00 2C 3F 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 70 [01:57:01]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:57:01]wFMCommunicate OK [01:57:01]SAM_PROTO_GetShiftState done [01:57:01]FM_GetShiftState done [01:57:01]opened in 1729815320 [01:57:01]opened+sec_in_day 1729901720 [01:57:01]quantity*price = 22500 [01:57:01]sum+1 = 22501 [01:57:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 14 25.10.2024 01:57 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63549 ФПД: 216375546744402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015710&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63549&fm=216375546744402&tin=02508201610067®Number=0000000000091619&sum=22500 0 [01:57:03]StoreToDocumentArchive [01:57:03]shift 548 fd 63549 [01:57:03]save to /storage/0548/doc_00063549 [01:57:03]save last doc name /storage/0548/doc_00063549 to /storage/kkm_last_doc_name [01:57:03]save OK [01:57:03]Clear old archive folders... [01:57:03]ProcessDocumentItem done err = 0, tmpTLVsize=296 [01:57:03]tlvbuf is 00C27600 [01:57:03]SAM_PROTO_ClearQueue [01:57:03]wFMCommunicate request_size=4 [01:57:03]MH_SAM_APDU [01:57:03]CAPDU: 80 09 00 00 [01:57:03]Write to MH i2c: E2 08 00 39 3F 80 09 00 00 00 00 00 00 EA [01:57:03]Write i2c OK [01:57:03]MH_I2C_Read... [01:57:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:57:03]Read from MH i2c: E2 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 03 00 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 03 00 39 3F 00 90 00 EC [01:57:03]RAPDU: 90 00 [01:57:03]wFMCommunicate OK [01:57:03]SAM_PROTO_ClearQueue done [01:57:03]KKMCreateOFDPacket [01:57:03]OFDProtocolAddRootSTLVToBuf [01:57:03]FM_MakeSignedData [01:57:03]FM_MakeSignedData [01:57:03]SAM_PROTO_SignData [01:57:03]wFMCommunicate request_size=4 [01:57:03]MH_SAM_APDU [01:57:03]CAPDU: 80 0D 01 02 [01:57:03]Write to MH i2c: E2 08 00 3A 3F 80 0D 01 02 00 00 00 00 F2 [01:57:03]Write i2c OK [01:57:03]MH_I2C_Read... [01:57:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:57:03]Read from MH i2c: E2 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 03 00 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 03 00 3A 3F 00 90 00 ED [01:57:03]RAPDU: 90 00 [01:57:03]wFMCommunicate OK [01:57:03]wFMCommunicate request_size=255 [01:57:03]MH_SAM_APDU [01:57:03]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 F6 FA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [01:57:03]Write to MH i2c: E2 02 01 3B 3F 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 F6 FA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 1F [01:57:03]Write i2c OK [01:57:03]MH_I2C_Read... [01:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:57:03]Read from MH i2c: E2 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 03 00 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 03 00 3B 3F 00 90 00 EE [01:57:03]RAPDU: 90 00 [01:57:03]wFMCommunicate OK [01:57:03]wFMCommunicate request_size=55 [01:57:03]MH_SAM_APDU [01:57:03]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F8 00 00 35 04 06 00 C4 CA DB 9A 0E 52 [01:57:03]Write to MH i2c: E2 3A 00 3C 3F 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F8 00 00 35 04 06 00 C4 CA DB 9A 0E 52 00 00 ED [01:57:03]Write i2c OK [01:57:03]MH_I2C_Read... [01:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:57:03]Read from MH i2c: E2 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 03 00 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 03 00 3C 3F 00 90 00 EF [01:57:03]RAPDU: 90 00 [01:57:03]wFMCommunicate OK [01:57:03]wFMCommunicate request_size=4 [01:57:03]MH_SAM_APDU [01:57:03]CAPDU: 80 0D 03 02 [01:57:03]Write to MH i2c: E2 08 00 3D 3F 80 0D 03 02 00 00 00 00 F7 [01:57:03]Write i2c OK [01:57:03]MH_I2C_Read... [01:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:57:03]Read from MH i2c: E2 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 0B 00 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 0B 00 3D 3F 00 30 69 E4 BA 1C 11 DC EA 90 00 22 [01:57:03]RAPDU: 30 69 E4 BA 1C 11 DC EA 90 00 [01:57:03]wFMCommunicate OK [01:57:03]SAM_PROTO_SignData done [01:57:03]FM_MakeSignedData done [01:57:03]CreateOFDProtocolMessage [01:57:03]wFMCommunicate request_size=4 [01:57:03]MH_SAM_APDU [01:57:03]CAPDU: 80 11 00 00 [01:57:03]Write to MH i2c: E2 08 00 3E 3F 80 11 00 00 00 00 00 00 F7 [01:57:03]Write i2c OK [01:57:03]MH_I2C_Read... [01:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:57:03]Read from MH i2c: E2 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 17 00 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: E2 17 00 3E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 50 [01:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:57:03]wFMCommunicate OK [01:57:03]CreateOFDProtocolMessage done [01:57:03]OFDSenderStorePacket 63549 [01:57:03]StoreOFDPacket docnum=63549 [01:57:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3C 01 00 00 D2 F6 34 01 A0 D5 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 F6 FA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F8 00 00 35 04 06 00 C4 CA DB 9A 0E 52 30 69 E4 BA 1C 11 DC EA [01:57:03]CheckFolder [01:57:03]dirname=/storage/ofd_packets [01:57:03]CheckFolder done [01:57:03]ProducePacketName [01:57:03]name=ofd_packets/00063549 [01:57:03]NVStorageSaveData ofd_packets/00063549 [01:57:03]File name is /storage/ofd_packets/00063549 [01:57:03]Write 346 bytes [01:57:03]NVStorageSaveData done [01:57:03]OFDSenderStorePacket done [01:57:03]KKMCreateOFDPacket done [01:57:03]NVStorageSaveData kkm_last_timestamp [01:57:03]File name is /storage/kkm_last_timestamp [01:57:03]Write 4 bytes [01:57:03]NVStorageSaveData done [01:57:03]ExternCall_PrintAddStr [01:57:03]wPrintStart [01:57:03]Write to MH i2c: 01 00 00 3F 3F 7E [01:57:03]Write i2c OK [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: 01 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: 01 07 00 [01:57:03]MH_I2C_Read... [01:57:03]Read from MH i2c: 01 07 00 3F 3F 00 00 00 00 00 FF 0F 93 [01:57:03]RasterBufferAndPrint [01:57:03]line Счет N : (3)47854 [01:57:03]line ИНН: 02508201610067 [01:57:03]line Контрольно-Кассовый Чек [01:57:03]line ПРОДАЖА [01:57:03]line Товар: 4670003190037 [01:57:03]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 1л [01:57:03]line 1.000 * 225.00 [01:57:03]line = 225.00 [01:57:03]line НДС 12% НСП 1% [01:57:03]line > о реализуемом товаре [01:57:03]line ИТОГО: 225.00 [01:57:03]line НСП 1% : 1.99 [01:57:03]line НДС 12% : 23.89 [01:57:03]line Наличными: 225.00 [01:57:03]line Безнал.: 0.00 [01:57:03]line Место: АЗС № 86 "Партнер Нефть" [01:57:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:57:03]line СНО: Общий режим [01:57:03]line Чек 14 25.10.2024 01:57 [01:57:03]line Смена: 548 ФФД: 1.0 [01:57:03]line ЗНМ: 0300000154 [01:57:03]line РНМ: 0000000000091619 [01:57:03]line Версия ККМ: 001 [01:57:03]line ФМ: 0000000000874676 [01:57:03]line ФД: 63549 [01:57:03]line ФПД: 216375546744402 [01:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T015710&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63549&fm=216375546744402&tin=02508201610067®Number=0000000000091619&sum=22500 [01:57:03]OFD Sender: Processing packet 63549 [packets to send 232, broken 231] [01:57:03]ProducePacketName [01:57:03]name=ofd_packets/00063549 [01:57:03]OFD Sender: To server: pG, [01:57:03]CommunicateWithHost lk.salyk.kg:30040 [01:57:03]ConnectInit lk.salyk.kg [01:57:03]line 0 [01:57:03]written 0, free lines is 4095 [01:57:04]Connected sock=11 [01:57:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3C 01 00 00 D2 F6 34 01 A0 D5 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 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 F6 FA 1A 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F8 00 00 35 04 06 00 C4 CA DB 9A 0E 52 30 69 E4 BA 1C 11 DC EA [01:57:04]Write to MH i2c: 01 00 00 68 3F A7 [01:57:04]Write i2c OK [01:57:04]MH_I2C_Read... [01:57:04]Read from MH i2c: 01 [01:57:04]MH_I2C_Read... [01:57:04]Read from MH i2c: 01 07 00 [01:57:04]MH_I2C_Read... [01:57:04]Read from MH i2c: 01 07 00 68 3F 00 00 00 00 00 15 0D D0 [01:57:04]RasterBufferAndPrint [01:57:04]line [01:57:04]line [01:57:04]line [01:57:04]line [01:57:04]line [01:57:04]written 0, free lines is 3357 [01:57:04]MH_Cut [01:57:04]Write to MH i2c: D1 01 00 6F 3F 01 80 [01:57:04]Write i2c OK [01:57:04]MH_I2C_Read... [01:57:04]Read from MH i2c: D1 [01:57:04]MH_I2C_Read... [01:57:04]Read from MH i2c: D1 01 00 [01:57:04]MH_I2C_Read... [01:57:04]Read from MH i2c: D1 01 00 6F 3F 00 7F [01:57:04]Write to MH i2c: 01 00 00 70 3F AF [01:57:04]Write i2c OK [01:57:04]MH_I2C_Read... [01:57:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 60 05 47 00 9B 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F8 00 00 F4 03 04 00 E9 A4 1A 67 B6 04 01 00 00 DB 30 D5 BD ED A1 28 89 [01:57:04]CommunicateWithHost err = 0 [01:57:04]CheckOFDResponse [01:57:04]1017 (14) - 77093643461234 [01:57:04]1041 (16) - 0000000000874676 [01:57:04]1040 (4) - 63549 [01:57:04]1012 (4) - 24.10.2024 19:50 [01:57:04]1206 (1) - 0 [01:57:04]OFD Sender: Remove packet 63549 [01:57:04]ProducePacketName [01:57:04]name=ofd_packets/00063549 [01:57:04]NVStorageDeleteData [01:57:05]*** Cut start [01:57:05]*** Partial cut [01:57:05]*** CUTSNS_PIN = 1 [01:57:05]OFD Sender: No OFD packet to send [01:57:05]*** CUTSNS_PIN = 0 [01:57:05]*** Brake cut motor [01:57:05]Read from MH i2c: 01 [01:57:05]MH_I2C_Read... [01:57:05]*** Stop cut motor [01:57:05]*** Cut end [01:57:05]Read from MH i2c: 01 07 00 [01:57:05]MH_I2C_Read... [01:57:05]Read from MH i2c: 01 07 00 70 3F 00 00 00 00 00 FF 0F C4 [01:57:05]process_action close_receipt done [01:57:05]requested_data is exist [01:57:05]produce_requested_data [01:57:05]requested_item fm.sn is exist - process it [01:57:05]wFMCommunicate request_size=4 [01:57:05]MH_SAM_APDU [01:57:05]CAPDU: 80 11 00 00 [01:57:05]Write to MH i2c: E2 08 00 71 3F 80 11 00 00 00 00 00 00 2A [01:57:05]Write i2c OK [01:57:05]MH_I2C_Read... [01:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:57:05]Read from MH i2c: E2 [01:57:05]MH_I2C_Read... [01:57:05]Read from MH i2c: E2 17 00 [01:57:05]MH_I2C_Read... [01:57:05]Read from MH i2c: E2 17 00 71 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 83 [01:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [01:57:05]wFMCommunicate OK [01:57:05]requested_item fd.num is exist - process it [01:57:05]SAM_PROTO_GetFieldsCounters [01:57:05]wFMCommunicate request_size=4 [01:57:05]MH_SAM_APDU [01:57:05]CAPDU: 80 13 00 00 [01:57:05]Write to MH i2c: E2 08 00 72 3F 80 13 00 00 00 00 00 00 2D [01:57:05]Write i2c OK [01:57:05]MH_I2C_Read... [01:57:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:57:05]Read from MH i2c: E2 [01:57:05]MH_I2C_Read... [01:57:05]Read from MH i2c: E2 62 00 [01:57:05]MH_I2C_Read... [01:57:05]Read from MH i2c: E2 62 00 72 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3D F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [01:57:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3D F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:57:05]wFMCommunicate OK [01:57:05]SAM_PROTO_GetFieldsCounters done [01:57:05]requested_item shift.num is exist - process it [01:57:05]requested_item shift.opened is exist - process it [01:57:05]req_shift_opened [01:57:05]FM_GetShiftState [01:57:05]SAM_PROTO_GetShiftState [01:57:05]wFMCommunicate request_size=4 [01:57:05]MH_SAM_APDU [01:57:05]CAPDU: 80 13 01 00 [01:57:05]Write to MH i2c: E2 08 00 73 3F 80 13 01 00 00 00 00 00 2F [01:57:05]Write i2c OK [01:57:05]MH_I2C_Read... [01:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:57:05]Read from MH i2c: E2 [01:57:05]MH_I2C_Read... [01:57:05]Read from MH i2c: E2 0E 00 [01:57:05]MH_I2C_Read... [01:57:05]Read from MH i2c: E2 0E 00 73 3F 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 B7 [01:57:05]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [01:57:05]wFMCommunicate OK [01:57:05]SAM_PROTO_GetShiftState done [01:57:05]FM_GetShiftState done [01:57:05]req_shift_opened done [01:57:05]requested_item shift.open_date is exist - process it [01:57:05]req_shift_open_date [01:57:05]req_shift_open_date done [01:57:05]produce_requested_data done [01:57:05]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63549,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [01:57:05]process_action_free close_receipt [01:57:05]json_value_free [01:57:05]json_value_free done [01:57:05]process_json_proto returns [01:57:05]Send response to host [01:57:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63549,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [01:57:05]free response buf [01:57:05]execute_script done [01:57:05]execute_script returns [01:57:05]free content buf [01:57:05]Sock 9.Close socket [01:57:05]Sock 9.Thread stoped [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]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:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:48]accept exits with 7 [02:19:48]New connection [02:19:48]New thread 3066633572 created [02:19:48]Thread 3066490212 joined [02:19:48]Waiting for new connection... [02:19:48] Sock 7.Parse request [02:19:48]Sock 7.Check first char [02:19:48]Sock 7.First char is OK [02:19:48]request: POST /json_proto HTTP/1.0 [02:19:48]Method: POST [02:19:48]URL: /json_proto [02:19:48]Method is POST - this is cgi request [02:19:48]url: /json_proto [02:19:48]query_string will be loaded in cgi processing [02:19:48]execute_cgi json_proto POST (null) [02:19:48]execute_cgi path=json_proto method=POST [02:19:48]POST find Content-Length [02:19:48]Host: 172.17.42.132:8080 [02:19:48]Content-Length: 654 [02:19:48]Content-Type: application/json [02:19:48] [02:19:48]POST finish read [02:19:48]Found Content-Length = 654 [02:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47855", "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" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:48]execute_script... [02:19:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47855", "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" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:19:48]POST & json_proto [02:19:48]process_json_proto [02:19:48]json parsed OK: [02:19:48]protocol is kg_v1.0 [02:19:48]action value=close_receipt [02:19:48]process_action close_receipt [02:19:48]cmd_close_receipt [02:19:48]MH_GetDate [02:19:48]Write to MH i2c: F0 00 00 74 3F A2 [02:19:48]Write i2c OK [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: F0 [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: F0 09 00 [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: F0 09 00 74 3F 00 4D 00 1B 67 4C DF 56 66 61 [02:19:48]GetLastDocTimeStamp 1729821430 [02:19:48]current date 1729822797 [02:19:48]FM_GetShiftState [02:19:48]SAM_PROTO_GetShiftState [02:19:48]wFMCommunicate request_size=4 [02:19:48]MH_SAM_APDU [02:19:48]CAPDU: 80 13 01 00 [02:19:48]Write to MH i2c: E2 08 00 75 3F 80 13 01 00 00 00 00 00 31 [02:19:48]Write i2c OK [02:19:48]MH_I2C_Read... [02:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:48]Read from MH i2c: E2 [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: E2 0E 00 [02:19:48]MH_I2C_Read... [02:19:48]Read from MH i2c: E2 0E 00 75 3F 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 B9 [02:19:48]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [02:19:48]wFMCommunicate OK [02:19:48]SAM_PROTO_GetShiftState done [02:19:48]FM_GetShiftState done [02:19:48]opened in 1729815320 [02:19:48]opened+sec_in_day 1729901720 [02:19:48]quantity*price = 6900 [02:19:48]sum+1 = 6901 [02:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 15 25.10.2024 02:19 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63550 ФПД: 168684817419984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T021957&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63550&fm=168684817419984&tin=02508201610067®Number=0000000000091619&sum=6900 0 [02:19:49]StoreToDocumentArchive [02:19:49]shift 548 fd 63550 [02:19:49]save to /storage/0548/doc_00063550 [02:19:49]save last doc name /storage/0548/doc_00063550 to /storage/kkm_last_doc_name [02:19:49]save OK [02:19:49]Clear old archive folders... [02:19:49]ProcessDocumentItem done err = 0, tmpTLVsize=294 [02:19:49]tlvbuf is 00C14450 [02:19:49]SAM_PROTO_ClearQueue [02:19:49]wFMCommunicate request_size=4 [02:19:49]MH_SAM_APDU [02:19:49]CAPDU: 80 09 00 00 [02:19:49]Write to MH i2c: E2 08 00 82 3F 80 09 00 00 00 00 00 00 33 [02:19:49]Write i2c OK [02:19:49]MH_I2C_Read... [02:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:19:49]Read from MH i2c: E2 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 82 3F 00 90 00 35 [02:19:49]RAPDU: 90 00 [02:19:49]wFMCommunicate OK [02:19:49]SAM_PROTO_ClearQueue done [02:19:49]KKMCreateOFDPacket [02:19:49]OFDProtocolAddRootSTLVToBuf [02:19:49]FM_MakeSignedData [02:19:49]FM_MakeSignedData [02:19:49]SAM_PROTO_SignData [02:19:49]wFMCommunicate request_size=4 [02:19:49]MH_SAM_APDU [02:19:49]CAPDU: 80 0D 01 02 [02:19:49]Write to MH i2c: E2 08 00 83 3F 80 0D 01 02 00 00 00 00 3B [02:19:49]Write i2c OK [02:19:49]MH_I2C_Read... [02:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:19:49]Read from MH i2c: E2 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 [02:19:49]MH_I2C_Read... [02:19:49]Read from MH i2c: E2 03 00 83 3F 00 90 00 36 [02:19:49]RAPDU: 90 00 [02:19:49]wFMCommunicate OK [02:19:49]wFMCommunicate request_size=255 [02:19:49]MH_SAM_APDU [02:19:49]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 4D 00 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [02:19:49]Write to MH i2c: E2 02 01 84 3F 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 4D 00 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 4E [02:19:49]Write i2c OK [02:19:49]MH_I2C_Read... [02:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:50]Read from MH i2c: E2 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 03 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 03 00 84 3F 00 90 00 37 [02:19:50]RAPDU: 90 00 [02:19:50]wFMCommunicate OK [02:19:50]wFMCommunicate request_size=53 [02:19:50]MH_SAM_APDU [02:19:50]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F8 00 00 35 04 06 00 99 6A FE 9F 0E D0 [02:19:50]Write to MH i2c: E2 38 00 85 3F 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F8 00 00 35 04 06 00 99 6A FE 9F 0E D0 00 00 EE [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:19:50]Read from MH i2c: E2 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 03 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 03 00 85 3F 00 90 00 38 [02:19:50]RAPDU: 90 00 [02:19:50]wFMCommunicate OK [02:19:50]wFMCommunicate request_size=4 [02:19:50]MH_SAM_APDU [02:19:50]CAPDU: 80 0D 03 02 [02:19:50]Write to MH i2c: E2 08 00 86 3F 80 0D 03 02 00 00 00 00 40 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:19:50]Read from MH i2c: E2 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 0B 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 0B 00 86 3F 00 77 BA DB 4C 79 F5 17 07 90 00 25 [02:19:50]RAPDU: 77 BA DB 4C 79 F5 17 07 90 00 [02:19:50]wFMCommunicate OK [02:19:50]SAM_PROTO_SignData done [02:19:50]FM_MakeSignedData done [02:19:50]CreateOFDProtocolMessage [02:19:50]wFMCommunicate request_size=4 [02:19:50]MH_SAM_APDU [02:19:50]CAPDU: 80 11 00 00 [02:19:50]Write to MH i2c: E2 08 00 87 3F 80 11 00 00 00 00 00 00 40 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:50]Read from MH i2c: E2 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 17 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: E2 17 00 87 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 99 [02:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:19:50]wFMCommunicate OK [02:19:50]CreateOFDProtocolMessage done [02:19:50]OFDSenderStorePacket 63550 [02:19:50]StoreOFDPacket docnum=63550 [02:19:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 4A CE 32 01 58 7A 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 4D 00 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F8 00 00 35 04 06 00 99 6A FE 9F 0E D0 77 BA DB 4C 79 F5 17 07 [02:19:50]CheckFolder [02:19:50]dirname=/storage/ofd_packets [02:19:50]CheckFolder done [02:19:50]ProducePacketName [02:19:50]name=ofd_packets/00063550 [02:19:50]NVStorageSaveData ofd_packets/00063550 [02:19:50]File name is /storage/ofd_packets/00063550 [02:19:50]Write 344 bytes [02:19:50]NVStorageSaveData done [02:19:50]OFDSenderStorePacket done [02:19:50]KKMCreateOFDPacket done [02:19:50]NVStorageSaveData kkm_last_timestamp [02:19:50]File name is /storage/kkm_last_timestamp [02:19:50]Write 4 bytes [02:19:50]NVStorageSaveData done [02:19:50]ExternCall_PrintAddStr [02:19:50]wPrintStart [02:19:50]Write to MH i2c: 01 00 00 88 3F C7 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 07 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 07 00 88 3F 00 00 00 00 00 FF 0F DC [02:19:50]RasterBufferAndPrint [02:19:50]line Счет N : (3)47855 [02:19:50]line ИНН: 02508201610067 [02:19:50]line Контрольно-Кассовый Чек [02:19:50]line ПРОДАЖА [02:19:50]line Товар: 4600682557456 [02:19:50]line Напиток FLash up energy эн ж/б 0,5/0,45л [02:19:50]line 1.000 * 69.00 [02:19:50]line = 69.00 [02:19:50]line НДС 12% НСП 1% [02:19:50]line > о реализуемом товаре [02:19:50]line ИТОГО: 69.00 [02:19:50]line НСП 1% : 0.61 [02:19:50]line НДС 12% : 7.33 [02:19:50]line Наличными: 69.00 [02:19:50]line Безнал.: 0.00 [02:19:50]line Место: АЗС № 86 "Партнер Нефть" [02:19:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:19:50]line СНО: Общий режим [02:19:50]line Чек 15 25.10.2024 02:19 [02:19:50]line Смена: 548 ФФД: 1.0 [02:19:50]line ЗНМ: 0300000154 [02:19:50]line РНМ: 0000000000091619 [02:19:50]line Версия ККМ: 001 [02:19:50]line ФМ: 0000000000874676 [02:19:50]line ФД: 63550 [02:19:50]line ФПД: 168684817419984 [02:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T021957&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63550&fm=168684817419984&tin=02508201610067®Number=0000000000091619&sum=6900 [02:19:50]line 0 [02:19:50]written 0, free lines is 4095 [02:19:50]OFD Sender: Processing packet 63550 [packets to send 232, broken 231] [02:19:50]ProducePacketName [02:19:50]name=ofd_packets/00063550 [02:19:50]OFD Sender: To server: pG, [02:19:50]CommunicateWithHost lk.salyk.kg:30040 [02:19:50]ConnectInit lk.salyk.kg [02:19:50]Connected sock=10 [02:19:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 4A CE 32 01 58 7A 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 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 4D 00 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F8 00 00 35 04 06 00 99 6A FE 9F 0E D0 77 BA DB 4C 79 F5 17 07 [02:19:50]Write to MH i2c: 01 00 00 B1 3F F0 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 07 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: 01 07 00 B1 3F 00 00 00 00 00 15 0D 19 [02:19:50]RasterBufferAndPrint [02:19:50]line [02:19:50]line [02:19:50]line [02:19:50]line [02:19:50]line [02:19:50]written 0, free lines is 3355 [02:19:50]MH_Cut [02:19:50]Write to MH i2c: D1 01 00 B8 3F 01 C9 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: D1 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: D1 01 00 [02:19:50]MH_I2C_Read... [02:19:50]Read from MH i2c: D1 01 00 B8 3F 00 C8 [02:19:50]Write to MH i2c: 01 00 00 B9 3F F8 [02:19:50]Write i2c OK [02:19:50]MH_I2C_Read... [02:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 0D AE 47 00 1C 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F8 00 00 F4 03 04 00 3F AA 1A 67 B6 04 01 00 00 6C 47 44 98 14 C3 A4 06 [02:19:50]CommunicateWithHost err = 0 [02:19:50]CheckOFDResponse [02:19:50]1017 (14) - 77093643461234 [02:19:50]1041 (16) - 0000000000874676 [02:19:50]1040 (4) - 63550 [02:19:50]1012 (4) - 24.10.2024 20:12 [02:19:50]1206 (1) - 0 [02:19:50]OFD Sender: Remove packet 63550 [02:19:50]ProducePacketName [02:19:50]name=ofd_packets/00063550 [02:19:50]NVStorageDeleteData [02:19:51]OFD Sender: No OFD packet to send [02:19:51]*** Cut start [02:19:51]*** Partial cut [02:19:51]*** CUTSNS_PIN = 1 [02:19:51]*** CUTSNS_PIN = 0 [02:19:51]*** Brake cut motor [02:19:52]Read from MH i2c: 01 *** Stop cut motor [02:19:52] [02:19:52]*** Cut end [02:19:52]MH_I2C_Read... [02:19:52]Read from MH i2c: 01 07 00 [02:19:52]MH_I2C_Read... [02:19:52]Read from MH i2c: 01 07 00 B9 3F 00 00 00 00 00 FF 0F 0D [02:19:52]process_action close_receipt done [02:19:52]requested_data is exist [02:19:52]produce_requested_data [02:19:52]requested_item fm.sn is exist - process it [02:19:52]wFMCommunicate request_size=4 [02:19:52]MH_SAM_APDU [02:19:52]CAPDU: 80 11 00 00 [02:19:52]Write to MH i2c: E2 08 00 BA 3F 80 11 00 00 00 00 00 00 73 [02:19:52]Write i2c OK [02:19:52]MH_I2C_Read... [02:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:52]Read from MH i2c: E2 [02:19:52]MH_I2C_Read... [02:19:52]Read from MH i2c: E2 17 00 [02:19:52]MH_I2C_Read... [02:19:52]Read from MH i2c: E2 17 00 BA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CC [02:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:19:52]wFMCommunicate OK [02:19:52]requested_item fd.num is exist - process it [02:19:52]SAM_PROTO_GetFieldsCounters [02:19:52]wFMCommunicate request_size=4 [02:19:52]MH_SAM_APDU [02:19:52]CAPDU: 80 13 00 00 [02:19:52]Write to MH i2c: E2 08 00 BB 3F 80 13 00 00 00 00 00 00 76 [02:19:52]Write i2c OK [02:19:52]MH_I2C_Read... [02:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:19:52]Read from MH i2c: E2 [02:19:52]MH_I2C_Read... [02:19:52]Read from MH i2c: E2 62 00 [02:19:52]MH_I2C_Read... [02:19:52]Read from MH i2c: E2 62 00 BB 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3E F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [02:19: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 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3E F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:19:52]wFMCommunicate OK [02:19:52]SAM_PROTO_GetFieldsCounters done [02:19:52]requested_item shift.num is exist - process it [02:19:52]requested_item shift.opened is exist - process it [02:19:52]req_shift_opened [02:19:52]FM_GetShiftState [02:19:52]SAM_PROTO_GetShiftState [02:19:52]wFMCommunicate request_size=4 [02:19:52]MH_SAM_APDU [02:19:52]CAPDU: 80 13 01 00 [02:19:52]Write to MH i2c: E2 08 00 BC 3F 80 13 01 00 00 00 00 00 78 [02:19:52]Write i2c OK [02:19:52]MH_I2C_Read... [02:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:52]Read from MH i2c: E2 [02:19:52]MH_I2C_Read... [02:19:52]Read from MH i2c: E2 0E 00 [02:19:52]MH_I2C_Read... [02:19:52]Read from MH i2c: E2 0E 00 BC 3F 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 00 [02:19:52]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [02:19:52]wFMCommunicate OK [02:19:52]SAM_PROTO_GetShiftState done [02:19:52]FM_GetShiftState done [02:19:52]req_shift_opened done [02:19:52]requested_item shift.open_date is exist - process it [02:19:52]req_shift_open_date [02:19:52]req_shift_open_date done [02:19:52]produce_requested_data done [02:19:52]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63550,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [02:19:52]process_action_free close_receipt [02:19:52]json_value_free [02:19:52]json_value_free done [02:19:52]process_json_proto returns [02:19:52]Send response to host [02:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63550,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [02:19:52]free response buf [02:19:52]execute_script done [02:19:52]execute_script returns [02:19:52]free content buf [02:19:52]Sock 7.Close socket [02:19:52]Sock 7.Thread stoped [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:45]accept exits with 9 [02:20:45]New connection [02:20:45]New thread 3066490212 created [02:20:45]Thread 3066633572 joined [02:20:45]Waiting for new connection... [02:20:45] Sock 9.Parse request [02:20:45]Sock 9.Check first char [02:20:45]Sock 9.First char is OK [02:20:45]request: POST /json_proto HTTP/1.0 [02:20:45]Method: POST [02:20:45]URL: /json_proto [02:20:45]Method is POST - this is cgi request [02:20:45]url: /json_proto [02:20:45]query_string will be loaded in cgi processing [02:20:45]execute_cgi json_proto POST (null) [02:20:45]execute_cgi path=json_proto method=POST [02:20:45]POST find Content-Length [02:20:45]Host: 172.17.42.132:8080 [02:20:45]Content-Length: 620 [02:20:45]Content-Type: application/json [02:20:45] [02:20:45]POST finish read [02:20:45]Found Content-Length = 620 [02:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47856", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:20:45]execute_script... [02:20: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)47856", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:20:45]POST & json_proto [02:20:45]process_json_proto [02:20:45]json parsed OK: [02:20:45]protocol is kg_v1.0 [02:20:45]action value=close_receipt [02:20:45]process_action close_receipt [02:20:45]cmd_close_receipt [02:20:45]MH_GetDate [02:20:45]Write to MH i2c: F0 00 00 BD 3F EB [02:20:45]Write i2c OK [02:20:45]MH_I2C_Read... [02:20:45]Read from MH i2c: F0 [02:20:45]MH_I2C_Read... [02:20:45]Read from MH i2c: F0 09 00 [02:20:45]MH_I2C_Read... [02:20:45]Read from MH i2c: F0 09 00 BD 3F 00 86 00 1B 67 4C DF 56 66 E3 [02:20:45]GetLastDocTimeStamp 1729822797 [02:20:45]current date 1729822854 [02:20:45]FM_GetShiftState [02:20:45]SAM_PROTO_GetShiftState [02:20:45]wFMCommunicate request_size=4 [02:20:45]MH_SAM_APDU [02:20:45]CAPDU: 80 13 01 00 [02:20:45]Write to MH i2c: E2 08 00 BE 3F 80 13 01 00 00 00 00 00 7A [02:20:45]Write i2c OK [02:20:45]MH_I2C_Read... [02:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:45]Read from MH i2c: E2 [02:20:45]MH_I2C_Read... [02:20:45]Read from MH i2c: E2 0E 00 [02:20:45]MH_I2C_Read... [02:20:45]Read from MH i2c: E2 0E 00 BE 3F 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 02 [02:20:45]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [02:20:45]wFMCommunicate OK [02:20:45]SAM_PROTO_GetShiftState done [02:20:45]FM_GetShiftState done [02:20:45]opened in 1729815320 [02:20:45]opened+sec_in_day 1729901720 [02:20:45]quantity*price = 28800 [02:20:45]sum+1 = 28801 [02:20:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 16 25.10.2024 02:20 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63551 ФПД: 197685940884243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T022054&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63551&fm=197685940884243&tin=02508201610067®Number=0000000000091619&sum=28800 0 [02:20:46]StoreToDocumentArchive [02:20:46]shift 548 fd 63551 [02:20:46]save to /storage/0548/doc_00063551 [02:20:46]save last doc name /storage/0548/doc_00063551 to /storage/kkm_last_doc_name [02:20:46]save OK [02:20:46]Clear old archive folders... [02:20:46]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:20:46]tlvbuf is 00C14050 [02:20:46]SAM_PROTO_ClearQueue [02:20:46]wFMCommunicate request_size=4 [02:20:46]MH_SAM_APDU [02:20:46]CAPDU: 80 09 00 00 [02:20:46]Write to MH i2c: E2 08 00 CB 3F 80 09 00 00 00 00 00 00 7C [02:20:46]Write i2c OK [02:20:46]MH_I2C_Read... [02:20:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:20:46]Read from MH i2c: E2 [02:20:46]MH_I2C_Read... [02:20:46]Read from MH i2c: E2 03 00 [02:20:46]MH_I2C_Read... [02:20:46]Read from MH i2c: E2 03 00 CB 3F 00 90 00 7E [02:20:46]RAPDU: 90 00 [02:20:46]wFMCommunicate OK [02:20:46]SAM_PROTO_ClearQueue done [02:20:46]KKMCreateOFDPacket [02:20:46]OFDProtocolAddRootSTLVToBuf [02:20:46]FM_MakeSignedData [02:20:46]FM_MakeSignedData [02:20:46]SAM_PROTO_SignData [02:20:46]wFMCommunicate request_size=4 [02:20:46]MH_SAM_APDU [02:20:46]CAPDU: 80 0D 01 02 [02:20:46]Write to MH i2c: E2 08 00 CC 3F 80 0D 01 02 00 00 00 00 84 [02:20:46]Write i2c OK [02:20:46]MH_I2C_Read... [02:20:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:20:46]Read from MH i2c: E2 [02:20:46]MH_I2C_Read... [02:20:46]Read from MH i2c: E2 03 00 [02:20:46]MH_I2C_Read... [02:20:46]Read from MH i2c: E2 03 00 CC 3F 00 90 00 7F [02:20:46]RAPDU: 90 00 [02:20:46]wFMCommunicate OK [02:20:46]wFMCommunicate request_size=255 [02:20:46]MH_SAM_APDU [02:20:46]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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 86 00 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [02:20:46]Write to MH i2c: E2 02 01 CD 3F 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 86 00 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 00 [02:20:46]Write i2c OK [02:20:46]MH_I2C_Read... [02:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:47]Read from MH i2c: E2 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: E2 03 00 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: E2 03 00 CD 3F 00 90 00 80 [02:20:47]RAPDU: 90 00 [02:20:47]wFMCommunicate OK [02:20:47]wFMCommunicate request_size=32 [02:20:47]MH_SAM_APDU [02:20:47]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F8 00 00 35 04 06 00 B3 CB 58 48 93 13 [02:20:47]Write to MH i2c: E2 23 00 CE 3F 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F8 00 00 35 04 06 00 B3 CB 58 48 93 13 00 00 E5 [02:20:47]Write i2c OK [02:20:47]MH_I2C_Read... [02:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:47]Read from MH i2c: E2 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: E2 03 00 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: E2 03 00 CE 3F 00 90 00 81 [02:20:47]RAPDU: 90 00 [02:20:47]wFMCommunicate OK [02:20:47]wFMCommunicate request_size=4 [02:20:47]MH_SAM_APDU [02:20:47]CAPDU: 80 0D 03 02 [02:20:47]Write to MH i2c: E2 08 00 CF 3F 80 0D 03 02 00 00 00 00 89 [02:20:47]Write i2c OK [02:20:47]MH_I2C_Read... [02:20:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:20:47]Read from MH i2c: E2 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: E2 0B 00 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: E2 0B 00 CF 3F 00 22 F6 2C 46 24 10 87 2D 90 00 FC [02:20:47]RAPDU: 22 F6 2C 46 24 10 87 2D 90 00 [02:20:47]wFMCommunicate OK [02:20:47]SAM_PROTO_SignData done [02:20:47]FM_MakeSignedData done [02:20:47]CreateOFDProtocolMessage [02:20:47]wFMCommunicate request_size=4 [02:20:47]MH_SAM_APDU [02:20:47]CAPDU: 80 11 00 00 [02:20:47]Write to MH i2c: E2 08 00 D0 3F 80 11 00 00 00 00 00 00 89 [02:20:47]Write i2c OK [02:20:47]MH_I2C_Read... [02:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:47]Read from MH i2c: E2 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: E2 17 00 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: E2 17 00 D0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E2 [02:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:20:47]wFMCommunicate OK [02:20:47]CreateOFDProtocolMessage done [02:20:47]OFDSenderStorePacket 63551 [02:20:47]StoreOFDPacket docnum=63551 [02:20:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 23 ED 1D 01 82 D8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 86 00 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F8 00 00 35 04 06 00 B3 CB 58 48 93 13 22 F6 2C 46 24 10 87 2D [02:20:47]CheckFolder [02:20:47]dirname=/storage/ofd_packets [02:20:47]CheckFolder done [02:20:47]ProducePacketName [02:20:47]name=ofd_packets/00063551 [02:20:47]NVStorageSaveData ofd_packets/00063551 [02:20:47]File name is /storage/ofd_packets/00063551 [02:20:47]Write 323 bytes [02:20:47]NVStorageSaveData done [02:20:47]OFDSenderStorePacket done [02:20:47]KKMCreateOFDPacket done [02:20:47]NVStorageSaveData kkm_last_timestamp [02:20:47]File name is /storage/kkm_last_timestamp [02:20:47]Write 4 bytes [02:20:47]NVStorageSaveData done [02:20:47]ExternCall_PrintAddStr [02:20:47]wPrintStart [02:20:47]Write to MH i2c: 01 00 00 D1 3F 10 [02:20:47]Write i2c OK [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: 01 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: 01 07 00 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: 01 07 00 D1 3F 00 00 00 00 00 FF 0F 25 [02:20:47]RasterBufferAndPrint [02:20:47]line Счет N : (3)47856 [02:20:47]line ИНН: 02508201610067 [02:20:47]line Контрольно-Кассовый Чек [02:20:47]line ПРОДАЖА [02:20:47]line Товар: 48743570 [02:20:47]line Сигареты Winston XStyle Blue [02:20:47]line 2.000 * 144.00 [02:20:47]line = 288.00 [02:20:47]line НДС 12% НСП 1% [02:20:47]line > о реализуемом товаре [02:20:47]line ИТОГО: 288.00 [02:20:47]line НСП 1% : 2.55 [02:20:47]line НДС 12% : 30.58 [02:20:47]line Наличными: 288.00 [02:20:47]line Безнал.: 0.00 [02:20:47]line Место: АЗС № 86 "Партнер Нефть" [02:20:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:20:47]line СНО: Общий режим [02:20:47]line Чек 16 25.10.2024 02:20 [02:20:47]line Смена: 548 ФФД: 1.0 [02:20:47]line ЗНМ: 0300000154 [02:20:47]line РНМ: 0000000000091619 [02:20:47]line Версия ККМ: 001 [02:20:47]line ФМ: 0000000000874676 [02:20:47]line ФД: 63551 [02:20:47]line ФПД: 197685940884243 [02:20:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T022054&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63551&fm=197685940884243&tin=02508201610067®Number=0000000000091619&sum=28800 [02:20:47]line 0 [02:20:47]written 0, free lines is 4095 [02:20:47]OFD Sender: Processing packet 63551 [packets to send 232, broken 231] [02:20:47]ProducePacketName [02:20:47]name=ofd_packets/00063551 [02:20:47]OFD Sender: To server: pG, [02:20:47]CommunicateWithHost lk.salyk.kg:30040 [02:20:47]ConnectInit lk.salyk.kg [02:20:47]Connected sock=10 [02:20:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 23 ED 1D 01 82 D8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 86 00 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F8 00 00 35 04 06 00 B3 CB 58 48 93 13 22 F6 2C 46 24 10 87 2D [02:20:47]Write to MH i2c: 01 00 00 F9 3F 38 [02:20:47]Write i2c OK [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: 01 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: 01 07 00 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: 01 07 00 F9 3F 00 00 00 00 00 22 0D 6E [02:20:47]RasterBufferAndPrint [02:20:47]line [02:20:47]line [02:20:47]line [02:20:47]line [02:20:47]line [02:20:47]written 0, free lines is 3371 [02:20:47]MH_Cut [02:20:47]Write to MH i2c: D1 01 00 00 40 01 12 [02:20:47]Write i2c OK [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: D1 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: D1 01 00 [02:20:47]MH_I2C_Read... [02:20:47]Read from MH i2c: D1 01 00 00 40 00 11 [02:20:47]Write to MH i2c: 01 00 00 01 40 41 [02:20:47]Write i2c OK [02:20:47]MH_I2C_Read... [02:20:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 B2 BB 47 00 20 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F8 00 00 F4 03 04 00 78 AA 1A 67 B6 04 01 00 00 E8 97 99 74 C6 40 C0 18 [02:20:47]CommunicateWithHost err = 0 [02:20:47]CheckOFDResponse [02:20:47]1017 (14) - 77093643461234 [02:20:47]1041 (16) - 0000000000874676 [02:20:47]1040 (4) - 63551 [02:20:47]1012 (4) - 24.10.2024 20:13 [02:20:47]1206 (1) - 0 [02:20:47]OFD Sender: Remove packet 63551 [02:20:47]ProducePacketName [02:20:47]name=ofd_packets/00063551 [02:20:47]NVStorageDeleteData [02:20:48]OFD Sender: No OFD packet to send [02:20:48]*** Cut start [02:20:48]*** Partial cut [02:20:48]*** CUTSNS_PIN = 1 [02:20:48]*** CUTSNS_PIN = 0 [02:20:48]*** Brake cut motor [02:20:49]Read from MH i2c: 01 [02:20:49]MH_I2C_Read... [02:20:49]*** Stop cut motor [02:20:49]*** Cut end [02:20:49]Read from MH i2c: 01 07 00 [02:20:49]MH_I2C_Read... [02:20:49]Read from MH i2c: 01 07 00 01 40 00 00 00 00 00 FF 0F 56 [02:20:49]process_action close_receipt done [02:20:49]requested_data is exist [02:20:49]produce_requested_data [02:20:49]requested_item fm.sn is exist - process it [02:20:49]wFMCommunicate request_size=4 [02:20:49]MH_SAM_APDU [02:20:49]CAPDU: 80 11 00 00 [02:20:49]Write to MH i2c: E2 08 00 02 40 80 11 00 00 00 00 00 00 BC [02:20:49]Write i2c OK [02:20:49]MH_I2C_Read... [02:20:49]Read from MH i2c: E2 [02:20:49]MH_I2C_Read... [02:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:49]Read from MH i2c: E2 17 00 [02:20:49]MH_I2C_Read... [02:20:49]Read from MH i2c: E2 17 00 02 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 15 [02:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:20:49]wFMCommunicate OK [02:20:49]requested_item fd.num is exist - process it [02:20:49]SAM_PROTO_GetFieldsCounters [02:20:49]wFMCommunicate request_size=4 [02:20:49]MH_SAM_APDU [02:20:49]CAPDU: 80 13 00 00 [02:20:49]Write to MH i2c: E2 08 00 03 40 80 13 00 00 00 00 00 00 BF [02:20:49]Write i2c OK [02:20:49]MH_I2C_Read... [02:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:20:49]Read from MH i2c: E2 [02:20:49]MH_I2C_Read... [02:20:49]Read from MH i2c: E2 62 00 [02:20:49]MH_I2C_Read... [02:20:49]Read from MH i2c: E2 62 00 03 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3F F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [02:20:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3F F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:20:49]wFMCommunicate OK [02:20:49]SAM_PROTO_GetFieldsCounters done [02:20:49]requested_item shift.num is exist - process it [02:20:49]requested_item shift.opened is exist - process it [02:20:49]req_shift_opened [02:20:49]FM_GetShiftState [02:20:49]SAM_PROTO_GetShiftState [02:20:49]wFMCommunicate request_size=4 [02:20:49]MH_SAM_APDU [02:20:49]CAPDU: 80 13 01 00 [02:20:49]Write to MH i2c: E2 08 00 04 40 80 13 01 00 00 00 00 00 C1 [02:20:49]Write i2c OK [02:20:49]MH_I2C_Read... [02:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:49]Read from MH i2c: E2 [02:20:49]MH_I2C_Read... [02:20:49]Read from MH i2c: E2 0E 00 [02:20:49]MH_I2C_Read... [02:20:49]Read from MH i2c: E2 0E 00 04 40 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 49 [02:20:49]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [02:20:49]wFMCommunicate OK [02:20:49]SAM_PROTO_GetShiftState done [02:20:49]FM_GetShiftState done [02:20:49]req_shift_opened done [02:20:49]requested_item shift.open_date is exist - process it [02:20:49]req_shift_open_date [02:20:49]req_shift_open_date done [02:20:49]produce_requested_data done [02:20:49]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63551,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [02:20:49]process_action_free close_receipt [02:20:49]json_value_free [02:20:49]json_value_free done [02:20:49]process_json_proto returns [02:20:49]Send response to host [02:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63551,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [02:20:49]free response buf [02:20:49]execute_script done [02:20:49]execute_script returns [02:20:49]free content buf [02:20:49]Sock 9.Close socket [02:20:49]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:25]ConnectInit Can't connect to host [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]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:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]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:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:17]accept exits with 7 [02:50:17]New connection [02:50:17]New thread 3066633572 created [02:50:17]Thread 3066490212 joined [02:50:17]Waiting for new connection... [02:50:17] Sock 7.Parse request [02:50:17]Sock 7.Check first char [02:50:17]Sock 7.First char is OK [02:50:17]request: POST /json_proto HTTP/1.0 [02:50:17]Method: POST [02:50:17]URL: /json_proto [02:50:17]Method is POST - this is cgi request [02:50:17]url: /json_proto [02:50:17]query_string will be loaded in cgi processing [02:50:17]execute_cgi json_proto POST (null) [02:50:17]execute_cgi path=json_proto method=POST [02:50:17]POST find Content-Length [02:50:17]Host: 172.17.42.132:8080 [02:50:17]Content-Length: 620 [02:50:17]Content-Type: application/json [02:50:17] [02:50:17]POST finish read [02:50:17]Found Content-Length = 620 [02:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47857", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:17]execute_script... [02:50:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47857", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:17]POST & json_proto [02:50:17]process_json_proto [02:50:17]json parsed OK: [02:50:17]protocol is kg_v1.0 [02:50:17]action value=close_receipt [02:50:17]process_action close_receipt [02:50:17]cmd_close_receipt [02:50:17]MH_GetDate [02:50:17]Write to MH i2c: F0 00 00 05 40 34 [02:50:17]Write i2c OK [02:50:17]MH_I2C_Read... [02:50:17]Read from MH i2c: F0 [02:50:17]MH_I2C_Read... [02:50:17]Read from MH i2c: F0 09 00 [02:50:17]MH_I2C_Read... [02:50:17]Read from MH i2c: F0 09 00 05 40 00 72 07 1B 67 4C DF 56 66 1F [02:50:17]GetLastDocTimeStamp 1729822854 [02:50:17]current date 1729824626 [02:50:17]FM_GetShiftState [02:50:17]SAM_PROTO_GetShiftState [02:50:17]wFMCommunicate request_size=4 [02:50:17]MH_SAM_APDU [02:50:17]CAPDU: 80 13 01 00 [02:50:17]Write to MH i2c: E2 08 00 06 40 80 13 01 00 00 00 00 00 C3 [02:50:17]Write i2c OK [02:50:17]MH_I2C_Read... [02:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:17]Read from MH i2c: E2 [02:50:17]MH_I2C_Read... [02:50:17]Read from MH i2c: E2 0E 00 [02:50:17]MH_I2C_Read... [02:50:17]Read from MH i2c: E2 0E 00 06 40 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 4B [02:50:17]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [02:50:17]wFMCommunicate OK [02:50:17]SAM_PROTO_GetShiftState done [02:50:17]FM_GetShiftState done [02:50:17]opened in 1729815320 [02:50:17]opened+sec_in_day 1729901720 [02:50:17]quantity*price = 14400 [02:50:17]sum+1 = 14401 [02:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 17 25.10.2024 02:50 Смена: 548 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63552 ФПД: 146878439920704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T025026&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63552&fm=146878439920704&tin=02508201610067®Number=0000000000091619&sum=14400 0 [02:50:18]StoreToDocumentArchive [02:50:18]shift 548 fd 63552 [02:50:18]save to /storage/0548/doc_00063552 [02:50:18]save last doc name /storage/0548/doc_00063552 to /storage/kkm_last_doc_name [02:50:18]save OK [02:50:18]Clear old archive folders... [02:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:50:18]tlvbuf is 00C2CAD0 [02:50:18]SAM_PROTO_ClearQueue [02:50:18]wFMCommunicate request_size=4 [02:50:18]MH_SAM_APDU [02:50:18]CAPDU: 80 09 00 00 [02:50:18]Write to MH i2c: E2 08 00 13 40 80 09 00 00 00 00 00 00 C5 [02:50:18]Write i2c OK [02:50:18]MH_I2C_Read... [02:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:50:18]Read from MH i2c: E2 [02:50:18]MH_I2C_Read... [02:50:18]Read from MH i2c: E2 03 00 [02:50:18]MH_I2C_Read... [02:50:18]Read from MH i2c: E2 03 00 13 40 00 90 00 C7 [02:50:18]RAPDU: 90 00 [02:50:18]wFMCommunicate OK [02:50:18]SAM_PROTO_ClearQueue done [02:50:18]KKMCreateOFDPacket [02:50:18]OFDProtocolAddRootSTLVToBuf [02:50:18]FM_MakeSignedData [02:50:18]FM_MakeSignedData [02:50:18]SAM_PROTO_SignData [02:50:18]wFMCommunicate request_size=4 [02:50:18]MH_SAM_APDU [02:50:18]CAPDU: 80 0D 01 02 [02:50:18]Write to MH i2c: E2 08 00 14 40 80 0D 01 02 00 00 00 00 CD [02:50:18]Write i2c OK [02:50:18]MH_I2C_Read... [02:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:50:18]Read from MH i2c: E2 [02:50:18]MH_I2C_Read... [02:50:18]Read from MH i2c: E2 03 00 [02:50:18]MH_I2C_Read... [02:50:18]Read from MH i2c: E2 03 00 14 40 00 90 00 C8 [02:50:18]RAPDU: 90 00 [02:50:18]wFMCommunicate OK [02:50:18]wFMCommunicate request_size=255 [02:50:18]MH_SAM_APDU [02:50:18]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 72 07 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [02:50:18]Write to MH i2c: E2 02 01 15 40 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 72 07 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 6A [02:50:18]Write i2c OK [02:50:18]MH_I2C_Read... [02:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:19]Read from MH i2c: E2 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: E2 03 00 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: E2 03 00 15 40 00 90 00 C9 [02:50:19]RAPDU: 90 00 [02:50:19]wFMCommunicate OK [02:50:19]wFMCommunicate request_size=32 [02:50:19]MH_SAM_APDU [02:50:19]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 40 F8 00 00 35 04 06 00 85 95 CD 3C 94 40 [02:50:19]Write to MH i2c: E2 23 00 16 40 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 40 F8 00 00 35 04 06 00 85 95 CD 3C 94 40 00 00 62 [02:50:19]Write i2c OK [02:50:19]MH_I2C_Read... [02:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:19]Read from MH i2c: E2 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: E2 03 00 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: E2 03 00 16 40 00 90 00 CA [02:50:19]RAPDU: 90 00 [02:50:19]wFMCommunicate OK [02:50:19]wFMCommunicate request_size=4 [02:50:19]MH_SAM_APDU [02:50:19]CAPDU: 80 0D 03 02 [02:50:19]Write to MH i2c: E2 08 00 17 40 80 0D 03 02 00 00 00 00 D2 [02:50:19]Write i2c OK [02:50:19]MH_I2C_Read... [02:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:50:19]Read from MH i2c: E2 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: E2 0B 00 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: E2 0B 00 17 40 00 47 E3 CC 68 5F 79 C4 02 90 00 CF [02:50:19]RAPDU: 47 E3 CC 68 5F 79 C4 02 90 00 [02:50:19]wFMCommunicate OK [02:50:19]SAM_PROTO_SignData done [02:50:19]FM_MakeSignedData done [02:50:19]CreateOFDProtocolMessage [02:50:19]wFMCommunicate request_size=4 [02:50:19]MH_SAM_APDU [02:50:19]CAPDU: 80 11 00 00 [02:50:19]Write to MH i2c: E2 08 00 18 40 80 11 00 00 00 00 00 00 D2 [02:50:19]Write i2c OK [02:50:19]MH_I2C_Read... [02:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:19]Read from MH i2c: E2 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: E2 17 00 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: E2 17 00 18 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 2B [02:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:50:19]wFMCommunicate OK [02:50:19]CreateOFDProtocolMessage done [02:50:19]OFDSenderStorePacket 63552 [02:50:19]StoreOFDPacket docnum=63552 [02:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 AA E6 1D 01 D5 0A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 72 07 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 40 F8 00 00 35 04 06 00 85 95 CD 3C 94 40 47 E3 CC 68 5F 79 C4 02 [02:50:19]CheckFolder [02:50:19]dirname=/storage/ofd_packets [02:50:19]CheckFolder done [02:50:19]ProducePacketName [02:50:19]name=ofd_packets/00063552 [02:50:19]NVStorageSaveData ofd_packets/00063552 [02:50:19]File name is /storage/ofd_packets/00063552 [02:50:19]Write 323 bytes [02:50:19]NVStorageSaveData done [02:50:19]OFDSenderStorePacket done [02:50:19]KKMCreateOFDPacket done [02:50:19]NVStorageSaveData kkm_last_timestamp [02:50:19]File name is /storage/kkm_last_timestamp [02:50:19]Write 4 bytes [02:50:19]NVStorageSaveData done [02:50:19]ExternCall_PrintAddStr [02:50:19]wPrintStart [02:50:19]Write to MH i2c: 01 00 00 19 40 59 [02:50:19]Write i2c OK [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: 01 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: 01 07 00 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: 01 07 00 19 40 00 00 00 00 00 FF 0F 6E [02:50:19]RasterBufferAndPrint [02:50:19]line Счет N : (3)47857 [02:50:19]line ИНН: 02508201610067 [02:50:19]line Контрольно-Кассовый Чек [02:50:19]line ПРОДАЖА [02:50:19]line Товар: 48743570 [02:50:19]line Сигареты Winston XStyle Blue [02:50:19]line 1.000 * 144.00 [02:50:19]line = 144.00 [02:50:19]line НДС 12% НСП 1% [02:50:19]line > о реализуемом товаре [02:50:19]line ИТОГО: 144.00 [02:50:19]line НСП 1% : 1.27 [02:50:19]line НДС 12% : 15.29 [02:50:19]line Наличными: 144.00 [02:50:19]line Безнал.: 0.00 [02:50:19]line Место: АЗС № 86 "Партнер Нефть" [02:50:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:50:19]line СНО: Общий режим [02:50:19]line Чек 17 25.10.2024 02:50 [02:50:19]line Смена: 548 ФФД: 1.0 [02:50:19]line ЗНМ: 0300000154 [02:50:19]line РНМ: 0000000000091619 [02:50:19]line Версия ККМ: 001 [02:50:19]line ФМ: 0000000000874676 [02:50:19]line ФД: 63552 [02:50:19]line ФПД: 146878439920704 [02:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T025026&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63552&fm=146878439920704&tin=02508201610067®Number=0000000000091619&sum=14400 [02:50:19]line 0 [02:50:19]written 0, free lines is 4095 [02:50:19]OFD Sender: Processing packet 63552 [packets to send 232, broken 231] [02:50:19]ProducePacketName [02:50:19]name=ofd_packets/00063552 [02:50:19]OFD Sender: To server: pG, [02:50:19]CommunicateWithHost lk.salyk.kg:30040 [02:50:19]ConnectInit lk.salyk.kg [02:50:19]Connected sock=10 [02:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 AA E6 1D 01 D5 0A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 72 07 1B 67 0E 04 04 00 24 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 40 F8 00 00 35 04 06 00 85 95 CD 3C 94 40 47 E3 CC 68 5F 79 C4 02 [02:50:19]Write to MH i2c: 01 00 00 41 40 81 [02:50:19]Write i2c OK [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: 01 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: 01 07 00 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: 01 07 00 41 40 00 00 00 00 00 27 0D BC [02:50:19]RasterBufferAndPrint [02:50:19]line [02:50:19]line [02:50:19]line [02:50:19]line [02:50:19]line [02:50:19]written 0, free lines is 3373 [02:50:19]MH_Cut [02:50:19]Write to MH i2c: D1 01 00 48 40 01 5A [02:50:19]Write i2c OK [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: D1 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: D1 01 00 [02:50:19]MH_I2C_Read... [02:50:19]Read from MH i2c: D1 01 00 48 40 00 59 [02:50:19]Write to MH i2c: 01 00 00 49 40 89 [02:50:19]Write i2c OK [02:50:19]MH_I2C_Read... [02:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 95 2E 47 00 99 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 34 36 37 36 10 04 04 00 40 F8 00 00 F4 03 04 00 64 B1 1A 67 B6 04 01 00 00 E1 8B DD 42 9F 63 12 9D [02:50:19]CommunicateWithHost err = 0 [02:50:19]CheckOFDResponse [02:50:19]1017 (14) - 77093643461234 [02:50:19]1041 (16) - 0000000000874676 [02:50:19]1040 (4) - 63552 [02:50:19]1012 (4) - 24.10.2024 20:43 [02:50:19]1206 (1) - 0 [02:50:19]OFD Sender: Remove packet 63552 [02:50:19]ProducePacketName [02:50:19]name=ofd_packets/00063552 [02:50:19]NVStorageDeleteData [02:50:20]OFD Sender: No OFD packet to send [02:50:20]*** Cut start [02:50:20]*** Partial cut [02:50:20]*** CUTSNS_PIN = 1 [02:50:20]*** CUTSNS_PIN = 0 [02:50:20]*** Brake cut motor [02:50:20]Read from MH i2c: 01 [02:50:20]MH_I2C_Read... [02:50:20]*** Stop cut motor [02:50:20]*** Cut end [02:50:20]Read from MH i2c: 01 07 00 [02:50:20]MH_I2C_Read... [02:50:20]Read from MH i2c: 01 07 00 49 40 00 00 00 00 00 FF 0F 9E [02:50:20]process_action close_receipt done [02:50:20]requested_data is exist [02:50:20]produce_requested_data [02:50:20]requested_item fm.sn is exist - process it [02:50:20]wFMCommunicate request_size=4 [02:50:20]MH_SAM_APDU [02:50:20]CAPDU: 80 11 00 00 [02:50:20]Write to MH i2c: E2 08 00 4A 40 80 11 00 00 00 00 00 00 04 [02:50:20]Write i2c OK [02:50:20]MH_I2C_Read... [02:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:20]Read from MH i2c: E2 [02:50:20]MH_I2C_Read... [02:50:20]Read from MH i2c: E2 17 00 [02:50:20]MH_I2C_Read... [02:50:20]Read from MH i2c: E2 17 00 4A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5D [02:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [02:50:20]wFMCommunicate OK [02:50:20]requested_item fd.num is exist - process it [02:50:20]SAM_PROTO_GetFieldsCounters [02:50:20]wFMCommunicate request_size=4 [02:50:20]MH_SAM_APDU [02:50:20]CAPDU: 80 13 00 00 [02:50:20]Write to MH i2c: E2 08 00 4B 40 80 13 00 00 00 00 00 00 07 [02:50:20]Write i2c OK [02:50:20]MH_I2C_Read... [02:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:21]Read from MH i2c: E2 [02:50:21]MH_I2C_Read... [02:50:21]Read from MH i2c: E2 62 00 [02:50:21]MH_I2C_Read... [02:50:21]Read from MH i2c: E2 62 00 4B 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 40 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [02:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 40 F8 00 00 0E 04 04 00 24 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:50:21]wFMCommunicate OK [02:50:21]SAM_PROTO_GetFieldsCounters done [02:50:21]requested_item shift.num is exist - process it [02:50:21]requested_item shift.opened is exist - process it [02:50:21]req_shift_opened [02:50:21]FM_GetShiftState [02:50:21]SAM_PROTO_GetShiftState [02:50:21]wFMCommunicate request_size=4 [02:50:21]MH_SAM_APDU [02:50:21]CAPDU: 80 13 01 00 [02:50:21]Write to MH i2c: E2 08 00 4C 40 80 13 01 00 00 00 00 00 09 [02:50:21]Write i2c OK [02:50:21]MH_I2C_Read... [02:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:21]Read from MH i2c: E2 [02:50:21]MH_I2C_Read... [02:50:21]Read from MH i2c: E2 0E 00 [02:50:21]MH_I2C_Read... [02:50:21]Read from MH i2c: E2 0E 00 4C 40 00 09 00 01 18 E3 1A 67 00 00 00 00 90 00 91 [02:50:21]RAPDU: 09 00 01 18 E3 1A 67 00 00 00 00 90 00 [02:50:21]wFMCommunicate OK [02:50:21]SAM_PROTO_GetShiftState done [02:50:21]FM_GetShiftState done [02:50:21]req_shift_opened done [02:50:21]requested_item shift.open_date is exist - process it [02:50:21]req_shift_open_date [02:50:21]req_shift_open_date done [02:50:21]produce_requested_data done [02:50:21]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63552,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320} [02:50:21]process_action_free close_receipt [02:50:21]json_value_free [02:50:21]json_value_free done [02:50:21]process_json_proto returns [02:50:21]Send response to host [02:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63552,"shift.num":548,"shift.opened":1,"shift.open_date":1729815320}}} [02:50:21]free response buf [02:50:21]execute_script done [02:50:21]execute_script returns [02:50:21]free content buf [02:50:21]Sock 7.Close socket [02:50:21]Sock 7.Thread stoped [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send