[03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:36]accept exits with 9 [06:40:36]New connection [06:40:36]New thread 3066871140 created [06:40:36]Thread 3067014500 joined [06:40:36]Waiting for new connection... [06:40:36] Sock 9.Parse request [06:40:36]Sock 9.Check first char [06:40:36]Sock 9.First char is OK [06:40:36]request: POST /json_proto HTTP/1.0 [06:40:36]Method: POST [06:40:36]URL: /json_proto [06:40:36]Method is POST - this is cgi request [06:40:36]url: /json_proto [06:40:36]query_string will be loaded in cgi processing [06:40:36]execute_cgi json_proto POST (null) [06:40:36]execute_cgi path=json_proto method=POST [06:40:36]POST find Content-Length [06:40:36]Host: 172.17.35.3:8080 [06:40:36]Content-Length: 808 [06:40:36]Content-Type: application/json [06:40:36] [06:40:36]POST finish read [06:40:36]Found Content-Length = 808 [06:40:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:36]execute_script... [06:40:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:36]POST & json_proto [06:40:36]process_json_proto [06:40:36]json parsed OK: [06:40:36]protocol is kg_v1.0 [06:40:36]action value=close_receipt [06:40:36]process_action close_receipt [06:40:36]cmd_close_receipt [06:40:36]MH_GetDate [06:40:36]Write to MH i2c: F0 00 00 B9 98 40 [06:40:36]Write i2c OK [06:40:36]MH_I2C_Read... [06:40:36]Read from MH i2c: F0 [06:40:36]MH_I2C_Read... [06:40:36]Read from MH i2c: F0 09 00 [06:40:36]MH_I2C_Read... [06:40:36]Read from MH i2c: F0 09 00 B9 98 00 03 86 17 66 2B 11 66 64 55 [06:40:36]GetLastDocTimeStamp 1712796922 [06:40:36]current date 1712817667 [06:40:36]FM_GetShiftState [06:40:36]SAM_PROTO_GetShiftState [06:40:36]wFMCommunicate request_size=4 [06:40:36]MH_SAM_APDU [06:40:36]CAPDU: 80 13 01 00 [06:40:36]Write to MH i2c: E2 08 00 BA 98 80 13 01 00 00 00 00 00 CF [06:40:36]Write i2c OK [06:40:36]MH_I2C_Read... [06:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:36]Read from MH i2c: E2 [06:40:36]MH_I2C_Read... [06:40:36]Read from MH i2c: E2 0E 00 [06:40:36]MH_I2C_Read... [06:40:36]Read from MH i2c: E2 0E 00 BA 98 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 19 [06:40:36]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [06:40:36]wFMCommunicate OK [06:40:36]SAM_PROTO_GetShiftState done [06:40:36]FM_GetShiftState done [06:40:36]opened in 1712795538 [06:40:36]opened+sec_in_day 1712881938 [06:40:36]quantity*price = 100017 [06:40:36]sum+1 = 100018 [06:40:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.17 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.17 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 8 11.04.2024 06:41 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 27121 ФПД: 187556448695690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T064107&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27121&fm=187556448695690&tin=02508201610067®Number=0000000000091578&sum=100017 [06:40:37]StoreToDocumentArchive [06:40:37]shift 317 fd 27121 [06:40:37]save to /storage/0317/doc_00027121 [06:40:37]save last doc name /storage/0317/doc_00027121 to /storage/kkm_last_doc_name [06:40:37]save OK [06:40:37]Clear old archive folders... [06:40:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:40:37]tlvbuf is 00F51290 [06:40:37]SAM_PROTO_ClearQueue [06:40:37]wFMCommunicate request_size=4 [06:40:37]MH_SAM_APDU [06:40:37]CAPDU: 80 09 00 00 [06:40:37]Write to MH i2c: E2 08 00 C7 98 80 09 00 00 00 00 00 00 D1 [06:40:37]Write i2c OK [06:40:37]MH_I2C_Read... [06:40:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:37]Read from MH i2c: E2 [06:40:37]MH_I2C_Read... [06:40:37]Read from MH i2c: E2 03 00 [06:40:37]MH_I2C_Read... [06:40:37]Read from MH i2c: E2 03 00 C7 98 00 90 00 D3 [06:40:37]RAPDU: 90 00 [06:40:37]wFMCommunicate OK [06:40:37]SAM_PROTO_ClearQueue done [06:40:37]KKMCreateOFDPacket [06:40:37]OFDProtocolAddRootSTLVToBuf [06:40:37]FM_MakeSignedData [06:40:37]FM_MakeSignedData [06:40:37]SAM_PROTO_SignData [06:40:37]wFMCommunicate request_size=4 [06:40:37]MH_SAM_APDU [06:40:37]CAPDU: 80 0D 01 02 [06:40:37]Write to MH i2c: E2 08 00 C8 98 80 0D 01 02 00 00 00 00 D9 [06:40:37]Write i2c OK [06:40:37]MH_I2C_Read... [06:40:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:37]Read from MH i2c: E2 [06:40:37]MH_I2C_Read... [06:40:37]Read from MH i2c: E2 03 00 [06:40:37]MH_I2C_Read... [06:40:37]Read from MH i2c: E2 03 00 C8 98 00 90 00 D4 [06:40:37]RAPDU: 90 00 [06:40:37]wFMCommunicate OK [06:40:37]wFMCommunicate request_size=255 [06:40:37]MH_SAM_APDU [06:40:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 03 86 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F1 69 00 00 35 04 06 00 [06:40:37]Write to MH i2c: E2 02 01 C9 98 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 03 86 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F1 69 00 00 35 04 06 00 00 00 5C [06:40:37]Write i2c OK [06:40:37]MH_I2C_Read... [06:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:38]Read from MH i2c: E2 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 03 00 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 03 00 C9 98 00 90 00 D5 [06:40:38]RAPDU: 90 00 [06:40:38]wFMCommunicate OK [06:40:38]wFMCommunicate request_size=11 [06:40:38]MH_SAM_APDU [06:40:38]CAPDU: 80 0D 02 02 06 AA 94 E3 7F F5 8A [06:40:38]Write to MH i2c: E2 0E 00 CA 98 80 0D 02 02 06 00 AA 94 E3 7F F5 8A 00 00 07 [06:40:38]Write i2c OK [06:40:38]MH_I2C_Read... [06:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:38]Read from MH i2c: E2 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 03 00 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 03 00 CA 98 00 90 00 D6 [06:40:38]RAPDU: 90 00 [06:40:38]wFMCommunicate OK [06:40:38]wFMCommunicate request_size=4 [06:40:38]MH_SAM_APDU [06:40:38]CAPDU: 80 0D 03 02 [06:40:38]Write to MH i2c: E2 08 00 CB 98 80 0D 03 02 00 00 00 00 DE [06:40:38]Write i2c OK [06:40:38]MH_I2C_Read... [06:40:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:38]Read from MH i2c: E2 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 0B 00 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 0B 00 CB 98 00 E3 5E 58 1D 5C 0D 68 FF 90 00 65 [06:40:38]RAPDU: E3 5E 58 1D 5C 0D 68 FF 90 00 [06:40:38]wFMCommunicate OK [06:40:38]SAM_PROTO_SignData done [06:40:38]FM_MakeSignedData done [06:40:38]CreateOFDProtocolMessage [06:40:38]wFMCommunicate request_size=4 [06:40:38]MH_SAM_APDU [06:40:38]CAPDU: 80 11 00 00 [06:40:38]Write to MH i2c: E2 08 00 CC 98 80 11 00 00 00 00 00 00 DE [06:40:38]Write i2c OK [06:40:38]MH_I2C_Read... [06:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:38]Read from MH i2c: E2 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 17 00 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 17 00 CC 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 36 [06:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [06:40:38]wFMCommunicate OK [06:40:38]CreateOFDProtocolMessage done [06:40:38]OFDSenderStorePacket 27121 [06:40:38]StoreOFDPacket docnum=27121 [06:40:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 2C C5 08 01 D6 FC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 03 86 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F1 69 00 00 35 04 06 00 AA 94 E3 7F F5 8A E3 5E 58 1D 5C 0D 68 FF [06:40:38]CheckFolder [06:40:38]dirname=/storage/ofd_packets [06:40:38]CheckFolder done [06:40:38]ProducePacketName [06:40:38]name=ofd_packets/00027121 [06:40:38]NVStorageSaveData ofd_packets/00027121 [06:40:38]File name is /storage/ofd_packets/00027121 [06:40:38]Write 302 bytes [06:40:38]NVStorageSaveData done [06:40:38]OFDSenderStorePacket done [06:40:38]KKMCreateOFDPacket done [06:40:38]NVStorageSaveData kkm_last_timestamp [06:40:38]File name is /storage/kkm_last_timestamp [06:40:38]Write 4 bytes [06:40:38]NVStorageSaveData done [06:40:38]ExternCall_PrintAddStr [06:40:38]wPrintStart [06:40:38]Write to MH i2c: 01 00 00 CD 98 65 [06:40:38]Write i2c OK [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: 01 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: 01 07 00 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: 01 07 00 CD 98 00 00 00 00 00 FF 0F 7A [06:40:38]RasterBufferAndPrint [06:40:38]line Счет N : (1)359867 [06:40:38]line ИНН: 02508201610067 [06:40:38]line Контрольно-Кассовый Чек [06:40:38]line ПРОДАЖА [06:40:38]line ТРК (МРК, ГНК) : 21 [06:40:38]line Товар: 2710194210 [06:40:38]line ДТ(л)-К-5 [06:40:38]line 13.930 * 71.80 [06:40:38]line = 1000.17 [06:40:38]line НДС 12% НСП 1% [06:40:38]line > о реализуемом товаре [06:40:38]line ИТОГО: 1000.17 [06:40:38]line НСП 1% : 8.85 [06:40:38]line НДС 12% : 106.21 [06:40:38]line Наличными: 0.00 [06:40:38]line Безнал.: 1000.17 [06:40:38]line Место: АЗС № 122 "Партнер Нефть" [06:40:38]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [06:40:38]line СНО: Общий режим [06:40:38]line Чек 8 11.04.2024 06:41 [06:40:38]line Смена: 317 ФФД: 1.0 [06:40:38]line ЗНМ: 0300000147 [06:40:38]line РНМ: 0000000000091578 [06:40:38]line Версия ККМ: 001 [06:40:38]line Платежная система: O! деньги [06:40:38]line ФМ: 0000000000874657 [06:40:38]line ФД: 27121 [06:40:38]line ФПД: 187556448695690 [06:40:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T064107&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27121&fm=187556448695690&tin=02508201610067®Number=0000000000091578&sum=100017 [06:40:38]OFD Sender: Processing packet 27121 [packets to send 44, broken 43] [06:40:38]ProducePacketName [06:40:38]name=ofd_packets/00027121 [06:40:38]OFD Sender: To server: pG, [06:40:38]CommunicateWithHost lk.salyk.kg:30040 [06:40:38]ConnectInit lk.salyk.kg [06:40:38]written 0, free lines is 4095 [06:40:38]Connected sock=10 [06:40: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 35 37 10 01 00 00 2C C5 08 01 D6 FC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 03 86 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F1 69 00 00 35 04 06 00 AA 94 E3 7F F5 8A E3 5E 58 1D 5C 0D 68 FF [06:40: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 35 37 4F 00 00 00 D0 C8 47 00 5D 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 35 37 10 04 04 00 F1 69 00 00 F4 03 04 00 64 2D 17 66 B6 04 01 00 00 5E E9 6B 4A 25 9E 20 22 [06:40:38]CommunicateWithHost err = 0 [06:40:38]CheckOFDResponse [06:40:38]1017 (14) - 77093643461234 [06:40:38]1041 (16) - 0000000000874657 [06:40:38]1040 (4) - 27121 [06:40:38]1012 (4) - 11.04.2024 00:23 [06:40:38]1206 (1) - 0 [06:40:38]OFD Sender: Remove packet 27121 [06:40:38]ProducePacketName [06:40:38]name=ofd_packets/00027121 [06:40:38]NVStorageDeleteData [06:40:39]Write to MH i2c: 01 00 00 F7 98 8F [06:40:39]Write i2c OK [06:40:39]MH_I2C_Read... [06:40:39]Read from MH i2c: 01 [06:40:39]MH_I2C_Read... [06:40:39]Read from MH i2c: 01 07 00 [06:40:39]MH_I2C_Read... [06:40:39]Read from MH i2c: 01 07 00 F7 98 00 00 00 00 00 79 0C 1B [06:40:39]RasterBufferAndPrint [06:40:39]line [06:40:39]line [06:40:39]line [06:40:39]line [06:40:39]line [06:40:39]written 0, free lines is 3198 [06:40:39]MH_Cut [06:40:39]Write to MH i2c: D1 01 00 FE 98 01 68 [06:40:39]Write i2c OK [06:40:39]MH_I2C_Read... [06:40:39]Read from MH i2c: D1 [06:40:39]MH_I2C_Read... [06:40:39]Read from MH i2c: D1 01 00 [06:40:39]MH_I2C_Read... [06:40:39]Read from MH i2c: D1 01 00 FE 98 00 67 [06:40:39]Write to MH i2c: 01 00 00 FF 98 97 [06:40:39]Write i2c OK [06:40:39]MH_I2C_Read... [06:40:39]OFD Sender: No OFD packet to send [06:40:40]*** Cut start [06:40:40]*** Partial cut [06:40:40]*** CUTSNS_PIN = 1 [06:40:40]*** CUTSNS_PIN = 0 [06:40:40]*** Brake cut motor [06:40:41]Read from MH i2c: 01 [06:40:41]MH_I2C_Read... [06:40:41]*** Stop cut motor [06:40:41]*** Cut end [06:40:41]Read from MH i2c: 01 07 00 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: 01 07 00 FF 98 00 00 00 00 00 FF 0F AC [06:40:41]process_action close_receipt done [06:40:41]requested_data is exist [06:40:41]produce_requested_data [06:40:41]requested_item fm.sn is exist - process it [06:40:41]wFMCommunicate request_size=4 [06:40:41]MH_SAM_APDU [06:40:41]CAPDU: 80 11 00 00 [06:40:41]Write to MH i2c: E2 08 00 00 99 80 11 00 00 00 00 00 00 13 [06:40:41]Write i2c OK [06:40:41]MH_I2C_Read... [06:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:41]Read from MH i2c: E2 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: E2 17 00 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: E2 17 00 00 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 6B [06:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [06:40:41]wFMCommunicate OK [06:40:41]requested_item fd.num is exist - process it [06:40:41]SAM_PROTO_GetFieldsCounters [06:40:41]wFMCommunicate request_size=4 [06:40:41]MH_SAM_APDU [06:40:41]CAPDU: 80 13 00 00 [06:40:41]Write to MH i2c: E2 08 00 01 99 80 13 00 00 00 00 00 00 16 [06:40:41]Write i2c OK [06:40:41]MH_I2C_Read... [06:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:41]Read from MH i2c: E2 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: E2 62 00 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: E2 62 00 01 99 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F1 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [06:40: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F1 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:40:41]wFMCommunicate OK [06:40:41]SAM_PROTO_GetFieldsCounters done [06:40:41]requested_item shift.num is exist - process it [06:40:41]requested_item shift.opened is exist - process it [06:40:41]req_shift_opened [06:40:41]FM_GetShiftState [06:40:41]SAM_PROTO_GetShiftState [06:40:41]wFMCommunicate request_size=4 [06:40:41]MH_SAM_APDU [06:40:41]CAPDU: 80 13 01 00 [06:40:41]Write to MH i2c: E2 08 00 02 99 80 13 01 00 00 00 00 00 18 [06:40:41]Write i2c OK [06:40:41]MH_I2C_Read... [06:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:41]Read from MH i2c: E2 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: E2 0E 00 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: E2 0E 00 02 99 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 62 [06:40:41]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [06:40:41]wFMCommunicate OK [06:40:41]SAM_PROTO_GetShiftState done [06:40:41]FM_GetShiftState done [06:40:41]req_shift_opened done [06:40:41]requested_item shift.open_date is exist - process it [06:40:41]req_shift_open_date [06:40:41]req_shift_open_date done [06:40:41]produce_requested_data done [06:40:41]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27121,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [06:40:41]process_action_free close_receipt [06:40:41]json_value_free [06:40:41]json_value_free done [06:40:41]process_json_proto returns [06:40:41]Send response to host [06:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27121,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [06:40:41]free response buf [06:40:41]execute_script done [06:40:41]execute_script returns [06:40:41]free content buf [06:40:41]Sock 9.Close socket [06:40:41]Sock 9.Thread stoped [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:49:56]accept exits with 8 [06:49:56]New connection [06:49:56]New thread 3067014500 created [06:49:56]Thread 3066871140 joined [06:49:56]Waiting for new connection... [06:49:56] Sock 8.Parse request [06:49:56]Sock 8.Check first char [06:49:56]Sock 8.First char is OK [06:49:56]request: POST /json_proto HTTP/1.0 [06:49:56]Method: POST [06:49:56]URL: /json_proto [06:49:56]Method is POST - this is cgi request [06:49:56]url: /json_proto [06:49:56]query_string will be loaded in cgi processing [06:49:56]execute_cgi json_proto POST (null) [06:49:56]execute_cgi path=json_proto method=POST [06:49:56]POST find Content-Length [06:49:56]Host: 172.17.35.3:8080 [06:49:56]Content-Length: 677 [06:49:56]Content-Type: application/json [06:49:56] [06:49:56]POST finish read [06:49:56]Found Content-Length = 677 [06:49:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:56]execute_script... [06:49:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:56]POST & json_proto [06:49:56]process_json_proto [06:49:56]json parsed OK: [06:49:56]protocol is kg_v1.0 [06:49:56]action value=close_receipt [06:49:56]process_action close_receipt [06:49:56]cmd_close_receipt [06:49:56]MH_GetDate [06:49:56]Write to MH i2c: F0 00 00 03 99 8B [06:49:56]Write i2c OK [06:49:56]MH_I2C_Read... [06:49:56]Read from MH i2c: F0 [06:49:56]MH_I2C_Read... [06:49:56]Read from MH i2c: F0 09 00 [06:49:56]MH_I2C_Read... [06:49:56]Read from MH i2c: F0 09 00 03 99 00 32 88 17 66 2B 11 66 64 D1 [06:49:56]GetLastDocTimeStamp 1712817667 [06:49:56]current date 1712818226 [06:49:56]FM_GetShiftState [06:49:56]SAM_PROTO_GetShiftState [06:49:56]wFMCommunicate request_size=4 [06:49:56]MH_SAM_APDU [06:49:56]CAPDU: 80 13 01 00 [06:49:56]Write to MH i2c: E2 08 00 04 99 80 13 01 00 00 00 00 00 1A [06:49:56]Write i2c OK [06:49:56]MH_I2C_Read... [06:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:56]Read from MH i2c: E2 [06:49:56]MH_I2C_Read... [06:49:56]Read from MH i2c: E2 0E 00 [06:49:56]MH_I2C_Read... [06:49:56]Read from MH i2c: E2 0E 00 04 99 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 64 [06:49:56]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [06:49:56]wFMCommunicate OK [06:49:56]SAM_PROTO_GetShiftState done [06:49:56]FM_GetShiftState done [06:49:56]opened in 1712795538 [06:49:56]opened+sec_in_day 1712881938 [06:49:56]quantity*price = 50022 [06:49:56]sum+1 = 50024 [06:49:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 9 11.04.2024 06:50 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27122 ФПД: 110663760487568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T065026&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27122&fm=110663760487568&tin=02508201610067®Number=0000000000091578&sum=50000 [06:49:57]StoreToDocumentArchive [06:49:57]shift 317 fd 27122 [06:49:57]save to /storage/0317/doc_00027122 [06:49:57]save last doc name /storage/0317/doc_00027122 to /storage/kkm_last_doc_name [06:49:57]save OK [06:49:57]Clear old archive folders... [06:49:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:49:57]tlvbuf is 00F3E540 [06:49:57]SAM_PROTO_ClearQueue [06:49:57]wFMCommunicate request_size=4 [06:49:57]MH_SAM_APDU [06:49:57]CAPDU: 80 09 00 00 [06:49:57]Write to MH i2c: E2 08 00 11 99 80 09 00 00 00 00 00 00 1C [06:49:57]Write i2c OK [06:49:57]MH_I2C_Read... [06:49:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:57]Read from MH i2c: E2 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 03 00 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 03 00 11 99 00 90 00 1E [06:49:57]RAPDU: 90 00 [06:49:57]wFMCommunicate OK [06:49:57]SAM_PROTO_ClearQueue done [06:49:57]KKMCreateOFDPacket [06:49:57]OFDProtocolAddRootSTLVToBuf [06:49:57]FM_MakeSignedData [06:49:57]FM_MakeSignedData [06:49:57]SAM_PROTO_SignData [06:49:57]wFMCommunicate request_size=4 [06:49:57]MH_SAM_APDU [06:49:57]CAPDU: 80 0D 01 02 [06:49:57]Write to MH i2c: E2 08 00 12 99 80 0D 01 02 00 00 00 00 24 [06:49:57]Write i2c OK [06:49:57]MH_I2C_Read... [06:49:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:57]Read from MH i2c: E2 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 03 00 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 03 00 12 99 00 90 00 1F [06:49:57]RAPDU: 90 00 [06:49:57]wFMCommunicate OK [06:49:57]wFMCommunicate request_size=255 [06:49:57]MH_SAM_APDU [06:49:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 32 88 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F2 69 00 00 35 04 06 00 64 [06:49:57]Write to MH i2c: E2 02 01 13 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 32 88 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F2 69 00 00 35 04 06 00 64 00 00 21 [06:49:57]Write i2c OK [06:49:57]MH_I2C_Read... [06:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:57]Read from MH i2c: E2 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 03 00 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 03 00 13 99 00 90 00 20 [06:49:57]RAPDU: 90 00 [06:49:57]wFMCommunicate OK [06:49:57]wFMCommunicate request_size=10 [06:49:57]MH_SAM_APDU [06:49:57]CAPDU: 80 0D 02 02 05 A5 EA 22 24 90 [06:49:57]Write to MH i2c: E2 0D 00 14 99 80 0D 02 02 05 00 A5 EA 22 24 90 00 00 96 [06:49:57]Write i2c OK [06:49:57]MH_I2C_Read... [06:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:57]Read from MH i2c: E2 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 03 00 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 03 00 14 99 00 90 00 21 [06:49:57]RAPDU: 90 00 [06:49:57]wFMCommunicate OK [06:49:57]wFMCommunicate request_size=4 [06:49:57]MH_SAM_APDU [06:49:57]CAPDU: 80 0D 03 02 [06:49:57]Write to MH i2c: E2 08 00 15 99 80 0D 03 02 00 00 00 00 29 [06:49:57]Write i2c OK [06:49:57]MH_I2C_Read... [06:49:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:57]Read from MH i2c: E2 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 0B 00 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 0B 00 15 99 00 8F 09 32 34 34 7F 40 B9 90 00 D4 [06:49:57]RAPDU: 8F 09 32 34 34 7F 40 B9 90 00 [06:49:57]wFMCommunicate OK [06:49:57]SAM_PROTO_SignData done [06:49:57]FM_MakeSignedData done [06:49:57]CreateOFDProtocolMessage [06:49:57]wFMCommunicate request_size=4 [06:49:57]MH_SAM_APDU [06:49:57]CAPDU: 80 11 00 00 [06:49:57]Write to MH i2c: E2 08 00 16 99 80 11 00 00 00 00 00 00 29 [06:49:57]Write i2c OK [06:49:57]MH_I2C_Read... [06:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:57]Read from MH i2c: E2 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 17 00 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: E2 17 00 16 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 81 [06:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [06:49:57]wFMCommunicate OK [06:49:57]CreateOFDProtocolMessage done [06:49:57]OFDSenderStorePacket 27122 [06:49:57]StoreOFDPacket docnum=27122 [06:49:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 64 E9 07 01 F6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 32 88 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F2 69 00 00 35 04 06 00 64 A5 EA 22 24 90 8F 09 32 34 34 7F 40 B9 [06:49:57]CheckFolder [06:49:57]dirname=/storage/ofd_packets [06:49:57]CheckFolder done [06:49:57]ProducePacketName [06:49:57]name=ofd_packets/00027122 [06:49:57]NVStorageSaveData ofd_packets/00027122 [06:49:57]File name is /storage/ofd_packets/00027122 [06:49:57]Write 301 bytes [06:49:57]NVStorageSaveData done [06:49:57]OFDSenderStorePacket done [06:49:57]KKMCreateOFDPacket done [06:49:57]NVStorageSaveData kkm_last_timestamp [06:49:57]File name is /storage/kkm_last_timestamp [06:49:57]Write 4 bytes [06:49:57]NVStorageSaveData done [06:49:57]ExternCall_PrintAddStr [06:49:57]wPrintStart [06:49:57]Write to MH i2c: 01 00 00 17 99 B0 [06:49:57]OFD Sender: Processing packet 27122 [packets to send 44, broken 43] [06:49:57]ProducePacketName [06:49:57]name=ofd_packets/00027122 [06:49:57]OFD Sender: To server: pG, [06:49:57]CommunicateWithHost lk.salyk.kg:30040 [06:49:57]ConnectInit lk.salyk.kg [06:49:57]Write i2c OK [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: 01 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: 01 07 00 [06:49:57]MH_I2C_Read... [06:49:57]Read from MH i2c: 01 07 00 17 99 00 00 00 00 00 FF 0F C5 [06:49:57]RasterBufferAndPrint [06:49:57]line Счет N : (1)359868 [06:49:57]line ИНН: 02508201610067 [06:49:57]line Контрольно-Кассовый Чек [06:49:57]line ПРОДАЖА [06:49:57]line ТРК (МРК, ГНК) : 61 [06:49:57]line Товар: 2710124130 [06:49:57]line Аи-92-К-5 [06:49:57]line 7.890 * 63.40 [06:49:57]line = 500.23 [06:49:57]line НДС 12% НСП 1% [06:49:57]line > о реализуемом товаре [06:49:57]line ОКРУГЛЕНИЕ: -0.23 [06:49:57]line ИТОГО: 500.00 [06:49:57]line Внесено: 500.00 [06:49:57]line СДАЧА: 0.00 [06:49:57]line НСП 1% : 4.43 [06:49:57]line НДС 12% : 53.12 [06:49:57]line Наличными: 500.00 [06:49:57]line Безнал.: 0.00 [06:49:57]line Место: АЗС № 122 "Партнер Нефть" [06:49:57]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [06:49:57]line СНО: Общий режим [06:49:57]line Чек 9 11.04.2024 06:50 [06:49:57]line Смена: 317 ФФД: 1.0 [06:49:57]line ЗНМ: 0300000147 [06:49:57]line РНМ: 0000000000091578 [06:49:57]line Версия ККМ: 001 [06:49:57]line ФМ: 0000000000874657 [06:49:57]line ФД: 27122 [06:49:57]line ФПД: 110663760487568 [06:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T065026&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27122&fm=110663760487568&tin=02508201610067®Number=0000000000091578&sum=50000 [06:49:58]Connected sock=10 [06:49: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 35 37 0F 01 00 00 64 E9 07 01 F6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 written 0, free lines is 4095 [06:49:58]31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 32 88 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F2 69 00 00 35 04 06 00 64 A5 EA 22 24 90 8F 09 32 34 34 7F 40 B9 [06:49: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 35 37 4F 00 00 00 8F CE 47 00 25 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F2 69 00 00 F4 03 04 00 93 2F 17 66 B6 04 01 00 00 0B 77 C6 0F 65 33 B4 71 [06:49:58]CommunicateWithHost err = 0 [06:49:58]CheckOFDResponse [06:49:58]1017 (14) - 77093643461234 [06:49:58]1041 (16) - 0000000000874657 [06:49:58]1040 (4) - 27122 [06:49:58]1012 (4) - 11.04.2024 00:32 [06:49:58]1206 (1) - 0 [06:49:58]OFD Sender: Remove packet 27122 [06:49:58]ProducePacketName [06:49:58]name=ofd_packets/00027122 [06:49:58]NVStorageDeleteData [06:49:58]Write to MH i2c: 01 00 00 42 99 DB [06:49:58]Write i2c OK [06:49:58]MH_I2C_Read... [06:49:58]Read from MH i2c: 01 [06:49:58]MH_I2C_Read... [06:49:58]Read from MH i2c: 01 07 00 [06:49:58]MH_I2C_Read... [06:49:58]Read from MH i2c: 01 07 00 42 99 00 00 00 00 00 65 0C 53 [06:49:58]RasterBufferAndPrint [06:49:58]line [06:49:58]line [06:49:58]line [06:49:58]line [06:49:58]line [06:49:58]written 0, free lines is 3177 [06:49:58]MH_Cut [06:49:58]Write to MH i2c: D1 01 00 49 99 01 B4 [06:49:58]Write i2c OK [06:49:58]MH_I2C_Read... [06:49:58]Read from MH i2c: D1 [06:49:58]MH_I2C_Read... [06:49:58]Read from MH i2c: D1 01 00 [06:49:58]MH_I2C_Read... [06:49:58]Read from MH i2c: D1 01 00 49 99 00 B3 [06:49:58]Write to MH i2c: 01 00 00 4A 99 E3 [06:49:58]Write i2c OK [06:49:58]MH_I2C_Read... [06:49:58]OFD Sender: No OFD packet to send [06:49:59]*** Cut start [06:49:59]*** Partial cut [06:49:59]*** CUTSNS_PIN = 1 [06:49:59]*** CUTSNS_PIN = 0 [06:50:00]*** Brake cut motor [06:50:00]Read from MH i2c: 01 [06:50:00]MH_I2C_Read... [06:50:00]*** Stop cut motor [06:50:00]*** Cut end [06:50:00]Read from MH i2c: 01 07 00 [06:50:00]MH_I2C_Read... [06:50:00]Read from MH i2c: 01 07 00 4A 99 00 00 00 00 00 FF 0F F8 [06:50:00]process_action close_receipt done [06:50:00]requested_data is exist [06:50:00]produce_requested_data [06:50:00]requested_item fm.sn is exist - process it [06:50:00]wFMCommunicate request_size=4 [06:50:00]MH_SAM_APDU [06:50:00]CAPDU: 80 11 00 00 [06:50:00]Write to MH i2c: E2 08 00 4B 99 80 11 00 00 00 00 00 00 5E [06:50:00]Write i2c OK [06:50:00]MH_I2C_Read... [06:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:00]Read from MH i2c: E2 [06:50:00]MH_I2C_Read... [06:50:00]Read from MH i2c: E2 17 00 [06:50:00]MH_I2C_Read... [06:50:00]Read from MH i2c: E2 17 00 4B 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B6 [06:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [06:50:00]wFMCommunicate OK [06:50:00]requested_item fd.num is exist - process it [06:50:00]SAM_PROTO_GetFieldsCounters [06:50:00]wFMCommunicate request_size=4 [06:50:00]MH_SAM_APDU [06:50:00]CAPDU: 80 13 00 00 [06:50:00]Write to MH i2c: E2 08 00 4C 99 80 13 00 00 00 00 00 00 61 [06:50:00]Write i2c OK [06:50:00]MH_I2C_Read... [06:50:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:50:00]Read from MH i2c: E2 [06:50:00]MH_I2C_Read... [06:50:00]Read from MH i2c: E2 62 00 [06:50:00]MH_I2C_Read... [06:50:00]Read from MH i2c: E2 62 00 4C 99 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F2 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [06:50: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F2 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:50:00]wFMCommunicate OK [06:50:00]SAM_PROTO_GetFieldsCounters done [06:50:00]requested_item shift.num is exist - process it [06:50:00]requested_item shift.opened is exist - process it [06:50:00]req_shift_opened [06:50:00]FM_GetShiftState [06:50:00]SAM_PROTO_GetShiftState [06:50:00]wFMCommunicate request_size=4 [06:50:00]MH_SAM_APDU [06:50:00]CAPDU: 80 13 01 00 [06:50:00]Write to MH i2c: E2 08 00 4D 99 80 13 01 00 00 00 00 00 63 [06:50:00]Write i2c OK [06:50:00]MH_I2C_Read... [06:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:00]Read from MH i2c: E2 [06:50:00]MH_I2C_Read... [06:50:00]Read from MH i2c: E2 0E 00 [06:50:00]MH_I2C_Read... [06:50:00]Read from MH i2c: E2 0E 00 4D 99 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 AD [06:50:00]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [06:50:00]wFMCommunicate OK [06:50:00]SAM_PROTO_GetShiftState done [06:50:00]FM_GetShiftState done [06:50:00]req_shift_opened done [06:50:00]requested_item shift.open_date is exist - process it [06:50:00]req_shift_open_date [06:50:00]req_shift_open_date done [06:50:00]produce_requested_data done [06:50:00]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27122,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [06:50:00]process_action_free close_receipt [06:50:00]json_value_free [06:50:00]json_value_free done [06:50:00]process_json_proto returns [06:50:00]Send response to host [06:50:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27122,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [06:50:00]free response buf [06:50:00]execute_script done [06:50:00]execute_script returns [06:50:00]free content buf [06:50:00]Sock 8.Close socket [06:50:00]Sock 8.Thread stoped [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:41]accept exits with 9 [07:07:41]New connection [07:07:41]New thread 3066871140 created [07:07:41]Thread 3067014500 joined [07:07:41]Waiting for new connection... [07:07:41] Sock 9.Parse request [07:07:41]Sock 9.Check first char [07:07:41]Sock 9.First char is OK [07:07:41]request: POST /json_proto HTTP/1.0 [07:07:41]Method: POST [07:07:41]URL: /json_proto [07:07:41]Method is POST - this is cgi request [07:07:41]url: /json_proto [07:07:41]query_string will be loaded in cgi processing [07:07:41]execute_cgi json_proto POST (null) [07:07:41]execute_cgi path=json_proto method=POST [07:07:41]POST find Content-Length [07:07:41]Host: 172.17.35.3:8080 [07:07:41]Content-Length: 678 [07:07:41]Content-Type: application/json [07:07:41] [07:07:41]POST finish read [07:07:41]Found Content-Length = 678 [07:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 11.200, "sum" : 710.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:41]execute_script... [07:07:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 11.200, "sum" : 710.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:41]POST & json_proto [07:07:41]process_json_proto [07:07:41]json parsed OK: [07:07:41]protocol is kg_v1.0 [07:07:41]action value=close_receipt [07:07:41]process_action close_receipt [07:07:41]cmd_close_receipt [07:07:41]MH_GetDate [07:07:41]Write to MH i2c: F0 00 00 4E 99 D6 [07:07:41]Write i2c OK [07:07:41]MH_I2C_Read... [07:07:41]Read from MH i2c: F0 [07:07:41]MH_I2C_Read... [07:07:41]Read from MH i2c: F0 09 00 [07:07:41]MH_I2C_Read... [07:07:41]Read from MH i2c: F0 09 00 4E 99 00 5B 8C 17 66 2B 11 66 64 49 [07:07:41]GetLastDocTimeStamp 1712818226 [07:07:41]current date 1712819291 [07:07:41]FM_GetShiftState [07:07:41]SAM_PROTO_GetShiftState [07:07:41]wFMCommunicate request_size=4 [07:07:41]MH_SAM_APDU [07:07:41]CAPDU: 80 13 01 00 [07:07:41]Write to MH i2c: E2 08 00 4F 99 80 13 01 00 00 00 00 00 65 [07:07:41]Write i2c OK [07:07:41]MH_I2C_Read... [07:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:41]Read from MH i2c: E2 [07:07:41]MH_I2C_Read... [07:07:41]Read from MH i2c: E2 0E 00 [07:07:41]MH_I2C_Read... [07:07:41]Read from MH i2c: E2 0E 00 4F 99 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 AF [07:07:41]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [07:07:41]wFMCommunicate OK [07:07:41]SAM_PROTO_GetShiftState done [07:07:41]FM_GetShiftState done [07:07:41]opened in 1712795538 [07:07:41]opened+sec_in_day 1712881938 [07:07:41]quantity*price = 71008 [07:07:41]sum+1 = 71009 [07:07:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 710.00 Внесено: 710.00 СДАЧА: 0.00 НСП 1% : 6.28 НДС 12% : 75.41 Наличными: 710.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 10 11.04.2024 07:08 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27123 ФПД: 44089163155799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T070811&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27123&fm=44089163155799&tin=02508201610067®Number=0000000000091578&sum=71000 [07:07:42]StoreToDocumentArchive [07:07:42]shift 317 fd 27123 [07:07:42]save to /storage/0317/doc_00027123 [07:07:42]save last doc name /storage/0317/doc_00027123 to /storage/kkm_last_doc_name [07:07:42]save OK [07:07:42]Clear old archive folders... [07:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:07:42]tlvbuf is 010BAFC0 [07:07:42]SAM_PROTO_ClearQueue [07:07:42]wFMCommunicate request_size=4 [07:07:42]MH_SAM_APDU [07:07:42]CAPDU: 80 09 00 00 [07:07:42]Write to MH i2c: E2 08 00 5C 99 80 09 00 00 00 00 00 00 67 [07:07:42]Write i2c OK [07:07:42]MH_I2C_Read... [07:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:42]Read from MH i2c: E2 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 03 00 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 03 00 5C 99 00 90 00 69 [07:07:42]RAPDU: 90 00 [07:07:42]wFMCommunicate OK [07:07:42]SAM_PROTO_ClearQueue done [07:07:42]KKMCreateOFDPacket [07:07:42]OFDProtocolAddRootSTLVToBuf [07:07:42]FM_MakeSignedData [07:07:42]FM_MakeSignedData [07:07:42]SAM_PROTO_SignData [07:07:42]wFMCommunicate request_size=4 [07:07:42]MH_SAM_APDU [07:07:42]CAPDU: 80 0D 01 02 [07:07:42]Write to MH i2c: E2 08 00 5D 99 80 0D 01 02 00 00 00 00 6F [07:07:42]Write i2c OK [07:07:42]MH_I2C_Read... [07:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:42]Read from MH i2c: E2 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 03 00 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 03 00 5D 99 00 90 00 6A [07:07:42]RAPDU: 90 00 [07:07:42]wFMCommunicate OK [07:07:42]wFMCommunicate request_size=255 [07:07:42]MH_SAM_APDU [07:07:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 60 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5B 8C 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F3 69 00 00 35 04 06 00 28 [07:07:42]Write to MH i2c: E2 02 01 5E 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 60 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5B 8C 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F3 69 00 00 35 04 06 00 28 00 00 D4 [07:07:42]Write i2c OK [07:07:42]MH_I2C_Read... [07:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:42]Read from MH i2c: E2 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 03 00 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 03 00 5E 99 00 90 00 6B [07:07:42]RAPDU: 90 00 [07:07:42]wFMCommunicate OK [07:07:42]wFMCommunicate request_size=10 [07:07:42]MH_SAM_APDU [07:07:42]CAPDU: 80 0D 02 02 05 19 4E E8 89 57 [07:07:42]Write to MH i2c: E2 0D 00 5F 99 80 0D 02 02 05 00 19 4E E8 89 57 00 00 AB [07:07:42]Write i2c OK [07:07:42]MH_I2C_Read... [07:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:42]Read from MH i2c: E2 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 03 00 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 03 00 5F 99 00 90 00 6C [07:07:42]RAPDU: 90 00 [07:07:42]wFMCommunicate OK [07:07:42]wFMCommunicate request_size=4 [07:07:42]MH_SAM_APDU [07:07:42]CAPDU: 80 0D 03 02 [07:07:42]Write to MH i2c: E2 08 00 60 99 80 0D 03 02 00 00 00 00 74 [07:07:42]Write i2c OK [07:07:42]MH_I2C_Read... [07:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:42]Read from MH i2c: E2 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 0B 00 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 0B 00 60 99 00 B9 7F 46 A7 63 A6 F3 70 90 00 06 [07:07:42]RAPDU: B9 7F 46 A7 63 A6 F3 70 90 00 [07:07:42]wFMCommunicate OK [07:07:42]SAM_PROTO_SignData done [07:07:42]FM_MakeSignedData done [07:07:42]CreateOFDProtocolMessage [07:07:42]wFMCommunicate request_size=4 [07:07:42]MH_SAM_APDU [07:07:42]CAPDU: 80 11 00 00 [07:07:42]Write to MH i2c: E2 08 00 61 99 80 11 00 00 00 00 00 00 74 [07:07:42]Write i2c OK [07:07:42]MH_I2C_Read... [07:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:42]Read from MH i2c: E2 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 17 00 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: E2 17 00 61 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 CC [07:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:07:42]wFMCommunicate OK [07:07:42]CreateOFDProtocolMessage done [07:07:42]OFDSenderStorePacket 27123 [07:07:42]StoreOFDPacket docnum=27123 [07:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 84 7D 07 01 7D 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 60 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5B 8C 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F3 69 00 00 35 04 06 00 28 19 4E E8 89 57 B9 7F 46 A7 63 A6 F3 70 [07:07:42]CheckFolder [07:07:42]dirname=/storage/ofd_packets [07:07:42]CheckFolder done [07:07:42]ProducePacketName [07:07:42]name=ofd_packets/00027123 [07:07:42]NVStorageSaveData ofd_packets/00027123 [07:07:42]File name is /storage/ofd_packets/00027123 [07:07:42]Write 301 bytes [07:07:42]NVStorageSaveData done [07:07:42]OFDSenderStorePacket done [07:07:42]KKMCreateOFDPacket done [07:07:42]NVStorageSaveData kkm_last_timestamp [07:07:42]File name is /storage/kkm_last_timestamp [07:07:42]Write 4 bytes [07:07:42]NVStorageSaveData done [07:07:42]ExternCall_PrintAddStr [07:07:42]wPrintStart [07:07:42]Write to MH i2c: 01 00 00 62 99 FB [07:07:42]Write i2c OK [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: 01 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: 01 07 00 [07:07:42]MH_I2C_Read... [07:07:42]Read from MH i2c: 01 07 00 62 99 00 00 00 00 00 FF 0F 10 [07:07:42]RasterBufferAndPrint [07:07:42]line Счет N : (1)359869 [07:07:42]line ИНН: 02508201610067 [07:07:42]line Контрольно-Кассовый Чек [07:07:42]line ПРОДАЖА [07:07:42]line ТРК (МРК, ГНК) : 61 [07:07:42]line Товар: 2710124130 [07:07:42]line Аи-92-К-5 [07:07:42]line 11.200 * 63.40 [07:07:42]line = 710.08 [07:07:42]line НДС 12% НСП 1% [07:07:42]line > о реализуемом товаре [07:07:42]line ОКРУГЛЕНИЕ: -0.08 [07:07:42]line ИТОГО: 710.00 [07:07:42]line Внесено: 710.00 [07:07:42]line СДАЧА: 0.00 [07:07:42]line НСП 1% : 6.28 [07:07:42]line НДС 12% : 75.41 [07:07:42]line Наличными: 710.00 [07:07:42]line Безнал.: 0.00 [07:07:42]line Место: АЗС № 122 "Партнер Нефть" [07:07:42]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [07:07:42]line СНО: Общий режим [07:07:42]line Чек 10 11.04.2024 07:08 [07:07:42]line Смена: 317 ФФД: 1.0 [07:07:42]line ЗНМ: 0300000147 [07:07:42]line РНМ: 0000000000091578 [07:07:42]line Версия ККМ: 001 [07:07:42]line ФМ: 0000000000874657 [07:07:42]line ФД: 27123 [07:07:42]line ФПД: 44089163155799 [07:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T070811&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27123&fm=44089163155799&tin=02508201610067®Number=0000000000091578&sum=71000 [07:07:43]OFD Sender: Processing packet 27123 [packets to send 44, broken 43] [07:07:43]ProducePacketName [07:07:43]name=ofd_packets/00027123 [07:07:43]OFD Sender: To server: pG, [07:07:43]CommunicateWithHost lk.salyk.kg:30040 [07:07:43]ConnectInit lk.salyk.kg [07:07:43]written 0, free lines is 4095 [07:07:43]Connected sock=10 [07:07:43]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 35 37 0F 01 00 00 84 7D 07 01 7D 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 60 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5B 8C 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F3 69 00 00 35 04 06 00 28 19 4E E8 89 57 B9 7F 46 A7 63 A6 F3 70 [07:07: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 35 37 4F 00 00 00 49 3D 47 00 78 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 35 37 10 04 04 00 F3 69 00 00 F4 03 04 00 BC 33 17 66 B6 04 01 00 00 4F 0B 64 F4 60 6D 3D 02 [07:07:43]CommunicateWithHost err = 0 [07:07:43]CheckOFDResponse [07:07:43]1017 (14) - 77093643461234 [07:07:43]1041 (16) - 0000000000874657 [07:07:43]1040 (4) - 27123 [07:07:43]1012 (4) - 11.04.2024 00:50 [07:07:43]1206 (1) - 0 [07:07:43]OFD Sender: Remove packet 27123 [07:07:43]ProducePacketName [07:07:43]name=ofd_packets/00027123 [07:07:43]NVStorageDeleteData [07:07:43]Write to MH i2c: 01 00 00 8D 99 26 [07:07:43]Write i2c OK [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: 01 [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: 01 07 00 [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: 01 07 00 8D 99 00 00 00 00 00 60 0C 99 [07:07:43]RasterBufferAndPrint [07:07:43]line [07:07:43]line [07:07:43]line [07:07:43]line [07:07:43]line [07:07:43]written 0, free lines is 3172 [07:07:43]MH_Cut [07:07:43]Write to MH i2c: D1 01 00 94 99 01 FF [07:07:43]Write i2c OK [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: D1 [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: D1 01 00 [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: D1 01 00 94 99 00 FE [07:07:43]Write to MH i2c: 01 00 00 95 99 2E [07:07:43]Write i2c OK [07:07:43]MH_I2C_Read... [07:07:43]OFD Sender: No OFD packet to send [07:07:44]*** Cut start [07:07:44]*** Partial cut [07:07:44]*** CUTSNS_PIN = 1 [07:07:44]*** CUTSNS_PIN = 0 [07:07:45]*** Brake cut motor [07:07:45]Read from MH i2c: 01 [07:07:45]MH_I2C_Read... [07:07:45]*** Stop cut motor [07:07:45]*** Cut end [07:07:45]Read from MH i2c: 01 07 00 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: 01 07 00 95 99 00 00 00 00 00 FF 0F 43 [07:07:45]process_action close_receipt done [07:07:45]requested_data is exist [07:07:45]produce_requested_data [07:07:45]requested_item fm.sn is exist - process it [07:07:45]wFMCommunicate request_size=4 [07:07:45]MH_SAM_APDU [07:07:45]CAPDU: 80 11 00 00 [07:07:45]Write to MH i2c: E2 08 00 96 99 80 11 00 00 00 00 00 00 A9 [07:07:45]Write i2c OK [07:07:45]MH_I2C_Read... [07:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:45]Read from MH i2c: E2 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: E2 17 00 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: E2 17 00 96 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 01 [07:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:07:45]wFMCommunicate OK [07:07:45]requested_item fd.num is exist - process it [07:07:45]SAM_PROTO_GetFieldsCounters [07:07:45]wFMCommunicate request_size=4 [07:07:45]MH_SAM_APDU [07:07:45]CAPDU: 80 13 00 00 [07:07:45]Write to MH i2c: E2 08 00 97 99 80 13 00 00 00 00 00 00 AC [07:07:45]Write i2c OK [07:07:45]MH_I2C_Read... [07:07:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:45]Read from MH i2c: E2 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: E2 62 00 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: E2 62 00 97 99 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F3 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [07:07:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F3 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:07:45]wFMCommunicate OK [07:07:45]SAM_PROTO_GetFieldsCounters done [07:07:45]requested_item shift.num is exist - process it [07:07:45]requested_item shift.opened is exist - process it [07:07:45]req_shift_opened [07:07:45]FM_GetShiftState [07:07:45]SAM_PROTO_GetShiftState [07:07:45]wFMCommunicate request_size=4 [07:07:45]MH_SAM_APDU [07:07:45]CAPDU: 80 13 01 00 [07:07:45]Write to MH i2c: E2 08 00 98 99 80 13 01 00 00 00 00 00 AE [07:07:45]Write i2c OK [07:07:45]MH_I2C_Read... [07:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:45]Read from MH i2c: E2 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: E2 0E 00 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: E2 0E 00 98 99 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 F8 [07:07:45]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [07:07:45]wFMCommunicate OK [07:07:45]SAM_PROTO_GetShiftState done [07:07:45]FM_GetShiftState done [07:07:45]req_shift_opened done [07:07:45]requested_item shift.open_date is exist - process it [07:07:45]req_shift_open_date [07:07:45]req_shift_open_date done [07:07:45]produce_requested_data done [07:07:45]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27123,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [07:07:45]process_action_free close_receipt [07:07:45]json_value_free [07:07:45]json_value_free done [07:07:45]process_json_proto returns [07:07:45]Send response to host [07:07:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27123,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [07:07:45]free response buf [07:07:45]execute_script done [07:07:45]execute_script returns [07:07:45]free content buf [07:07:45]Sock 9.Close socket [07:07:45]Sock 9.Thread stoped [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:27]accept exits with 8 [07:12:27]New connection [07:12:27]New thread 3067014500 created [07:12:27]Thread 3066871140 joined [07:12:27]Waiting for new connection... [07:12:27] Sock 8.Parse request [07:12:27]Sock 8.Check first char [07:12:27]Sock 8.First char is OK [07:12:27]request: POST /json_proto HTTP/1.0 [07:12:27]Method: POST [07:12:27]URL: /json_proto [07:12:27]Method is POST - this is cgi request [07:12:27]url: /json_proto [07:12:27]query_string will be loaded in cgi processing [07:12:27]execute_cgi json_proto POST (null) [07:12:27]execute_cgi path=json_proto method=POST [07:12:27]POST find Content-Length [07:12:27]Host: 172.17.35.3:8080 [07:12:27]Content-Length: 1098 [07:12:27]Content-Type: application/json [07:12:27] [07:12:27]POST finish read [07:12:27]Found Content-Length = 1098 [07:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359870\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 30.000 x 71.80\u000A\u0418\u0422\u041E\u0413: 2154.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3752704;03;02\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:27]execute_script... [07:12:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359870\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 30.000 x 71.80\u000A\u0418\u0422\u041E\u0413: 2154.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3752704;03;02\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:27]POST & json_proto [07:12:27]process_json_proto [07:12:27]json parsed OK: [07:12:27]protocol is kg_v1.0 [07:12:27]action value=print_text [07:12:27]process_action print_text [07:12:27]cmd_print_text [07:12:27]ExternCall_PrintAddStr [07:12:27]wPrintStart [07:12:27]Write to MH i2c: 01 00 00 99 99 32 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: 01 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: 01 07 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: 01 07 00 99 99 00 00 00 00 00 FF 0F 47 [07:12:27]RasterBufferAndPrint [07:12:27]line *****ТОВАРНЫЙ ЧЕК***** [07:12:27]line АЗС 122 [07:12:27]line Партнер нефть [07:12:27]line 02508201610067 [07:12:27]line Кассир : Эдилбаев К. [07:12:27]line Счет N : (1)359870 [07:12:27]line ПРОДАЖА [07:12:27]line ТРК (МРК, ГНК) : 21 [07:12:27]line Вид ГСМ : 2710194210 [07:12:27]line ДТ(л)-К-5 [07:12:27]line 30.000 x 71.80 [07:12:27]line ИТОГ: 2154.00 [07:12:27]line Тип оплаты: Талоны: Партнер нефть [07:12:27]line 3752704;03;02 [07:12:27]written 0, free lines is 4095 [07:12:27]Write to MH i2c: 01 00 00 AA 99 43 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: 01 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: 01 07 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: 01 07 00 AA 99 00 00 00 00 00 61 0E B9 [07:12:27]RasterBufferAndPrint [07:12:27]line [07:12:27]line [07:12:27]line [07:12:27]line [07:12:27]line [07:12:27]written 0, free lines is 3682 [07:12:27]MH_Cut [07:12:27]Write to MH i2c: D1 01 00 B1 99 01 1C [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: D1 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: D1 01 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: D1 01 00 B1 99 00 1B [07:12:27]Write to MH i2c: 01 00 00 B2 99 4B [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:28]*** Cut start [07:12:28]*** Partial cut [07:12:28]*** CUTSNS_PIN = 1 [07:12:28]*** CUTSNS_PIN = 0 [07:12:28]*** Brake cut motor [07:12:29]Read from MH i2c: 01 [07:12:29]MH_I2C_Read... [07:12:29]Read from MH i2c: 01 07 00 [07:12:29]MH_I2C_Read... [07:12:29]*** Stop cut motor [07:12:29]*** Cut end [07:12:29]OFD Sender: No OFD packet to send [07:12:29]Read from MH i2c: 01 07 00 B2 99 00 00 00 00 00 FF 0F 60 [07:12:29]process_action print_text done [07:12:29]requested_data is exist [07:12:29]produce_requested_data [07:12:29]requested_item fm.sn is exist - process it [07:12:29]wFMCommunicate request_size=4 [07:12:29]MH_SAM_APDU [07:12:29]CAPDU: 80 11 00 00 [07:12:29]Write to MH i2c: E2 08 00 B3 99 80 11 00 00 00 00 00 00 C6 [07:12:29]Write i2c OK [07:12:29]MH_I2C_Read... [07:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:29]Read from MH i2c: E2 [07:12:29]MH_I2C_Read... [07:12:29]Read from MH i2c: E2 17 00 [07:12:29]MH_I2C_Read... [07:12:29]Read from MH i2c: E2 17 00 B3 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 1E [07:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:12:29]wFMCommunicate OK [07:12:29]requested_item fd.num is exist - process it [07:12:29]SAM_PROTO_GetFieldsCounters [07:12:29]wFMCommunicate request_size=4 [07:12:29]MH_SAM_APDU [07:12:29]CAPDU: 80 13 00 00 [07:12:29]Write to MH i2c: E2 08 00 B4 99 80 13 00 00 00 00 00 00 C9 [07:12:29]Write i2c OK [07:12:29]MH_I2C_Read... [07:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:29]Read from MH i2c: E2 [07:12:29]MH_I2C_Read... [07:12:29]Read from MH i2c: E2 62 00 [07:12:29]MH_I2C_Read... [07:12:29]Read from MH i2c: E2 62 00 B4 99 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F3 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [07:12:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F3 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:29]wFMCommunicate OK [07:12:29]SAM_PROTO_GetFieldsCounters done [07:12:29]requested_item shift.num is exist - process it [07:12:29]requested_item shift.opened is exist - process it [07:12:29]req_shift_opened [07:12:29]FM_GetShiftState [07:12:29]SAM_PROTO_GetShiftState [07:12:29]wFMCommunicate request_size=4 [07:12:29]MH_SAM_APDU [07:12:29]CAPDU: 80 13 01 00 [07:12:29]Write to MH i2c: E2 08 00 B5 99 80 13 01 00 00 00 00 00 CB [07:12:29]Write i2c OK [07:12:29]MH_I2C_Read... [07:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:29]Read from MH i2c: E2 [07:12:29]MH_I2C_Read... [07:12:29]Read from MH i2c: E2 0E 00 [07:12:29]MH_I2C_Read... [07:12:29]Read from MH i2c: E2 0E 00 B5 99 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 15 [07:12:29]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [07:12:29]wFMCommunicate OK [07:12:29]SAM_PROTO_GetShiftState done [07:12:29]FM_GetShiftState done [07:12:29]req_shift_opened done [07:12:29]requested_item shift.open_date is exist - process it [07:12:29]req_shift_open_date [07:12:29]req_shift_open_date done [07:12:29]produce_requested_data done [07:12:29]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27123,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [07:12:29]process_action_free print_text [07:12:29]json_value_free [07:12:29]json_value_free done [07:12:29]process_json_proto returns [07:12:29]Send response to host [07:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27123,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [07:12:29]free response buf [07:12:29]execute_script done [07:12:29]execute_script returns [07:12:29]free content buf [07:12:29]Sock 8.Close socket [07:12:29]Sock 8.Thread stoped [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:42]accept exits with 9 [07:28:42]New connection [07:28:42]New thread 3066871140 created [07:28:42]Thread 3067014500 joined [07:28:42]Waiting for new connection... [07:28:42] Sock 9.Parse request [07:28:42]Sock 9.Check first char [07:28:42]Sock 9.First char is OK [07:28:42]request: POST /json_proto HTTP/1.0 [07:28:42]Method: POST [07:28:42]URL: /json_proto [07:28:42]Method is POST - this is cgi request [07:28:42]url: /json_proto [07:28:42]query_string will be loaded in cgi processing [07:28:42]execute_cgi json_proto POST (null) [07:28:42]execute_cgi path=json_proto method=POST [07:28:42]POST find Content-Length [07:28:42]Host: 172.17.35.3:8080 [07:28:42]Content-Length: 677 [07:28:42]Content-Type: application/json [07:28:42] [07:28:42]POST finish read [07:28:42]Found Content-Length = 677 [07:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 3.950, "sum" : 250.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:42]execute_script... [07:28:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 3.950, "sum" : 250.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:42]POST & json_proto [07:28:42]process_json_proto [07:28:42]json parsed OK: [07:28:42]protocol is kg_v1.0 [07:28:42]action value=close_receipt [07:28:42]process_action close_receipt [07:28:42]cmd_close_receipt [07:28:42]MH_GetDate [07:28:42]Write to MH i2c: F0 00 00 B6 99 3E [07:28:42]Write i2c OK [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: F0 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: F0 09 00 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: F0 09 00 B6 99 00 48 91 17 66 2B 11 66 64 A3 [07:28:42]GetLastDocTimeStamp 1712819291 [07:28:42]current date 1712820552 [07:28:42]FM_GetShiftState [07:28:42]SAM_PROTO_GetShiftState [07:28:42]wFMCommunicate request_size=4 [07:28:42]MH_SAM_APDU [07:28:42]CAPDU: 80 13 01 00 [07:28:42]Write to MH i2c: E2 08 00 B7 99 80 13 01 00 00 00 00 00 CD [07:28:42]Write i2c OK [07:28:42]MH_I2C_Read... [07:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:42]Read from MH i2c: E2 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 0E 00 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 0E 00 B7 99 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 17 [07:28:42]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [07:28:42]wFMCommunicate OK [07:28:42]SAM_PROTO_GetShiftState done [07:28:42]FM_GetShiftState done [07:28:42]opened in 1712795538 [07:28:42]opened+sec_in_day 1712881938 [07:28:42]quantity*price = 25043 [07:28:42]sum+1 = 25044 [07:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 11 11.04.2024 07:29 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27124 ФПД: 167958572456915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T072912&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27124&fm=167958572456915&tin=02508201610067®Number=0000000000091578&sum=25000 [07:28:43]StoreToDocumentArchive [07:28:43]shift 317 fd 27124 [07:28:43]save to /storage/0317/doc_00027124 [07:28:43]save last doc name /storage/0317/doc_00027124 to /storage/kkm_last_doc_name [07:28:43]save OK [07:28:43]Clear old archive folders... [07:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:43]tlvbuf is 01117150 [07:28:43]SAM_PROTO_ClearQueue [07:28:43]wFMCommunicate request_size=4 [07:28:43]MH_SAM_APDU [07:28:43]CAPDU: 80 09 00 00 [07:28:43]Write to MH i2c: E2 08 00 C4 99 80 09 00 00 00 00 00 00 CF [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:43]Read from MH i2c: E2 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 C4 99 00 90 00 D1 [07:28:43]RAPDU: 90 00 [07:28:43]wFMCommunicate OK [07:28:43]SAM_PROTO_ClearQueue done [07:28:43]KKMCreateOFDPacket [07:28:43]OFDProtocolAddRootSTLVToBuf [07:28:43]FM_MakeSignedData [07:28:43]FM_MakeSignedData [07:28:43]SAM_PROTO_SignData [07:28:43]wFMCommunicate request_size=4 [07:28:43]MH_SAM_APDU [07:28:43]CAPDU: 80 0D 01 02 [07:28:43]Write to MH i2c: E2 08 00 C5 99 80 0D 01 02 00 00 00 00 D7 [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:43]Read from MH i2c: E2 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 C5 99 00 90 00 D2 [07:28:43]RAPDU: 90 00 [07:28:43]wFMCommunicate OK [07:28:43]wFMCommunicate request_size=255 [07:28:43]MH_SAM_APDU [07:28:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0F 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D3 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 0B 00 00 00 F4 03 04 00 48 91 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F4 69 00 00 35 04 06 00 98 [07:28:43]Write to MH i2c: E2 02 01 C6 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0F 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D3 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 0B 00 00 00 F4 03 04 00 48 91 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F4 69 00 00 35 04 06 00 98 00 00 69 [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:43]Read from MH i2c: E2 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 C6 99 00 90 00 D3 [07:28:43]RAPDU: 90 00 [07:28:43]wFMCommunicate OK [07:28:43]wFMCommunicate request_size=10 [07:28:43]MH_SAM_APDU [07:28:43]CAPDU: 80 0D 02 02 05 C1 E7 0C 5B D3 [07:28:43]Write to MH i2c: E2 0D 00 C7 99 80 0D 02 02 05 00 C1 E7 0C 5B D3 00 00 C6 [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:43]Read from MH i2c: E2 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 C7 99 00 90 00 D4 [07:28:43]RAPDU: 90 00 [07:28:43]wFMCommunicate OK [07:28:43]wFMCommunicate request_size=4 [07:28:43]MH_SAM_APDU [07:28:43]CAPDU: 80 0D 03 02 [07:28:43]Write to MH i2c: E2 08 00 C8 99 80 0D 03 02 00 00 00 00 DC [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:43]Read from MH i2c: E2 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 0B 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 0B 00 C8 99 00 28 DC 31 16 40 35 DF FA 90 00 76 [07:28:43]RAPDU: 28 DC 31 16 40 35 DF FA 90 00 [07:28:43]wFMCommunicate OK [07:28:43]SAM_PROTO_SignData done [07:28:43]FM_MakeSignedData done [07:28:43]CreateOFDProtocolMessage [07:28:43]wFMCommunicate request_size=4 [07:28:43]MH_SAM_APDU [07:28:43]CAPDU: 80 11 00 00 [07:28:43]Write to MH i2c: E2 08 00 C9 99 80 11 00 00 00 00 00 00 DC [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:43]Read from MH i2c: E2 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 17 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 17 00 C9 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 34 [07:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:28:43]wFMCommunicate OK [07:28:43]CreateOFDProtocolMessage done [07:28:43]OFDSenderStorePacket 27124 [07:28:43]StoreOFDPacket docnum=27124 [07:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 E2 1B 07 01 DF 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0F 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D3 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 0B 00 00 00 F4 03 04 00 48 91 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F4 69 00 00 35 04 06 00 98 C1 E7 0C 5B D3 28 DC 31 16 40 35 DF FA [07:28:43]CheckFolder [07:28:43]dirname=/storage/ofd_packets [07:28:43]CheckFolder done [07:28:43]ProducePacketName [07:28:43]name=ofd_packets/00027124 [07:28:43]NVStorageSaveData ofd_packets/00027124 [07:28:43]File name is /storage/ofd_packets/00027124 [07:28:43]Write 301 bytes [07:28:43]NVStorageSaveData done [07:28:43]OFDSenderStorePacket done [07:28:43]KKMCreateOFDPacket done [07:28:43]NVStorageSaveData kkm_last_timestamp [07:28:43]File name is /storage/kkm_last_timestamp [07:28:43]Write 4 bytes [07:28:43]NVStorageSaveData done [07:28:43]ExternCall_PrintAddStr [07:28:43]wPrintStart [07:28:43]Write to MH i2c: 01 00 00 CA 99 63 [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: 01 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: 01 07 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: 01 07 00 CA 99 00 00 00 00 00 FF 0F 78 [07:28:43]RasterBufferAndPrint [07:28:43]line Счет N : (1)359871 [07:28:43]line ИНН: 02508201610067 [07:28:43]line Контрольно-Кассовый Чек [07:28:43]line ПРОДАЖА [07:28:43]line ТРК (МРК, ГНК) : 61 [07:28:43]line Товар: 2710124130 [07:28:43]line Аи-92-К-5 [07:28:43]line 3.950 * 63.40 [07:28:43]line = 250.43 [07:28:43]line НДС 12% НСП 1% [07:28:43]line > о реализуемом товаре [07:28:43]line ОКРУГЛЕНИЕ: -0.43 [07:28:43]line ИТОГО: 250.00 [07:28:43]line Внесено: 250.00 [07:28:43]line СДАЧА: 0.00 [07:28:43]line НСП 1% : 2.22 [07:28:43]line НДС 12% : 26.59 [07:28:43]line Наличными: 250.00 [07:28:43]line Безнал.: 0.00 [07:28:43]line Место: АЗС № 122 "Партнер Нефть" [07:28:43]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [07:28:43]line СНО: Общий режим [07:28:43]line Чек 11 11.04.2024 07:29 [07:28:43]line Смена: 317 ФФД: 1.0 [07:28:43]line ЗНМ: 0300000147 [07:28:43]line РНМ: 0000000000091578 [07:28:43]line Версия ККМ: 001 [07:28:43]line ФМ: 0000000000874657 [07:28:43]line ФД: 27124 [07:28:43]line ФПД: 167958572456915 [07:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T072912&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27124&fm=167958572456915&tin=02508201610067®Number=0000000000091578&sum=25000 [07:28:44]OFD Sender: Processing packet 27124 [packets to send 44, broken 43] [07:28:44]ProducePacketName [07:28:44]name=ofd_packets/00027124 [07:28:44]OFD Sender: To server: pG, [07:28:44]CommunicateWithHost lk.salyk.kg:30040 [07:28:44]ConnectInit lk.salyk.kg [07:28:44]written 0, free lines is 4095 [07:28:44]Connected sock=10 [07:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 E2 1B 07 01 DF 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0F 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D3 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 0B 00 00 00 F4 03 04 00 48 91 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F4 69 00 00 35 04 06 00 98 C1 E7 0C 5B D3 28 DC 31 16 40 35 DF FA [07:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 BD 9A 47 00 64 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 35 37 10 04 04 00 F4 69 00 00 F4 03 04 00 A9 38 17 66 B6 04 01 00 00 BD 42 99 10 0A A4 85 36 [07:28:44]CommunicateWithHost err = 0 [07:28:44]CheckOFDResponse [07:28:44]1017 (14) - 77093643461234 [07:28:44]1041 (16) - 0000000000874657 [07:28:44]1040 (4) - 27124 [07:28:44]1012 (4) - 11.04.2024 01:11 [07:28:44]1206 (1) - 0 [07:28:44]OFD Sender: Remove packet 27124 [07:28:44]ProducePacketName [07:28:44]name=ofd_packets/00027124 [07:28:44]NVStorageDeleteData [07:28:44]Write to MH i2c: 01 00 00 F5 99 8E [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: 01 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: 01 07 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: 01 07 00 F5 99 00 00 00 00 00 6E 0C 0F [07:28:44]RasterBufferAndPrint [07:28:44]line [07:28:44]line [07:28:44]line [07:28:44]line [07:28:44]line [07:28:44]written 0, free lines is 3185 [07:28:44]MH_Cut [07:28:44]Write to MH i2c: D1 01 00 FC 99 01 67 [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: D1 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: D1 01 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: D1 01 00 FC 99 00 66 [07:28:44]Write to MH i2c: 01 00 00 FD 99 96 [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]OFD Sender: No OFD packet to send [07:28:45]*** Cut start [07:28:45]*** Partial cut [07:28:45]*** CUTSNS_PIN = 1 [07:28:45]*** CUTSNS_PIN = 0 [07:28:46]*** Brake cut motor [07:28:46]Read from MH i2c: 01 [07:28:46]MH_I2C_Read... [07:28:46]*** Stop cut motor [07:28:46]*** Cut end [07:28:46]Read from MH i2c: 01 07 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: 01 07 00 FD 99 00 00 00 00 00 FF 0F AB [07:28:46]process_action close_receipt done [07:28:46]requested_data is exist [07:28:46]produce_requested_data [07:28:46]requested_item fm.sn is exist - process it [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 11 00 00 [07:28:46]Write to MH i2c: E2 08 00 FE 99 80 11 00 00 00 00 00 00 11 [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 17 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 17 00 FE 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 69 [07:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:28:46]wFMCommunicate OK [07:28:46]requested_item fd.num is exist - process it [07:28:46]SAM_PROTO_GetFieldsCounters [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 13 00 00 [07:28:46]Write to MH i2c: E2 08 00 FF 99 80 13 00 00 00 00 00 00 14 [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 62 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 62 00 FF 99 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F4 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [07:28:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F4 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:46]wFMCommunicate OK [07:28:46]SAM_PROTO_GetFieldsCounters done [07:28:46]requested_item shift.num is exist - process it [07:28:46]requested_item shift.opened is exist - process it [07:28:46]req_shift_opened [07:28:46]FM_GetShiftState [07:28:46]SAM_PROTO_GetShiftState [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 13 01 00 [07:28:46]Write to MH i2c: E2 08 00 00 9A 80 13 01 00 00 00 00 00 17 [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 0E 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 0E 00 00 9A 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 61 [07:28:46]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [07:28:46]wFMCommunicate OK [07:28:46]SAM_PROTO_GetShiftState done [07:28:46]FM_GetShiftState done [07:28:46]req_shift_opened done [07:28:46]requested_item shift.open_date is exist - process it [07:28:46]req_shift_open_date [07:28:46]req_shift_open_date done [07:28:46]produce_requested_data done [07:28:46]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27124,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [07:28:46]process_action_free close_receipt [07:28:46]json_value_free [07:28:46]json_value_free done [07:28:46]process_json_proto returns [07:28:46]Send response to host [07:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27124,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [07:28:46]free response buf [07:28:46]execute_script done [07:28:46]execute_script returns [07:28:46]free content buf [07:28:46]Sock 9.Close socket [07:28:46]Sock 9.Thread stoped [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:34]accept exits with 8 [08:46:34]New connection [08:46:34]New thread 3067014500 created [08:46:34]Thread 3066871140 joined [08:46:34]Waiting for new connection... [08:46:34] Sock 8.Parse request [08:46:34]Sock 8.Check first char [08:46:34]Sock 8.First char is OK [08:46:34]request: POST /json_proto HTTP/1.0 [08:46:34]Method: POST [08:46:34]URL: /json_proto [08:46:34]Method is POST - this is cgi request [08:46:34]url: /json_proto [08:46:34]query_string will be loaded in cgi processing [08:46:34]execute_cgi json_proto POST (null) [08:46:34]execute_cgi path=json_proto method=POST [08:46:34]POST find Content-Length [08:46:34]Host: 172.17.35.3:8080 [08:46:34]Content-Length: 677 [08:46:34]Content-Type: application/json [08:46:34] [08:46:34]POST finish read [08:46:34]Found Content-Length = 677 [08:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 2.370, "sum" : 150.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:34]execute_script... [08:46:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 2.370, "sum" : 150.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:34]POST & json_proto [08:46:34]process_json_proto [08:46:34]json parsed OK: [08:46:34]protocol is kg_v1.0 [08:46:34]action value=close_receipt [08:46:34]process_action close_receipt [08:46:34]cmd_close_receipt [08:46:34]MH_GetDate [08:46:34]Write to MH i2c: F0 00 00 01 9A 8A [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: F0 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: F0 09 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: F0 09 00 01 9A 00 89 A3 17 66 2B 11 66 64 42 [08:46:34]GetLastDocTimeStamp 1712820552 [08:46:34]current date 1712825225 [08:46:34]FM_GetShiftState [08:46:34]SAM_PROTO_GetShiftState [08:46:34]wFMCommunicate request_size=4 [08:46:34]MH_SAM_APDU [08:46:34]CAPDU: 80 13 01 00 [08:46:34]Write to MH i2c: E2 08 00 02 9A 80 13 01 00 00 00 00 00 19 [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 0E 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 0E 00 02 9A 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 63 [08:46:34]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [08:46:34]wFMCommunicate OK [08:46:34]SAM_PROTO_GetShiftState done [08:46:34]FM_GetShiftState done [08:46:34]opened in 1712795538 [08:46:34]opened+sec_in_day 1712881938 [08:46:34]quantity*price = 15025 [08:46:34]sum+1 = 15027 [08:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.96 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 12 11.04.2024 08:47 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27125 ФПД: 56017736979308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T084705&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27125&fm=56017736979308&tin=02508201610067®Number=0000000000091578&sum=15000 [08:46:35]StoreToDocumentArchive [08:46:35]shift 317 fd 27125 [08:46:35]save to /storage/0317/doc_00027125 [08:46:35]save last doc name /storage/0317/doc_00027125 to /storage/kkm_last_doc_name [08:46:35]save OK [08:46:35]Clear old archive folders... [08:46:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:35]tlvbuf is 00E54A60 [08:46:35]SAM_PROTO_ClearQueue [08:46:35]wFMCommunicate request_size=4 [08:46:35]MH_SAM_APDU [08:46:35]CAPDU: 80 09 00 00 [08:46:35]Write to MH i2c: E2 08 00 0F 9A 80 09 00 00 00 00 00 00 1B [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:35]Read from MH i2c: E2 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 03 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 03 00 0F 9A 00 90 00 1D [08:46:35]RAPDU: 90 00 [08:46:35]wFMCommunicate OK [08:46:35]SAM_PROTO_ClearQueue done [08:46:35]KKMCreateOFDPacket [08:46:35]OFDProtocolAddRootSTLVToBuf [08:46:35]FM_MakeSignedData [08:46:35]FM_MakeSignedData [08:46:35]SAM_PROTO_SignData [08:46:35]wFMCommunicate request_size=4 [08:46:35]MH_SAM_APDU [08:46:35]CAPDU: 80 0D 01 02 [08:46:35]Write to MH i2c: E2 08 00 10 9A 80 0D 01 02 00 00 00 00 23 [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:35]Read from MH i2c: E2 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 03 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 03 00 10 9A 00 90 00 1E [08:46:35]RAPDU: 90 00 [08:46:35]wFMCommunicate OK [08:46:35]wFMCommunicate request_size=255 [08:46:35]MH_SAM_APDU [08:46:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 09 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 B2 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 89 A3 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F5 69 00 00 35 04 06 00 32 [08:46:35]Write to MH i2c: E2 02 01 11 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 09 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 B2 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 89 A3 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F5 69 00 00 35 04 06 00 32 00 00 38 [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 03 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 03 00 11 9A 00 90 00 1F [08:46:36]RAPDU: 90 00 [08:46:36]wFMCommunicate OK [08:46:36]wFMCommunicate request_size=10 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 0D 02 02 05 F2 A5 50 53 6C [08:46:36]Write to MH i2c: E2 0D 00 12 9A 80 0D 02 02 05 00 F2 A5 50 53 6C 00 00 D6 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 03 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 03 00 12 9A 00 90 00 20 [08:46:36]RAPDU: 90 00 [08:46:36]wFMCommunicate OK [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 0D 03 02 [08:46:36]Write to MH i2c: E2 08 00 13 9A 80 0D 03 02 00 00 00 00 28 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 0B 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 0B 00 13 9A 00 E8 9C 25 69 9A A8 29 0C 90 00 B2 [08:46:36]RAPDU: E8 9C 25 69 9A A8 29 0C 90 00 [08:46:36]wFMCommunicate OK [08:46:36]SAM_PROTO_SignData done [08:46:36]FM_MakeSignedData done [08:46:36]CreateOFDProtocolMessage [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 11 00 00 [08:46:36]Write to MH i2c: E2 08 00 14 9A 80 11 00 00 00 00 00 00 28 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 17 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 17 00 14 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 80 [08:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:46:36]wFMCommunicate OK [08:46:36]CreateOFDProtocolMessage done [08:46:36]OFDSenderStorePacket 27125 [08:46:36]StoreOFDPacket docnum=27125 [08:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 6F 06 07 01 9E EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 09 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 B2 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 89 A3 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F5 69 00 00 35 04 06 00 32 F2 A5 50 53 6C E8 9C 25 69 9A A8 29 0C [08:46:36]CheckFolder [08:46:36]dirname=/storage/ofd_packets [08:46:36]CheckFolder done [08:46:36]ProducePacketName [08:46:36]name=ofd_packets/00027125 [08:46:36]NVStorageSaveData ofd_packets/00027125 [08:46:36]File name is /storage/ofd_packets/00027125 [08:46:36]Write 301 bytes [08:46:36]NVStorageSaveData done [08:46:36]OFDSenderStorePacket done [08:46:36]KKMCreateOFDPacket done [08:46:36]NVStorageSaveData kkm_last_timestamp [08:46:36]File name is /storage/kkm_last_timestamp [08:46:36]Write 4 bytes [08:46:36]NVStorageSaveData done [08:46:36]ExternCall_PrintAddStr [08:46:36]wPrintStart [08:46:36]Write to MH i2c: 01 00 00 15 9A AF [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: 01 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: 01 07 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: 01 07 00 15 9A 00 00 00 00 00 FF 0F C4 [08:46:36]RasterBufferAndPrint [08:46:36]line Счет N : (1)359876 [08:46:36]line ИНН: 02508201610067 [08:46:36]line Контрольно-Кассовый Чек [08:46:36]line ПРОДАЖА [08:46:36]line ТРК (МРК, ГНК) : 61 [08:46:36]line Товар: 2710124130 [08:46:36]line Аи-92-К-5 [08:46:36]line 2.370 * 63.40 [08:46:36]line = 150.26 [08:46:36]line НДС 12% НСП 1% [08:46:36]line > о реализуемом товаре [08:46:36]line ОКРУГЛЕНИЕ: -0.26 [08:46:36]line ИТОГО: 150.00 [08:46:36]line Внесено: 150.00 [08:46:36]line СДАЧА: 0.00 [08:46:36]line НСП 1% : 1.33 [08:46:36]line НДС 12% : 15.96 [08:46:36]line Наличными: 150.00 [08:46:36]line Безнал.: 0.00 [08:46:36]line Место: АЗС № 122 "Партнер Нефть" [08:46:36]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [08:46:36]line СНО: Общий режим [08:46:36]line Чек 12 11.04.2024 08:47 [08:46:36]line Смена: 317 ФФД: 1.0 [08:46:36]line ЗНМ: 0300000147 [08:46:36]line РНМ: 0000000000091578 [08:46:36]line Версия ККМ: 001 [08:46:36]line ФМ: 0000000000874657 [08:46:36]line ФД: 27125 [08:46:36]line ФПД: 56017736979308 [08:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T084705&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27125&fm=56017736979308&tin=02508201610067®Number=0000000000091578&sum=15000 [08:46:36]OFD Sender: Processing packet 27125 [packets to send 44, broken 43] [08:46:36]ProducePacketName [08:46:36]name=ofd_packets/00027125 [08:46:36]OFD Sender: To server: pG, [08:46:36]CommunicateWithHost lk.salyk.kg:30040 [08:46:36]ConnectInit lk.salyk.kg [08:46:36]written 0, free lines is 4095 [08:46:36]Connected sock=10 [08:46:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 6F 06 07 01 9E EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 09 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 B2 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 89 A3 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F5 69 00 00 35 04 06 00 32 F2 A5 50 53 6C E8 9C 25 69 9A A8 29 0C [08:46:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 3D 75 47 00 3F AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 35 37 10 04 04 00 F5 69 00 00 F4 03 04 00 EA 4A 17 66 B6 04 01 00 00 54 42 2E D8 2E 19 0A F7 [08:46:36]CommunicateWithHost err = 0 [08:46:36]CheckOFDResponse [08:46:36]1017 (14) - 77093643461234 [08:46:36]1041 (16) - 0000000000874657 [08:46:36]1040 (4) - 27125 [08:46:36]1012 (4) - 11.04.2024 02:28 [08:46:36]1206 (1) - 0 [08:46:36]OFD Sender: Remove packet 27125 [08:46:36]ProducePacketName [08:46:36]name=ofd_packets/00027125 [08:46:36]NVStorageDeleteData [08:46:37]Write to MH i2c: 01 00 00 40 9A DA [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: 01 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: 01 07 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: 01 07 00 40 9A 00 00 00 00 00 6D 0C 5A [08:46:37]RasterBufferAndPrint [08:46:37]line [08:46:37]line [08:46:37]line [08:46:37]line [08:46:37]line [08:46:37]written 0, free lines is 3183 [08:46:37]MH_Cut [08:46:37]Write to MH i2c: D1 01 00 47 9A 01 B3 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: D1 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: D1 01 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: D1 01 00 47 9A 00 B2 [08:46:37]Write to MH i2c: 01 00 00 48 9A E2 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]OFD Sender: No OFD packet to send [08:46:38]*** Cut start [08:46:38]*** Partial cut [08:46:38]*** CUTSNS_PIN = 1 [08:46:38]*** CUTSNS_PIN = 0 [08:46:38]*** Brake cut motor [08:46:38]Read from MH i2c: 01 [08:46:38]MH_I2C_Read... [08:46:38]*** Stop cut motor [08:46:38]*** Cut end [08:46:38]Read from MH i2c: 01 07 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 48 9A 00 00 00 00 00 FF 0F F7 [08:46:38]process_action close_receipt done [08:46:38]requested_data is exist [08:46:38]produce_requested_data [08:46:38]requested_item fm.sn is exist - process it [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 11 00 00 [08:46:38]Write to MH i2c: E2 08 00 49 9A 80 11 00 00 00 00 00 00 5D [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 17 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 17 00 49 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B5 [08:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:46:38]wFMCommunicate OK [08:46:38]requested_item fd.num is exist - process it [08:46:38]SAM_PROTO_GetFieldsCounters [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 13 00 00 [08:46:38]Write to MH i2c: E2 08 00 4A 9A 80 13 00 00 00 00 00 00 60 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:39]Read from MH i2c: E2 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 62 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 62 00 4A 9A 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F5 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [08:46: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F5 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:39]wFMCommunicate OK [08:46:39]SAM_PROTO_GetFieldsCounters done [08:46:39]requested_item shift.num is exist - process it [08:46:39]requested_item shift.opened is exist - process it [08:46:39]req_shift_opened [08:46:39]FM_GetShiftState [08:46:39]SAM_PROTO_GetShiftState [08:46:39]wFMCommunicate request_size=4 [08:46:39]MH_SAM_APDU [08:46:39]CAPDU: 80 13 01 00 [08:46:39]Write to MH i2c: E2 08 00 4B 9A 80 13 01 00 00 00 00 00 62 [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:39]Read from MH i2c: E2 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 0E 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 0E 00 4B 9A 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 AC [08:46:39]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [08:46:39]wFMCommunicate OK [08:46:39]SAM_PROTO_GetShiftState done [08:46:39]FM_GetShiftState done [08:46:39]req_shift_opened done [08:46:39]requested_item shift.open_date is exist - process it [08:46:39]req_shift_open_date [08:46:39]req_shift_open_date done [08:46:39]produce_requested_data done [08:46:39]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27125,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [08:46:39]process_action_free close_receipt [08:46:39]json_value_free [08:46:39]json_value_free done [08:46:39]process_json_proto returns [08:46:39]Send response to host [08:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27125,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [08:46:39]free response buf [08:46:39]execute_script done [08:46:39]execute_script returns [08:46:39]free content buf [08:46:39]Sock 8.Close socket [08:46:39]Sock 8.Thread stoped [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:25]accept exits with 9 [08:54:25]New connection [08:54:25]New thread 3066871140 created [08:54:25]Thread 3067014500 joined [08:54:25]Waiting for new connection... [08:54:25] Sock 9.Parse request [08:54:25]Sock 9.Check first char [08:54:25]Sock 9.First char is OK [08:54:25]request: POST /json_proto HTTP/1.0 [08:54:25]Method: POST [08:54:25]URL: /json_proto [08:54:25]Method is POST - this is cgi request [08:54:25]url: /json_proto [08:54:25]query_string will be loaded in cgi processing [08:54:25]execute_cgi json_proto POST (null) [08:54:25]execute_cgi path=json_proto method=POST [08:54:25]POST find Content-Length [08:54:25]Host: 172.17.35.3:8080 [08:54:25]Content-Length: 677 [08:54:25]Content-Type: application/json [08:54:25] [08:54:25]POST finish read [08:54:25]Found Content-Length = 677 [08:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 5.530, "sum" : 350.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:25]execute_script... [08:54:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 5.530, "sum" : 350.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:25]POST & json_proto [08:54:25]process_json_proto [08:54:25]json parsed OK: [08:54:25]protocol is kg_v1.0 [08:54:25]action value=close_receipt [08:54:25]process_action close_receipt [08:54:25]cmd_close_receipt [08:54:25]MH_GetDate [08:54:25]Write to MH i2c: F0 00 00 4C 9A D5 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: F0 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: F0 09 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: F0 09 00 4C 9A 00 60 A5 17 66 2B 11 66 64 66 [08:54:25]GetLastDocTimeStamp 1712825225 [08:54:25]current date 1712825696 [08:54:25]FM_GetShiftState [08:54:25]SAM_PROTO_GetShiftState [08:54:25]wFMCommunicate request_size=4 [08:54:25]MH_SAM_APDU [08:54:25]CAPDU: 80 13 01 00 [08:54:25]Write to MH i2c: E2 08 00 4D 9A 80 13 01 00 00 00 00 00 64 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 0E 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 0E 00 4D 9A 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 AE [08:54:25]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [08:54:25]wFMCommunicate OK [08:54:25]SAM_PROTO_GetShiftState done [08:54:25]FM_GetShiftState done [08:54:25]opened in 1712795538 [08:54:25]opened+sec_in_day 1712881938 [08:54:25]quantity*price = 35060 [08:54:25]sum+1 = 35061 [08:54:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 13 11.04.2024 08:54 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27126 ФПД: 16028814226594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T085456&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27126&fm=16028814226594&tin=02508201610067®Number=0000000000091578&sum=35000 [08:54:26]StoreToDocumentArchive [08:54:26]shift 317 fd 27126 [08:54:26]save to /storage/0317/doc_00027126 [08:54:26]save last doc name /storage/0317/doc_00027126 to /storage/kkm_last_doc_name [08:54:26]save OK [08:54:26]Clear old archive folders... [08:54:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:26]tlvbuf is 00E84040 [08:54:26]SAM_PROTO_ClearQueue [08:54:26]wFMCommunicate request_size=4 [08:54:26]MH_SAM_APDU [08:54:26]CAPDU: 80 09 00 00 [08:54:26]Write to MH i2c: E2 08 00 5A 9A 80 09 00 00 00 00 00 00 66 [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:26]Read from MH i2c: E2 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: E2 03 00 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: E2 03 00 5A 9A 00 90 00 68 [08:54:26]RAPDU: 90 00 [08:54:26]wFMCommunicate OK [08:54:26]SAM_PROTO_ClearQueue done [08:54:26]KKMCreateOFDPacket [08:54:26]OFDProtocolAddRootSTLVToBuf [08:54:26]FM_MakeSignedData [08:54:26]FM_MakeSignedData [08:54:26]SAM_PROTO_SignData [08:54:26]wFMCommunicate request_size=4 [08:54:26]MH_SAM_APDU [08:54:26]CAPDU: 80 0D 01 02 [08:54:26]Write to MH i2c: E2 08 00 5B 9A 80 0D 01 02 00 00 00 00 6E [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 03 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 03 00 5B 9A 00 90 00 69 [08:54:27]RAPDU: 90 00 [08:54:27]wFMCommunicate OK [08:54:27]wFMCommunicate request_size=255 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 60 A5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 69 00 00 35 04 06 00 0E [08:54:27]Write to MH i2c: E2 02 01 5C 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 60 A5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 69 00 00 35 04 06 00 0E 00 00 13 [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 03 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 03 00 5C 9A 00 90 00 6A [08:54:27]RAPDU: 90 00 [08:54:27]wFMCommunicate OK [08:54:27]wFMCommunicate request_size=10 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 0D 02 02 05 93 FF C7 34 A2 [08:54:27]Write to MH i2c: E2 0D 00 5D 9A 80 0D 02 02 05 00 93 FF C7 34 A2 00 00 AA [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 03 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 03 00 5D 9A 00 90 00 6B [08:54:27]RAPDU: 90 00 [08:54:27]wFMCommunicate OK [08:54:27]wFMCommunicate request_size=4 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 0D 03 02 [08:54:27]Write to MH i2c: E2 08 00 5E 9A 80 0D 03 02 00 00 00 00 73 [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 0B 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 0B 00 5E 9A 00 5E 89 5D D0 5C A2 39 B2 90 00 71 [08:54:27]RAPDU: 5E 89 5D D0 5C A2 39 B2 90 00 [08:54:27]wFMCommunicate OK [08:54:27]SAM_PROTO_SignData done [08:54:27]FM_MakeSignedData done [08:54:27]CreateOFDProtocolMessage [08:54:27]wFMCommunicate request_size=4 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 11 00 00 [08:54:27]Write to MH i2c: E2 08 00 5F 9A 80 11 00 00 00 00 00 00 73 [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 17 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 17 00 5F 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 CB [08:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:54:27]wFMCommunicate OK [08:54:27]CreateOFDProtocolMessage done [08:54:27]OFDSenderStorePacket 27126 [08:54:27]StoreOFDPacket docnum=27126 [08:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 B1 D4 07 01 33 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 60 A5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 69 00 00 35 04 06 00 0E 93 FF C7 34 A2 5E 89 5D D0 5C A2 39 B2 [08:54:27]CheckFolder [08:54:27]dirname=/storage/ofd_packets [08:54:27]CheckFolder done [08:54:27]ProducePacketName [08:54:27]name=ofd_packets/00027126 [08:54:27]NVStorageSaveData ofd_packets/00027126 [08:54:27]File name is /storage/ofd_packets/00027126 [08:54:27]Write 301 bytes [08:54:27]NVStorageSaveData done [08:54:27]OFDSenderStorePacket done [08:54:27]KKMCreateOFDPacket done [08:54:27]NVStorageSaveData kkm_last_timestamp [08:54:27]File name is /storage/kkm_last_timestamp [08:54:27]Write 4 bytes [08:54:27]NVStorageSaveData done [08:54:27]ExternCall_PrintAddStr [08:54:27]wPrintStart [08:54:27]Write to MH i2c: 01 00 00 60 9A FA [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: 01 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: 01 07 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: 01 07 00 60 9A 00 00 00 00 00 FF 0F 0F [08:54:27]RasterBufferAndPrint [08:54:27]line Счет N : (1)359877 [08:54:27]line ИНН: 02508201610067 [08:54:27]line Контрольно-Кассовый Чек [08:54:27]line ПРОДАЖА [08:54:27]line ТРК (МРК, ГНК) : 51 [08:54:27]line Товар: 2710124130 [08:54:27]line Аи-92-К-5 [08:54:27]line 5.530 * 63.40 [08:54:27]line = 350.60 [08:54:27]line НДС 12% НСП 1% [08:54:27]line > о реализуемом товаре [08:54:27]line ОКРУГЛЕНИЕ: -0.60 [08:54:27]line ИТОГО: 350.00 [08:54:27]line Внесено: 350.00 [08:54:27]line СДАЧА: 0.00 [08:54:27]line НСП 1% : 3.10 [08:54:27]line НДС 12% : 37.23 [08:54:27]line Наличными: 350.00 [08:54:27]line Безнал.: 0.00 [08:54:27]line Место: АЗС № 122 "Партнер Нефть" [08:54:27]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [08:54:27]line СНО: Общий режим [08:54:27]line Чек 13 11.04.2024 08:54 [08:54:27]line Смена: 317 ФФД: 1.0 [08:54:27]line ЗНМ: 0300000147 [08:54:27]line РНМ: 0000000000091578 [08:54:27]line Версия ККМ: 001 [08:54:27]line ФМ: 0000000000874657 [08:54:27]line ФД: 27126 [08:54:27]line ФПД: 16028814226594 [08:54:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T085456&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27126&fm=16028814226594&tin=02508201610067®Number=0000000000091578&sum=35000 [08:54:27]OFD Sender: Processing packet 27126 [packets to send 44, broken 43] [08:54:27]ProducePacketName [08:54:27]name=ofd_packets/00027126 [08:54:27]OFD Sender: To server: pG, [08:54:27]CommunicateWithHost lk.salyk.kg:30040 [08:54:27]ConnectInit lk.salyk.kg [08:54:27]written 0, free lines is 4095 [08:54:27]Connected sock=10 [08:54: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 35 37 0F 01 00 00 B1 D4 07 01 33 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 60 A5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 69 00 00 35 04 06 00 0E 93 FF C7 34 A2 5E 89 5D D0 5C A2 39 B2 [08:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 E8 1E 47 00 61 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 69 00 00 F4 03 04 00 C1 4C 17 66 B6 04 01 00 00 46 39 E4 3F F4 98 9E 68 [08:54:28]CommunicateWithHost err = 0 [08:54:28]CheckOFDResponse [08:54:28]1017 (14) - 77093643461234 [08:54:28]1041 (16) - 0000000000874657 [08:54:28]1040 (4) - 27126 [08:54:28]1012 (4) - 11.04.2024 02:36 [08:54:28]1206 (1) - 0 [08:54:28]OFD Sender: Remove packet 27126 [08:54:28]ProducePacketName [08:54:28]name=ofd_packets/00027126 [08:54:28]NVStorageDeleteData [08:54:28]Write to MH i2c: 01 00 00 8B 9A 25 [08:54:28]Write i2c OK [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 07 00 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 07 00 8B 9A 00 00 00 00 00 73 0C AB [08:54:28]RasterBufferAndPrint [08:54:28]line [08:54:28]line [08:54:28]line [08:54:28]line [08:54:28]line [08:54:28]written 0, free lines is 3191 [08:54:28]MH_Cut [08:54:28]Write to MH i2c: D1 01 00 92 9A 01 FE [08:54:28]Write i2c OK [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: D1 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: D1 01 00 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: D1 01 00 92 9A 00 FD [08:54:28]Write to MH i2c: 01 00 00 93 9A 2D [08:54:28]Write i2c OK [08:54:28]MH_I2C_Read... [08:54:28]OFD Sender: No OFD packet to send [08:54:29]*** Cut start [08:54:29]*** Partial cut [08:54:29]*** CUTSNS_PIN = 1 [08:54:29]*** CUTSNS_PIN = 0 [08:54:29]*** Brake cut motor [08:54:30]Read from MH i2c: 01 [08:54:30]MH_I2C_Read... [08:54:30]*** Stop cut motor [08:54:30]*** Cut end [08:54:30]Read from MH i2c: 01 07 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: 01 07 00 93 9A 00 00 00 00 00 FF 0F 42 [08:54:30]process_action close_receipt done [08:54:30]requested_data is exist [08:54:30]produce_requested_data [08:54:30]requested_item fm.sn is exist - process it [08:54:30]wFMCommunicate request_size=4 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 11 00 00 [08:54:30]Write to MH i2c: E2 08 00 94 9A 80 11 00 00 00 00 00 00 A8 [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 17 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 17 00 94 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 00 [08:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:54:30]wFMCommunicate OK [08:54:30]requested_item fd.num is exist - process it [08:54:30]SAM_PROTO_GetFieldsCounters [08:54:30]wFMCommunicate request_size=4 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 13 00 00 [08:54:30]Write to MH i2c: E2 08 00 95 9A 80 13 00 00 00 00 00 00 AB [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 62 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 62 00 95 9A 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F6 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [08:54: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F6 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:30]wFMCommunicate OK [08:54:30]SAM_PROTO_GetFieldsCounters done [08:54:30]requested_item shift.num is exist - process it [08:54:30]requested_item shift.opened is exist - process it [08:54:30]req_shift_opened [08:54:30]FM_GetShiftState [08:54:30]SAM_PROTO_GetShiftState [08:54:30]wFMCommunicate request_size=4 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 13 01 00 [08:54:30]Write to MH i2c: E2 08 00 96 9A 80 13 01 00 00 00 00 00 AD [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 0E 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 0E 00 96 9A 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 F7 [08:54:30]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [08:54:30]wFMCommunicate OK [08:54:30]SAM_PROTO_GetShiftState done [08:54:30]FM_GetShiftState done [08:54:30]req_shift_opened done [08:54:30]requested_item shift.open_date is exist - process it [08:54:30]req_shift_open_date [08:54:30]req_shift_open_date done [08:54:30]produce_requested_data done [08:54:30]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27126,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [08:54:30]process_action_free close_receipt [08:54:30]json_value_free [08:54:30]json_value_free done [08:54:30]process_json_proto returns [08:54:30]Send response to host [08:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27126,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [08:54:30]free response buf [08:54:30]execute_script done [08:54:30]execute_script returns [08:54:30]free content buf [08:54:30]Sock 9.Close socket [08:54:30]Sock 9.Thread stoped [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:53]accept exits with 8 [08:54:53]New connection [08:54:53]New thread 3067014500 created [08:54:53]Thread 3066871140 joined [08:54:53]Waiting for new connection... [08:54:53] Sock 8.Parse request [08:54:53]Sock 8.Check first char [08:54:53]Sock 8.First char is OK [08:54:53]request: POST /json_proto HTTP/1.0 [08:54:53]Method: POST [08:54:53]URL: /json_proto [08:54:53]Method is POST - this is cgi request [08:54:53]url: /json_proto [08:54:53]query_string will be loaded in cgi processing [08:54:53]execute_cgi json_proto POST (null) [08:54:53]execute_cgi path=json_proto method=POST [08:54:53]POST find Content-Length [08:54:53]Host: 172.17.35.3:8080 [08:54:53]Content-Length: 215 [08:54:53]Content-Type: application/json [08:54:53] [08:54:53]POST finish read [08:54:53]Found Content-Length = 215 [08:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:53]execute_script... [08:54:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:53]POST & json_proto [08:54:53]process_json_proto [08:54:53]json parsed OK: [08:54:53]protocol is kg_v1.0 [08:54:53]action value=get_value [08:54:53]process_action get_value [08:54:53]cmd_get_value [08:54:53]process_action get_value done [08:54:53]requested_data is exist [08:54:53]produce_requested_data [08:54:53]requested_item kkm.sn is exist - process it [08:54:53]requested_item kkm.ver is exist - process it [08:54:53]requested_item fm.sn is exist - process it [08:54:53]wFMCommunicate request_size=4 [08:54:53]MH_SAM_APDU [08:54:53]CAPDU: 80 11 00 00 [08:54:53]Write to MH i2c: E2 08 00 97 9A 80 11 00 00 00 00 00 00 AB [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:53]Read from MH i2c: E2 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: E2 17 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: E2 17 00 97 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 03 [08:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:54:53]wFMCommunicate OK [08:54:53]requested_item fd.num is exist - process it [08:54:53]SAM_PROTO_GetFieldsCounters [08:54:53]wFMCommunicate request_size=4 [08:54:53]MH_SAM_APDU [08:54:53]CAPDU: 80 13 00 00 [08:54:53]Write to MH i2c: E2 08 00 98 9A 80 13 00 00 00 00 00 00 AE [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:53]Read from MH i2c: E2 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: E2 62 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: E2 62 00 98 9A 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F6 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [08:54:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F6 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:53]wFMCommunicate OK [08:54:53]SAM_PROTO_GetFieldsCounters done [08:54:53]requested_item shift.num is exist - process it [08:54:53]requested_item shift.opened is exist - process it [08:54:53]req_shift_opened [08:54:53]FM_GetShiftState [08:54:53]SAM_PROTO_GetShiftState [08:54:53]wFMCommunicate request_size=4 [08:54:53]MH_SAM_APDU [08:54:53]CAPDU: 80 13 01 00 [08:54:53]Write to MH i2c: E2 08 00 99 9A 80 13 01 00 00 00 00 00 B0 [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:53]Read from MH i2c: E2 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: E2 0E 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: E2 0E 00 99 9A 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 FA [08:54:53]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [08:54:53]wFMCommunicate OK [08:54:53]SAM_PROTO_GetShiftState done [08:54:53]FM_GetShiftState done [08:54:53]req_shift_opened done [08:54:53]requested_item shift.open_date is exist - process it [08:54:53]req_shift_open_date [08:54:53]req_shift_open_date done [08:54:53]produce_requested_data done [08:54:53]produce_requested_data return {"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":27126,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [08:54:53]process_action_free get_value [08:54:53]json_value_free [08:54:53]json_value_free done [08:54:53]process_json_proto returns [08:54:53]Send response to host [08:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":27126,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [08:54:53]free response buf [08:54:53]execute_script done [08:54:53]execute_script returns [08:54:53]free content buf [08:54:53]Sock 8.Close socket [08:54:53]Sock 8.Thread stoped [08:54:54]accept exits with 9 [08:54:54]New connection [08:54:54]New thread 3066871140 created [08:54:54]Thread 3067014500 joined [08:54:54]Waiting for new connection... [08:54:54] Sock 9.Parse request [08:54:54]Sock 9.Check first char [08:54:54]Sock 9.First char is OK [08:54:54]request: POST /json_proto HTTP/1.0 [08:54:54]Method: POST [08:54:54]URL: /json_proto [08:54:54]Method is POST - this is cgi request [08:54:54]url: /json_proto [08:54:54]query_string will be loaded in cgi processing [08:54:54]execute_cgi json_proto POST (null) [08:54:54]execute_cgi path=json_proto method=POST [08:54:54]POST find Content-Length [08:54:54]Host: 172.17.35.3:8080 [08:54:54]Content-Length: 331 [08:54:54]Content-Type: application/json [08:54:54] [08:54:54]POST finish read [08:54:54]Found Content-Length = 331 [08:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:54:54]execute_script... [08:54:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:54:54]POST & json_proto [08:54:54]process_json_proto [08:54:54]json parsed OK: [08:54:54]protocol is kg_v1.0 [08:54:54]action value=get_value [08:54:54]process_action get_value [08:54:54]cmd_get_value [08:54:54]process_action get_value done [08:54:54]requested_data is exist [08:54:54]produce_requested_data [08:54:54]requested_item fm.sale.total is exist - process it [08:54:54]SAM_PROTO_GetFMData [08:54:54]wFMCommunicate request_size=4 [08:54:54]MH_SAM_APDU [08:54:54]CAPDU: 80 13 03 00 [08:54:54]Write to MH i2c: E2 08 00 9A 9A 80 13 03 00 00 00 00 00 B3 [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:54:54]Read from MH i2c: E2 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 FD 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 FD 00 9A 9A 00 C0 04 85 04 BC 04 6E 04 04 00 7C 67 00 00 69 04 A1 00 6F 04 04 00 38 67 00 00 B1 04 04 00 47 07 59 9D 70 04 04 00 20 CC D3 80 72 04 04 00 27 3B 85 1C 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 26 A7 B6 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 87 64 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 00 [08:54:54]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 7C 67 00 00 69 04 A1 00 6F 04 04 00 38 67 00 00 B1 04 04 00 47 07 59 9D 70 04 04 00 20 CC D3 80 72 04 04 00 27 3B 85 1C 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 26 A7 B6 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 87 64 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 [08:54:54]wFMCommunicate OK [08:54:54]wFMCommunicate request_size=4 [08:54:54]MH_SAM_APDU [08:54:54]CAPDU: 80 17 00 00 [08:54:54]Write to MH i2c: E2 08 00 9B 9A 80 17 00 00 00 00 00 00 B5 [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 FD 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 FD 00 9B 9A 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 FB [08:54:55]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 [08:54:55]wFMCommunicate OK [08:54:55]wFMCommunicate request_size=4 [08:54:55]MH_SAM_APDU [08:54:55]CAPDU: 80 17 00 00 [08:54:55]Write to MH i2c: E2 08 00 9C 9A 80 17 00 00 00 00 00 00 B6 [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 FD 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 FD 00 9C 9A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 59 [08:54:55]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [08:54:55]wFMCommunicate OK [08:54:55]wFMCommunicate request_size=4 [08:54:55]MH_SAM_APDU [08:54:55]CAPDU: 80 17 00 00 [08:54:55]Write to MH i2c: E2 08 00 9D 9A 80 17 00 00 00 00 00 00 B7 [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 FD 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 FD 00 9D 9A 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 2F [08:54:55]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [08:54:55]wFMCommunicate OK [08:54:55]wFMCommunicate request_size=4 [08:54:55]MH_SAM_APDU [08:54:55]CAPDU: 80 17 00 00 [08:54:55]Write to MH i2c: E2 08 00 9E 9A 80 17 00 00 00 00 00 00 B8 [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 DD 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 DD 00 9E 9A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A0 [08:54:55]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:54:55]wFMCommunicate OK [08:54:55]SAM_PROTO_GetFMData done [08:54:55]requested_item fm.sale_refund.total is exist - process it [08:54:55]requested_item fm.buy.total is exist - process it [08:54:55]requested_item shift.sale.total is exist - process it [08:54:55]SAM_PROTO_GetShiftData [08:54:55]wFMCommunicate request_size=4 [08:54:55]MH_SAM_APDU [08:54:55]CAPDU: 80 13 02 00 [08:54:55]Write to MH i2c: E2 08 00 9F 9A 80 13 02 00 00 00 00 00 B7 [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 FD 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 FD 00 9F 9A 00 AE 04 AA 04 AA 04 6E 04 04 00 0D 00 00 00 69 04 9B 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 E8 3F 0C 70 04 03 00 5C E8 06 72 04 03 00 8C 57 05 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 23 4D 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C3 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 46 [08:54:56]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 0D 00 00 00 69 04 9B 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 E8 3F 0C 70 04 03 00 5C E8 06 72 04 03 00 8C 57 05 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 23 4D 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C3 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:54:56]wFMCommunicate OK [08:54:56]wFMCommunicate request_size=4 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 17 00 00 [08:54:56]Write to MH i2c: E2 08 00 A0 9A 80 17 00 00 00 00 00 00 BA [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 FD 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 FD 00 A0 9A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 DC [08:54:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:54:56]wFMCommunicate OK [08:54:56]wFMCommunicate request_size=4 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 17 00 00 [08:54:56]Write to MH i2c: E2 08 00 A1 9A 80 17 00 00 00 00 00 00 BB [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 FD 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 FD 00 A1 9A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 72 [08:54:56]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:54:56]wFMCommunicate OK [08:54:56]wFMCommunicate request_size=4 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 17 00 00 [08:54:56]Write to MH i2c: E2 08 00 A2 9A 80 17 00 00 00 00 00 00 BC [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:54:57]Read from MH i2c: E2 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: E2 FD 00 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: E2 FD 00 A2 9A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 2E [08:54:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:54:57]wFMCommunicate OK [08:54:57]wFMCommunicate request_size=4 [08:54:57]MH_SAM_APDU [08:54:57]CAPDU: 80 17 00 00 [08:54:57]Write to MH i2c: E2 08 00 A3 9A 80 17 00 00 00 00 00 00 BD [08:54:57]Write i2c OK [08:54:57]MH_I2C_Read... [08:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:54:57]Read from MH i2c: E2 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: E2 CB 00 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: E2 CB 00 A3 9A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A6 [08:54:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:54:57]wFMCommunicate OK [08:54:57]SAM_PROTO_GetShiftData done [08:54:57]requested_item shift.sale.total_cash is exist - process it [08:54:57]requested_item shift.sale_refund.total is exist - process it [08:54:57]requested_item shift.sale_refund.total_cash is exist - process it [08:54:57]requested_item shift.buy.total is exist - process it [08:54:57]requested_item shift.buy.total_cash is exist - process it [08:54:57]produce_requested_data done [08:54:57]produce_requested_data return {"fm.sale.total":26398574.79,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":8027.92,"shift.sale.total_cash":4527.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:54:57]process_action_free get_value [08:54:57]json_value_free [08:54:57]json_value_free done [08:54:57]process_json_proto returns [08:54:57]Send response to host [08:54:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26398574.79,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":8027.92,"shift.sale.total_cash":4527.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:54:57]free response buf [08:54:57]execute_script done [08:54:57]execute_script returns [08:54:57]free content buf [08:54:57]Sock 9.Close socket [08:54:57]Sock 9.Thread stoped [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:07]accept exits with 8 [09:02:07]New connection [09:02:07]New thread 3067014500 created [09:02:07]Thread 3066871140 joined [09:02:07]Waiting for new connection... [09:02:07] Sock 8.Parse request [09:02:07]Sock 8.Check first char [09:02:07]Sock 8.First char is OK [09:02:07]request: POST /json_proto HTTP/1.0 [09:02:07]Method: POST [09:02:07]URL: /json_proto [09:02:07]Method is POST - this is cgi request [09:02:07]url: /json_proto [09:02:07]query_string will be loaded in cgi processing [09:02:07]execute_cgi json_proto POST (null) [09:02:07]execute_cgi path=json_proto method=POST [09:02:07]POST find Content-Length [09:02:07]Host: 172.17.35.3:8080 [09:02:07]Content-Length: 682 [09:02:07]Content-Type: application/json [09:02:07] [09:02:07]POST finish read [09:02:07]Found Content-Length = 682 [09:02:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 6.970, "sum" : 500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:07]execute_script... [09:02:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 6.970, "sum" : 500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:07]POST & json_proto [09:02:07]process_json_proto [09:02:07]json parsed OK: [09:02:07]protocol is kg_v1.0 [09:02:07]action value=close_receipt [09:02:07]process_action close_receipt [09:02:07]cmd_close_receipt [09:02:07]MH_GetDate [09:02:07]Write to MH i2c: F0 00 00 A4 9A 2D [09:02:07]Write i2c OK [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: F0 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: F0 09 00 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: F0 09 00 A4 9A 00 2E A7 17 66 2B 11 66 64 8E [09:02:07]GetLastDocTimeStamp 1712825696 [09:02:07]current date 1712826158 [09:02:07]FM_GetShiftState [09:02:07]SAM_PROTO_GetShiftState [09:02:07]wFMCommunicate request_size=4 [09:02:07]MH_SAM_APDU [09:02:07]CAPDU: 80 13 01 00 [09:02:07]Write to MH i2c: E2 08 00 A5 9A 80 13 01 00 00 00 00 00 BC [09:02:07]Write i2c OK [09:02:07]MH_I2C_Read... [09:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:07]Read from MH i2c: E2 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: E2 0E 00 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: E2 0E 00 A5 9A 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 06 [09:02:07]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:02:07]wFMCommunicate OK [09:02:07]SAM_PROTO_GetShiftState done [09:02:07]FM_GetShiftState done [09:02:07]opened in 1712795538 [09:02:07]opened+sec_in_day 1712881938 [09:02:07]quantity*price = 50044 [09:02:07]sum+1 = 50046 [09:02:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 14 11.04.2024 09:02 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27127 ФПД: 261371499738007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T090238&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27127&fm=261371499738007&tin=02508201610067®Number=0000000000091578&sum=50000 [09:02:08]StoreToDocumentArchive [09:02:08]shift 317 fd 27127 [09:02:08]save to /storage/0317/doc_00027127 [09:02:08]save last doc name /storage/0317/doc_00027127 to /storage/kkm_last_doc_name [09:02:08]save OK [09:02:08]Clear old archive folders... [09:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:02:08]tlvbuf is 00F75760 [09:02:08]SAM_PROTO_ClearQueue [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 09 00 00 [09:02:08]Write to MH i2c: E2 08 00 B2 9A 80 09 00 00 00 00 00 00 BE [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 B2 9A 00 90 00 C0 [09:02:08]RAPDU: 90 00 [09:02:08]wFMCommunicate OK [09:02:08]SAM_PROTO_ClearQueue done [09:02:08]KKMCreateOFDPacket [09:02:08]OFDProtocolAddRootSTLVToBuf [09:02:08]FM_MakeSignedData [09:02:08]FM_MakeSignedData [09:02:08]SAM_PROTO_SignData [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 0D 01 02 [09:02:08]Write to MH i2c: E2 08 00 B3 9A 80 0D 01 02 00 00 00 00 C6 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 B3 9A 00 90 00 C1 [09:02:08]RAPDU: 90 00 [09:02:08]wFMCommunicate OK [09:02:08]wFMCommunicate request_size=255 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2E A7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 69 00 00 35 04 06 00 [09:02:08]Write to MH i2c: E2 02 01 B4 9A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2E A7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 69 00 00 35 04 06 00 00 00 88 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:09]OFD Sender: No OFD packet to send [09:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 B4 9A 00 90 00 C2 [09:02:09]RAPDU: 90 00 [09:02:09]wFMCommunicate OK [09:02:09]wFMCommunicate request_size=11 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 0D 02 02 06 ED B7 4B 65 73 97 [09:02:09]Write to MH i2c: E2 0E 00 B5 9A 80 0D 02 02 06 00 ED B7 4B 65 73 97 00 00 33 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 B5 9A 00 90 00 C3 [09:02:09]RAPDU: 90 00 [09:02:09]wFMCommunicate OK [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 0D 03 02 [09:02:09]Write to MH i2c: E2 08 00 B6 9A 80 0D 03 02 00 00 00 00 CB [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0B 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0B 00 B6 9A 00 D0 FB 68 36 72 65 34 37 90 00 77 [09:02:09]RAPDU: D0 FB 68 36 72 65 34 37 90 00 [09:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_SignData done [09:02:09]FM_MakeSignedData done [09:02:09]CreateOFDProtocolMessage [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 11 00 00 [09:02:09]Write to MH i2c: E2 08 00 B7 9A 80 11 00 00 00 00 00 00 CB [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 17 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 17 00 B7 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 23 [09:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:02:09]wFMCommunicate OK [09:02:09]CreateOFDProtocolMessage done [09:02:09]OFDSenderStorePacket 27127 [09:02:09]StoreOFDPacket docnum=27127 [09:02:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 1F 44 08 01 52 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2E A7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 69 00 00 35 04 06 00 ED B7 4B 65 73 97 D0 FB 68 36 72 65 34 37 [09:02:09]CheckFolder [09:02:09]dirname=/storage/ofd_packets [09:02:09]CheckFolder done [09:02:09]ProducePacketName [09:02:09]name=ofd_packets/00027127 [09:02:09]NVStorageSaveData ofd_packets/00027127 [09:02:09]File name is /storage/ofd_packets/00027127 [09:02:09]Write 302 bytes [09:02:09]NVStorageSaveData done [09:02:09]OFDSenderStorePacket done [09:02:09]KKMCreateOFDPacket done [09:02:09]NVStorageSaveData kkm_last_timestamp [09:02:09]File name is /storage/kkm_last_timestamp [09:02:09]Write 4 bytes [09:02:09]NVStorageSaveData done [09:02:09]ExternCall_PrintAddStr [09:02:09]wPrintStart [09:02:09]Write to MH i2c: 01 00 00 B8 9A 52 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: 01 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: 01 07 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: 01 07 00 B8 9A 00 00 00 00 00 FF 0F 67 [09:02:09]RasterBufferAndPrint [09:02:09]line Счет N : (1)359878 [09:02:09]line ИНН: 02508201610067 [09:02:09]line Контрольно-Кассовый Чек [09:02:09]line ПРОДАЖА [09:02:09]line ТРК (МРК, ГНК) : 11 [09:02:09]line Товар: 2710194210 [09:02:09]line ДТ(л)-К-5 [09:02:09]line 6.970 * 71.80 [09:02:09]line = 500.45 [09:02:09]line НДС 12% НСП 1% [09:02:09]line > о реализуемом товаре [09:02:09]line ОКРУГЛЕНИЕ: -0.45 [09:02:09]line ИТОГО: 500.00 [09:02:09]line Внесено: 500.00 [09:02:09]line СДАЧА: 0.00 [09:02:09]line НСП 1% : 4.43 [09:02:09]line НДС 12% : 53.14 [09:02:09]line Наличными: 500.00 [09:02:09]line Безнал.: 0.00 [09:02:09]line Место: АЗС № 122 "Партнер Нефть" [09:02:09]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [09:02:09]line СНО: Общий режим [09:02:09]line Чек 14 11.04.2024 09:02 [09:02:09]line Смена: 317 ФФД: 1.0 [09:02:09]line ЗНМ: 0300000147 [09:02:09]line РНМ: 0000000000091578 [09:02:09]line Версия ККМ: 001 [09:02:09]line ФМ: 0000000000874657 [09:02:09]line ФД: 27127 [09:02:09]line ФПД: 261371499738007 [09:02:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T090238&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27127&fm=261371499738007&tin=02508201610067®Number=0000000000091578&sum=50000 [09:02:09]OFD Sender: Processing packet 27127 [packets to send 44, broken 43] [09:02:09]ProducePacketName [09:02:09]name=ofd_packets/00027127 [09:02:09]OFD Sender: To server: pG, [09:02:09]CommunicateWithHost lk.salyk.kg:30040 [09:02:09]ConnectInit lk.salyk.kg [09:02:09]written 0, free lines is 4095 [09:02:09]Connected sock=10 [09:02: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 35 37 10 01 00 00 1F 44 08 01 52 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2E A7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 69 00 00 35 04 06 00 ED B7 4B 65 73 97 D0 FB 68 36 72 65 34 37 [09:02:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 83 29 47 00 92 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 69 00 00 F4 03 04 00 8F 4E 17 66 B6 04 01 00 00 C5 E5 3C 21 8B 58 B7 D2 [09:02:10]CommunicateWithHost err = 0 [09:02:10]CheckOFDResponse [09:02:10]1017 (14) - 77093643461234 [09:02:10]1041 (16) - 0000000000874657 [09:02:10]1040 (4) - 27127 [09:02:10]1012 (4) - 11.04.2024 02:44 [09:02:10]1206 (1) - 0 [09:02:10]OFD Sender: Remove packet 27127 [09:02:10]ProducePacketName [09:02:10]name=ofd_packets/00027127 [09:02:10]NVStorageDeleteData [09:02:10]Write to MH i2c: 01 00 00 E3 9A 7D [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 07 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 07 00 E3 9A 00 00 00 00 00 6A 0C FA [09:02:10]RasterBufferAndPrint [09:02:10]line [09:02:10]line [09:02:10]line [09:02:10]line [09:02:10]line [09:02:10]written 0, free lines is 3182 [09:02:10]MH_Cut [09:02:10]Write to MH i2c: D1 01 00 EA 9A 01 56 [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: D1 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: D1 01 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: D1 01 00 EA 9A 00 55 [09:02:10]Write to MH i2c: 01 00 00 EB 9A 85 [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]OFD Sender: No OFD packet to send [09:02:11]*** Cut start [09:02:11]*** Partial cut [09:02:11]*** CUTSNS_PIN = 1 [09:02:11]*** CUTSNS_PIN = 0 [09:02:11]*** Brake cut motor [09:02:12]Read from MH i2c: 01 [09:02:12]MH_I2C_Read... [09:02:12]*** Stop cut motor [09:02:12]*** Cut end [09:02:12]Read from MH i2c: 01 07 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: 01 07 00 EB 9A 00 00 00 00 00 FF 0F 9A [09:02:12]process_action close_receipt done [09:02:12]requested_data is exist [09:02:12]produce_requested_data [09:02:12]requested_item fm.sn is exist - process it [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 11 00 00 [09:02:12]Write to MH i2c: E2 08 00 EC 9A 80 11 00 00 00 00 00 00 00 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 17 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 17 00 EC 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 58 [09:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:02:12]wFMCommunicate OK [09:02:12]requested_item fd.num is exist - process it [09:02:12]SAM_PROTO_GetFieldsCounters [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 13 00 00 [09:02:12]Write to MH i2c: E2 08 00 ED 9A 80 13 00 00 00 00 00 00 03 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 62 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 62 00 ED 9A 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F7 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [09:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F7 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_GetFieldsCounters done [09:02:12]requested_item shift.num is exist - process it [09:02:12]requested_item shift.opened is exist - process it [09:02:12]req_shift_opened [09:02:12]FM_GetShiftState [09:02:12]SAM_PROTO_GetShiftState [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 13 01 00 [09:02:12]Write to MH i2c: E2 08 00 EE 9A 80 13 01 00 00 00 00 00 05 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0E 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0E 00 EE 9A 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 4F [09:02:12]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_GetShiftState done [09:02:12]FM_GetShiftState done [09:02:12]req_shift_opened done [09:02:12]requested_item shift.open_date is exist - process it [09:02:12]req_shift_open_date [09:02:12]req_shift_open_date done [09:02:12]produce_requested_data done [09:02:12]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27127,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [09:02:12]process_action_free close_receipt [09:02:12]json_value_free [09:02:12]json_value_free done [09:02:12]process_json_proto returns [09:02:12]Send response to host [09:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27127,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [09:02:12]free response buf [09:02:12]execute_script done [09:02:12]execute_script returns [09:02:12]free content buf [09:02:12]Sock 8.Close socket [09:02:12]Sock 8.Thread stoped [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:07:58]accept exits with 9 [09:07:58]New connection [09:07:58]New thread 3066871140 created [09:07:58]Thread 3067014500 joined [09:07:58]Waiting for new connection... [09:07:58] Sock 9.Parse request [09:07:58]Sock 9.Check first char [09:07:58]Sock 9.First char is OK [09:07:58]request: POST /json_proto HTTP/1.0 [09:07:58]Method: POST [09:07:58]URL: /json_proto [09:07:58]Method is POST - this is cgi request [09:07:58]url: /json_proto [09:07:58]query_string will be loaded in cgi processing [09:07:58]execute_cgi json_proto POST (null) [09:07:58]execute_cgi path=json_proto method=POST [09:07:58]POST find Content-Length [09:07:58]Host: 172.17.35.3:8080 [09:07:58]Content-Length: 678 [09:07:58]Content-Type: application/json [09:07:58] [09:07:58]POST finish read [09:07:58]Found Content-Length = 678 [09:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 12.620, "sum" : 800.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:58]execute_script... [09:07:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 12.620, "sum" : 800.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:58]POST & json_proto [09:07:58]process_json_proto [09:07:58]json parsed OK: [09:07:58]protocol is kg_v1.0 [09:07:58]action value=close_receipt [09:07:58]process_action close_receipt [09:07:58]cmd_close_receipt [09:07:58]MH_GetDate [09:07:58]Write to MH i2c: F0 00 00 EF 9A 78 [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: F0 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: F0 09 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: F0 09 00 EF 9A 00 8D A8 17 66 2B 11 66 64 39 [09:07:58]GetLastDocTimeStamp 1712826158 [09:07:58]current date 1712826509 [09:07:58]FM_GetShiftState [09:07:58]SAM_PROTO_GetShiftState [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 13 01 00 [09:07:58]Write to MH i2c: E2 08 00 F0 9A 80 13 01 00 00 00 00 00 07 [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0E 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0E 00 F0 9A 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 51 [09:07:58]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:07:58]wFMCommunicate OK [09:07:58]SAM_PROTO_GetShiftState done [09:07:58]FM_GetShiftState done [09:07:58]opened in 1712795538 [09:07:58]opened+sec_in_day 1712881938 [09:07:58]quantity*price = 80010 [09:07:58]sum+1 = 80012 [09:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 15 11.04.2024 09:08 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27128 ФПД: 59917182320899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T090829&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27128&fm=59917182320899&tin=02508201610067®Number=0000000000091578&sum=80000 [09:07:59]StoreToDocumentArchive [09:07:59]shift 317 fd 27128 [09:07:59]save to /storage/0317/doc_00027128 [09:07:59]save last doc name /storage/0317/doc_00027128 to /storage/kkm_last_doc_name [09:07:59]save OK [09:07:59]Clear old archive folders... [09:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:59]tlvbuf is 00EFE400 [09:07:59]SAM_PROTO_ClearQueue [09:07:59]wFMCommunicate request_size=4 [09:07:59]MH_SAM_APDU [09:07:59]CAPDU: 80 09 00 00 [09:07:59]Write to MH i2c: E2 08 00 FD 9A 80 09 00 00 00 00 00 00 09 [09:07:59]Write i2c OK [09:07:59]MH_I2C_Read... [09:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:59]Read from MH i2c: E2 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: E2 03 00 [09:07:59]MH_I2C_Read... [09:07:59]Read from MH i2c: E2 03 00 FD 9A 00 90 00 0B [09:07:59]RAPDU: 90 00 [09:07:59]wFMCommunicate OK [09:07:59]SAM_PROTO_ClearQueue done [09:07:59]KKMCreateOFDPacket [09:07:59]OFDProtocolAddRootSTLVToBuf [09:07:59]FM_MakeSignedData [09:07:59]FM_MakeSignedData [09:07:59]SAM_PROTO_SignData [09:07:59]wFMCommunicate request_size=4 [09:07:59]MH_SAM_APDU [09:07:59]CAPDU: 80 0D 01 02 [09:07:59]Write to MH i2c: E2 08 00 FE 9A 80 0D 01 02 00 00 00 00 11 [09:07:59]Write i2c OK [09:07:59]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 FE 9A 00 90 00 0C [09:08:00]RAPDU: 90 00 [09:08:00]wFMCommunicate OK [09:08:00]wFMCommunicate request_size=255 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 8B 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 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 8D A8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F8 69 00 00 35 04 06 00 36 [09:08:00]Write to MH i2c: E2 02 01 FF 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 8B 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 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 8D A8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F8 69 00 00 35 04 06 00 36 00 00 62 [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 FF 9A 00 90 00 0D [09:08:00]RAPDU: 90 00 [09:08:00]wFMCommunicate OK [09:08:00]wFMCommunicate request_size=10 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 0D 02 02 05 7E 8E 5E 41 03 [09:08:00]Write to MH i2c: E2 0D 00 00 9B 80 0D 02 02 05 00 7E 8E 5E 41 03 00 00 CD [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 03 00 00 9B 00 90 00 0F [09:08:00]RAPDU: 90 00 [09:08:00]wFMCommunicate OK [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 0D 03 02 [09:08:00]Write to MH i2c: E2 08 00 01 9B 80 0D 03 02 00 00 00 00 17 [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 0B 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 0B 00 01 9B 00 8C 23 F7 A4 00 59 0B 60 90 00 26 [09:08:00]RAPDU: 8C 23 F7 A4 00 59 0B 60 90 00 [09:08:00]wFMCommunicate OK [09:08:00]SAM_PROTO_SignData done [09:08:00]FM_MakeSignedData done [09:08:00]CreateOFDProtocolMessage [09:08:00]wFMCommunicate request_size=4 [09:08:00]MH_SAM_APDU [09:08:00]CAPDU: 80 11 00 00 [09:08:00]Write to MH i2c: E2 08 00 02 9B 80 11 00 00 00 00 00 00 17 [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:00]Read from MH i2c: E2 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 17 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: E2 17 00 02 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 6F [09:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:08:00]wFMCommunicate OK [09:08:00]CreateOFDProtocolMessage done [09:08:00]OFDSenderStorePacket 27128 [09:08:00]StoreOFDPacket docnum=27128 [09:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 AE 08 07 01 BC A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 8B 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 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 8D A8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F8 69 00 00 35 04 06 00 36 7E 8E 5E 41 03 8C 23 F7 A4 00 59 0B 60 [09:08:00]CheckFolder [09:08:00]dirname=/storage/ofd_packets [09:08:00]CheckFolder done [09:08:00]ProducePacketName [09:08:00]name=ofd_packets/00027128 [09:08:00]NVStorageSaveData ofd_packets/00027128 [09:08:00]File name is /storage/ofd_packets/00027128 [09:08:00]Write 301 bytes [09:08:00]NVStorageSaveData done [09:08:00]OFDSenderStorePacket done [09:08:00]KKMCreateOFDPacket done [09:08:00]NVStorageSaveData kkm_last_timestamp [09:08:00]File name is /storage/kkm_last_timestamp [09:08:00]Write 4 bytes [09:08:00]NVStorageSaveData done [09:08:00]ExternCall_PrintAddStr [09:08:00]wPrintStart [09:08:00]Write to MH i2c: 01 00 00 03 9B 9E [09:08:00]Write i2c OK [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: 01 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: 01 07 00 [09:08:00]MH_I2C_Read... [09:08:00]Read from MH i2c: 01 07 00 03 9B 00 00 00 00 00 FF 0F B3 [09:08:00]RasterBufferAndPrint [09:08:00]line Счет N : (1)359879 [09:08:00]line ИНН: 02508201610067 [09:08:00]line Контрольно-Кассовый Чек [09:08:00]line ПРОДАЖА [09:08:00]line ТРК (МРК, ГНК) : 51 [09:08:00]line Товар: 2710124130 [09:08:00]line Аи-92-К-5 [09:08:00]line 12.620 * 63.40 [09:08:00]line = 800.11 [09:08:00]line НДС 12% НСП 1% [09:08:00]line > о реализуемом товаре [09:08:00]line ОКРУГЛЕНИЕ: -0.11 [09:08:00]line ИТОГО: 800.00 [09:08:00]line Внесено: 800.00 [09:08:00]line СДАЧА: 0.00 [09:08:00]line НСП 1% : 7.08 [09:08:00]line НДС 12% : 84.97 [09:08:00]line Наличными: 800.00 [09:08:00]line Безнал.: 0.00 [09:08:00]line Место: АЗС № 122 "Партнер Нефть" [09:08:00]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [09:08:00]line СНО: Общий режим [09:08:00]line Чек 15 11.04.2024 09:08 [09:08:00]line Смена: 317 ФФД: 1.0 [09:08:00]line ЗНМ: 0300000147 [09:08:00]line РНМ: 0000000000091578 [09:08:00]line Версия ККМ: 001 [09:08:00]line ФМ: 0000000000874657 [09:08:00]line ФД: 27128 [09:08:00]line ФПД: 59917182320899 [09:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T090829&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27128&fm=59917182320899&tin=02508201610067®Number=0000000000091578&sum=80000 [09:08:00]OFD Sender: Processing packet 27128 [packets to send 44, broken 43] [09:08:00]ProducePacketName [09:08:00]name=ofd_packets/00027128 [09:08:00]OFD Sender: To server: pG, [09:08:00]CommunicateWithHost lk.salyk.kg:30040 [09:08:00]ConnectInit lk.salyk.kg [09:08:00]written 0, free lines is 4095 [09:08:00]Connected sock=10 [09:08: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 35 37 0F 01 00 00 AE 08 07 01 BC A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 8B 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 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 8D A8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F8 69 00 00 35 04 06 00 36 7E 8E 5E 41 03 8C 23 F7 A4 00 59 0B 60 [09:08: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 35 37 4F 00 00 00 37 0E 47 00 DF D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 35 37 10 04 04 00 F8 69 00 00 F4 03 04 00 EE 4F 17 66 B6 04 01 00 00 07 F9 15 C1 9E 9C 6B 8B [09:08:01]CommunicateWithHost err = 0 [09:08:01]CheckOFDResponse [09:08:01]1017 (14) - 77093643461234 [09:08:01]1041 (16) - 0000000000874657 [09:08:01]1040 (4) - 27128 [09:08:01]1012 (4) - 11.04.2024 02:50 [09:08:01]1206 (1) - 0 [09:08:01]OFD Sender: Remove packet 27128 [09:08:01]ProducePacketName [09:08:01]name=ofd_packets/00027128 [09:08:01]NVStorageDeleteData [09:08:01]Write to MH i2c: 01 00 00 2E 9B C9 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: 01 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: 01 07 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: 01 07 00 2E 9B 00 00 00 00 00 6B 0C 47 [09:08:01]RasterBufferAndPrint [09:08:01]line [09:08:01]line [09:08:01]line [09:08:01]line [09:08:01]line [09:08:01]written 0, free lines is 3182 [09:08:01]MH_Cut [09:08:01]Write to MH i2c: D1 01 00 35 9B 01 A2 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: D1 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: D1 01 00 [09:08:01]MH_I2C_Read... [09:08:01]Read from MH i2c: D1 01 00 35 9B 00 A1 [09:08:01]Write to MH i2c: 01 00 00 36 9B D1 [09:08:01]Write i2c OK [09:08:01]MH_I2C_Read... [09:08:01]OFD Sender: No OFD packet to send [09:08:02]*** Cut start [09:08:02]*** Partial cut [09:08:02]*** CUTSNS_PIN = 1 [09:08:02]*** CUTSNS_PIN = 0 [09:08:02]*** Brake cut motor [09:08:03]Read from MH i2c: 01 [09:08:03]MH_I2C_Read... [09:08:03]*** Stop cut motor [09:08:03]*** Cut end [09:08:03]Read from MH i2c: 01 07 00 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: 01 07 00 36 9B 00 00 00 00 00 FF 0F E6 [09:08:03]process_action close_receipt done [09:08:03]requested_data is exist [09:08:03]produce_requested_data [09:08:03]requested_item fm.sn is exist - process it [09:08:03]wFMCommunicate request_size=4 [09:08:03]MH_SAM_APDU [09:08:03]CAPDU: 80 11 00 00 [09:08:03]Write to MH i2c: E2 08 00 37 9B 80 11 00 00 00 00 00 00 4C [09:08:03]Write i2c OK [09:08:03]MH_I2C_Read... [09:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:03]Read from MH i2c: E2 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: E2 17 00 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: E2 17 00 37 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 A4 [09:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:08:03]wFMCommunicate OK [09:08:03]requested_item fd.num is exist - process it [09:08:03]SAM_PROTO_GetFieldsCounters [09:08:03]wFMCommunicate request_size=4 [09:08:03]MH_SAM_APDU [09:08:03]CAPDU: 80 13 00 00 [09:08:03]Write to MH i2c: E2 08 00 38 9B 80 13 00 00 00 00 00 00 4F [09:08:03]Write i2c OK [09:08:03]MH_I2C_Read... [09:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:03]Read from MH i2c: E2 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: E2 62 00 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: E2 62 00 38 9B 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F8 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [09:08: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F8 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:03]wFMCommunicate OK [09:08:03]SAM_PROTO_GetFieldsCounters done [09:08:03]requested_item shift.num is exist - process it [09:08:03]requested_item shift.opened is exist - process it [09:08:03]req_shift_opened [09:08:03]FM_GetShiftState [09:08:03]SAM_PROTO_GetShiftState [09:08:03]wFMCommunicate request_size=4 [09:08:03]MH_SAM_APDU [09:08:03]CAPDU: 80 13 01 00 [09:08:03]Write to MH i2c: E2 08 00 39 9B 80 13 01 00 00 00 00 00 51 [09:08:03]Write i2c OK [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: E2 [09:08:03]MH_I2C_Read... [09:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:03]Read from MH i2c: E2 0E 00 [09:08:03]MH_I2C_Read... [09:08:03]Read from MH i2c: E2 0E 00 39 9B 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 9B [09:08:03]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:08:03]wFMCommunicate OK [09:08:03]SAM_PROTO_GetShiftState done [09:08:03]FM_GetShiftState done [09:08:03]req_shift_opened done [09:08:03]requested_item shift.open_date is exist - process it [09:08:03]req_shift_open_date [09:08:03]req_shift_open_date done [09:08:03]produce_requested_data done [09:08:03]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27128,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [09:08:03]process_action_free close_receipt [09:08:03]json_value_free [09:08:03]json_value_free done [09:08:03]process_json_proto returns [09:08:03]Send response to host [09:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27128,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [09:08:03]free response buf [09:08:03]execute_script done [09:08:03]execute_script returns [09:08:03]free content buf [09:08:03]Sock 9.Close socket [09:08:03]Sock 9.Thread stoped [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:09]accept exits with 8 [09:10:09]New connection [09:10:09]New thread 3067014500 created [09:10:09]Thread 3066871140 joined [09:10:09]Waiting for new connection... [09:10:09] Sock 8.Parse request [09:10:09]Sock 8.Check first char [09:10:09]Sock 8.First char is OK [09:10:09]request: POST /json_proto HTTP/1.0 [09:10:09]Method: POST [09:10:09]URL: /json_proto [09:10:09]Method is POST - this is cgi request [09:10:09]url: /json_proto [09:10:09]query_string will be loaded in cgi processing [09:10:09]execute_cgi json_proto POST (null) [09:10:09]execute_cgi path=json_proto method=POST [09:10:09]POST find Content-Length [09:10:09]Host: 172.17.35.3:8080 [09:10:09]Content-Length: 1062 [09:10:09]Content-Type: application/json [09:10:09] [09:10:09]POST finish read [09:10:09]Found Content-Length = 1062 [09:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359880\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 63.40\u000A\u0418\u0422\u041E\u0413: 1268.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30830045860\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:09]execute_script... [09:10:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359880\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 63.40\u000A\u0418\u0422\u041E\u0413: 1268.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30830045860\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:09]POST & json_proto [09:10:09]process_json_proto [09:10:09]json parsed OK: [09:10:09]protocol is kg_v1.0 [09:10:09]action value=print_text [09:10:09]process_action print_text [09:10:09]cmd_print_text [09:10:09]ExternCall_PrintAddStr [09:10:09]wPrintStart [09:10:09]Write to MH i2c: 01 00 00 3A 9B D5 [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: 01 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: 01 07 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: 01 07 00 3A 9B 00 00 00 00 00 FF 0F EA [09:10:09]RasterBufferAndPrint [09:10:09]line *****ТОВАРНЫЙ ЧЕК***** [09:10:09]line АЗС 122 [09:10:09]line Партнер нефть [09:10:09]line 02508201610067 [09:10:09]line Кассир : Эдилбаев К. [09:10:09]line Счет N : (1)359880 [09:10:09]line ПРОДАЖА [09:10:09]line ТРК (МРК, ГНК) : 61 [09:10:09]line Вид ГСМ : 2710124130 [09:10:09]line Аи-92-К-5 [09:10:09]line 20.000 x 63.40 [09:10:09]line ИТОГ: 1268.00 [09:10:09]line Тип оплаты: Талоны: ТК ГПНА Online [09:10:09]line 30830045860 [09:10:09]written 0, free lines is 4095 [09:10:09]Write to MH i2c: 01 00 00 4B 9B E6 [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: 01 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: 01 07 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: 01 07 00 4B 9B 00 00 00 00 00 60 0E 5B [09:10:09]RasterBufferAndPrint [09:10:09]line [09:10:09]line [09:10:09]line [09:10:09]line [09:10:09]line [09:10:09]written 0, free lines is 3681 [09:10:09]MH_Cut [09:10:09]Write to MH i2c: D1 01 00 52 9B 01 BF [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: D1 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: D1 01 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: D1 01 00 52 9B 00 BE [09:10:09]Write to MH i2c: 01 00 00 53 9B EE [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:10]*** Cut start [09:10:10]*** Partial cut [09:10:10]*** CUTSNS_PIN = 1 [09:10:10]*** CUTSNS_PIN = 0 [09:10:10]*** Brake cut motor [09:10:11]Read from MH i2c: 01 [09:10:11]MH_I2C_Read... [09:10:11]*** Stop cut motor [09:10:11]*** Cut end [09:10:11]Read from MH i2c: 01 07 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: 01 07 00 53 9B 00 00 00 00 00 FF 0F 03 [09:10:11]process_action print_text done [09:10:11]requested_data is exist [09:10:11]produce_requested_data [09:10:11]requested_item fm.sn is exist - process it [09:10:11]wFMCommunicate request_size=4 [09:10:11]MH_SAM_APDU [09:10:11]CAPDU: 80 11 00 00 [09:10:11]Write to MH i2c: E2 08 00 54 9B 80 11 00 00 00 00 00 00 69 [09:10:11]Write i2c OK [09:10:11]MH_I2C_Read... [09:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:11]Read from MH i2c: E2 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 17 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 17 00 54 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C1 [09:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:10:11]wFMCommunicate OK [09:10:11]requested_item fd.num is exist - process it [09:10:11]SAM_PROTO_GetFieldsCounters [09:10:11]wFMCommunicate request_size=4 [09:10:11]MH_SAM_APDU [09:10:11]CAPDU: 80 13 00 00 [09:10:11]Write to MH i2c: E2 08 00 55 9B 80 13 00 00 00 00 00 00 6C [09:10:11]Write i2c OK [09:10:11]MH_I2C_Read... [09:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:11]Read from MH i2c: E2 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 62 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 62 00 55 9B 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F8 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [09:10: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F8 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:11]wFMCommunicate OK [09:10:11]SAM_PROTO_GetFieldsCounters done [09:10:11]requested_item shift.num is exist - process it [09:10:11]requested_item shift.opened is exist - process it [09:10:11]req_shift_opened [09:10:11]FM_GetShiftState [09:10:11]SAM_PROTO_GetShiftState [09:10:11]wFMCommunicate request_size=4 [09:10:11]MH_SAM_APDU [09:10:11]CAPDU: 80 13 01 00 [09:10:11]Write to MH i2c: E2 08 00 56 9B 80 13 01 00 00 00 00 00 6E [09:10:11]Write i2c OK [09:10:11]MH_I2C_Read... [09:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:11]Read from MH i2c: E2 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 0E 00 [09:10:11]MH_I2C_Read... [09:10:11]Read from MH i2c: E2 0E 00 56 9B 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 B8 [09:10:11]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:10:11]wFMCommunicate OK [09:10:11]SAM_PROTO_GetShiftState done [09:10:11]FM_GetShiftState done [09:10:11]req_shift_opened done [09:10:11]requested_item shift.open_date is exist - process it [09:10:11]req_shift_open_date [09:10:11]req_shift_open_date done [09:10:11]produce_requested_data done [09:10:11]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27128,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [09:10:11]process_action_free print_text [09:10:11]json_value_free [09:10:11]json_value_free done [09:10:11]process_json_proto returns [09:10:11]Send response to host [09:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27128,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [09:10:11]free response buf [09:10:11]execute_script done [09:10:11]execute_script returns [09:10:11]free content buf [09:10:11]Sock 8.Close socket [09:10:11]Sock 8.Thread stoped [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:46]accept exits with 9 [09:23:46]New connection [09:23:46]New thread 3066871140 created [09:23:46] Sock 9.Parse request [09:23:46]Thread 3067014500 joined [09:23:46]Sock 9.Check first char [09:23:46]Waiting for new connection... [09:23:46]Sock 9.First char is OK [09:23:46]request: POST /json_proto HTTP/1.0 [09:23:46]Method: POST [09:23:46]URL: /json_proto [09:23:46]Method is POST - this is cgi request [09:23:46]url: /json_proto [09:23:46]query_string will be loaded in cgi processing [09:23:46]execute_cgi json_proto POST (null) [09:23:46]execute_cgi path=json_proto method=POST [09:23:46]POST find Content-Length [09:23:46]Host: 172.17.35.3:8080 [09:23:46]Content-Length: 682 [09:23:46]Content-Type: application/json [09:23:46] [09:23:46]POST finish read [09:23:46]Found Content-Length = 682 [09:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 18.930, "sum" : 1200.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:46]execute_script... [09:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 18.930, "sum" : 1200.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:46]POST & json_proto [09:23:46]process_json_proto [09:23:46]json parsed OK: [09:23:46]protocol is kg_v1.0 [09:23:46]action value=close_receipt [09:23:46]process_action close_receipt [09:23:46]cmd_close_receipt [09:23:46]MH_GetDate [09:23:46]Write to MH i2c: F0 00 00 57 9B E1 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: F0 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: F0 09 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: F0 09 00 57 9B 00 41 AC 17 66 2B 11 66 64 5A [09:23:46]GetLastDocTimeStamp 1712826509 [09:23:46]current date 1712827457 [09:23:46]FM_GetShiftState [09:23:46]SAM_PROTO_GetShiftState [09:23:46]wFMCommunicate request_size=4 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 13 01 00 [09:23:46]Write to MH i2c: E2 08 00 58 9B 80 13 01 00 00 00 00 00 70 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 0E 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 0E 00 58 9B 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 BA [09:23:46]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:23:46]wFMCommunicate OK [09:23:46]SAM_PROTO_GetShiftState done [09:23:46]FM_GetShiftState done [09:23:46]opened in 1712795538 [09:23:46]opened+sec_in_day 1712881938 [09:23:46]quantity*price = 120016 [09:23:46]sum+1 = 120017 [09:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 16 11.04.2024 09:24 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27129 ФПД: 214286363252043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T092417&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27129&fm=214286363252043&tin=02508201610067®Number=0000000000091578&sum=120000 [09:23:47]StoreToDocumentArchive [09:23:47]shift 317 fd 27129 [09:23:47]save to /storage/0317/doc_00027129 [09:23:47]save last doc name /storage/0317/doc_00027129 to /storage/kkm_last_doc_name [09:23:47]save OK [09:23:47]Clear old archive folders... [09:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:47]tlvbuf is 00E3C310 [09:23:47]SAM_PROTO_ClearQueue [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 09 00 00 [09:23:47]Write to MH i2c: E2 08 00 65 9B 80 09 00 00 00 00 00 00 72 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 65 9B 00 90 00 74 [09:23:47]RAPDU: 90 00 [09:23:47]wFMCommunicate OK [09:23:47]SAM_PROTO_ClearQueue done [09:23:47]KKMCreateOFDPacket [09:23:47]OFDProtocolAddRootSTLVToBuf [09:23:47]FM_MakeSignedData [09:23:47]FM_MakeSignedData [09:23:47]SAM_PROTO_SignData [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 0D 01 02 [09:23:47]Write to MH i2c: E2 08 00 66 9B 80 0D 01 02 00 00 00 00 7A [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 66 9B 00 90 00 75 [09:23:47]RAPDU: 90 00 [09:23:47]wFMCommunicate OK [09:23:47]wFMCommunicate request_size=255 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 49 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 41 AC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 69 00 00 35 04 06 00 C2 [09:23:47]Write to MH i2c: E2 02 01 67 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 49 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 41 AC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 69 00 00 35 04 06 00 C2 00 00 74 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]OFD Sender: No OFD packet to send [09:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 67 9B 00 90 00 76 [09:23:47]RAPDU: 90 00 [09:23:47]wFMCommunicate OK [09:23:47]wFMCommunicate request_size=10 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 0D 02 02 05 E4 6E 8F D5 4B [09:23:47]Write to MH i2c: E2 0D 00 68 9B 80 0D 02 02 05 00 E4 6E 8F D5 4B 00 00 88 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 03 00 68 9B 00 90 00 77 [09:23:47]RAPDU: 90 00 [09:23:47]wFMCommunicate OK [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 0D 03 02 [09:23:47]Write to MH i2c: E2 08 00 69 9B 80 0D 03 02 00 00 00 00 7F [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0B 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0B 00 69 9B 00 64 26 A0 76 26 DF B7 B3 90 00 8F [09:23:47]RAPDU: 64 26 A0 76 26 DF B7 B3 90 00 [09:23:47]wFMCommunicate OK [09:23:47]SAM_PROTO_SignData done [09:23:47]FM_MakeSignedData done [09:23:47]CreateOFDProtocolMessage [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 11 00 00 [09:23:47]Write to MH i2c: E2 08 00 6A 9B 80 11 00 00 00 00 00 00 7F [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 17 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 17 00 6A 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 D7 [09:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:23:47]wFMCommunicate OK [09:23:47]CreateOFDProtocolMessage done [09:23:47]OFDSenderStorePacket 27129 [09:23:47]StoreOFDPacket docnum=27129 [09:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 02 FB 07 01 60 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 49 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 41 AC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 69 00 00 35 04 06 00 C2 E4 6E 8F D5 4B 64 26 A0 76 26 DF B7 B3 [09:23:47]CheckFolder [09:23:47]dirname=/storage/ofd_packets [09:23:47]CheckFolder done [09:23:47]ProducePacketName [09:23:47]name=ofd_packets/00027129 [09:23:47]NVStorageSaveData ofd_packets/00027129 [09:23:47]File name is /storage/ofd_packets/00027129 [09:23:47]Write 301 bytes [09:23:47]NVStorageSaveData done [09:23:47]OFDSenderStorePacket done [09:23:47]KKMCreateOFDPacket done [09:23:47]NVStorageSaveData kkm_last_timestamp [09:23:47]File name is /storage/kkm_last_timestamp [09:23:47]Write 4 bytes [09:23:47]NVStorageSaveData done [09:23:47]ExternCall_PrintAddStr [09:23:47]wPrintStart [09:23:47]Write to MH i2c: 01 00 00 6B 9B 06 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 07 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 07 00 6B 9B 00 00 00 00 00 FF 0F 1B [09:23:47]RasterBufferAndPrint [09:23:47]line Счет N : (1)359881 [09:23:47]line ИНН: 02508201610067 [09:23:47]line Контрольно-Кассовый Чек [09:23:47]line ПРОДАЖА [09:23:47]line ТРК (МРК, ГНК) : 61 [09:23:47]line Товар: 2710124130 [09:23:47]line Аи-92-К-5 [09:23:47]line 18.930 * 63.40 [09:23:47]line = 1200.16 [09:23:47]line НДС 12% НСП 1% [09:23:47]line > о реализуемом товаре [09:23:47]line ОКРУГЛЕНИЕ: -0.16 [09:23:47]line ИТОГО: 1200.00 [09:23:47]line Внесено: 1200.00 [09:23:47]line СДАЧА: 0.00 [09:23:47]line НСП 1% : 10.62 [09:23:47]line НДС 12% : 127.45 [09:23:47]line Наличными: 1200.00 [09:23:47]line Безнал.: 0.00 [09:23:47]line Место: АЗС № 122 "Партнер Нефть" [09:23:47]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [09:23:47]line СНО: Общий режим [09:23:47]line Чек 16 11.04.2024 09:24 [09:23:47]line Смена: 317 ФФД: 1.0 [09:23:47]line ЗНМ: 0300000147 [09:23:47]line РНМ: 0000000000091578 [09:23:47]line Версия ККМ: 001 [09:23:47]line ФМ: 0000000000874657 [09:23:47]line ФД: 27129 [09:23:47]line ФПД: 214286363252043 [09:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T092417&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27129&fm=214286363252043&tin=02508201610067®Number=0000000000091578&sum=120000 [09:23:48]OFD Sender: Processing packet 27129 [packets to send 44, broken 43] [09:23:48]ProducePacketName [09:23:48]name=ofd_packets/00027129 [09:23:48]OFD Sender: To server: pG, [09:23:48]CommunicateWithHost lk.salyk.kg:30040 [09:23:48]ConnectInit lk.salyk.kg [09:23:48]written 0, free lines is 4095 [09:23:48]Connected sock=10 [09:23: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 35 37 0F 01 00 00 02 FB 07 01 60 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 49 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 41 AC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 69 00 00 35 04 06 00 C2 E4 6E 8F D5 4B 64 26 A0 76 26 DF B7 B3 [09:23: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 35 37 4F 00 00 00 1D BB 47 00 FF 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 69 00 00 F4 03 04 00 A1 53 17 66 B6 04 01 00 00 18 70 76 87 28 98 72 05 [09:23:48]CommunicateWithHost err = 0 [09:23:48]CheckOFDResponse [09:23:48]1017 (14) - 77093643461234 [09:23:48]1041 (16) - 0000000000874657 [09:23:48]1040 (4) - 27129 [09:23:48]1012 (4) - 11.04.2024 03:06 [09:23:48]1206 (1) - 0 [09:23:48]OFD Sender: Remove packet 27129 [09:23:48]ProducePacketName [09:23:48]name=ofd_packets/00027129 [09:23:48]NVStorageDeleteData [09:23:48]Write to MH i2c: 01 00 00 96 9B 31 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 07 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 07 00 96 9B 00 00 00 00 00 71 0C B5 [09:23:48]RasterBufferAndPrint [09:23:48]line [09:23:48]line [09:23:48]line [09:23:48]line [09:23:48]line [09:23:48]written 0, free lines is 3188 [09:23:48]MH_Cut [09:23:48]Write to MH i2c: D1 01 00 9D 9B 01 0A [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: D1 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: D1 01 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: D1 01 00 9D 9B 00 09 [09:23:48]Write to MH i2c: 01 00 00 9E 9B 39 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]OFD Sender: No OFD packet to send [09:23:49]*** Cut start [09:23:49]*** Partial cut [09:23:49]*** CUTSNS_PIN = 1 [09:23:49]*** CUTSNS_PIN = 0 [09:23:50]*** Brake cut motor [09:23:50]Read from MH i2c: 01 [09:23:50]MH_I2C_Read... [09:23:50]*** Stop cut motor [09:23:50]*** Cut end [09:23:50]Read from MH i2c: 01 07 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: 01 07 00 9E 9B 00 00 00 00 00 FF 0F 4E [09:23:50]process_action close_receipt done [09:23:50]requested_data is exist [09:23:50]produce_requested_data [09:23:50]requested_item fm.sn is exist - process it [09:23:50]wFMCommunicate request_size=4 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 11 00 00 [09:23:50]Write to MH i2c: E2 08 00 9F 9B 80 11 00 00 00 00 00 00 B4 [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:50]Read from MH i2c: E2 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 17 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 17 00 9F 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 0C [09:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:23:50]wFMCommunicate OK [09:23:50]requested_item fd.num is exist - process it [09:23:50]SAM_PROTO_GetFieldsCounters [09:23:50]wFMCommunicate request_size=4 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 13 00 00 [09:23:50]Write to MH i2c: E2 08 00 A0 9B 80 13 00 00 00 00 00 00 B7 [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:50]Read from MH i2c: E2 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 62 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 62 00 A0 9B 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F9 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [09:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F9 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:50]wFMCommunicate OK [09:23:50]SAM_PROTO_GetFieldsCounters done [09:23:50]requested_item shift.num is exist - process it [09:23:50]requested_item shift.opened is exist - process it [09:23:50]req_shift_opened [09:23:50]FM_GetShiftState [09:23:50]SAM_PROTO_GetShiftState [09:23:50]wFMCommunicate request_size=4 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 13 01 00 [09:23:50]Write to MH i2c: E2 08 00 A1 9B 80 13 01 00 00 00 00 00 B9 [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:50]Read from MH i2c: E2 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 0E 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 0E 00 A1 9B 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 03 [09:23:50]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:23:50]wFMCommunicate OK [09:23:50]SAM_PROTO_GetShiftState done [09:23:50]FM_GetShiftState done [09:23:50]req_shift_opened done [09:23:50]requested_item shift.open_date is exist - process it [09:23:50]req_shift_open_date [09:23:50]req_shift_open_date done [09:23:50]produce_requested_data done [09:23:50]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27129,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [09:23:50]process_action_free close_receipt [09:23:50]json_value_free [09:23:50]json_value_free done [09:23:50]process_json_proto returns [09:23:50]Send response to host [09:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27129,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [09:23:50]free response buf [09:23:50]execute_script done [09:23:50]execute_script returns [09:23:50]free content buf [09:23:50]Sock 9.Close socket [09:23:50]Sock 9.Thread stoped [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:05]accept exits with 8 [09:26:05]New connection [09:26:05]New thread 3067014500 created [09:26:05]Thread 3066871140 joined [09:26:05]Waiting for new connection... [09:26:05] Sock 8.Parse request [09:26:05]Sock 8.Check first char [09:26:05]Sock 8.First char is OK [09:26:05]request: POST /json_proto HTTP/1.0 [09:26:05]Method: POST [09:26:05]URL: /json_proto [09:26:05]Method is POST - this is cgi request [09:26:05]url: /json_proto [09:26:05]query_string will be loaded in cgi processing [09:26:05]execute_cgi json_proto POST (null) [09:26:05]execute_cgi path=json_proto method=POST [09:26:05]POST find Content-Length [09:26:05]Host: 172.17.35.3:8080 [09:26:05]Content-Length: 682 [09:26:05]Content-Type: application/json [09:26:05] [09:26:05]POST finish read [09:26:05]Found Content-Length = 682 [09:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:05]execute_script... [09:26:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:05]POST & json_proto [09:26:05]process_json_proto [09:26:05]json parsed OK: [09:26:05]protocol is kg_v1.0 [09:26:05]action value=close_receipt [09:26:05]process_action close_receipt [09:26:05]cmd_close_receipt [09:26:05]MH_GetDate [09:26:05]Write to MH i2c: F0 00 00 A2 9B 2C [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: F0 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: F0 09 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: F0 09 00 A2 9B 00 CC AC 17 66 2B 11 66 64 30 [09:26:05]GetLastDocTimeStamp 1712827457 [09:26:05]current date 1712827596 [09:26:05]FM_GetShiftState [09:26:05]SAM_PROTO_GetShiftState [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 13 01 00 [09:26:05]Write to MH i2c: E2 08 00 A3 9B 80 13 01 00 00 00 00 00 BB [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0E 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0E 00 A3 9B 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 05 [09:26:05]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:26:05]wFMCommunicate OK [09:26:05]SAM_PROTO_GetShiftState done [09:26:05]FM_GetShiftState done [09:26:05]opened in 1712795538 [09:26:05]opened+sec_in_day 1712881938 [09:26:05]quantity*price = 100045 [09:26:05]sum+1 = 100046 [09:26:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 17 11.04.2024 09:26 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27130 ФПД: 236882578397517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T092636&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27130&fm=236882578397517&tin=02508201610067®Number=0000000000091578&sum=100000 [09:26:06]StoreToDocumentArchive [09:26:06]shift 317 fd 27130 [09:26:06]save to /storage/0317/doc_00027130 [09:26:06]save last doc name /storage/0317/doc_00027130 to /storage/kkm_last_doc_name [09:26:06]save OK [09:26:06]Clear old archive folders... [09:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:06]tlvbuf is 00F75970 [09:26:06]SAM_PROTO_ClearQueue [09:26:06]wFMCommunicate request_size=4 [09:26:06]MH_SAM_APDU [09:26:06]CAPDU: 80 09 00 00 [09:26:06]Write to MH i2c: E2 08 00 B0 9B 80 09 00 00 00 00 00 00 BD [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:06]Read from MH i2c: E2 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 03 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 03 00 B0 9B 00 90 00 BF [09:26:06]RAPDU: 90 00 [09:26:06]wFMCommunicate OK [09:26:06]SAM_PROTO_ClearQueue done [09:26:06]KKMCreateOFDPacket [09:26:06]OFDProtocolAddRootSTLVToBuf [09:26:06]FM_MakeSignedData [09:26:06]FM_MakeSignedData [09:26:06]SAM_PROTO_SignData [09:26:06]wFMCommunicate request_size=4 [09:26:06]MH_SAM_APDU [09:26:06]CAPDU: 80 0D 01 02 [09:26:06]Write to MH i2c: E2 08 00 B1 9B 80 0D 01 02 00 00 00 00 C5 [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:06]Read from MH i2c: E2 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 03 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 03 00 B1 9B 00 90 00 C0 [09:26:06]RAPDU: 90 00 [09:26:06]wFMCommunicate OK [09:26:06]wFMCommunicate request_size=255 [09:26:06]MH_SAM_APDU [09:26:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CC AC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 69 00 00 35 04 06 00 D7 [09:26:06]Write to MH i2c: E2 02 01 B2 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CC AC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 69 00 00 35 04 06 00 D7 00 00 D7 [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:06]Read from MH i2c: E2 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 03 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 03 00 B2 9B 00 90 00 C1 [09:26:06]RAPDU: 90 00 [09:26:06]wFMCommunicate OK [09:26:06]wFMCommunicate request_size=10 [09:26:06]MH_SAM_APDU [09:26:06]CAPDU: 80 0D 02 02 05 71 85 F0 59 4D [09:26:06]Write to MH i2c: E2 0D 00 B3 9B 80 0D 02 02 05 00 71 85 F0 59 4D 00 00 5E [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:06]Read from MH i2c: E2 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 03 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 03 00 B3 9B 00 90 00 C2 [09:26:06]RAPDU: 90 00 [09:26:06]wFMCommunicate OK [09:26:06]wFMCommunicate request_size=4 [09:26:06]MH_SAM_APDU [09:26:06]CAPDU: 80 0D 03 02 [09:26:06]Write to MH i2c: E2 08 00 B4 9B 80 0D 03 02 00 00 00 00 CA [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:06]Read from MH i2c: E2 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 0B 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 0B 00 B4 9B 00 8D FA 31 AB B5 F6 A9 44 90 00 C6 [09:26:06]RAPDU: 8D FA 31 AB B5 F6 A9 44 90 00 [09:26:06]wFMCommunicate OK [09:26:06]SAM_PROTO_SignData done [09:26:06]FM_MakeSignedData done [09:26:06]CreateOFDProtocolMessage [09:26:06]wFMCommunicate request_size=4 [09:26:06]MH_SAM_APDU [09:26:06]CAPDU: 80 11 00 00 [09:26:06]Write to MH i2c: E2 08 00 B5 9B 80 11 00 00 00 00 00 00 CA [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:06]Read from MH i2c: E2 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 17 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 17 00 B5 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 22 [09:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:26:06]wFMCommunicate OK [09:26:06]CreateOFDProtocolMessage done [09:26:06]OFDSenderStorePacket 27130 [09:26:06]StoreOFDPacket docnum=27130 [09:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 10 1A 07 01 0D E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CC AC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 69 00 00 35 04 06 00 D7 71 85 F0 59 4D 8D FA 31 AB B5 F6 A9 44 [09:26:06]CheckFolder [09:26:06]dirname=/storage/ofd_packets [09:26:06]CheckFolder done [09:26:06]ProducePacketName [09:26:06]name=ofd_packets/00027130 [09:26:06]NVStorageSaveData ofd_packets/00027130 [09:26:06]File name is /storage/ofd_packets/00027130 [09:26:06]Write 301 bytes [09:26:06]NVStorageSaveData done [09:26:06]OFDSenderStorePacket done [09:26:06]KKMCreateOFDPacket done [09:26:06]NVStorageSaveData kkm_last_timestamp [09:26:06]File name is /storage/kkm_last_timestamp [09:26:06]Write 4 bytes [09:26:06]NVStorageSaveData done [09:26:06]ExternCall_PrintAddStr [09:26:06]wPrintStart [09:26:06]Write to MH i2c: 01 00 00 B6 9B 51 [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: 01 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: 01 07 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: 01 07 00 B6 9B 00 00 00 00 00 FF 0F 66 [09:26:06]RasterBufferAndPrint [09:26:06]line Счет N : (1)359882 [09:26:06]line ИНН: 02508201610067 [09:26:06]line Контрольно-Кассовый Чек [09:26:06]line ПРОДАЖА [09:26:06]line ТРК (МРК, ГНК) : 51 [09:26:06]line Товар: 2710124130 [09:26:06]line Аи-92-К-5 [09:26:06]line 15.780 * 63.40 [09:26:06]line = 1000.45 [09:26:06]line НДС 12% НСП 1% [09:26:06]line > о реализуемом товаре [09:26:06]line ОКРУГЛЕНИЕ: -0.45 [09:26:06]line ИТОГО: 1000.00 [09:26:06]line Внесено: 1000.00 [09:26:06]line СДАЧА: 0.00 [09:26:06]line НСП 1% : 8.85 [09:26:06]line НДС 12% : 106.24 [09:26:06]line Наличными: 1000.00 [09:26:06]line Безнал.: 0.00 [09:26:06]line Место: АЗС № 122 "Партнер Нефть" [09:26:06]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [09:26:06]line СНО: Общий режим [09:26:06]line Чек 17 11.04.2024 09:26 [09:26:06]line Смена: 317 ФФД: 1.0 [09:26:06]line ЗНМ: 0300000147 [09:26:06]line РНМ: 0000000000091578 [09:26:06]line Версия ККМ: 001 [09:26:06]line ФМ: 0000000000874657 [09:26:06]line ФД: 27130 [09:26:06]line ФПД: 236882578397517 [09:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T092636&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27130&fm=236882578397517&tin=02508201610067®Number=0000000000091578&sum=100000 [09:26:07]OFD Sender: Processing packet 27130 [packets to send 44, broken 43] [09:26:07]ProducePacketName [09:26:07]name=ofd_packets/00027130 [09:26:07]OFD Sender: To server: pG, [09:26:07]CommunicateWithHost lk.salyk.kg:30040 [09:26:07]ConnectInit lk.salyk.kg [09:26:07]written 0, free lines is 4095 [09:26:07]Connected sock=10 [09:26:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 10 1A 07 01 0D E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CC AC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 69 00 00 35 04 06 00 D7 71 85 F0 59 4D 8D FA 31 AB B5 F6 A9 44 [09:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 19 2A 47 00 27 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 69 00 00 F4 03 04 00 2C 54 17 66 B6 04 01 00 00 52 D8 AA C1 89 E6 AE 5C [09:26:07]CommunicateWithHost err = 0 [09:26:07]CheckOFDResponse [09:26:07]1017 (14) - 77093643461234 [09:26:07]1041 (16) - 0000000000874657 [09:26:07]1040 (4) - 27130 [09:26:07]1012 (4) - 11.04.2024 03:08 [09:26:07]1206 (1) - 0 [09:26:07]OFD Sender: Remove packet 27130 [09:26:07]ProducePacketName [09:26:07]name=ofd_packets/00027130 [09:26:07]NVStorageDeleteData [09:26:07]Write to MH i2c: 01 00 00 E1 9B 7C [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: 01 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: 01 07 00 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: 01 07 00 E1 9B 00 00 00 00 00 72 0C 01 [09:26:07]RasterBufferAndPrint [09:26:07]line [09:26:07]line [09:26:07]line [09:26:07]line [09:26:07]line [09:26:07]written 0, free lines is 3187 [09:26:07]MH_Cut [09:26:07]Write to MH i2c: D1 01 00 E8 9B 01 55 [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: D1 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: D1 01 00 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: D1 01 00 E8 9B 00 54 [09:26:07]Write to MH i2c: 01 00 00 E9 9B 84 [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]OFD Sender: No OFD packet to send [09:26:08]*** Cut start [09:26:08]*** Partial cut [09:26:08]*** CUTSNS_PIN = 1 [09:26:08]*** CUTSNS_PIN = 0 [09:26:09]*** Brake cut motor [09:26:09]Read from MH i2c: 01 [09:26:09]MH_I2C_Read... [09:26:09]*** Stop cut motor [09:26:09]*** Cut end [09:26:09]Read from MH i2c: 01 07 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 07 00 E9 9B 00 00 00 00 00 FF 0F 99 [09:26:09]process_action close_receipt done [09:26:09]requested_data is exist [09:26:09]produce_requested_data [09:26:09]requested_item fm.sn is exist - process it [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 11 00 00 [09:26:09]Write to MH i2c: E2 08 00 EA 9B 80 11 00 00 00 00 00 00 FF [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 17 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 17 00 EA 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 57 [09:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:26:09]wFMCommunicate OK [09:26:09]requested_item fd.num is exist - process it [09:26:09]SAM_PROTO_GetFieldsCounters [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 13 00 00 [09:26:09]Write to MH i2c: E2 08 00 EB 9B 80 13 00 00 00 00 00 00 02 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 62 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 62 00 EB 9B 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FA 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [09:26: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FA 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:09]wFMCommunicate OK [09:26:09]SAM_PROTO_GetFieldsCounters done [09:26:09]requested_item shift.num is exist - process it [09:26:09]requested_item shift.opened is exist - process it [09:26:09]req_shift_opened [09:26:09]FM_GetShiftState [09:26:09]SAM_PROTO_GetShiftState [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 13 01 00 [09:26:09]Write to MH i2c: E2 08 00 EC 9B 80 13 01 00 00 00 00 00 04 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 0E 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 0E 00 EC 9B 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 4E [09:26:09]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:26:09]wFMCommunicate OK [09:26:09]SAM_PROTO_GetShiftState done [09:26:09]FM_GetShiftState done [09:26:09]req_shift_opened done [09:26:09]requested_item shift.open_date is exist - process it [09:26:09]req_shift_open_date [09:26:09]req_shift_open_date done [09:26:09]produce_requested_data done [09:26:09]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27130,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [09:26:09]process_action_free close_receipt [09:26:09]json_value_free [09:26:09]json_value_free done [09:26:09]process_json_proto returns [09:26:09]Send response to host [09:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27130,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [09:26:09]free response buf [09:26:09]execute_script done [09:26:09]execute_script returns [09:26:09]free content buf [09:26:09]Sock 8.Close socket [09:26:09]Sock 8.Thread stoped [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:20]accept exits with 9 [09:42:20]New connection [09:42:20]New thread 3066871140 created [09:42:20]Thread 3067014500 joined [09:42:20]Waiting for new connection... [09:42:20] Sock 9.Parse request [09:42:20]Sock 9.Check first char [09:42:20]Sock 9.First char is OK [09:42:20]request: POST /json_proto HTTP/1.0 [09:42:20]Method: POST [09:42:20]URL: /json_proto [09:42:20]Method is POST - this is cgi request [09:42:20]url: /json_proto [09:42:20]query_string will be loaded in cgi processing [09:42:20]execute_cgi json_proto POST (null) [09:42:20]execute_cgi path=json_proto method=POST [09:42:20]POST find Content-Length [09:42:20]Host: 172.17.35.3:8080 [09:42:20]Content-Length: 679 [09:42:20]Content-Type: application/json [09:42:20] [09:42:20]POST finish read [09:42:20]Found Content-Length = 679 [09:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.620, "sum" : 763.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 763.00, "payments": [ { "type": 0, "sum" : 763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:20]execute_script... [09:42:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.620, "sum" : 763.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 763.00, "payments": [ { "type": 0, "sum" : 763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:20]POST & json_proto [09:42:20]process_json_proto [09:42:20]json parsed OK: [09:42:20]protocol is kg_v1.0 [09:42:20]action value=close_receipt [09:42:20]process_action close_receipt [09:42:20]cmd_close_receipt [09:42:20]MH_GetDate [09:42:20]Write to MH i2c: F0 00 00 ED 9B 77 [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: F0 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: F0 09 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: F0 09 00 ED 9B 00 9B B0 17 66 2B 11 66 64 4E [09:42:20]GetLastDocTimeStamp 1712827596 [09:42:20]current date 1712828571 [09:42:20]FM_GetShiftState [09:42:20]SAM_PROTO_GetShiftState [09:42:20]wFMCommunicate request_size=4 [09:42:20]MH_SAM_APDU [09:42:20]CAPDU: 80 13 01 00 [09:42:20]Write to MH i2c: E2 08 00 EE 9B 80 13 01 00 00 00 00 00 06 [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 0E 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 0E 00 EE 9B 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 50 [09:42:20]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:42:20]wFMCommunicate OK [09:42:20]SAM_PROTO_GetShiftState done [09:42:20]FM_GetShiftState done [09:42:20]opened in 1712795538 [09:42:20]opened+sec_in_day 1712881938 [09:42:20]quantity*price = 76357 [09:42:20]sum+1 = 76359 [09:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 763.00 Внесено: 2000.00 СДАЧА: 1237.00 НСП 1% : 6.76 НДС 12% : 81.09 Наличными: 763.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 18 11.04.2024 09:42 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27131 ФПД: 51985703925025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T094251&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27131&fm=51985703925025&tin=02508201610067®Number=0000000000091578&sum=76300 [09:42:21]StoreToDocumentArchive [09:42:21]shift 317 fd 27131 [09:42:21]save to /storage/0317/doc_00027131 [09:42:21]save last doc name /storage/0317/doc_00027131 to /storage/kkm_last_doc_name [09:42:21]save OK [09:42:21]Clear old archive folders... [09:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:21]tlvbuf is 01180150 [09:42:21]SAM_PROTO_ClearQueue [09:42:21]wFMCommunicate request_size=4 [09:42:21]MH_SAM_APDU [09:42:21]CAPDU: 80 09 00 00 [09:42:21]Write to MH i2c: E2 08 00 FB 9B 80 09 00 00 00 00 00 00 08 [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:21]Read from MH i2c: E2 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 03 00 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 03 00 FB 9B 00 90 00 0A [09:42:21]RAPDU: 90 00 [09:42:21]wFMCommunicate OK [09:42:21]SAM_PROTO_ClearQueue done [09:42:21]KKMCreateOFDPacket [09:42:21]OFDProtocolAddRootSTLVToBuf [09:42:21]FM_MakeSignedData [09:42:21]FM_MakeSignedData [09:42:21]SAM_PROTO_SignData [09:42:21]wFMCommunicate request_size=4 [09:42:21]MH_SAM_APDU [09:42:21]CAPDU: 80 0D 01 02 [09:42:21]Write to MH i2c: E2 08 00 FC 9B 80 0D 01 02 00 00 00 00 10 [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:21]Read from MH i2c: E2 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 03 00 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 03 00 FC 9B 00 90 00 0B [09:42:21]RAPDU: 90 00 [09:42:21]wFMCommunicate OK [09:42:21]wFMCommunicate request_size=255 [09:42:21]MH_SAM_APDU [09:42:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 46 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 1F 00 00 00 00 07 04 06 00 0C 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9B B0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 69 00 00 35 04 06 00 2F [09:42:21]Write to MH i2c: E2 02 01 FD 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 46 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 1F 00 00 00 00 07 04 06 00 0C 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9B B0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 69 00 00 35 04 06 00 2F 00 00 FB [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 FD 9B 00 90 00 0C [09:42:22]RAPDU: 90 00 [09:42:22]wFMCommunicate OK [09:42:22]wFMCommunicate request_size=10 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 0D 02 02 05 47 DD 6A 75 21 [09:42:22]Write to MH i2c: E2 0D 00 FE 9B 80 0D 02 02 05 00 47 DD 6A 75 21 00 00 41 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 03 00 FE 9B 00 90 00 0D [09:42:22]RAPDU: 90 00 [09:42:22]wFMCommunicate OK [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 0D 03 02 [09:42:22]Write to MH i2c: E2 08 00 FF 9B 80 0D 03 02 00 00 00 00 15 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0B 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0B 00 FF 9B 00 7B 92 D1 F0 3F F5 91 5E 90 00 07 [09:42:22]RAPDU: 7B 92 D1 F0 3F F5 91 5E 90 00 [09:42:22]wFMCommunicate OK [09:42:22]SAM_PROTO_SignData done [09:42:22]FM_MakeSignedData done [09:42:22]CreateOFDProtocolMessage [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 11 00 00 [09:42:22]Write to MH i2c: E2 08 00 00 9C 80 11 00 00 00 00 00 00 16 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 17 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 17 00 00 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 6E [09:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:42:22]wFMCommunicate OK [09:42:22]CreateOFDProtocolMessage done [09:42:22]OFDSenderStorePacket 27131 [09:42:22]StoreOFDPacket docnum=27131 [09:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 F4 31 07 01 D6 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 46 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 1F 00 00 00 00 07 04 06 00 0C 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9B B0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 69 00 00 35 04 06 00 2F 47 DD 6A 75 21 7B 92 D1 F0 3F F5 91 5E [09:42:22]CheckFolder [09:42:22]dirname=/storage/ofd_packets [09:42:22]CheckFolder done [09:42:22]ProducePacketName [09:42:22]name=ofd_packets/00027131 [09:42:22]NVStorageSaveData ofd_packets/00027131 [09:42:22]File name is /storage/ofd_packets/00027131 [09:42:22]Write 301 bytes [09:42:22]NVStorageSaveData done [09:42:22]OFDSenderStorePacket done [09:42:22]KKMCreateOFDPacket done [09:42:22]NVStorageSaveData kkm_last_timestamp [09:42:22]File name is /storage/kkm_last_timestamp [09:42:22]Write 4 bytes [09:42:22]NVStorageSaveData done [09:42:22]ExternCall_PrintAddStr [09:42:22]wPrintStart [09:42:22]Write to MH i2c: 01 00 00 01 9C 9D [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 07 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 07 00 01 9C 00 00 00 00 00 FF 0F B2 [09:42:22]RasterBufferAndPrint [09:42:22]line Счет N : (1)359883 [09:42:22]line ИНН: 02508201610067 [09:42:22]line Контрольно-Кассовый Чек [09:42:22]line ПРОДАЖА [09:42:22]line ТРК (МРК, ГНК) : 53 [09:42:22]line Товар: 2710124500 [09:42:22]line Аи-95-К-5 [09:42:22]line 10.620 * 71.90 [09:42:22]line = 763.58 [09:42:22]line НДС 12% НСП 1% [09:42:22]line > о реализуемом товаре [09:42:22]line ОКРУГЛЕНИЕ: -0.58 [09:42:22]line ИТОГО: 763.00 [09:42:22]line Внесено: 2000.00 [09:42:22]line СДАЧА: 1237.00 [09:42:22]line НСП 1% : 6.76 [09:42:22]line НДС 12% : 81.09 [09:42:22]line Наличными: 763.00 [09:42:22]line Безнал.: 0.00 [09:42:22]line Место: АЗС № 122 "Партнер Нефть" [09:42:22]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [09:42:22]line СНО: Общий режим [09:42:22]line Чек 18 11.04.2024 09:42 [09:42:22]line Смена: 317 ФФД: 1.0 [09:42:22]line ЗНМ: 0300000147 [09:42:22]line РНМ: 0000000000091578 [09:42:22]line Версия ККМ: 001 [09:42:22]line ФМ: 0000000000874657 [09:42:22]line ФД: 27131 [09:42:22]line ФПД: 51985703925025 [09:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T094251&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27131&fm=51985703925025&tin=02508201610067®Number=0000000000091578&sum=76300 [09:42:22]OFD Sender: Processing packet 27131 [packets to send 44, broken 43] [09:42:22]ProducePacketName [09:42:22]name=ofd_packets/00027131 [09:42:22]OFD Sender: To server: pG, [09:42:22]CommunicateWithHost lk.salyk.kg:30040 [09:42:22]ConnectInit lk.salyk.kg [09:42:22]written 0, free lines is 4095 [09:42:22]Connected sock=10 [09:42: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 35 37 0F 01 00 00 F4 31 07 01 D6 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 46 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 1F 00 00 00 00 07 04 06 00 0C 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9B B0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 69 00 00 35 04 06 00 2F 47 DD 6A 75 21 7B 92 D1 F0 3F F5 91 5E [09:42: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 35 37 4F 00 00 00 1D 88 47 00 21 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 69 00 00 F4 03 04 00 FC 57 17 66 B6 04 01 00 00 38 67 93 13 4D 16 A9 E3 [09:42:22]CommunicateWithHost err = 0 [09:42:22]CheckOFDResponse [09:42:22]1017 (14) - 77093643461234 [09:42:22]1041 (16) - 0000000000874657 [09:42:22]1040 (4) - 27131 [09:42:22]1012 (4) - 11.04.2024 03:24 [09:42:22]1206 (1) - 0 [09:42:22]OFD Sender: Remove packet 27131 [09:42:22]ProducePacketName [09:42:22]name=ofd_packets/00027131 [09:42:22]NVStorageDeleteData [09:42:22]Write to MH i2c: 01 00 00 2C 9C C8 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 07 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 07 00 2C 9C 00 00 00 00 00 76 0C 51 [09:42:22]RasterBufferAndPrint [09:42:22]line [09:42:22]line [09:42:22]line [09:42:22]line [09:42:22]line [09:42:22]written 0, free lines is 3194 [09:42:22]MH_Cut [09:42:22]Write to MH i2c: D1 01 00 33 9C 01 A1 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: D1 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: D1 01 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: D1 01 00 33 9C 00 A0 [09:42:22]Write to MH i2c: 01 00 00 34 9C D0 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:23]OFD Sender: No OFD packet to send [09:42:24]*** Cut start [09:42:24]*** Partial cut [09:42:24]*** CUTSNS_PIN = 1 [09:42:24]*** CUTSNS_PIN = 0 [09:42:24]*** Brake cut motor [09:42:24]Read from MH i2c: 01 [09:42:24]MH_I2C_Read... [09:42:24]*** Stop cut motor [09:42:24]*** Cut end [09:42:24]Read from MH i2c: 01 07 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 34 9C 00 00 00 00 00 FF 0F E5 [09:42:24]process_action close_receipt done [09:42:24]requested_data is exist [09:42:24]produce_requested_data [09:42:24]requested_item fm.sn is exist - process it [09:42:24]wFMCommunicate request_size=4 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 11 00 00 [09:42:24]Write to MH i2c: E2 08 00 35 9C 80 11 00 00 00 00 00 00 4B [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:24]Read from MH i2c: E2 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 17 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 17 00 35 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 A3 [09:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:42:24]wFMCommunicate OK [09:42:24]requested_item fd.num is exist - process it [09:42:24]SAM_PROTO_GetFieldsCounters [09:42:24]wFMCommunicate request_size=4 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 13 00 00 [09:42:24]Write to MH i2c: E2 08 00 36 9C 80 13 00 00 00 00 00 00 4E [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:24]Read from MH i2c: E2 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 62 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 62 00 36 9C 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FB 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [09:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FB 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:24]wFMCommunicate OK [09:42:24]SAM_PROTO_GetFieldsCounters done [09:42:24]requested_item shift.num is exist - process it [09:42:24]requested_item shift.opened is exist - process it [09:42:24]req_shift_opened [09:42:24]FM_GetShiftState [09:42:24]SAM_PROTO_GetShiftState [09:42:24]wFMCommunicate request_size=4 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 13 01 00 [09:42:24]Write to MH i2c: E2 08 00 37 9C 80 13 01 00 00 00 00 00 50 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:25]Read from MH i2c: E2 [09:42:25]MH_I2C_Read... [09:42:25]Read from MH i2c: E2 0E 00 [09:42:25]MH_I2C_Read... [09:42:25]Read from MH i2c: E2 0E 00 37 9C 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 9A [09:42:25]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:42:25]wFMCommunicate OK [09:42:25]SAM_PROTO_GetShiftState done [09:42:25]FM_GetShiftState done [09:42:25]req_shift_opened done [09:42:25]requested_item shift.open_date is exist - process it [09:42:25]req_shift_open_date [09:42:25]req_shift_open_date done [09:42:25]produce_requested_data done [09:42:25]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27131,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [09:42:25]process_action_free close_receipt [09:42:25]json_value_free [09:42:25]json_value_free done [09:42:25]process_json_proto returns [09:42:25]Send response to host [09:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27131,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [09:42:25]free response buf [09:42:25]execute_script done [09:42:25]execute_script returns [09:42:25]free content buf [09:42:25]Sock 9.Close socket [09:42:25]Sock 9.Thread stoped [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:42]accept exits with 8 [09:51:42]New connection [09:51:42]New thread 3067014500 created [09:51:42]Thread 3066871140 joined [09:51:42]Waiting for new connection... [09:51:42] Sock 8.Parse request [09:51:42]Sock 8.Check first char [09:51:42]Sock 8.First char is OK [09:51:42]request: POST /json_proto HTTP/1.0 [09:51:42]Method: POST [09:51:42]URL: /json_proto [09:51:42]Method is POST - this is cgi request [09:51:42]url: /json_proto [09:51:42]query_string will be loaded in cgi processing [09:51:42]execute_cgi json_proto POST (null) [09:51:42]execute_cgi path=json_proto method=POST [09:51:42]POST find Content-Length [09:51:42]Host: 172.17.35.3:8080 [09:51:42]Content-Length: 663 [09:51:42]Content-Type: application/json [09:51:42] [09:51:42]POST finish read [09:51:42]Found Content-Length = 663 [09:51:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 20.000, "sum" : 1268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1268.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:42]execute_script... [09:51:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 20.000, "sum" : 1268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1268.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:42]POST & json_proto [09:51:42]process_json_proto [09:51:42]json parsed OK: [09:51:42]protocol is kg_v1.0 [09:51:42]action value=close_receipt [09:51:42]process_action close_receipt [09:51:42]cmd_close_receipt [09:51:42]MH_GetDate [09:51:42]Write to MH i2c: F0 00 00 38 9C C3 [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: F0 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: F0 09 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: F0 09 00 38 9C 00 CD B2 17 66 2B 11 66 64 CE [09:51:42]GetLastDocTimeStamp 1712828571 [09:51:42]current date 1712829133 [09:51:42]FM_GetShiftState [09:51:42]SAM_PROTO_GetShiftState [09:51:42]wFMCommunicate request_size=4 [09:51:42]MH_SAM_APDU [09:51:42]CAPDU: 80 13 01 00 [09:51:42]Write to MH i2c: E2 08 00 39 9C 80 13 01 00 00 00 00 00 52 [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:42]Read from MH i2c: E2 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 0E 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 0E 00 39 9C 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 9C [09:51:42]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:51:42]wFMCommunicate OK [09:51:42]SAM_PROTO_GetShiftState done [09:51:42]FM_GetShiftState done [09:51:42]opened in 1712795538 [09:51:42]opened+sec_in_day 1712881938 [09:51:42]quantity*price = 126800 [09:51:42]sum+1 = 126801 [09:51:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1268.00 Внесено: 2000.00 СДАЧА: 732.00 НСП 1% : 11.22 НДС 12% : 134.65 Наличными: 1268.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 19 11.04.2024 09:52 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27132 ФПД: 73069947723604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T095213&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27132&fm=73069947723604&tin=02508201610067®Number=0000000000091578&sum=126800 [09:51:43]StoreToDocumentArchive [09:51:43]shift 317 fd 27132 [09:51:43]save to /storage/0317/doc_00027132 [09:51:43]save last doc name /storage/0317/doc_00027132 to /storage/kkm_last_doc_name [09:51:43]save OK [09:51:43]Clear old archive folders... [09:51:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:43]tlvbuf is 00EE5EE0 [09:51:43]SAM_PROTO_ClearQueue [09:51:43]wFMCommunicate request_size=4 [09:51:43]MH_SAM_APDU [09:51:43]CAPDU: 80 09 00 00 [09:51:43]Write to MH i2c: E2 08 00 46 9C 80 09 00 00 00 00 00 00 54 [09:51:43]Write i2c OK [09:51:43]MH_I2C_Read... [09:51:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:43]Read from MH i2c: E2 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: E2 03 00 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: E2 03 00 46 9C 00 90 00 56 [09:51:43]RAPDU: 90 00 [09:51:43]wFMCommunicate OK [09:51:43]SAM_PROTO_ClearQueue done [09:51:43]KKMCreateOFDPacket [09:51:43]OFDProtocolAddRootSTLVToBuf [09:51:43]FM_MakeSignedData [09:51:43]FM_MakeSignedData [09:51:43]SAM_PROTO_SignData [09:51:43]wFMCommunicate request_size=4 [09:51:43]MH_SAM_APDU [09:51:43]CAPDU: 80 0D 01 02 [09:51:43]Write to MH i2c: E2 08 00 47 9C 80 0D 01 02 00 00 00 00 5C [09:51:43]Write i2c OK [09:51:43]MH_I2C_Read... [09:51:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:43]Read from MH i2c: E2 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: E2 03 00 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: E2 03 00 47 9C 00 90 00 57 [09:51:43]RAPDU: 90 00 [09:51:43]wFMCommunicate OK [09:51:43]wFMCommunicate request_size=255 [09:51:43]MH_SAM_APDU [09:51:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 50 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 50 EF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 CD B2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 69 00 00 35 04 06 00 42 [09:51:43]Write to MH i2c: E2 02 01 48 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 50 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 50 EF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 CD B2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 69 00 00 35 04 06 00 42 00 00 A1 [09:51:43]Write i2c OK [09:51:43]MH_I2C_Read... [09:51:43]OFD Sender: No OFD packet to send [09:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:44]Read from MH i2c: E2 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 03 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 03 00 48 9C 00 90 00 58 [09:51:44]RAPDU: 90 00 [09:51:44]wFMCommunicate OK [09:51:44]wFMCommunicate request_size=10 [09:51:44]MH_SAM_APDU [09:51:44]CAPDU: 80 0D 02 02 05 74 EC 47 1F 54 [09:51:44]Write to MH i2c: E2 0D 00 49 9C 80 0D 02 02 05 00 74 EC 47 1F 54 00 00 83 [09:51:44]Write i2c OK [09:51:44]MH_I2C_Read... [09:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:44]Read from MH i2c: E2 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 03 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 03 00 49 9C 00 90 00 59 [09:51:44]RAPDU: 90 00 [09:51:44]wFMCommunicate OK [09:51:44]wFMCommunicate request_size=4 [09:51:44]MH_SAM_APDU [09:51:44]CAPDU: 80 0D 03 02 [09:51:44]Write to MH i2c: E2 08 00 4A 9C 80 0D 03 02 00 00 00 00 61 [09:51:44]Write i2c OK [09:51:44]MH_I2C_Read... [09:51:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:44]Read from MH i2c: E2 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 0B 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 0B 00 4A 9C 00 85 5B 0F 8F A9 0A E0 BB 90 00 2E [09:51:44]RAPDU: 85 5B 0F 8F A9 0A E0 BB 90 00 [09:51:44]wFMCommunicate OK [09:51:44]SAM_PROTO_SignData done [09:51:44]FM_MakeSignedData done [09:51:44]CreateOFDProtocolMessage [09:51:44]wFMCommunicate request_size=4 [09:51:44]MH_SAM_APDU [09:51:44]CAPDU: 80 11 00 00 [09:51:44]Write to MH i2c: E2 08 00 4B 9C 80 11 00 00 00 00 00 00 61 [09:51:44]Write i2c OK [09:51:44]MH_I2C_Read... [09:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:44]Read from MH i2c: E2 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 17 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: E2 17 00 4B 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B9 [09:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:51:44]wFMCommunicate OK [09:51:44]CreateOFDProtocolMessage done [09:51:44]OFDSenderStorePacket 27132 [09:51:44]StoreOFDPacket docnum=27132 [09:51:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 22 72 07 01 B4 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 50 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 50 EF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 CD B2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 69 00 00 35 04 06 00 42 74 EC 47 1F 54 85 5B 0F 8F A9 0A E0 BB [09:51:44]CheckFolder [09:51:44]dirname=/storage/ofd_packets [09:51:44]CheckFolder done [09:51:44]ProducePacketName [09:51:44]name=ofd_packets/00027132 [09:51:44]NVStorageSaveData ofd_packets/00027132 [09:51:44]File name is /storage/ofd_packets/00027132 [09:51:44]Write 301 bytes [09:51:44]NVStorageSaveData done [09:51:44]OFDSenderStorePacket done [09:51:44]KKMCreateOFDPacket done [09:51:44]NVStorageSaveData kkm_last_timestamp [09:51:44]File name is /storage/kkm_last_timestamp [09:51:44]Write 4 bytes [09:51:44]NVStorageSaveData done [09:51:44]ExternCall_PrintAddStr [09:51:44]wPrintStart [09:51:44]Write to MH i2c: 01 00 00 4C 9C E8 [09:51:44]Write i2c OK [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: 01 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: 01 07 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: 01 07 00 4C 9C 00 00 00 00 00 FF 0F FD [09:51:44]RasterBufferAndPrint [09:51:44]line Счет N : (1)359884 [09:51:44]line ИНН: 02508201610067 [09:51:44]line Контрольно-Кассовый Чек [09:51:44]line ПРОДАЖА [09:51:44]line ТРК (МРК, ГНК) : 51 [09:51:44]line Товар: 2710124130 [09:51:44]line Аи-92-К-5 [09:51:44]line 20.000 * 63.40 [09:51:44]line = 1268.00 [09:51:44]line НДС 12% НСП 1% [09:51:44]line > о реализуемом товаре [09:51:44]line ИТОГО: 1268.00 [09:51:44]line Внесено: 2000.00 [09:51:44]line СДАЧА: 732.00 [09:51:44]line НСП 1% : 11.22 [09:51:44]line НДС 12% : 134.65 [09:51:44]line Наличными: 1268.00 [09:51:44]line Безнал.: 0.00 [09:51:44]line Место: АЗС № 122 "Партнер Нефть" [09:51:44]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [09:51:44]line СНО: Общий режим [09:51:44]line Чек 19 11.04.2024 09:52 [09:51:44]line Смена: 317 ФФД: 1.0 [09:51:44]line ЗНМ: 0300000147 [09:51:44]line РНМ: 0000000000091578 [09:51:44]line Версия ККМ: 001 [09:51:44]line ФМ: 0000000000874657 [09:51:44]line ФД: 27132 [09:51:44]line ФПД: 73069947723604 [09:51:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T095213&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27132&fm=73069947723604&tin=02508201610067®Number=0000000000091578&sum=126800 [09:51:44]OFD Sender: Processing packet 27132 [packets to send 44, broken 43] [09:51:44]ProducePacketName [09:51:44]name=ofd_packets/00027132 [09:51:44]OFD Sender: To server: pG, [09:51:44]CommunicateWithHost lk.salyk.kg:30040 [09:51:44]ConnectInit lk.salyk.kg [09:51:44]written 0, free lines is 4095 [09:51:44]Connected sock=10 [09:51:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 22 72 07 01 B4 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 50 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 50 EF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 CD B2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 69 00 00 35 04 06 00 42 74 EC 47 1F 54 85 5B 0F 8F A9 0A E0 BB [09:51:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 01 26 47 00 B0 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 69 00 00 F4 03 04 00 2E 5A 17 66 B6 04 01 00 00 EA 2A F4 26 83 A6 AB C1 [09:51:44]CommunicateWithHost err = 0 [09:51:44]CheckOFDResponse [09:51:44]1017 (14) - 77093643461234 [09:51:44]1041 (16) - 0000000000874657 [09:51:44]1040 (4) - 27132 [09:51:44]1012 (4) - 11.04.2024 03:34 [09:51:44]1206 (1) - 0 [09:51:44]OFD Sender: Remove packet 27132 [09:51:44]ProducePacketName [09:51:44]name=ofd_packets/00027132 [09:51:44]NVStorageDeleteData [09:51:45]Write to MH i2c: 01 00 00 76 9C 12 [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: 01 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: 01 07 00 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: 01 07 00 76 9C 00 00 00 00 00 93 0C B8 [09:51:45]RasterBufferAndPrint [09:51:45]line [09:51:45]line [09:51:45]line [09:51:45]line [09:51:45]line [09:51:45]written 0, free lines is 3222 [09:51:45]MH_Cut [09:51:45]Write to MH i2c: D1 01 00 7D 9C 01 EB [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: D1 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: D1 01 00 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: D1 01 00 7D 9C 00 EA [09:51:45]Write to MH i2c: 01 00 00 7E 9C 1A [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]OFD Sender: No OFD packet to send [09:51:46]*** Cut start [09:51:46]*** Partial cut [09:51:46]*** CUTSNS_PIN = 1 [09:51:46]*** CUTSNS_PIN = 0 [09:51:46]*** Brake cut motor [09:51:46]Read from MH i2c: 01 [09:51:46]MH_I2C_Read... [09:51:46]*** Stop cut motor [09:51:46]*** Cut end [09:51:46]Read from MH i2c: 01 07 00 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: 01 07 00 7E 9C 00 00 00 00 00 FF 0F 2F [09:51:46]process_action close_receipt done [09:51:46]requested_data is exist [09:51:46]produce_requested_data [09:51:46]requested_item fm.sn is exist - process it [09:51:46]wFMCommunicate request_size=4 [09:51:46]MH_SAM_APDU [09:51:46]CAPDU: 80 11 00 00 [09:51:46]Write to MH i2c: E2 08 00 7F 9C 80 11 00 00 00 00 00 00 95 [09:51:46]Write i2c OK [09:51:46]MH_I2C_Read... [09:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:46]Read from MH i2c: E2 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 17 00 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 17 00 7F 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 ED [09:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:51:46]wFMCommunicate OK [09:51:46]requested_item fd.num is exist - process it [09:51:46]SAM_PROTO_GetFieldsCounters [09:51:46]wFMCommunicate request_size=4 [09:51:46]MH_SAM_APDU [09:51:46]CAPDU: 80 13 00 00 [09:51:46]Write to MH i2c: E2 08 00 80 9C 80 13 00 00 00 00 00 00 98 [09:51:46]Write i2c OK [09:51:46]MH_I2C_Read... [09:51:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:46]Read from MH i2c: E2 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 62 00 [09:51:46]MH_I2C_Read... [09:51:46]Read from MH i2c: E2 62 00 80 9C 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FC 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [09:51:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FC 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:46]wFMCommunicate OK [09:51:46]SAM_PROTO_GetFieldsCounters done [09:51:46]requested_item shift.num is exist - process it [09:51:46]requested_item shift.opened is exist - process it [09:51:46]req_shift_opened [09:51:46]FM_GetShiftState [09:51:46]SAM_PROTO_GetShiftState [09:51:46]wFMCommunicate request_size=4 [09:51:46]MH_SAM_APDU [09:51:46]CAPDU: 80 13 01 00 [09:51:46]Write to MH i2c: E2 08 00 81 9C 80 13 01 00 00 00 00 00 9A [09:51:47]Write i2c OK [09:51:47]MH_I2C_Read... [09:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:47]Read from MH i2c: E2 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 0E 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 0E 00 81 9C 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 E4 [09:51:47]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:51:47]wFMCommunicate OK [09:51:47]SAM_PROTO_GetShiftState done [09:51:47]FM_GetShiftState done [09:51:47]req_shift_opened done [09:51:47]requested_item shift.open_date is exist - process it [09:51:47]req_shift_open_date [09:51:47]req_shift_open_date done [09:51:47]produce_requested_data done [09:51:47]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27132,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [09:51:47]process_action_free close_receipt [09:51:47]json_value_free [09:51:47]json_value_free done [09:51:47]process_json_proto returns [09:51:47]Send response to host [09:51:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27132,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [09:51:47]free response buf [09:51:47]execute_script done [09:51:47]execute_script returns [09:51:47]free content buf [09:51:47]Sock 8.Close socket [09:51:47]Sock 8.Thread stoped [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:16]accept exits with 9 [09:54:16]New connection [09:54:16]New thread 3066871140 created [09:54:16]Thread 3067014500 joined [09:54:16]Waiting for new connection... [09:54:16] Sock 9.Parse request [09:54:16]Sock 9.Check first char [09:54:16]Sock 9.First char is OK [09:54:16]request: POST /json_proto HTTP/1.0 [09:54:16]Method: POST [09:54:16]URL: /json_proto [09:54:16]Method is POST - this is cgi request [09:54:16]url: /json_proto [09:54:16]query_string will be loaded in cgi processing [09:54:16]execute_cgi json_proto POST (null) [09:54:16]execute_cgi path=json_proto method=POST [09:54:16]POST find Content-Length [09:54:16]Host: 172.17.35.3:8080 [09:54:16]Content-Length: 682 [09:54:16]Content-Type: application/json [09:54:16] [09:54:16]POST finish read [09:54:16]Found Content-Length = 682 [09:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:16]execute_script... [09:54:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:16]POST & json_proto [09:54:16]process_json_proto [09:54:16]json parsed OK: [09:54:16]protocol is kg_v1.0 [09:54:16]action value=close_receipt [09:54:16]process_action close_receipt [09:54:16]cmd_close_receipt [09:54:16]MH_GetDate [09:54:16]Write to MH i2c: F0 00 00 82 9C 0D [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: F0 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: F0 09 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: F0 09 00 82 9C 00 67 B3 17 66 2B 11 66 64 B3 [09:54:16]GetLastDocTimeStamp 1712829133 [09:54:16]current date 1712829287 [09:54:16]FM_GetShiftState [09:54:16]SAM_PROTO_GetShiftState [09:54:16]wFMCommunicate request_size=4 [09:54:16]MH_SAM_APDU [09:54:16]CAPDU: 80 13 01 00 [09:54:16]Write to MH i2c: E2 08 00 83 9C 80 13 01 00 00 00 00 00 9C [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:16]Read from MH i2c: E2 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 0E 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 0E 00 83 9C 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 E6 [09:54:16]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:54:16]wFMCommunicate OK [09:54:16]SAM_PROTO_GetShiftState done [09:54:16]FM_GetShiftState done [09:54:16]opened in 1712795538 [09:54:16]opened+sec_in_day 1712881938 [09:54:16]quantity*price = 100045 [09:54:16]sum+1 = 100046 [09:54:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 20 11.04.2024 09:54 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27133 ФПД: 92038761291698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T095447&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27133&fm=92038761291698&tin=02508201610067®Number=0000000000091578&sum=100000 [09:54:17]StoreToDocumentArchive [09:54:17]shift 317 fd 27133 [09:54:17]save to /storage/0317/doc_00027133 [09:54:17]save last doc name /storage/0317/doc_00027133 to /storage/kkm_last_doc_name [09:54:17]save OK [09:54:17]Clear old archive folders... [09:54:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:17]tlvbuf is 00E9EA60 [09:54:17]SAM_PROTO_ClearQueue [09:54:17]wFMCommunicate request_size=4 [09:54:17]MH_SAM_APDU [09:54:17]CAPDU: 80 09 00 00 [09:54:17]Write to MH i2c: E2 08 00 90 9C 80 09 00 00 00 00 00 00 9E [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:17]Read from MH i2c: E2 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 90 9C 00 90 00 A0 [09:54:17]RAPDU: 90 00 [09:54:17]wFMCommunicate OK [09:54:17]SAM_PROTO_ClearQueue done [09:54:17]KKMCreateOFDPacket [09:54:17]OFDProtocolAddRootSTLVToBuf [09:54:17]FM_MakeSignedData [09:54:17]FM_MakeSignedData [09:54:17]SAM_PROTO_SignData [09:54:17]wFMCommunicate request_size=4 [09:54:17]MH_SAM_APDU [09:54:17]CAPDU: 80 0D 01 02 [09:54:17]Write to MH i2c: E2 08 00 91 9C 80 0D 01 02 00 00 00 00 A6 [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:17]Read from MH i2c: E2 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 91 9C 00 90 00 A1 [09:54:17]RAPDU: 90 00 [09:54:17]wFMCommunicate OK [09:54:17]wFMCommunicate request_size=255 [09:54:17]MH_SAM_APDU [09:54:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 67 B3 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FD 69 00 00 35 04 06 00 53 [09:54:17]Write to MH i2c: E2 02 01 92 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 67 B3 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FD 69 00 00 35 04 06 00 53 00 00 DC [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:17]Read from MH i2c: E2 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 92 9C 00 90 00 A2 [09:54:17]RAPDU: 90 00 [09:54:17]wFMCommunicate OK [09:54:17]wFMCommunicate request_size=10 [09:54:17]MH_SAM_APDU [09:54:17]CAPDU: 80 0D 02 02 05 B5 71 AC 1F B2 [09:54:17]Write to MH i2c: E2 0D 00 93 9C 80 0D 02 02 05 00 B5 71 AC 1F B2 00 00 56 [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:17]Read from MH i2c: E2 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 93 9C 00 90 00 A3 [09:54:17]RAPDU: 90 00 [09:54:17]wFMCommunicate OK [09:54:17]wFMCommunicate request_size=4 [09:54:17]MH_SAM_APDU [09:54:17]CAPDU: 80 0D 03 02 [09:54:17]Write to MH i2c: E2 08 00 94 9C 80 0D 03 02 00 00 00 00 AB [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:17]Read from MH i2c: E2 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 0B 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 0B 00 94 9C 00 B3 8F 8F 63 E6 DD E6 A5 90 00 2E [09:54:17]RAPDU: B3 8F 8F 63 E6 DD E6 A5 90 00 [09:54:17]wFMCommunicate OK [09:54:17]SAM_PROTO_SignData done [09:54:17]FM_MakeSignedData done [09:54:17]CreateOFDProtocolMessage [09:54:17]wFMCommunicate request_size=4 [09:54:17]MH_SAM_APDU [09:54:17]CAPDU: 80 11 00 00 [09:54:17]Write to MH i2c: E2 08 00 95 9C 80 11 00 00 00 00 00 00 AB [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:17]Read from MH i2c: E2 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 17 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 17 00 95 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 03 [09:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:54:17]wFMCommunicate OK [09:54:17]CreateOFDProtocolMessage done [09:54:17]OFDSenderStorePacket 27133 [09:54:17]StoreOFDPacket docnum=27133 [09:54:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 AA FC 07 01 E0 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 67 B3 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FD 69 00 00 35 04 06 00 53 B5 71 AC 1F B2 B3 8F 8F 63 E6 DD E6 A5 [09:54:17]CheckFolder [09:54:17]dirname=/storage/ofd_packets [09:54:17]CheckFolder done [09:54:17]ProducePacketName [09:54:17]name=ofd_packets/00027133 [09:54:17]NVStorageSaveData ofd_packets/00027133 [09:54:17]File name is /storage/ofd_packets/00027133 [09:54:17]Write 301 bytes [09:54:17]NVStorageSaveData done [09:54:17]OFDSenderStorePacket done [09:54:17]KKMCreateOFDPacket done [09:54:17]NVStorageSaveData kkm_last_timestamp [09:54:17]File name is /storage/kkm_last_timestamp [09:54:17]Write 4 bytes [09:54:17]NVStorageSaveData done [09:54:17]ExternCall_PrintAddStr [09:54:17]wPrintStart [09:54:17]Write to MH i2c: 01 00 00 96 9C 32 [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: 01 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: 01 07 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: 01 07 00 96 9C 00 00 00 00 00 FF 0F 47 [09:54:17]RasterBufferAndPrint [09:54:17]line Счет N : (1)359885 [09:54:17]line ИНН: 02508201610067 [09:54:17]line Контрольно-Кассовый Чек [09:54:17]line ПРОДАЖА [09:54:17]line ТРК (МРК, ГНК) : 61 [09:54:17]line Товар: 2710124130 [09:54:17]line Аи-92-К-5 [09:54:17]line 15.780 * 63.40 [09:54:17]line = 1000.45 [09:54:17]line НДС 12% НСП 1% [09:54:17]line > о реализуемом товаре [09:54:17]line ОКРУГЛЕНИЕ: -0.45 [09:54:17]line ИТОГО: 1000.00 [09:54:17]line Внесено: 1000.00 [09:54:17]line СДАЧА: 0.00 [09:54:17]line НСП 1% : 8.85 [09:54:17]line НДС 12% : 106.24 [09:54:17]line Наличными: 1000.00 [09:54:17]line Безнал.: 0.00 [09:54:17]line Место: АЗС № 122 "Партнер Нефть" [09:54:17]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [09:54:17]line СНО: Общий режим [09:54:17]line Чек 20 11.04.2024 09:54 [09:54:17]line Смена: 317 ФФД: 1.0 [09:54:17]line ЗНМ: 0300000147 [09:54:17]line РНМ: 0000000000091578 [09:54:17]line Версия ККМ: 001 [09:54:17]line ФМ: 0000000000874657 [09:54:17]line ФД: 27133 [09:54:18]line ФПД: 92038761291698 [09:54:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T095447&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27133&fm=92038761291698&tin=02508201610067®Number=0000000000091578&sum=100000 [09:54:18]OFD Sender: Processing packet 27133 [packets to send 44, broken 43] [09:54:18]ProducePacketName [09:54:18]name=ofd_packets/00027133 [09:54:18]OFD Sender: To server: pG, [09:54:18]CommunicateWithHost lk.salyk.kg:30040 [09:54:18]ConnectInit lk.salyk.kg [09:54:18]written 0, free lines is 4095 [09:54:18]Connected sock=10 [09:54: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 35 37 0F 01 00 00 AA FC 07 01 E0 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 67 B3 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FD 69 00 00 35 04 06 00 53 B5 71 AC 1F B2 B3 8F 8F 63 E6 DD E6 A5 [09:54: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 35 37 4F 00 00 00 6C 5F 47 00 27 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FD 69 00 00 F4 03 04 00 C7 5A 17 66 B6 04 01 00 00 15 9D EC 57 59 99 F1 15 [09:54:18]CommunicateWithHost err = 0 [09:54:18]CheckOFDResponse [09:54:18]1017 (14) - 77093643461234 [09:54:18]1041 (16) - 0000000000874657 [09:54:18]1040 (4) - 27133 [09:54:18]1012 (4) - 11.04.2024 03:36 [09:54:18]1206 (1) - 0 [09:54:18]OFD Sender: Remove packet 27133 [09:54:18]ProducePacketName [09:54:18]name=ofd_packets/00027133 [09:54:18]NVStorageDeleteData [09:54:18]Write to MH i2c: 01 00 00 C1 9C 5D [09:54:18]Write i2c OK [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: 01 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: 01 07 00 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: 01 07 00 C1 9C 00 00 00 00 00 6D 0C DD [09:54:18]RasterBufferAndPrint [09:54:18]line [09:54:18]line [09:54:18]line [09:54:18]line [09:54:18]line [09:54:18]written 0, free lines is 3184 [09:54:18]MH_Cut [09:54:18]Write to MH i2c: D1 01 00 C8 9C 01 36 [09:54:18]Write i2c OK [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: D1 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: D1 01 00 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: D1 01 00 C8 9C 00 35 [09:54:18]Write to MH i2c: 01 00 00 C9 9C 65 [09:54:18]Write i2c OK [09:54:18]MH_I2C_Read... [09:54:18]OFD Sender: No OFD packet to send [09:54:19]*** Cut start [09:54:19]*** Partial cut [09:54:19]*** CUTSNS_PIN = 1 [09:54:19]*** CUTSNS_PIN = 0 [09:54:19]*** Brake cut motor [09:54:20]Read from MH i2c: 01 [09:54:20]MH_I2C_Read... [09:54:20]*** Stop cut motor [09:54:20]*** Cut end [09:54:20]Read from MH i2c: 01 07 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: 01 07 00 C9 9C 00 00 00 00 00 FF 0F 7A [09:54:20]process_action close_receipt done [09:54:20]requested_data is exist [09:54:20]produce_requested_data [09:54:20]requested_item fm.sn is exist - process it [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 11 00 00 [09:54:20]Write to MH i2c: E2 08 00 CA 9C 80 11 00 00 00 00 00 00 E0 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 17 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 17 00 CA 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 38 [09:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:54:20]wFMCommunicate OK [09:54:20]requested_item fd.num is exist - process it [09:54:20]SAM_PROTO_GetFieldsCounters [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 13 00 00 [09:54:20]Write to MH i2c: E2 08 00 CB 9C 80 13 00 00 00 00 00 00 E3 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 62 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 62 00 CB 9C 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FD 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [09:54: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FD 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:20]wFMCommunicate OK [09:54:20]SAM_PROTO_GetFieldsCounters done [09:54:20]requested_item shift.num is exist - process it [09:54:20]requested_item shift.opened is exist - process it [09:54:20]req_shift_opened [09:54:20]FM_GetShiftState [09:54:20]SAM_PROTO_GetShiftState [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 13 01 00 [09:54:20]Write to MH i2c: E2 08 00 CC 9C 80 13 01 00 00 00 00 00 E5 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0E 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0E 00 CC 9C 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 2F [09:54:20]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:54:20]wFMCommunicate OK [09:54:20]SAM_PROTO_GetShiftState done [09:54:20]FM_GetShiftState done [09:54:20]req_shift_opened done [09:54:20]requested_item shift.open_date is exist - process it [09:54:20]req_shift_open_date [09:54:20]req_shift_open_date done [09:54:20]produce_requested_data done [09:54:20]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27133,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [09:54:20]process_action_free close_receipt [09:54:20]json_value_free [09:54:20]json_value_free done [09:54:20]process_json_proto returns [09:54:20]Send response to host [09:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27133,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [09:54:20]free response buf [09:54:20]execute_script done [09:54:20]execute_script returns [09:54:20]free content buf [09:54:20]Sock 9.Close socket [09:54:20]Sock 9.Thread stoped [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:21]int [09:55:21]Write to MH i2c: 01 00 00 CD 9C 69 [09:55:21]*** FLAG_PRN_PAP1 set [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 07 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 07 00 CD 9C 00 01 00 00 00 FF 0F 7F [09:55:21]state=0 [09:55:21]No paper [09:55:21]int [09:55:21]Write to MH i2c: 01 00 00 CE 9C 6A [09:55:21]*** FLAG_PRN_PAP2 set [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 07 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 07 00 CE 9C 00 03 00 00 00 FF 0F 82 [09:55:21]state=0 [09:55:21]No paper [09:55:21]Cover opened [09:55:22]int [09:55:22]Write to MH i2c: 01 00 00 CF 9C 6B [09:55:22]*** FLAG_PRN_PAP2 reset [09:55:22]Write i2c OK [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: 01 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: 01 07 00 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: 01 07 00 CF 9C 00 01 00 00 00 FF 0F 81 [09:55:22]state=3 [09:55:22]No paper [09:55:22]Cover closed [09:55:22]int [09:55:22]Write to MH i2c: 01 00 00 D0 9C 6C [09:55:22]*** FLAG_PRN_PAP2 set [09:55:22]Write i2c OK [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: 01 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: 01 07 00 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: 01 07 00 D0 9C 00 03 00 00 00 FF 0F 84 [09:55:22]state=0 [09:55:22]No paper [09:55:22]Cover opened [09:55:23]int [09:55:23]Write to MH i2c: 01 00 00 D1 9C 6D [09:55:23]*** FLAG_PRN_PAP2 reset [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 D1 9C 00 01 00 00 00 FF 0F 83 [09:55:23]state=3 [09:55:23]No paper [09:55:23]Cover closed [09:55:23]int [09:55:23]Write to MH i2c: 01 00 00 D2 9C 6E [09:55:23]*** FLAG_PRN_PAP2 set [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 D2 9C 00 03 00 00 00 FF 0F 86 [09:55:23]state=0 [09:55:23]No paper [09:55:23]Cover opened [09:55:23]OFD Sender: No OFD packet to send [09:55:25]int [09:55:25]Write to MH i2c: 01 00 00 D3 9C 6F [09:55:25]*** FLAG_PRN_PAP1 reset [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: 01 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: 01 07 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: 01 07 00 D3 9C 00 02 00 00 00 FF 0F 86 [09:55:25]state=3 [09:55:25]Cover opened [09:55:25]int [09:55:25]Write to MH i2c: 01 00 00 D4 9C 70 [09:55:25]*** FLAG_PRN_PAP2 reset [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: 01 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: 01 07 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: 01 07 00 D4 9C 00 00 00 00 00 FF 0F 85 [09:55:25]state=3 [09:55:25]Cover closed [09:55:27]int [09:55:27]Write to MH i2c: 01 00 00 D5 9C 71 [09:55:27]*** FLAG_PRN_KEY set [09:55:27]Write i2c OK [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: 01 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: 01 07 00 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: 01 07 00 D5 9C 00 08 00 00 00 FF 0F 8E [09:55:27]state=0 [09:55:27]Key pressed [09:55:27]Feed [09:55:27]Write to MH i2c: D8 00 00 D6 9C 49 [09:55:27]Write i2c OK [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: D8 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: D8 01 00 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: D8 01 00 D6 9C 00 4A [09:55:27]int [09:55:27]Write to MH i2c: 01 00 00 D7 9C 73 [09:55:27]Write i2c OK [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: 01 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: 01 07 00 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: 01 07 00 D7 9C 00 48 00 00 00 3C 00 FE [09:55:27]state=2 [09:55:27]Key pressed [09:55:27]int [09:55:27]Write to MH i2c: 01 00 00 D8 9C 74 [09:55:27]*** FLAG_PRN_KEY reset [09:55:27]Write i2c OK [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: 01 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: 01 07 00 [09:55:27]MH_I2C_Read... [09:55:27]Read from MH i2c: 01 07 00 D8 9C 00 00 00 00 00 F6 0F 80 [09:55:27]state=2 [09:55:27]Stop feed [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:08]accept exits with 8 [09:58:08]New connection [09:58:08]New thread 3067014500 created [09:58:08]Thread 3066871140 joined [09:58:08]Waiting for new connection... [09:58:08] Sock 8.Parse request [09:58:08]Sock 8.Check first char [09:58:08]Sock 8.First char is OK [09:58:08]request: POST /json_proto HTTP/1.0 [09:58:08]Method: POST [09:58:08]URL: /json_proto [09:58:08]Method is POST - this is cgi request [09:58:08]url: /json_proto [09:58:08]query_string will be loaded in cgi processing [09:58:08]execute_cgi json_proto POST (null) [09:58:08]execute_cgi path=json_proto method=POST [09:58:08]POST find Content-Length [09:58:08]Host: 172.17.35.3:8080 [09:58:08]Content-Length: 677 [09:58:08]Content-Type: application/json [09:58:08] [09:58:08]POST finish read [09:58:08]Found Content-Length = 677 [09:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 9.470, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:08]execute_script... [09:58:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 9.470, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:08]POST & json_proto [09:58:08]process_json_proto [09:58:08]json parsed OK: [09:58:08]protocol is kg_v1.0 [09:58:08]action value=close_receipt [09:58:08]process_action close_receipt [09:58:08]cmd_close_receipt [09:58:08]MH_GetDate [09:58:08]Write to MH i2c: F0 00 00 D9 9C 64 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: F0 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: F0 09 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: F0 09 00 D9 9C 00 4F B4 17 66 2B 11 66 64 F3 [09:58:08]GetLastDocTimeStamp 1712829287 [09:58:08]current date 1712829519 [09:58:08]FM_GetShiftState [09:58:08]SAM_PROTO_GetShiftState [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 13 01 00 [09:58:08]Write to MH i2c: E2 08 00 DA 9C 80 13 01 00 00 00 00 00 F3 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 0E 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 0E 00 DA 9C 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 3D [09:58:08]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:58:08]wFMCommunicate OK [09:58:08]SAM_PROTO_GetShiftState done [09:58:08]FM_GetShiftState done [09:58:08]opened in 1712795538 [09:58:08]opened+sec_in_day 1712881938 [09:58:08]quantity*price = 60039 [09:58:08]sum+1 = 60041 [09:58:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 21 11.04.2024 09:58 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27134 ФПД: 100353657265994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T095839&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27134&fm=100353657265994&tin=02508201610067®Number=0000000000091578&sum=60000 [09:58:09]StoreToDocumentArchive [09:58:09]shift 317 fd 27134 [09:58:09]save to /storage/0317/doc_00027134 [09:58:09]save last doc name /storage/0317/doc_00027134 to /storage/kkm_last_doc_name [09:58:09]save OK [09:58:09]Clear old archive folders... [09:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:09]tlvbuf is 00EB6DD0 [09:58:09]SAM_PROTO_ClearQueue [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 09 00 00 [09:58:09]Write to MH i2c: E2 08 00 E7 9C 80 09 00 00 00 00 00 00 F5 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 E7 9C 00 90 00 F7 [09:58:09]RAPDU: 90 00 [09:58:09]wFMCommunicate OK [09:58:09]SAM_PROTO_ClearQueue done [09:58:09]KKMCreateOFDPacket [09:58:09]OFDProtocolAddRootSTLVToBuf [09:58:09]FM_MakeSignedData [09:58:09]FM_MakeSignedData [09:58:09]SAM_PROTO_SignData [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 0D 01 02 [09:58:09]Write to MH i2c: E2 08 00 E8 9C 80 0D 01 02 00 00 00 00 FD [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 E8 9C 00 90 00 F8 [09:58:09]RAPDU: 90 00 [09:58:09]wFMCommunicate OK [09:58:09]wFMCommunicate request_size=255 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F B4 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FE 69 00 00 35 04 06 00 5B [09:58:09]Write to MH i2c: E2 02 01 E9 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F B4 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FE 69 00 00 35 04 06 00 5B 00 00 BF [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 E9 9C 00 90 00 F9 [09:58:09]RAPDU: 90 00 [09:58:09]wFMCommunicate OK [09:58:09]wFMCommunicate request_size=10 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 0D 02 02 05 45 68 17 DF 4A [09:58:09]Write to MH i2c: E2 0D 00 EA 9C 80 0D 02 02 05 00 45 68 17 DF 4A 00 00 F7 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 03 00 EA 9C 00 90 00 FA [09:58:09]RAPDU: 90 00 [09:58:09]wFMCommunicate OK [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 0D 03 02 [09:58:09]Write to MH i2c: E2 08 00 EB 9C 80 0D 03 02 00 00 00 00 02 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0B 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0B 00 EB 9C 00 22 C8 E1 6B EC ED BD 75 90 00 44 [09:58:09]RAPDU: 22 C8 E1 6B EC ED BD 75 90 00 [09:58:09]wFMCommunicate OK [09:58:09]SAM_PROTO_SignData done [09:58:09]FM_MakeSignedData done [09:58:09]CreateOFDProtocolMessage [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 11 00 00 [09:58:09]Write to MH i2c: E2 08 00 EC 9C 80 11 00 00 00 00 00 00 02 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 17 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 17 00 EC 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 5A [09:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:58:09]wFMCommunicate OK [09:58:09]CreateOFDProtocolMessage done [09:58:09]OFDSenderStorePacket 27134 [09:58:09]StoreOFDPacket docnum=27134 [09:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 3B 01 07 01 F3 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F B4 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FE 69 00 00 35 04 06 00 5B 45 68 17 DF 4A 22 C8 E1 6B EC ED BD 75 [09:58:09]CheckFolder [09:58:09]dirname=/storage/ofd_packets [09:58:09]CheckFolder done [09:58:09]ProducePacketName [09:58:09]name=ofd_packets/00027134 [09:58:09]NVStorageSaveData ofd_packets/00027134 [09:58:09]File name is /storage/ofd_packets/00027134 [09:58:09]Write 301 bytes [09:58:09]NVStorageSaveData done [09:58:09]OFDSenderStorePacket done [09:58:09]KKMCreateOFDPacket done [09:58:09]NVStorageSaveData kkm_last_timestamp [09:58:09]File name is /storage/kkm_last_timestamp [09:58:09]Write 4 bytes [09:58:09]NVStorageSaveData done [09:58:09]ExternCall_PrintAddStr [09:58:09]wPrintStart [09:58:09]Write to MH i2c: 01 00 00 ED 9C 89 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 07 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 07 00 ED 9C 00 00 00 00 00 FF 0F 9E [09:58:09]RasterBufferAndPrint [09:58:09]line Счет N : (1)359886 [09:58:09]line ИНН: 02508201610067 [09:58:09]line Контрольно-Кассовый Чек [09:58:09]line ПРОДАЖА [09:58:09]line ТРК (МРК, ГНК) : 61 [09:58:09]line Товар: 2710124130 [09:58:09]line Аи-92-К-5 [09:58:09]line 9.470 * 63.40 [09:58:09]line = 600.40 [09:58:09]line НДС 12% НСП 1% [09:58:09]line > о реализуемом товаре [09:58:09]line ОКРУГЛЕНИЕ: -0.40 [09:58:09]line ИТОГО: 600.00 [09:58:09]line Внесено: 600.00 [09:58:09]line СДАЧА: 0.00 [09:58:09]line НСП 1% : 5.31 [09:58:09]line НДС 12% : 63.76 [09:58:09]line Наличными: 600.00 [09:58:09]line Безнал.: 0.00 [09:58:09]line Место: АЗС № 122 "Партнер Нефть" [09:58:09]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [09:58:09]line СНО: Общий режим [09:58:09]line Чек 21 11.04.2024 09:58 [09:58:09]line Смена: 317 ФФД: 1.0 [09:58:09]line ЗНМ: 0300000147 [09:58:09]line РНМ: 0000000000091578 [09:58:09]line Версия ККМ: 001 [09:58:09]line ФМ: 0000000000874657 [09:58:09]line ФД: 27134 [09:58:09]line ФПД: 100353657265994 [09:58:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T095839&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27134&fm=100353657265994&tin=02508201610067®Number=0000000000091578&sum=60000 [09:58:10]OFD Sender: Processing packet 27134 [packets to send 44, broken 43] [09:58:10]ProducePacketName [09:58:10]name=ofd_packets/00027134 [09:58:10]OFD Sender: To server: pG, [09:58:10]CommunicateWithHost lk.salyk.kg:30040 [09:58:10]ConnectInit lk.salyk.kg [09:58:10]written 0, free lines is 4095 [09:58:10]Connected sock=10 [09:58: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 35 37 0F 01 00 00 3B 01 07 01 F3 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 4F B4 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FE 69 00 00 35 04 06 00 5B 45 68 17 DF 4A 22 C8 E1 6B EC ED BD 75 [09:58: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 35 37 4F 00 00 00 EE 27 47 00 61 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 35 37 10 04 04 00 FE 69 00 00 F4 03 04 00 AF 5B 17 66 B6 04 01 00 00 C4 9D 8D 76 D6 7A C8 49 [09:58:10]CommunicateWithHost err = 0 [09:58:10]CheckOFDResponse [09:58:10]1017 (14) - 77093643461234 [09:58:10]1041 (16) - 0000000000874657 [09:58:10]1040 (4) - 27134 [09:58:10]1012 (4) - 11.04.2024 03:40 [09:58:10]1206 (1) - 0 [09:58:10]OFD Sender: Remove packet 27134 [09:58:10]ProducePacketName [09:58:10]name=ofd_packets/00027134 [09:58:10]NVStorageDeleteData [09:58:10]Write to MH i2c: 01 00 00 18 9D B5 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 07 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 07 00 18 9D 00 00 00 00 00 78 0C 40 [09:58:10]RasterBufferAndPrint [09:58:10]line [09:58:10]line [09:58:10]line [09:58:10]line [09:58:10]line [09:58:10]written 0, free lines is 3196 [09:58:10]MH_Cut [09:58:10]Write to MH i2c: D1 01 00 1F 9D 01 8E [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: D1 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: D1 01 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: D1 01 00 1F 9D 00 8D [09:58:10]Write to MH i2c: 01 00 00 20 9D BD [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]OFD Sender: No OFD packet to send [09:58:11]*** Cut start [09:58:11]*** Partial cut [09:58:11]*** CUTSNS_PIN = 1 [09:58:11]*** CUTSNS_PIN = 0 [09:58:11]*** Brake cut motor [09:58:12]Read from MH i2c: 01 [09:58:12]MH_I2C_Read... [09:58:12]*** Stop cut motor [09:58:12]*** Cut end [09:58:12]Read from MH i2c: 01 07 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: 01 07 00 20 9D 00 00 00 00 00 FF 0F D2 [09:58:12]process_action close_receipt done [09:58:12]requested_data is exist [09:58:12]produce_requested_data [09:58:12]requested_item fm.sn is exist - process it [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 11 00 00 [09:58:12]Write to MH i2c: E2 08 00 21 9D 80 11 00 00 00 00 00 00 38 [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 17 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 17 00 21 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 90 [09:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:58:12]wFMCommunicate OK [09:58:12]requested_item fd.num is exist - process it [09:58:12]SAM_PROTO_GetFieldsCounters [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 13 00 00 [09:58:12]Write to MH i2c: E2 08 00 22 9D 80 13 00 00 00 00 00 00 3B [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 62 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 62 00 22 9D 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FE 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [09:58: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FE 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:12]wFMCommunicate OK [09:58:12]SAM_PROTO_GetFieldsCounters done [09:58:12]requested_item shift.num is exist - process it [09:58:12]requested_item shift.opened is exist - process it [09:58:12]req_shift_opened [09:58:12]FM_GetShiftState [09:58:12]SAM_PROTO_GetShiftState [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 13 01 00 [09:58:12]Write to MH i2c: E2 08 00 23 9D 80 13 01 00 00 00 00 00 3D [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 0E 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 0E 00 23 9D 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 87 [09:58:12]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [09:58:12]wFMCommunicate OK [09:58:12]SAM_PROTO_GetShiftState done [09:58:12]FM_GetShiftState done [09:58:12]req_shift_opened done [09:58:12]requested_item shift.open_date is exist - process it [09:58:12]req_shift_open_date [09:58:12]req_shift_open_date done [09:58:12]produce_requested_data done [09:58:12]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27134,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [09:58:12]process_action_free close_receipt [09:58:12]json_value_free [09:58:12]json_value_free done [09:58:12]process_json_proto returns [09:58:12]Send response to host [09:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27134,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [09:58:12]free response buf [09:58:12]execute_script done [09:58:12]execute_script returns [09:58:12]free content buf [09:58:12]Sock 8.Close socket [09:58:12]Sock 8.Thread stoped [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:10]accept exits with 9 [10:02:10]New connection [10:02:10]New thread 3066871140 created [10:02:10]Thread 3067014500 joined [10:02:10]Waiting for new connection... [10:02:10] Sock 9.Parse request [10:02:10]Sock 9.Check first char [10:02:10]Sock 9.First char is OK [10:02:10]request: POST /json_proto HTTP/1.0 [10:02:10]Method: POST [10:02:10]URL: /json_proto [10:02:10]Method is POST - this is cgi request [10:02:10]url: /json_proto [10:02:10]query_string will be loaded in cgi processing [10:02:10]execute_cgi json_proto POST (null) [10:02:10]execute_cgi path=json_proto method=POST [10:02:10]POST find Content-Length [10:02:10]Host: 172.17.35.3:8080 [10:02:10]Content-Length: 682 [10:02:10]Content-Type: application/json [10:02:10] [10:02:10]POST finish read [10:02:10]Found Content-Length = 682 [10:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:10]execute_script... [10:02:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:10]POST & json_proto [10:02:10]process_json_proto [10:02:10]json parsed OK: [10:02:10]protocol is kg_v1.0 [10:02:10]action value=close_receipt [10:02:10]process_action close_receipt [10:02:10]cmd_close_receipt [10:02:10]MH_GetDate [10:02:10]Write to MH i2c: F0 00 00 24 9D B0 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: F0 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: F0 09 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: F0 09 00 24 9D 00 41 B5 17 66 2B 11 66 64 32 [10:02:10]GetLastDocTimeStamp 1712829519 [10:02:10]current date 1712829761 [10:02:10]FM_GetShiftState [10:02:10]SAM_PROTO_GetShiftState [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 13 01 00 [10:02:10]Write to MH i2c: E2 08 00 25 9D 80 13 01 00 00 00 00 00 3F [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 0E 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 0E 00 25 9D 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 89 [10:02:10]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:02:10]wFMCommunicate OK [10:02:10]SAM_PROTO_GetShiftState done [10:02:10]FM_GetShiftState done [10:02:10]opened in 1712795538 [10:02:10]opened+sec_in_day 1712881938 [10:02:10]quantity*price = 100045 [10:02:10]sum+1 = 100046 [10:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 22 11.04.2024 10:02 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27135 ФПД: 120864266981087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T100241&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27135&fm=120864266981087&tin=02508201610067®Number=0000000000091578&sum=100000 [10:02:11]StoreToDocumentArchive [10:02:11]shift 317 fd 27135 [10:02:11]save to /storage/0317/doc_00027135 [10:02:11]save last doc name /storage/0317/doc_00027135 to /storage/kkm_last_doc_name [10:02:11]save OK [10:02:11]Clear old archive folders... [10:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:11]tlvbuf is B6EE9860 [10:02:11]SAM_PROTO_ClearQueue [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 09 00 00 [10:02:11]Write to MH i2c: E2 08 00 32 9D 80 09 00 00 00 00 00 00 41 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 03 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 03 00 32 9D 00 90 00 43 [10:02:11]RAPDU: 90 00 [10:02:11]wFMCommunicate OK [10:02:11]SAM_PROTO_ClearQueue done [10:02:11]KKMCreateOFDPacket [10:02:11]OFDProtocolAddRootSTLVToBuf [10:02:11]FM_MakeSignedData [10:02:11]FM_MakeSignedData [10:02:11]SAM_PROTO_SignData [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 0D 01 02 [10:02:11]Write to MH i2c: E2 08 00 33 9D 80 0D 01 02 00 00 00 00 49 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 03 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 03 00 33 9D 00 90 00 44 [10:02:11]RAPDU: 90 00 [10:02:11]wFMCommunicate OK [10:02:11]wFMCommunicate request_size=255 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 41 B5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FF 69 00 00 35 04 06 00 6D [10:02:11]Write to MH i2c: E2 02 01 34 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 41 B5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FF 69 00 00 35 04 06 00 6D 00 00 79 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 03 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 03 00 34 9D 00 90 00 45 [10:02:11]RAPDU: 90 00 [10:02:11]wFMCommunicate OK [10:02:11]wFMCommunicate request_size=10 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 0D 02 02 05 EC E7 B3 0E DF [10:02:11]Write to MH i2c: E2 0D 00 35 9D 80 0D 02 02 05 00 EC E7 B3 0E DF 00 00 C9 [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 03 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 03 00 35 9D 00 90 00 46 [10:02:11]RAPDU: 90 00 [10:02:11]wFMCommunicate OK [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 0D 03 02 [10:02:11]Write to MH i2c: E2 08 00 36 9D 80 0D 03 02 00 00 00 00 4E [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0B 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0B 00 36 9D 00 2F 70 27 1F D0 9D 15 F8 90 00 AE [10:02:11]RAPDU: 2F 70 27 1F D0 9D 15 F8 90 00 [10:02:11]wFMCommunicate OK [10:02:11]SAM_PROTO_SignData done [10:02:11]FM_MakeSignedData done [10:02:11]CreateOFDProtocolMessage [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 11 00 00 [10:02:11]Write to MH i2c: E2 08 00 37 9D 80 11 00 00 00 00 00 00 4E [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 17 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 17 00 37 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 A6 [10:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:02:12]wFMCommunicate OK [10:02:12]CreateOFDProtocolMessage done [10:02:12]OFDSenderStorePacket 27135 [10:02:12]StoreOFDPacket docnum=27135 [10:02:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 5C D8 07 01 85 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 41 B5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FF 69 00 00 35 04 06 00 6D EC E7 B3 0E DF 2F 70 27 1F D0 9D 15 F8 [10:02:12]CheckFolder [10:02:12]dirname=/storage/ofd_packets [10:02:12]CheckFolder done [10:02:12]ProducePacketName [10:02:12]name=ofd_packets/00027135 [10:02:12]NVStorageSaveData ofd_packets/00027135 [10:02:12]File name is /storage/ofd_packets/00027135 [10:02:12]Write 301 bytes [10:02:12]NVStorageSaveData done [10:02:12]OFDSenderStorePacket done [10:02:12]KKMCreateOFDPacket done [10:02:12]NVStorageSaveData kkm_last_timestamp [10:02:12]File name is /storage/kkm_last_timestamp [10:02:12]Write 4 bytes [10:02:12]NVStorageSaveData done [10:02:12]ExternCall_PrintAddStr [10:02:12]wPrintStart [10:02:12]Write to MH i2c: 01 00 00 38 9D D5 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: 01 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: 01 07 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: 01 07 00 38 9D 00 00 00 00 00 FF 0F EA [10:02:12]RasterBufferAndPrint [10:02:12]line Счет N : (1)359887 [10:02:12]line ИНН: 02508201610067 [10:02:12]line Контрольно-Кассовый Чек [10:02:12]line ПРОДАЖА [10:02:12]line ТРК (МРК, ГНК) : 61 [10:02:12]line Товар: 2710124130 [10:02:12]line Аи-92-К-5 [10:02:12]line 15.780 * 63.40 [10:02:12]line = 1000.45 [10:02:12]line НДС 12% НСП 1% [10:02:12]line > о реализуемом товаре [10:02:12]line ОКРУГЛЕНИЕ: -0.45 [10:02:12]line ИТОГО: 1000.00 [10:02:12]line Внесено: 1000.00 [10:02:12]line СДАЧА: 0.00 [10:02:12]line НСП 1% : 8.85 [10:02:12]line НДС 12% : 106.24 [10:02:12]line Наличными: 1000.00 [10:02:12]line Безнал.: 0.00 [10:02:12]line Место: АЗС № 122 "Партнер Нефть" [10:02:12]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:02:12]line СНО: Общий режим [10:02:12]line Чек 22 11.04.2024 10:02 [10:02:12]line Смена: 317 ФФД: 1.0 [10:02:12]line ЗНМ: 0300000147 [10:02:12]line РНМ: 0000000000091578 [10:02:12]line Версия ККМ: 001 [10:02:12]line ФМ: 0000000000874657 [10:02:12]line ФД: 27135 [10:02:12]line ФПД: 120864266981087 [10:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T100241&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27135&fm=120864266981087&tin=02508201610067®Number=0000000000091578&sum=100000 [10:02:12]OFD Sender: Processing packet 27135 [packets to send 44, broken 43] [10:02:12]ProducePacketName [10:02:12]name=ofd_packets/00027135 [10:02:12]OFD Sender: To server: pG, [10:02:12]CommunicateWithHost lk.salyk.kg:30040 [10:02:12]ConnectInit lk.salyk.kg [10:02:12]written 0, free lines is 4095 [10:02:12]Connected sock=10 [10:02: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 35 37 0F 01 00 00 5C D8 07 01 85 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 41 B5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FF 69 00 00 35 04 06 00 6D EC E7 B3 0E DF 2F 70 27 1F D0 9D 15 F8 [10:02: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 35 37 4F 00 00 00 56 D7 47 00 F7 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 35 37 10 04 04 00 FF 69 00 00 F4 03 04 00 A2 5C 17 66 B6 04 01 00 00 E4 09 C7 99 A8 A9 02 36 [10:02:12]CommunicateWithHost err = 0 [10:02:12]CheckOFDResponse [10:02:12]1017 (14) - 77093643461234 [10:02:12]1041 (16) - 0000000000874657 [10:02:12]1040 (4) - 27135 [10:02:12]1012 (4) - 11.04.2024 03:44 [10:02:12]1206 (1) - 0 [10:02:12]OFD Sender: Remove packet 27135 [10:02:12]ProducePacketName [10:02:12]name=ofd_packets/00027135 [10:02:12]NVStorageDeleteData [10:02:12]Write to MH i2c: 01 00 00 63 9D 00 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: 01 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: 01 07 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: 01 07 00 63 9D 00 00 00 00 00 74 0C 87 [10:02:12]RasterBufferAndPrint [10:02:12]line [10:02:12]line [10:02:12]line [10:02:12]line [10:02:12]line [10:02:12]written 0, free lines is 3191 [10:02:12]MH_Cut [10:02:12]Write to MH i2c: D1 01 00 6A 9D 01 D9 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: D1 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: D1 01 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: D1 01 00 6A 9D 00 D8 [10:02:12]Write to MH i2c: 01 00 00 6B 9D 08 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:13]OFD Sender: No OFD packet to send [10:02:13]*** Cut start [10:02:13]*** Partial cut [10:02:13]*** CUTSNS_PIN = 1 [10:02:14]*** CUTSNS_PIN = 0 [10:02:14]*** Brake cut motor [10:02:14]Read from MH i2c: 01 [10:02:14]MH_I2C_Read... [10:02:14]*** Stop cut motor [10:02:14]*** Cut end [10:02:14]Read from MH i2c: 01 07 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 07 00 6B 9D 00 00 00 00 00 FF 0F 1D [10:02:14]process_action close_receipt done [10:02:14]requested_data is exist [10:02:14]produce_requested_data [10:02:14]requested_item fm.sn is exist - process it [10:02:14]wFMCommunicate request_size=4 [10:02:14]MH_SAM_APDU [10:02:14]CAPDU: 80 11 00 00 [10:02:14]Write to MH i2c: E2 08 00 6C 9D 80 11 00 00 00 00 00 00 83 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:14]Read from MH i2c: E2 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 17 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 17 00 6C 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 DB [10:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:02:14]wFMCommunicate OK [10:02:14]requested_item fd.num is exist - process it [10:02:14]SAM_PROTO_GetFieldsCounters [10:02:14]wFMCommunicate request_size=4 [10:02:14]MH_SAM_APDU [10:02:14]CAPDU: 80 13 00 00 [10:02:14]Write to MH i2c: E2 08 00 6D 9D 80 13 00 00 00 00 00 00 86 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:14]Read from MH i2c: E2 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 62 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 62 00 6D 9D 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FF 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [10:02: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FF 69 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:14]wFMCommunicate OK [10:02:14]SAM_PROTO_GetFieldsCounters done [10:02:14]requested_item shift.num is exist - process it [10:02:14]requested_item shift.opened is exist - process it [10:02:14]req_shift_opened [10:02:14]FM_GetShiftState [10:02:14]SAM_PROTO_GetShiftState [10:02:14]wFMCommunicate request_size=4 [10:02:14]MH_SAM_APDU [10:02:14]CAPDU: 80 13 01 00 [10:02:14]Write to MH i2c: E2 08 00 6E 9D 80 13 01 00 00 00 00 00 88 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:14]Read from MH i2c: E2 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 0E 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 0E 00 6E 9D 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 D2 [10:02:14]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:02:14]wFMCommunicate OK [10:02:14]SAM_PROTO_GetShiftState done [10:02:14]FM_GetShiftState done [10:02:14]req_shift_opened done [10:02:14]requested_item shift.open_date is exist - process it [10:02:14]req_shift_open_date [10:02:14]req_shift_open_date done [10:02:14]produce_requested_data done [10:02:14]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27135,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [10:02:14]process_action_free close_receipt [10:02:14]json_value_free [10:02:14]json_value_free done [10:02:14]process_json_proto returns [10:02:14]Send response to host [10:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27135,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [10:02:14]free response buf [10:02:14]execute_script done [10:02:14]execute_script returns [10:02:14]free content buf [10:02:14]Sock 9.Close socket [10:02:14]Sock 9.Thread stoped [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:36]accept exits with 8 [10:02:36]New connection [10:02:36]New thread 3067014500 created [10:02:36]Thread 3066871140 joined [10:02:36]Waiting for new connection... [10:02:36] Sock 8.Parse request [10:02:36]Sock 8.Check first char [10:02:36]Sock 8.First char is OK [10:02:36]request: POST /json_proto HTTP/1.0 [10:02:36]Method: POST [10:02:36]URL: /json_proto [10:02:36]Method is POST - this is cgi request [10:02:36]url: /json_proto [10:02:36]query_string will be loaded in cgi processing [10:02:36]execute_cgi json_proto POST (null) [10:02:36]execute_cgi path=json_proto method=POST [10:02:36]POST find Content-Length [10:02:36]Host: 172.17.35.3:8080 [10:02:36]Content-Length: 682 [10:02:36]Content-Type: application/json [10:02:36] [10:02:36]POST finish read [10:02:36]Found Content-Length = 682 [10:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:36]execute_script... [10:02:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:36]POST & json_proto [10:02:36]process_json_proto [10:02:36]json parsed OK: [10:02:36]protocol is kg_v1.0 [10:02:36]action value=close_receipt [10:02:36]process_action close_receipt [10:02:36]cmd_close_receipt [10:02:36]MH_GetDate [10:02:36]Write to MH i2c: F0 00 00 6F 9D FB [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: F0 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: F0 09 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: F0 09 00 6F 9D 00 5B B5 17 66 2B 11 66 64 97 [10:02:36]GetLastDocTimeStamp 1712829761 [10:02:36]current date 1712829787 [10:02:36]FM_GetShiftState [10:02:36]SAM_PROTO_GetShiftState [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 13 01 00 [10:02:36]Write to MH i2c: E2 08 00 70 9D 80 13 01 00 00 00 00 00 8A [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 0E 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 0E 00 70 9D 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 D4 [10:02:36]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:02:36]wFMCommunicate OK [10:02:36]SAM_PROTO_GetShiftState done [10:02:36]FM_GetShiftState done [10:02:36]opened in 1712795538 [10:02:36]opened+sec_in_day 1712881938 [10:02:36]quantity*price = 100045 [10:02:36]sum+1 = 100046 [10:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 23 11.04.2024 10:03 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27136 ФПД: 59440567491964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T100307&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27136&fm=59440567491964&tin=02508201610067®Number=0000000000091578&sum=100000 [10:02:37]StoreToDocumentArchive [10:02:37]shift 317 fd 27136 [10:02:37]save to /storage/0317/doc_00027136 [10:02:37]save last doc name /storage/0317/doc_00027136 to /storage/kkm_last_doc_name [10:02:37]save OK [10:02:37]Clear old archive folders... [10:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:37]tlvbuf is 00E932A0 [10:02:37]SAM_PROTO_ClearQueue [10:02:37]wFMCommunicate request_size=4 [10:02:37]MH_SAM_APDU [10:02:37]CAPDU: 80 09 00 00 [10:02:37]Write to MH i2c: E2 08 00 7D 9D 80 09 00 00 00 00 00 00 8C [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:38]Read from MH i2c: E2 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 03 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 03 00 7D 9D 00 90 00 8E [10:02:38]RAPDU: 90 00 [10:02:38]wFMCommunicate OK [10:02:38]SAM_PROTO_ClearQueue done [10:02:38]KKMCreateOFDPacket [10:02:38]OFDProtocolAddRootSTLVToBuf [10:02:38]FM_MakeSignedData [10:02:38]FM_MakeSignedData [10:02:38]SAM_PROTO_SignData [10:02:38]wFMCommunicate request_size=4 [10:02:38]MH_SAM_APDU [10:02:38]CAPDU: 80 0D 01 02 [10:02:38]Write to MH i2c: E2 08 00 7E 9D 80 0D 01 02 00 00 00 00 94 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:38]Read from MH i2c: E2 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 03 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 03 00 7E 9D 00 90 00 8F [10:02:38]RAPDU: 90 00 [10:02:38]wFMCommunicate OK [10:02:38]wFMCommunicate request_size=255 [10:02:38]MH_SAM_APDU [10:02:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5B B5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 00 6A 00 00 35 04 06 00 36 [10:02:38]Write to MH i2c: E2 02 01 7F 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5B B5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 00 6A 00 00 35 04 06 00 36 00 00 AA [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]OFD Sender: No OFD packet to send [10:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:38]Read from MH i2c: E2 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 03 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 03 00 7F 9D 00 90 00 90 [10:02:38]RAPDU: 90 00 [10:02:38]wFMCommunicate OK [10:02:38]wFMCommunicate request_size=10 [10:02:38]MH_SAM_APDU [10:02:38]CAPDU: 80 0D 02 02 05 0F 95 E9 1D 7C [10:02:38]Write to MH i2c: E2 0D 00 80 9D 80 0D 02 02 05 00 0F 95 E9 1D 7C 00 00 C7 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:38]Read from MH i2c: E2 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 03 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 03 00 80 9D 00 90 00 91 [10:02:38]RAPDU: 90 00 [10:02:38]wFMCommunicate OK [10:02:38]wFMCommunicate request_size=4 [10:02:38]MH_SAM_APDU [10:02:38]CAPDU: 80 0D 03 02 [10:02:38]Write to MH i2c: E2 08 00 81 9D 80 0D 03 02 00 00 00 00 99 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:38]Read from MH i2c: E2 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 0B 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 0B 00 81 9D 00 CF 24 7A 67 0F 37 F3 C8 90 00 6F [10:02:38]RAPDU: CF 24 7A 67 0F 37 F3 C8 90 00 [10:02:38]wFMCommunicate OK [10:02:38]SAM_PROTO_SignData done [10:02:38]FM_MakeSignedData done [10:02:38]CreateOFDProtocolMessage [10:02:38]wFMCommunicate request_size=4 [10:02:38]MH_SAM_APDU [10:02:38]CAPDU: 80 11 00 00 [10:02:38]Write to MH i2c: E2 08 00 82 9D 80 11 00 00 00 00 00 00 99 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:38]Read from MH i2c: E2 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 17 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: E2 17 00 82 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F1 [10:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:02:38]wFMCommunicate OK [10:02:38]CreateOFDProtocolMessage done [10:02:38]OFDSenderStorePacket 27136 [10:02:38]StoreOFDPacket docnum=27136 [10:02:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 96 4E 07 01 62 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5B B5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 00 6A 00 00 35 04 06 00 36 0F 95 E9 1D 7C CF 24 7A 67 0F 37 F3 C8 [10:02:38]CheckFolder [10:02:38]dirname=/storage/ofd_packets [10:02:38]CheckFolder done [10:02:38]ProducePacketName [10:02:38]name=ofd_packets/00027136 [10:02:38]NVStorageSaveData ofd_packets/00027136 [10:02:38]File name is /storage/ofd_packets/00027136 [10:02:38]Write 301 bytes [10:02:38]NVStorageSaveData done [10:02:38]OFDSenderStorePacket done [10:02:38]KKMCreateOFDPacket done [10:02:38]NVStorageSaveData kkm_last_timestamp [10:02:38]File name is /storage/kkm_last_timestamp [10:02:38]Write 4 bytes [10:02:38]NVStorageSaveData done [10:02:38]ExternCall_PrintAddStr [10:02:38]wPrintStart [10:02:38]Write to MH i2c: 01 00 00 83 9D 20 [10:02:38]Write i2c OK [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 07 00 [10:02:38]MH_I2C_Read... [10:02:38]Read from MH i2c: 01 07 00 83 9D 00 00 00 00 00 FF 0F 35 [10:02:38]RasterBufferAndPrint [10:02:38]line Счет N : (1)359888 [10:02:38]line ИНН: 02508201610067 [10:02:38]line Контрольно-Кассовый Чек [10:02:38]line ПРОДАЖА [10:02:38]line ТРК (МРК, ГНК) : 51 [10:02:38]line Товар: 2710124130 [10:02:38]line Аи-92-К-5 [10:02:38]line 15.780 * 63.40 [10:02:38]line = 1000.45 [10:02:38]line НДС 12% НСП 1% [10:02:38]line > о реализуемом товаре [10:02:38]line ОКРУГЛЕНИЕ: -0.45 [10:02:38]line ИТОГО: 1000.00 [10:02:38]line Внесено: 1000.00 [10:02:38]line СДАЧА: 0.00 [10:02:38]line НСП 1% : 8.85 [10:02:38]line НДС 12% : 106.24 [10:02:38]line Наличными: 1000.00 [10:02:38]line Безнал.: 0.00 [10:02:38]line Место: АЗС № 122 "Партнер Нефть" [10:02:38]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:02:38]line СНО: Общий режим [10:02:38]line Чек 23 11.04.2024 10:03 [10:02:38]line Смена: 317 ФФД: 1.0 [10:02:38]line ЗНМ: 0300000147 [10:02:38]line РНМ: 0000000000091578 [10:02:38]line Версия ККМ: 001 [10:02:38]line ФМ: 0000000000874657 [10:02:38]line ФД: 27136 [10:02:38]line ФПД: 59440567491964 [10:02:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T100307&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27136&fm=59440567491964&tin=02508201610067®Number=0000000000091578&sum=100000 [10:02:38]OFD Sender: Processing packet 27136 [packets to send 44, broken 43] [10:02:38]ProducePacketName [10:02:38]name=ofd_packets/00027136 [10:02:38]OFD Sender: To server: pG, [10:02:38]CommunicateWithHost lk.salyk.kg:30040 [10:02:38]ConnectInit lk.salyk.kg [10:02:38]written 0, free lines is 4095 [10:02:38]Connected sock=10 [10:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 96 4E 07 01 62 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5B B5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 00 6A 00 00 35 04 06 00 36 0F 95 E9 1D 7C CF 24 7A 67 0F 37 F3 C8 [10:02: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 35 37 4F 00 00 00 74 DD 47 00 6A 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 35 37 10 04 04 00 00 6A 00 00 F4 03 04 00 BC 5C 17 66 B6 04 01 00 00 FD 41 70 72 6F DF 99 10 [10:02:39]CommunicateWithHost err = 0 [10:02:39]CheckOFDResponse [10:02:39]1017 (14) - 77093643461234 [10:02:39]1041 (16) - 0000000000874657 [10:02:39]1040 (4) - 27136 [10:02:39]1012 (4) - 11.04.2024 03:45 [10:02:39]1206 (1) - 0 [10:02:39]OFD Sender: Remove packet 27136 [10:02:39]ProducePacketName [10:02:39]name=ofd_packets/00027136 [10:02:39]NVStorageDeleteData [10:02:39]Write to MH i2c: 01 00 00 AE 9D 4B [10:02:39]Write i2c OK [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: 01 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: 01 07 00 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: 01 07 00 AE 9D 00 00 00 00 00 7D 0C DB [10:02:39]RasterBufferAndPrint [10:02:39]line [10:02:39]line [10:02:39]line [10:02:39]line [10:02:39]line [10:02:39]written 0, free lines is 3199 [10:02:39]MH_Cut [10:02:39]Write to MH i2c: D1 01 00 B5 9D 01 24 [10:02:39]Write i2c OK [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: D1 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: D1 01 00 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: D1 01 00 B5 9D 00 23 [10:02:39]Write to MH i2c: 01 00 00 B6 9D 53 [10:02:39]Write i2c OK [10:02:39]MH_I2C_Read... [10:02:39]OFD Sender: No OFD packet to send [10:02:40]*** Cut start [10:02:40]*** Partial cut [10:02:40]*** CUTSNS_PIN = 1 [10:02:40]*** CUTSNS_PIN = 0 [10:02:40]*** Brake cut motor [10:02:41]Read from MH i2c: 01 [10:02:41]MH_I2C_Read... [10:02:41]*** Stop cut motor [10:02:41]*** Cut end [10:02:41]Read from MH i2c: 01 07 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: 01 07 00 B6 9D 00 00 00 00 00 FF 0F 68 [10:02:41]process_action close_receipt done [10:02:41]requested_data is exist [10:02:41]produce_requested_data [10:02:41]requested_item fm.sn is exist - process it [10:02:41]wFMCommunicate request_size=4 [10:02:41]MH_SAM_APDU [10:02:41]CAPDU: 80 11 00 00 [10:02:41]Write to MH i2c: E2 08 00 B7 9D 80 11 00 00 00 00 00 00 CE [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:41]Read from MH i2c: E2 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 17 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 17 00 B7 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 26 [10:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:02:41]wFMCommunicate OK [10:02:41]requested_item fd.num is exist - process it [10:02:41]SAM_PROTO_GetFieldsCounters [10:02:41]wFMCommunicate request_size=4 [10:02:41]MH_SAM_APDU [10:02:41]CAPDU: 80 13 00 00 [10:02:41]Write to MH i2c: E2 08 00 B8 9D 80 13 00 00 00 00 00 00 D1 [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:41]Read from MH i2c: E2 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 62 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 62 00 B8 9D 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 00 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [10:02: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 00 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:41]wFMCommunicate OK [10:02:41]SAM_PROTO_GetFieldsCounters done [10:02:41]requested_item shift.num is exist - process it [10:02:41]requested_item shift.opened is exist - process it [10:02:41]req_shift_opened [10:02:41]FM_GetShiftState [10:02:41]SAM_PROTO_GetShiftState [10:02:41]wFMCommunicate request_size=4 [10:02:41]MH_SAM_APDU [10:02:41]CAPDU: 80 13 01 00 [10:02:41]Write to MH i2c: E2 08 00 B9 9D 80 13 01 00 00 00 00 00 D3 [10:02:41]Write i2c OK [10:02:41]MH_I2C_Read... [10:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:41]Read from MH i2c: E2 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 0E 00 [10:02:41]MH_I2C_Read... [10:02:41]Read from MH i2c: E2 0E 00 B9 9D 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 1D [10:02:41]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:02:41]wFMCommunicate OK [10:02:41]SAM_PROTO_GetShiftState done [10:02:41]FM_GetShiftState done [10:02:41]req_shift_opened done [10:02:41]requested_item shift.open_date is exist - process it [10:02:41]req_shift_open_date [10:02:41]req_shift_open_date done [10:02:41]produce_requested_data done [10:02:41]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27136,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [10:02:41]process_action_free close_receipt [10:02:41]json_value_free [10:02:41]json_value_free done [10:02:41]process_json_proto returns [10:02:41]Send response to host [10:02:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27136,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [10:02:41]free response buf [10:02:41]execute_script done [10:02:41]execute_script returns [10:02:41]free content buf [10:02:41]Sock 8.Close socket [10:02:41]Sock 8.Thread stoped [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:39]accept exits with 9 [10:24:39]New connection [10:24:39]New thread 3066871140 created [10:24:39]Thread 3067014500 joined [10:24:39]Waiting for new connection... [10:24:39] Sock 9.Parse request [10:24:39]Sock 9.Check first char [10:24:39]Sock 9.First char is OK [10:24:39]request: POST /json_proto HTTP/1.0 [10:24:39]Method: POST [10:24:39]URL: /json_proto [10:24:39]Method is POST - this is cgi request [10:24:39]url: /json_proto [10:24:39]query_string will be loaded in cgi processing [10:24:39]execute_cgi json_proto POST (null) [10:24:39]execute_cgi path=json_proto method=POST [10:24:39]POST find Content-Length [10:24:39]Host: 172.17.35.3:8080 [10:24:39]Content-Length: 806 [10:24:39]Content-Type: application/json [10:24:39] [10:24:39]POST finish read [10:24:39]Found Content-Length = 806 [10:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 10.030, "sum" : 720.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 720.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:39]execute_script... [10:24:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 10.030, "sum" : 720.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 720.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:39]POST & json_proto [10:24:39]process_json_proto [10:24:39]json parsed OK: [10:24:39]protocol is kg_v1.0 [10:24:39]action value=close_receipt [10:24:39]process_action close_receipt [10:24:39]cmd_close_receipt [10:24:39]MH_GetDate [10:24:39]Write to MH i2c: F0 00 00 BA 9D 46 [10:24:39]Write i2c OK [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: F0 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: F0 09 00 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: F0 09 00 BA 9D 00 86 BA 17 66 2B 11 66 64 12 [10:24:39]GetLastDocTimeStamp 1712829787 [10:24:39]current date 1712831110 [10:24:39]FM_GetShiftState [10:24:39]SAM_PROTO_GetShiftState [10:24:39]wFMCommunicate request_size=4 [10:24:39]MH_SAM_APDU [10:24:39]CAPDU: 80 13 01 00 [10:24:39]Write to MH i2c: E2 08 00 BB 9D 80 13 01 00 00 00 00 00 D5 [10:24:39]Write i2c OK [10:24:39]MH_I2C_Read... [10:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:39]Read from MH i2c: E2 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: E2 0E 00 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: E2 0E 00 BB 9D 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 1F [10:24:39]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:24:39]wFMCommunicate OK [10:24:39]SAM_PROTO_GetShiftState done [10:24:39]FM_GetShiftState done [10:24:39]opened in 1712795538 [10:24:39]opened+sec_in_day 1712881938 [10:24:39]quantity*price = 72015 [10:24:39]sum+1 = 72016 [10:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 720.15 НСП 1% : 6.37 НДС 12% : 76.48 Наличными: 0.00 Безнал.: 720.15 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 24 11.04.2024 10:25 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 27137 ФПД: 232768853379211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T102510&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27137&fm=232768853379211&tin=02508201610067®Number=0000000000091578&sum=72015 [10:24:40]StoreToDocumentArchive [10:24:40]shift 317 fd 27137 [10:24:40]save to /storage/0317/doc_00027137 [10:24:40]save last doc name /storage/0317/doc_00027137 to /storage/kkm_last_doc_name [10:24:40]save OK [10:24:40]Clear old archive folders... [10:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:24:40]tlvbuf is 00F68080 [10:24:40]SAM_PROTO_ClearQueue [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 09 00 00 [10:24:40]Write to MH i2c: E2 08 00 C8 9D 80 09 00 00 00 00 00 00 D7 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 C8 9D 00 90 00 D9 [10:24:40]RAPDU: 90 00 [10:24:40]wFMCommunicate OK [10:24:40]SAM_PROTO_ClearQueue done [10:24:40]KKMCreateOFDPacket [10:24:40]OFDProtocolAddRootSTLVToBuf [10:24:40]FM_MakeSignedData [10:24:40]FM_MakeSignedData [10:24:40]SAM_PROTO_SignData [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 0D 01 02 [10:24:40]Write to MH i2c: E2 08 00 C9 9D 80 0D 01 02 00 00 00 00 DF [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]OFD Sender: No OFD packet to send [10:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 03 00 C9 9D 00 90 00 DA [10:24:40]RAPDU: 90 00 [10:24:40]wFMCommunicate OK [10:24:40]wFMCommunicate request_size=255 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 4F 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 86 BA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 6A 00 00 35 04 06 00 [10:24:40]Write to MH i2c: E2 02 01 CA 9D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 4F 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 86 BA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 6A 00 00 35 04 06 00 00 00 E0 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 CA 9D 00 90 00 DB [10:24:41]RAPDU: 90 00 [10:24:41]wFMCommunicate OK [10:24:41]wFMCommunicate request_size=11 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 0D 02 02 06 D3 B3 B8 D2 08 8B [10:24:41]Write to MH i2c: E2 0E 00 CB 9D 80 0D 02 02 06 00 D3 B3 B8 D2 08 8B 00 00 91 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 03 00 CB 9D 00 90 00 DC [10:24:41]RAPDU: 90 00 [10:24:41]wFMCommunicate OK [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 0D 03 02 [10:24:41]Write to MH i2c: E2 08 00 CC 9D 80 0D 03 02 00 00 00 00 E4 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 0B 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 0B 00 CC 9D 00 6A 30 94 F8 E4 C6 4B A9 90 00 A9 [10:24:41]RAPDU: 6A 30 94 F8 E4 C6 4B A9 90 00 [10:24:41]wFMCommunicate OK [10:24:41]SAM_PROTO_SignData done [10:24:41]FM_MakeSignedData done [10:24:41]CreateOFDProtocolMessage [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 11 00 00 [10:24:41]Write to MH i2c: E2 08 00 CD 9D 80 11 00 00 00 00 00 00 E4 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 17 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 17 00 CD 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 3C [10:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:24:41]wFMCommunicate OK [10:24:41]CreateOFDProtocolMessage done [10:24:41]OFDSenderStorePacket 27137 [10:24:41]StoreOFDPacket docnum=27137 [10:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 23 33 08 01 7F 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 4F 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 86 BA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 6A 00 00 35 04 06 00 D3 B3 B8 D2 08 8B 6A 30 94 F8 E4 C6 4B A9 [10:24:41]CheckFolder [10:24:41]dirname=/storage/ofd_packets [10:24:41]CheckFolder done [10:24:41]ProducePacketName [10:24:41]name=ofd_packets/00027137 [10:24:41]NVStorageSaveData ofd_packets/00027137 [10:24:41]File name is /storage/ofd_packets/00027137 [10:24:41]Write 302 bytes [10:24:41]NVStorageSaveData done [10:24:41]OFDSenderStorePacket done [10:24:41]KKMCreateOFDPacket done [10:24:41]NVStorageSaveData kkm_last_timestamp [10:24:41]File name is /storage/kkm_last_timestamp [10:24:41]Write 4 bytes [10:24:41]NVStorageSaveData done [10:24:41]ExternCall_PrintAddStr [10:24:41]wPrintStart [10:24:41]Write to MH i2c: 01 00 00 CE 9D 6B [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: 01 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: 01 07 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: 01 07 00 CE 9D 00 00 00 00 00 FF 0F 80 [10:24:41]RasterBufferAndPrint [10:24:41]line Счет N : (1)359889 [10:24:41]line ИНН: 02508201610067 [10:24:41]line Контрольно-Кассовый Чек [10:24:41]line ПРОДАЖА [10:24:41]line ТРК (МРК, ГНК) : 21 [10:24:41]line Товар: 2710194210 [10:24:41]line ДТ(л)-К-5 [10:24:41]line 10.030 * 71.80 [10:24:41]line = 720.15 [10:24:41]line НДС 12% НСП 1% [10:24:41]line > о реализуемом товаре [10:24:41]line ИТОГО: 720.15 [10:24:41]line НСП 1% : 6.37 [10:24:41]line НДС 12% : 76.48 [10:24:41]line Наличными: 0.00 [10:24:41]line Безнал.: 720.15 [10:24:41]line Место: АЗС № 122 "Партнер Нефть" [10:24:41]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:24:41]line СНО: Общий режим [10:24:41]line Чек 24 11.04.2024 10:25 [10:24:41]line Смена: 317 ФФД: 1.0 [10:24:41]line ЗНМ: 0300000147 [10:24:41]line РНМ: 0000000000091578 [10:24:41]line Версия ККМ: 001 [10:24:41]line Платежная система: O! деньги [10:24:41]line ФМ: 0000000000874657 [10:24:41]line ФД: 27137 [10:24:41]line ФПД: 232768853379211 [10:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T102510&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27137&fm=232768853379211&tin=02508201610067®Number=0000000000091578&sum=72015 [10:24:41]OFD Sender: Processing packet 27137 [packets to send 44, broken 43] [10:24:41]ProducePacketName [10:24:41]name=ofd_packets/00027137 [10:24:41]OFD Sender: To server: pG, [10:24:41]CommunicateWithHost lk.salyk.kg:30040 [10:24:41]ConnectInit lk.salyk.kg [10:24:41]written 0, free lines is 4095 [10:24:41]Connected sock=10 [10:24: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 35 37 10 01 00 00 23 33 08 01 7F 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 4F 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 86 BA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 6A 00 00 35 04 06 00 D3 B3 B8 D2 08 8B 6A 30 94 F8 E4 C6 4B A9 [10:24: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 35 37 4F 00 00 00 EF 97 47 00 6D 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 6A 00 00 F4 03 04 00 E7 61 17 66 B6 04 01 00 00 28 D5 AD E9 4D B3 99 C1 [10:24:41]CommunicateWithHost err = 0 [10:24:41]CheckOFDResponse [10:24:41]1017 (14) - 77093643461234 [10:24:41]1041 (16) - 0000000000874657 [10:24:41]1040 (4) - 27137 [10:24:41]1012 (4) - 11.04.2024 04:07 [10:24:41]1206 (1) - 0 [10:24:41]OFD Sender: Remove packet 27137 [10:24:41]ProducePacketName [10:24:41]name=ofd_packets/00027137 [10:24:41]NVStorageDeleteData [10:24:42]Write to MH i2c: 01 00 00 F8 9D 95 [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: 01 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: 01 07 00 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: 01 07 00 F8 9D 00 00 00 00 00 91 0C 39 [10:24:42]RasterBufferAndPrint [10:24:42]line [10:24:42]line [10:24:42]line [10:24:42]line [10:24:42]line [10:24:42]written 0, free lines is 3219 [10:24:42]MH_Cut [10:24:42]Write to MH i2c: D1 01 00 FF 9D 01 6E [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: D1 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: D1 01 00 [10:24:42]MH_I2C_Read... [10:24:42]Read from MH i2c: D1 01 00 FF 9D 00 6D [10:24:42]Write to MH i2c: 01 00 00 00 9E 9E [10:24:42]Write i2c OK [10:24:42]MH_I2C_Read... [10:24:42]OFD Sender: No OFD packet to send [10:24:43]*** Cut start [10:24:43]*** Partial cut [10:24:43]*** CUTSNS_PIN = 1 [10:24:43]*** CUTSNS_PIN = 0 [10:24:43]*** Brake cut motor [10:24:43]Read from MH i2c: 01 [10:24:43]MH_I2C_Read... [10:24:43]*** Stop cut motor [10:24:43]*** Cut end [10:24:43]Read from MH i2c: 01 07 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: 01 07 00 00 9E 00 00 00 00 00 FF 0F B3 [10:24:43]process_action close_receipt done [10:24:43]requested_data is exist [10:24:43]produce_requested_data [10:24:43]requested_item fm.sn is exist - process it [10:24:43]wFMCommunicate request_size=4 [10:24:43]MH_SAM_APDU [10:24:43]CAPDU: 80 11 00 00 [10:24:43]Write to MH i2c: E2 08 00 01 9E 80 11 00 00 00 00 00 00 19 [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:43]Read from MH i2c: E2 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 17 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 17 00 01 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 71 [10:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:24:43]wFMCommunicate OK [10:24:43]requested_item fd.num is exist - process it [10:24:43]SAM_PROTO_GetFieldsCounters [10:24:43]wFMCommunicate request_size=4 [10:24:43]MH_SAM_APDU [10:24:43]CAPDU: 80 13 00 00 [10:24:43]Write to MH i2c: E2 08 00 02 9E 80 13 00 00 00 00 00 00 1C [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:44]Read from MH i2c: E2 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 62 00 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 62 00 02 9E 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 01 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10:24: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 01 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:44]wFMCommunicate OK [10:24:44]SAM_PROTO_GetFieldsCounters done [10:24:44]requested_item shift.num is exist - process it [10:24:44]requested_item shift.opened is exist - process it [10:24:44]req_shift_opened [10:24:44]FM_GetShiftState [10:24:44]SAM_PROTO_GetShiftState [10:24:44]wFMCommunicate request_size=4 [10:24:44]MH_SAM_APDU [10:24:44]CAPDU: 80 13 01 00 [10:24:44]Write to MH i2c: E2 08 00 03 9E 80 13 01 00 00 00 00 00 1E [10:24:44]Write i2c OK [10:24:44]MH_I2C_Read... [10:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:44]Read from MH i2c: E2 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 0E 00 [10:24:44]MH_I2C_Read... [10:24:44]Read from MH i2c: E2 0E 00 03 9E 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 68 [10:24:44]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:24:44]wFMCommunicate OK [10:24:44]SAM_PROTO_GetShiftState done [10:24:44]FM_GetShiftState done [10:24:44]req_shift_opened done [10:24:44]requested_item shift.open_date is exist - process it [10:24:44]req_shift_open_date [10:24:44]req_shift_open_date done [10:24:44]produce_requested_data done [10:24:44]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27137,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [10:24:44]process_action_free close_receipt [10:24:44]json_value_free [10:24:44]json_value_free done [10:24:44]process_json_proto returns [10:24:44]Send response to host [10:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27137,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [10:24:44]free response buf [10:24:44]execute_script done [10:24:44]execute_script returns [10:24:44]free content buf [10:24:44]Sock 9.Close socket [10:24:44]Sock 9.Thread stoped [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:46]accept exits with 8 [10:27:46]New connection [10:27:46]New thread 3067014500 created [10:27:46]Thread 3066871140 joined [10:27:46]Waiting for new connection... [10:27:46] Sock 8.Parse request [10:27:46]Sock 8.Check first char [10:27:46]Sock 8.First char is OK [10:27:46]request: POST /json_proto HTTP/1.0 [10:27:46]Method: POST [10:27:46]URL: /json_proto [10:27:46]Method is POST - this is cgi request [10:27:46]url: /json_proto [10:27:46]query_string will be loaded in cgi processing [10:27:46]execute_cgi json_proto POST (null) [10:27:46]execute_cgi path=json_proto method=POST [10:27:46]POST find Content-Length [10:27:46]Host: 172.17.35.3:8080 [10:27:46]Content-Length: 682 [10:27:46]Content-Type: application/json [10:27:46] [10:27:46]POST finish read [10:27:46]Found Content-Length = 682 [10:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:46]execute_script... [10:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:46]POST & json_proto [10:27:46]process_json_proto [10:27:46]json parsed OK: [10:27:46]protocol is kg_v1.0 [10:27:46]action value=close_receipt [10:27:46]process_action close_receipt [10:27:46]cmd_close_receipt [10:27:46]MH_GetDate [10:27:46]Write to MH i2c: F0 00 00 04 9E 91 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: F0 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: F0 09 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: F0 09 00 04 9E 00 41 BB 17 66 2B 11 66 64 19 [10:27:46]GetLastDocTimeStamp 1712831110 [10:27:46]current date 1712831297 [10:27:46]FM_GetShiftState [10:27:46]SAM_PROTO_GetShiftState [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 13 01 00 [10:27:46]Write to MH i2c: E2 08 00 05 9E 80 13 01 00 00 00 00 00 20 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0E 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0E 00 05 9E 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 6A [10:27:46]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:27:46]wFMCommunicate OK [10:27:46]SAM_PROTO_GetShiftState done [10:27:46]FM_GetShiftState done [10:27:46]opened in 1712795538 [10:27:46]opened+sec_in_day 1712881938 [10:27:46]quantity*price = 100012 [10:27:46]sum+1 = 100014 [10:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 25 11.04.2024 10:28 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27138 ФПД: 94678542781134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T102817&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27138&fm=94678542781134&tin=02508201610067®Number=0000000000091578&sum=100000 [10:27:47]StoreToDocumentArchive [10:27:47]shift 317 fd 27138 [10:27:47]save to /storage/0317/doc_00027138 [10:27:47]save last doc name /storage/0317/doc_00027138 to /storage/kkm_last_doc_name [10:27:47]save OK [10:27:47]Clear old archive folders... [10:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:47]tlvbuf is 00F67EA0 [10:27:47]SAM_PROTO_ClearQueue [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 09 00 00 [10:27:47]Write to MH i2c: E2 08 00 12 9E 80 09 00 00 00 00 00 00 22 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 12 9E 00 90 00 24 [10:27:47]RAPDU: 90 00 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_ClearQueue done [10:27:47]KKMCreateOFDPacket [10:27:47]OFDProtocolAddRootSTLVToBuf [10:27:47]FM_MakeSignedData [10:27:47]FM_MakeSignedData [10:27:47]SAM_PROTO_SignData [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 0D 01 02 [10:27:47]Write to MH i2c: E2 08 00 13 9E 80 0D 01 02 00 00 00 00 2A [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 03 00 13 9E 00 90 00 25 [10:27:47]RAPDU: 90 00 [10:27:47]wFMCommunicate OK [10:27:47]wFMCommunicate request_size=255 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 41 BB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 02 6A 00 00 35 04 06 00 56 [10:27:47]Write to MH i2c: E2 02 01 14 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 41 BB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 02 6A 00 00 35 04 06 00 56 00 00 32 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 14 9E 00 90 00 26 [10:27:48]RAPDU: 90 00 [10:27:48]wFMCommunicate OK [10:27:48]wFMCommunicate request_size=10 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 0D 02 02 05 1C 10 E9 0A CE [10:27:48]Write to MH i2c: E2 0D 00 15 9E 80 0D 02 02 05 00 1C 10 E9 0A CE 00 00 24 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 03 00 15 9E 00 90 00 27 [10:27:48]RAPDU: 90 00 [10:27:48]wFMCommunicate OK [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 0D 03 02 [10:27:48]Write to MH i2c: E2 08 00 16 9E 80 0D 03 02 00 00 00 00 2F [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 0B 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 0B 00 16 9E 00 53 FD ED 1B 3B 73 A9 1C 90 00 FB [10:27:48]RAPDU: 53 FD ED 1B 3B 73 A9 1C 90 00 [10:27:48]wFMCommunicate OK [10:27:48]SAM_PROTO_SignData done [10:27:48]FM_MakeSignedData done [10:27:48]CreateOFDProtocolMessage [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 11 00 00 [10:27:48]Write to MH i2c: E2 08 00 17 9E 80 11 00 00 00 00 00 00 2F [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:48]Read from MH i2c: E2 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 17 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: E2 17 00 17 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 87 [10:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:27:48]wFMCommunicate OK [10:27:48]CreateOFDProtocolMessage done [10:27:48]OFDSenderStorePacket 27138 [10:27:48]StoreOFDPacket docnum=27138 [10:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 F1 FB 07 01 0F 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 41 BB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 02 6A 00 00 35 04 06 00 56 1C 10 E9 0A CE 53 FD ED 1B 3B 73 A9 1C [10:27:48]CheckFolder [10:27:48]dirname=/storage/ofd_packets [10:27:48]CheckFolder done [10:27:48]ProducePacketName [10:27:48]name=ofd_packets/00027138 [10:27:48]NVStorageSaveData ofd_packets/00027138 [10:27:48]File name is /storage/ofd_packets/00027138 [10:27:48]Write 301 bytes [10:27:48]NVStorageSaveData done [10:27:48]OFDSenderStorePacket done [10:27:48]KKMCreateOFDPacket done [10:27:48]NVStorageSaveData kkm_last_timestamp [10:27:48]File name is /storage/kkm_last_timestamp [10:27:48]Write 4 bytes [10:27:48]NVStorageSaveData done [10:27:48]ExternCall_PrintAddStr [10:27:48]wPrintStart [10:27:48]Write to MH i2c: 01 00 00 18 9E B6 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 18 9E 00 00 00 00 00 FF 0F CB [10:27:48]RasterBufferAndPrint [10:27:48]line Счет N : (1)359890 [10:27:48]line ИНН: 02508201610067 [10:27:48]line Контрольно-Кассовый Чек [10:27:48]line ПРОДАЖА [10:27:48]line ТРК (МРК, ГНК) : 63 [10:27:48]line Товар: 2710124500 [10:27:48]line Аи-95-К-5 [10:27:48]line 13.910 * 71.90 [10:27:48]line = 1000.13 [10:27:48]line НДС 12% НСП 1% [10:27:48]line > о реализуемом товаре [10:27:48]line ОКРУГЛЕНИЕ: -0.13 [10:27:48]line ИТОГО: 1000.00 [10:27:48]line Внесено: 1000.00 [10:27:48]line СДАЧА: 0.00 [10:27:48]line НСП 1% : 8.85 [10:27:48]line НДС 12% : 106.21 [10:27:48]line Наличными: 1000.00 [10:27:48]line Безнал.: 0.00 [10:27:48]line Место: АЗС № 122 "Партнер Нефть" [10:27:48]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:27:48]line СНО: Общий режим [10:27:48]line Чек 25 11.04.2024 10:28 [10:27:48]line Смена: 317 ФФД: 1.0 [10:27:48]line ЗНМ: 0300000147 [10:27:48]line РНМ: 0000000000091578 [10:27:48]line Версия ККМ: 001 [10:27:48]line ФМ: 0000000000874657 [10:27:48]line ФД: 27138 [10:27:48]line ФПД: 94678542781134 [10:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T102817&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27138&fm=94678542781134&tin=02508201610067®Number=0000000000091578&sum=100000 [10:27:48]OFD Sender: Processing packet 27138 [packets to send 44, broken 43] [10:27:48]ProducePacketName [10:27:48]name=ofd_packets/00027138 [10:27:48]OFD Sender: To server: pG, [10:27:48]CommunicateWithHost lk.salyk.kg:30040 [10:27:48]ConnectInit lk.salyk.kg [10:27:48]written 0, free lines is 4095 [10:27:48]Connected sock=10 [10:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 F1 FB 07 01 0F 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 41 BB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 02 6A 00 00 35 04 06 00 56 1C 10 E9 0A CE 53 FD ED 1B 3B 73 A9 1C [10:27: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 35 37 4F 00 00 00 D9 6D 47 00 12 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 35 37 10 04 04 00 02 6A 00 00 F4 03 04 00 A2 62 17 66 B6 04 01 00 00 8F C2 6A BB 70 27 8F AA [10:27:48]CommunicateWithHost err = 0 [10:27:48]CheckOFDResponse [10:27:48]1017 (14) - 77093643461234 [10:27:48]1041 (16) - 0000000000874657 [10:27:48]1040 (4) - 27138 [10:27:48]1012 (4) - 11.04.2024 04:10 [10:27:48]1206 (1) - 0 [10:27:48]OFD Sender: Remove packet 27138 [10:27:48]ProducePacketName [10:27:48]name=ofd_packets/00027138 [10:27:48]NVStorageDeleteData [10:27:48]Write to MH i2c: 01 00 00 43 9E E1 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 43 9E 00 00 00 00 00 79 0C 6D [10:27:48]RasterBufferAndPrint [10:27:48]line [10:27:48]line [10:27:48]line [10:27:48]line [10:27:48]line [10:27:48]written 0, free lines is 3197 [10:27:48]MH_Cut [10:27:48]Write to MH i2c: D1 01 00 4A 9E 01 BA [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: D1 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: D1 01 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: D1 01 00 4A 9E 00 B9 [10:27:48]Write to MH i2c: 01 00 00 4B 9E E9 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:49]OFD Sender: No OFD packet to send [10:27:50]*** Cut start [10:27:50]*** Partial cut [10:27:50]*** CUTSNS_PIN = 1 [10:27:50]*** CUTSNS_PIN = 0 [10:27:50]*** Brake cut motor [10:27:50]Read from MH i2c: 01 [10:27:50]MH_I2C_Read... [10:27:50]*** Stop cut motor [10:27:50]*** Cut end [10:27:50]Read from MH i2c: 01 07 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: 01 07 00 4B 9E 00 00 00 00 00 FF 0F FE [10:27:50]process_action close_receipt done [10:27:50]requested_data is exist [10:27:50]produce_requested_data [10:27:50]requested_item fm.sn is exist - process it [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 11 00 00 [10:27:50]Write to MH i2c: E2 08 00 4C 9E 80 11 00 00 00 00 00 00 64 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 17 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 17 00 4C 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 BC [10:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:27:50]wFMCommunicate OK [10:27:50]requested_item fd.num is exist - process it [10:27:50]SAM_PROTO_GetFieldsCounters [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 13 00 00 [10:27:50]Write to MH i2c: E2 08 00 4D 9E 80 13 00 00 00 00 00 00 67 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 62 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 62 00 4D 9E 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 02 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 02 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:50]wFMCommunicate OK [10:27:50]SAM_PROTO_GetFieldsCounters done [10:27:50]requested_item shift.num is exist - process it [10:27:50]requested_item shift.opened is exist - process it [10:27:50]req_shift_opened [10:27:50]FM_GetShiftState [10:27:50]SAM_PROTO_GetShiftState [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 13 01 00 [10:27:50]Write to MH i2c: E2 08 00 4E 9E 80 13 01 00 00 00 00 00 69 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 4E 9E 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 B3 [10:27:50]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:27:50]wFMCommunicate OK [10:27:50]SAM_PROTO_GetShiftState done [10:27:50]FM_GetShiftState done [10:27:50]req_shift_opened done [10:27:50]requested_item shift.open_date is exist - process it [10:27:50]req_shift_open_date [10:27:50]req_shift_open_date done [10:27:50]produce_requested_data done [10:27:50]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27138,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [10:27:50]process_action_free close_receipt [10:27:50]json_value_free [10:27:50]json_value_free done [10:27:50]process_json_proto returns [10:27:50]Send response to host [10:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27138,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [10:27:50]free response buf [10:27:50]execute_script done [10:27:50]execute_script returns [10:27:50]free content buf [10:27:50]Sock 8.Close socket [10:27:50]Sock 8.Thread stoped [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]accept exits with 9 [10:29:54]New connection [10:29:54]New thread 3066871140 created [10:29:54]Thread 3067014500 joined [10:29:54]Waiting for new connection... [10:29:54] Sock 9.Parse request [10:29:54]Sock 9.Check first char [10:29:54]Sock 9.First char is OK [10:29:54]request: POST /json_proto HTTP/1.0 [10:29:54]Method: POST [10:29:54]URL: /json_proto [10:29:54]Method is POST - this is cgi request [10:29:54]url: /json_proto [10:29:54]query_string will be loaded in cgi processing [10:29:54]execute_cgi json_proto POST (null) [10:29:54]execute_cgi path=json_proto method=POST [10:29:54]POST find Content-Length [10:29:54]Host: 172.17.35.3:8080 [10:29:54]Content-Length: 663 [10:29:54]Content-Type: application/json [10:29:54] [10:29:54]POST finish read [10:29:54]Found Content-Length = 663 [10:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 20.000, "sum" : 1268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1268.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:54]execute_script... [10:29:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 20.000, "sum" : 1268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1268.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:54]POST & json_proto [10:29:54]process_json_proto [10:29:54]json parsed OK: [10:29:54]protocol is kg_v1.0 [10:29:54]action value=close_receipt [10:29:54]process_action close_receipt [10:29:54]cmd_close_receipt [10:29:54]MH_GetDate [10:29:54]Write to MH i2c: F0 00 00 4F 9E DC [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: F0 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: F0 09 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: F0 09 00 4F 9E 00 C1 BB 17 66 2B 11 66 64 E4 [10:29:54]GetLastDocTimeStamp 1712831297 [10:29:54]current date 1712831425 [10:29:54]FM_GetShiftState [10:29:54]SAM_PROTO_GetShiftState [10:29:54]wFMCommunicate request_size=4 [10:29:54]MH_SAM_APDU [10:29:54]CAPDU: 80 13 01 00 [10:29:54]Write to MH i2c: E2 08 00 50 9E 80 13 01 00 00 00 00 00 6B [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:54]Read from MH i2c: E2 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 0E 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 0E 00 50 9E 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 B5 [10:29:54]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:29:54]wFMCommunicate OK [10:29:54]SAM_PROTO_GetShiftState done [10:29:54]FM_GetShiftState done [10:29:54]opened in 1712795538 [10:29:54]opened+sec_in_day 1712881938 [10:29:54]quantity*price = 126800 [10:29:54]sum+1 = 126801 [10:29:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1268.00 Внесено: 1500.00 СДАЧА: 232.00 НСП 1% : 11.22 НДС 12% : 134.65 Наличными: 1268.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 26 11.04.2024 10:30 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27139 ФПД: 238109962085768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T103025&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27139&fm=238109962085768&tin=02508201610067®Number=0000000000091578&sum=126800 [10:29:55]StoreToDocumentArchive [10:29:55]shift 317 fd 27139 [10:29:55]save to /storage/0317/doc_00027139 [10:29:55]save last doc name /storage/0317/doc_00027139 to /storage/kkm_last_doc_name [10:29:55]save OK [10:29:55]Clear old archive folders... [10:29:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:55]tlvbuf is 010BAE10 [10:29:55]SAM_PROTO_ClearQueue [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 09 00 00 [10:29:55]Write to MH i2c: E2 08 00 5D 9E 80 09 00 00 00 00 00 00 6D [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 5D 9E 00 90 00 6F [10:29:55]RAPDU: 90 00 [10:29:55]wFMCommunicate OK [10:29:55]SAM_PROTO_ClearQueue done [10:29:55]KKMCreateOFDPacket [10:29:55]OFDProtocolAddRootSTLVToBuf [10:29:55]FM_MakeSignedData [10:29:55]FM_MakeSignedData [10:29:55]SAM_PROTO_SignData [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 0D 01 02 [10:29:55]Write to MH i2c: E2 08 00 5E 9E 80 0D 01 02 00 00 00 00 75 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 5E 9E 00 90 00 70 [10:29:55]RAPDU: 90 00 [10:29:55]wFMCommunicate OK [10:29:55]wFMCommunicate request_size=255 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 50 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 50 EF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C1 BB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 03 6A 00 00 35 04 06 00 D8 [10:29:55]Write to MH i2c: E2 02 01 5F 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 50 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 50 EF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C1 BB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 03 6A 00 00 35 04 06 00 D8 00 00 5C [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 5F 9E 00 90 00 71 [10:29:55]RAPDU: 90 00 [10:29:55]wFMCommunicate OK [10:29:55]wFMCommunicate request_size=10 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 0D 02 02 05 8F 4B B5 25 88 [10:29:55]Write to MH i2c: E2 0D 00 60 9E 80 0D 02 02 05 00 8F 4B B5 25 88 00 00 BE [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 03 00 60 9E 00 90 00 72 [10:29:55]RAPDU: 90 00 [10:29:55]wFMCommunicate OK [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 0D 03 02 [10:29:55]Write to MH i2c: E2 08 00 61 9E 80 0D 03 02 00 00 00 00 7A [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 0B 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 0B 00 61 9E 00 DC D6 9D 30 61 B9 89 AE 90 00 4B [10:29:55]RAPDU: DC D6 9D 30 61 B9 89 AE 90 00 [10:29:55]wFMCommunicate OK [10:29:55]SAM_PROTO_SignData done [10:29:55]FM_MakeSignedData done [10:29:55]CreateOFDProtocolMessage [10:29:55]wFMCommunicate request_size=4 [10:29:55]MH_SAM_APDU [10:29:55]CAPDU: 80 11 00 00 [10:29:55]Write to MH i2c: E2 08 00 62 9E 80 11 00 00 00 00 00 00 7A [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:55]Read from MH i2c: E2 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 17 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: E2 17 00 62 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 D2 [10:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:29:55]wFMCommunicate OK [10:29:55]CreateOFDProtocolMessage done [10:29:55]OFDSenderStorePacket 27139 [10:29:55]StoreOFDPacket docnum=27139 [10:29:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 02 9D 07 01 13 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 50 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 50 EF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C1 BB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 03 6A 00 00 35 04 06 00 D8 8F 4B B5 25 88 DC D6 9D 30 61 B9 89 AE [10:29:55]CheckFolder [10:29:55]dirname=/storage/ofd_packets [10:29:55]CheckFolder done [10:29:55]ProducePacketName [10:29:55]name=ofd_packets/00027139 [10:29:55]NVStorageSaveData ofd_packets/00027139 [10:29:55]File name is /storage/ofd_packets/00027139 [10:29:55]Write 301 bytes [10:29:55]NVStorageSaveData done [10:29:55]OFDSenderStorePacket done [10:29:55]KKMCreateOFDPacket done [10:29:55]NVStorageSaveData kkm_last_timestamp [10:29:55]File name is /storage/kkm_last_timestamp [10:29:55]Write 4 bytes [10:29:55]NVStorageSaveData done [10:29:55]ExternCall_PrintAddStr [10:29:55]wPrintStart [10:29:55]Write to MH i2c: 01 00 00 63 9E 01 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 07 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 07 00 63 9E 00 00 00 00 00 FF 0F 16 [10:29:55]RasterBufferAndPrint [10:29:55]line Счет N : (1)359891 [10:29:55]line ИНН: 02508201610067 [10:29:55]line Контрольно-Кассовый Чек [10:29:55]line ПРОДАЖА [10:29:55]line ТРК (МРК, ГНК) : 51 [10:29:55]line Товар: 2710124130 [10:29:55]line Аи-92-К-5 [10:29:55]line 20.000 * 63.40 [10:29:55]line = 1268.00 [10:29:55]line НДС 12% НСП 1% [10:29:55]line > о реализуемом товаре [10:29:55]line ИТОГО: 1268.00 [10:29:55]line Внесено: 1500.00 [10:29:55]line СДАЧА: 232.00 [10:29:55]line НСП 1% : 11.22 [10:29:55]line НДС 12% : 134.65 [10:29:55]line Наличными: 1268.00 [10:29:55]line Безнал.: 0.00 [10:29:55]line Место: АЗС № 122 "Партнер Нефть" [10:29:55]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:29:55]line СНО: Общий режим [10:29:55]line Чек 26 11.04.2024 10:30 [10:29:55]line Смена: 317 ФФД: 1.0 [10:29:55]line ЗНМ: 0300000147 [10:29:55]line РНМ: 0000000000091578 [10:29:55]line Версия ККМ: 001 [10:29:55]line ФМ: 0000000000874657 [10:29:55]line ФД: 27139 [10:29:55]line ФПД: 238109962085768 [10:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T103025&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27139&fm=238109962085768&tin=02508201610067®Number=0000000000091578&sum=126800 [10:29:56]OFD Sender: Processing packet 27139 [packets to send 44, broken 43] [10:29:56]ProducePacketName [10:29:56]name=ofd_packets/00027139 [10:29:56]OFD Sender: To server: pG, [10:29:56]CommunicateWithHost lk.salyk.kg:30040 [10:29:56]ConnectInit lk.salyk.kg [10:29:56]written 0, free lines is 4095 [10:29:56]Connected sock=10 [10:29: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 35 37 0F 01 00 00 02 9D 07 01 13 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 50 EF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 EF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 34 00 00 00 00 07 04 06 00 50 EF 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 C1 BB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 03 6A 00 00 35 04 06 00 D8 8F 4B B5 25 88 DC D6 9D 30 61 B9 89 AE [10:29: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 35 37 4F 00 00 00 78 CC 47 00 CA BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 35 37 10 04 04 00 03 6A 00 00 F4 03 04 00 21 63 17 66 B6 04 01 00 00 82 F0 99 B0 8B 39 F5 6B [10:29:56]CommunicateWithHost err = 0 [10:29:56]CheckOFDResponse [10:29:56]1017 (14) - 77093643461234 [10:29:56]1041 (16) - 0000000000874657 [10:29:56]1040 (4) - 27139 [10:29:56]1012 (4) - 11.04.2024 04:12 [10:29:56]1206 (1) - 0 [10:29:56]OFD Sender: Remove packet 27139 [10:29:56]ProducePacketName [10:29:56]name=ofd_packets/00027139 [10:29:56]NVStorageDeleteData [10:29:56]Write to MH i2c: 01 00 00 8D 9E 2B [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 07 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 07 00 8D 9E 00 00 00 00 00 A4 0C E2 [10:29:56]RasterBufferAndPrint [10:29:56]line [10:29:56]line [10:29:56]line [10:29:56]line [10:29:56]line [10:29:56]written 0, free lines is 3239 [10:29:56]MH_Cut [10:29:56]Write to MH i2c: D1 01 00 94 9E 01 04 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: D1 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: D1 01 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: D1 01 00 94 9E 00 03 [10:29:56]Write to MH i2c: 01 00 00 95 9E 33 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]OFD Sender: No OFD packet to send [10:29:57]*** Cut start [10:29:57]*** Partial cut [10:29:57]*** CUTSNS_PIN = 1 [10:29:57]*** CUTSNS_PIN = 0 [10:29:57]*** Brake cut motor [10:29:58]Read from MH i2c: 01 [10:29:58]MH_I2C_Read... [10:29:58]*** Stop cut motor [10:29:58]*** Cut end [10:29:58]Read from MH i2c: 01 07 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 07 00 95 9E 00 00 00 00 00 FF 0F 48 [10:29:58]process_action close_receipt done [10:29:58]requested_data is exist [10:29:58]produce_requested_data [10:29:58]requested_item fm.sn is exist - process it [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 11 00 00 [10:29:58]Write to MH i2c: E2 08 00 96 9E 80 11 00 00 00 00 00 00 AE [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 17 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 17 00 96 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 06 [10:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:29:58]wFMCommunicate OK [10:29:58]requested_item fd.num is exist - process it [10:29:58]SAM_PROTO_GetFieldsCounters [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 13 00 00 [10:29:58]Write to MH i2c: E2 08 00 97 9E 80 13 00 00 00 00 00 00 B1 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 62 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 62 00 97 9E 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 03 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [10:29: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 03 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:58]wFMCommunicate OK [10:29:58]SAM_PROTO_GetFieldsCounters done [10:29:58]requested_item shift.num is exist - process it [10:29:58]requested_item shift.opened is exist - process it [10:29:58]req_shift_opened [10:29:58]FM_GetShiftState [10:29:58]SAM_PROTO_GetShiftState [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 13 01 00 [10:29:58]Write to MH i2c: E2 08 00 98 9E 80 13 01 00 00 00 00 00 B3 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 0E 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 0E 00 98 9E 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 FD [10:29:58]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:29:58]wFMCommunicate OK [10:29:58]SAM_PROTO_GetShiftState done [10:29:58]FM_GetShiftState done [10:29:58]req_shift_opened done [10:29:58]requested_item shift.open_date is exist - process it [10:29:58]req_shift_open_date [10:29:58]req_shift_open_date done [10:29:58]produce_requested_data done [10:29:58]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27139,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [10:29:58]process_action_free close_receipt [10:29:58]json_value_free [10:29:58]json_value_free done [10:29:58]process_json_proto returns [10:29:58]Send response to host [10:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27139,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [10:29:58]free response buf [10:29:58]execute_script done [10:29:58]execute_script returns [10:29:58]free content buf [10:29:58]Sock 9.Close socket [10:29:58]Sock 9.Thread stoped [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:23]recv_with_timeout no data received [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:36]accept exits with 8 [10:38:36]New connection [10:38:36]New thread 3067014500 created [10:38:36]Thread 3066871140 joined [10:38:36]Waiting for new connection... [10:38:36] Sock 8.Parse request [10:38:36]Sock 8.Check first char [10:38:36]Sock 8.First char is OK [10:38:36]request: POST /json_proto HTTP/1.0 [10:38:36]Method: POST [10:38:36]URL: /json_proto [10:38:36]Method is POST - this is cgi request [10:38:36]url: /json_proto [10:38:36]query_string will be loaded in cgi processing [10:38:36]execute_cgi json_proto POST (null) [10:38:36]execute_cgi path=json_proto method=POST [10:38:36]POST find Content-Length [10:38:36]Host: 172.17.35.3:8080 [10:38:36]Content-Length: 816 [10:38:36]Content-Type: application/json [10:38:36] [10:38:36]POST finish read [10:38:36]Found Content-Length = 816 [10:38:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 4.740, "sum" : 300.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:36]execute_script... [10:38:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 4.740, "sum" : 300.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:36]POST & json_proto [10:38:36]process_json_proto [10:38:36]json parsed OK: [10:38:36]protocol is kg_v1.0 [10:38:36]action value=close_receipt [10:38:36]process_action close_receipt [10:38:36]cmd_close_receipt [10:38:36]MH_GetDate [10:38:36]Write to MH i2c: F0 00 00 99 9E 26 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: F0 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: F0 09 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: F0 09 00 99 9E 00 CB BD 17 66 2B 11 66 64 3A [10:38:36]GetLastDocTimeStamp 1712831425 [10:38:36]current date 1712831947 [10:38:36]FM_GetShiftState [10:38:36]SAM_PROTO_GetShiftState [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 13 01 00 [10:38:36]Write to MH i2c: E2 08 00 9A 9E 80 13 01 00 00 00 00 00 B5 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0E 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0E 00 9A 9E 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 FF [10:38:36]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:38:36]wFMCommunicate OK [10:38:36]SAM_PROTO_GetShiftState done [10:38:36]FM_GetShiftState done [10:38:36]opened in 1712795538 [10:38:36]opened+sec_in_day 1712881938 [10:38:36]quantity*price = 30051 [10:38:36]sum+1 = 30053 [10:38:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.52 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.52 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 27 11.04.2024 10:39 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874657 ФД: 27140 ФПД: 114664650488784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T103907&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27140&fm=114664650488784&tin=02508201610067®Number=0000000000091578&sum=30052 [10:38:37]StoreToDocumentArchive [10:38:37]shift 317 fd 27140 [10:38:37]save to /storage/0317/doc_00027140 [10:38:37]save last doc name /storage/0317/doc_00027140 to /storage/kkm_last_doc_name [10:38:37]save OK [10:38:37]Clear old archive folders... [10:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:37]tlvbuf is 00F51330 [10:38:37]SAM_PROTO_ClearQueue [10:38:37]wFMCommunicate request_size=4 [10:38:37]MH_SAM_APDU [10:38:37]CAPDU: 80 09 00 00 [10:38:37]Write to MH i2c: E2 08 00 A7 9E 80 09 00 00 00 00 00 00 B7 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:37]Read from MH i2c: E2 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 03 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 03 00 A7 9E 00 90 00 B9 [10:38:37]RAPDU: 90 00 [10:38:37]wFMCommunicate OK [10:38:37]SAM_PROTO_ClearQueue done [10:38:37]KKMCreateOFDPacket [10:38:37]OFDProtocolAddRootSTLVToBuf [10:38:37]FM_MakeSignedData [10:38:37]FM_MakeSignedData [10:38:37]SAM_PROTO_SignData [10:38:37]wFMCommunicate request_size=4 [10:38:37]MH_SAM_APDU [10:38:37]CAPDU: 80 0D 01 02 [10:38:37]Write to MH i2c: E2 08 00 A8 9E 80 0D 01 02 00 00 00 00 BF [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:37]Read from MH i2c: E2 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 03 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 03 00 A8 9E 00 90 00 BA [10:38:37]RAPDU: 90 00 [10:38:37]wFMCommunicate OK [10:38:37]wFMCommunicate request_size=255 [10:38:37]MH_SAM_APDU [10:38:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 64 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CB BD 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 6A 00 00 35 04 06 00 68 [10:38:37]Write to MH i2c: E2 02 01 A9 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 64 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CB BD 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 6A 00 00 35 04 06 00 68 00 00 92 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 03 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 03 00 A9 9E 00 90 00 BB [10:38:38]RAPDU: 90 00 [10:38:38]wFMCommunicate OK [10:38:38]wFMCommunicate request_size=10 [10:38:38]MH_SAM_APDU [10:38:38]CAPDU: 80 0D 02 02 05 49 71 C2 BB D0 [10:38:38]Write to MH i2c: E2 0D 00 AA 9E 80 0D 02 02 05 00 49 71 C2 BB D0 00 00 D3 [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 03 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 03 00 AA 9E 00 90 00 BC [10:38:38]RAPDU: 90 00 [10:38:38]wFMCommunicate OK [10:38:38]wFMCommunicate request_size=4 [10:38:38]MH_SAM_APDU [10:38:38]CAPDU: 80 0D 03 02 [10:38:38]Write to MH i2c: E2 08 00 AB 9E 80 0D 03 02 00 00 00 00 C4 [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 0B 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 0B 00 AB 9E 00 82 CB D8 63 FB C9 76 DB 90 00 62 [10:38:38]RAPDU: 82 CB D8 63 FB C9 76 DB 90 00 [10:38:38]wFMCommunicate OK [10:38:38]SAM_PROTO_SignData done [10:38:38]FM_MakeSignedData done [10:38:38]CreateOFDProtocolMessage [10:38:38]wFMCommunicate request_size=4 [10:38:38]MH_SAM_APDU [10:38:38]CAPDU: 80 11 00 00 [10:38:38]Write to MH i2c: E2 08 00 AC 9E 80 11 00 00 00 00 00 00 C4 [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 17 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 17 00 AC 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 1C [10:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:38:38]wFMCommunicate OK [10:38:38]CreateOFDProtocolMessage done [10:38:38]OFDSenderStorePacket 27140 [10:38:38]StoreOFDPacket docnum=27140 [10:38:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 A9 03 07 01 16 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 64 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CB BD 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 6A 00 00 35 04 06 00 68 49 71 C2 BB D0 82 CB D8 63 FB C9 76 DB [10:38:38]CheckFolder [10:38:38]dirname=/storage/ofd_packets [10:38:38]CheckFolder done [10:38:38]ProducePacketName [10:38:38]name=ofd_packets/00027140 [10:38:38]NVStorageSaveData ofd_packets/00027140 [10:38:38]File name is /storage/ofd_packets/00027140 [10:38:38]Write 301 bytes [10:38:38]NVStorageSaveData done [10:38:38]OFDSenderStorePacket done [10:38:38]KKMCreateOFDPacket done [10:38:38]NVStorageSaveData kkm_last_timestamp [10:38:38]File name is /storage/kkm_last_timestamp [10:38:38]Write 4 bytes [10:38:38]NVStorageSaveData done [10:38:38]ExternCall_PrintAddStr [10:38:38]wPrintStart [10:38:38]Write to MH i2c: 01 00 00 AD 9E 4B [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: 01 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: 01 07 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: 01 07 00 AD 9E 00 00 00 00 00 FF 0F 60 [10:38:38]RasterBufferAndPrint [10:38:38]line Счет N : (1)359892 [10:38:38]line ИНН: 02508201610067 [10:38:38]line Контрольно-Кассовый Чек [10:38:38]line ПРОДАЖА [10:38:38]line ТРК (МРК, ГНК) : 51 [10:38:38]line Товар: 2710124130 [10:38:38]line Аи-92-К-5 [10:38:38]line 4.740 * 63.40 [10:38:38]line = 300.52 [10:38:38]line НДС 12% НСП 1% [10:38:38]line > о реализуемом товаре [10:38:38]line ИТОГО: 300.52 [10:38:38]line НСП 1% : 2.66 [10:38:38]line НДС 12% : 31.91 [10:38:38]line Наличными: 0.00 [10:38:38]line Безнал.: 300.52 [10:38:38]line Место: АЗС № 122 "Партнер Нефть" [10:38:38]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:38:38]line СНО: Общий режим [10:38:38]line Чек 27 11.04.2024 10:39 [10:38:38]line Смена: 317 ФФД: 1.0 [10:38:38]line ЗНМ: 0300000147 [10:38:38]line РНМ: 0000000000091578 [10:38:38]line Версия ККМ: 001 [10:38:38]line Платежная система: Бакай Банк [10:38:38]line ФМ: 0000000000874657 [10:38:38]line ФД: 27140 [10:38:38]line ФПД: 114664650488784 [10:38:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T103907&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27140&fm=114664650488784&tin=02508201610067®Number=0000000000091578&sum=30052 [10:38:38]OFD Sender: Processing packet 27140 [packets to send 44, broken 43] [10:38:38]ProducePacketName [10:38:38]name=ofd_packets/00027140 [10:38:38]OFD Sender: To server: pG, [10:38:38]CommunicateWithHost lk.salyk.kg:30040 [10:38:38]ConnectInit lk.salyk.kg [10:38:38]written 0, free lines is 4095 [10:38:38]Connected sock=10 [10:38: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 35 37 0F 01 00 00 A9 03 07 01 16 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 64 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CB BD 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 6A 00 00 35 04 06 00 68 49 71 C2 BB D0 82 CB D8 63 FB C9 76 DB [10:38: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 35 37 4F 00 00 00 0F 8B 47 00 C6 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 6A 00 00 F4 03 04 00 2C 65 17 66 B6 04 01 00 00 00 69 0B EB FC 02 52 80 [10:38:38]CommunicateWithHost err = 0 [10:38:38]CheckOFDResponse [10:38:38]1017 (14) - 77093643461234 [10:38:38]1041 (16) - 0000000000874657 [10:38:38]1040 (4) - 27140 [10:38:38]1012 (4) - 11.04.2024 04:21 [10:38:38]1206 (1) - 0 [10:38:38]OFD Sender: Remove packet 27140 [10:38:38]ProducePacketName [10:38:38]name=ofd_packets/00027140 [10:38:38]NVStorageDeleteData [10:38:39]Write to MH i2c: 01 00 00 D7 9E 75 [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: 01 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: 01 07 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: 01 07 00 D7 9E 00 00 00 00 00 96 0C 1E [10:38:39]RasterBufferAndPrint [10:38:39]line [10:38:39]line [10:38:39]line [10:38:39]line [10:38:39]line [10:38:39]written 0, free lines is 3224 [10:38:39]MH_Cut [10:38:39]Write to MH i2c: D1 01 00 DE 9E 01 4E [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: D1 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: D1 01 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: D1 01 00 DE 9E 00 4D [10:38:39]Write to MH i2c: 01 00 00 DF 9E 7D [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]OFD Sender: No OFD packet to send [10:38:40]*** Cut start [10:38:40]*** Partial cut [10:38:40]*** CUTSNS_PIN = 1 [10:38:40]*** CUTSNS_PIN = 0 [10:38:40]*** Brake cut motor [10:38:40]Read from MH i2c: 01 [10:38:40]MH_I2C_Read... [10:38:40]*** Stop cut motor [10:38:40]*** Cut end [10:38:40]Read from MH i2c: 01 07 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: 01 07 00 DF 9E 00 00 00 00 00 FF 0F 92 [10:38:40]process_action close_receipt done [10:38:40]requested_data is exist [10:38:40]produce_requested_data [10:38:40]requested_item fm.sn is exist - process it [10:38:40]wFMCommunicate request_size=4 [10:38:40]MH_SAM_APDU [10:38:40]CAPDU: 80 11 00 00 [10:38:40]Write to MH i2c: E2 08 00 E0 9E 80 11 00 00 00 00 00 00 F8 [10:38:40]Write i2c OK [10:38:40]MH_I2C_Read... [10:38:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:40]Read from MH i2c: E2 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 17 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 17 00 E0 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 50 [10:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:38:40]wFMCommunicate OK [10:38:40]requested_item fd.num is exist - process it [10:38:40]SAM_PROTO_GetFieldsCounters [10:38:40]wFMCommunicate request_size=4 [10:38:40]MH_SAM_APDU [10:38:40]CAPDU: 80 13 00 00 [10:38:40]Write to MH i2c: E2 08 00 E1 9E 80 13 00 00 00 00 00 00 FB [10:38:40]Write i2c OK [10:38:40]MH_I2C_Read... [10:38:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:40]Read from MH i2c: E2 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 62 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 62 00 E1 9E 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 04 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [10:38: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 04 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:40]wFMCommunicate OK [10:38:40]SAM_PROTO_GetFieldsCounters done [10:38:40]requested_item shift.num is exist - process it [10:38:40]requested_item shift.opened is exist - process it [10:38:40]req_shift_opened [10:38:40]FM_GetShiftState [10:38:40]SAM_PROTO_GetShiftState [10:38:40]wFMCommunicate request_size=4 [10:38:40]MH_SAM_APDU [10:38:40]CAPDU: 80 13 01 00 [10:38:40]Write to MH i2c: E2 08 00 E2 9E 80 13 01 00 00 00 00 00 FD [10:38:40]Write i2c OK [10:38:40]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0E 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 0E 00 E2 9E 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 47 [10:38:41]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:38:41]wFMCommunicate OK [10:38:41]SAM_PROTO_GetShiftState done [10:38:41]FM_GetShiftState done [10:38:41]req_shift_opened done [10:38:41]requested_item shift.open_date is exist - process it [10:38:41]req_shift_open_date [10:38:41]req_shift_open_date done [10:38:41]produce_requested_data done [10:38:41]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27140,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [10:38:41]process_action_free close_receipt [10:38:41]json_value_free [10:38:41]json_value_free done [10:38:41]process_json_proto returns [10:38:41]Send response to host [10:38:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27140,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [10:38:41]free response buf [10:38:41]execute_script done [10:38:41]execute_script returns [10:38:41]free content buf [10:38:41]Sock 8.Close socket [10:38:41]Sock 8.Thread stoped [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]accept exits with 9 [10:47:14]New connection [10:47:14]New thread 3066871140 created [10:47:14]Thread 3067014500 joined [10:47:14]Waiting for new connection... [10:47:14] Sock 9.Parse request [10:47:14]Sock 9.Check first char [10:47:14]Sock 9.First char is OK [10:47:14]request: POST /json_proto HTTP/1.0 [10:47:14]Method: POST [10:47:14]URL: /json_proto [10:47:14]Method is POST - this is cgi request [10:47:14]url: /json_proto [10:47:14]query_string will be loaded in cgi processing [10:47:14]execute_cgi json_proto POST (null) [10:47:14]execute_cgi path=json_proto method=POST [10:47:14]POST find Content-Length [10:47:14]Host: 172.17.35.3:8080 [10:47:14]Content-Length: 677 [10:47:14]Content-Type: application/json [10:47:14] [10:47:14]POST finish read [10:47:14]Found Content-Length = 677 [10:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:14]execute_script... [10:47:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:14]POST & json_proto [10:47:14]process_json_proto [10:47:14]json parsed OK: [10:47:14]protocol is kg_v1.0 [10:47:14]action value=close_receipt [10:47:14]process_action close_receipt [10:47:14]cmd_close_receipt [10:47:14]MH_GetDate [10:47:14]Write to MH i2c: F0 00 00 E3 9E 70 [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: F0 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: F0 09 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: F0 09 00 E3 9E 00 D1 BF 17 66 2B 11 66 64 8C [10:47:14]GetLastDocTimeStamp 1712831947 [10:47:14]current date 1712832465 [10:47:14]FM_GetShiftState [10:47:14]SAM_PROTO_GetShiftState [10:47:14]wFMCommunicate request_size=4 [10:47:14]MH_SAM_APDU [10:47:14]CAPDU: 80 13 01 00 [10:47:14]Write to MH i2c: E2 08 00 E4 9E 80 13 01 00 00 00 00 00 FF [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:14]Read from MH i2c: E2 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 0E 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 0E 00 E4 9E 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 49 [10:47:14]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:47:14]wFMCommunicate OK [10:47:14]SAM_PROTO_GetShiftState done [10:47:14]FM_GetShiftState done [10:47:14]opened in 1712795538 [10:47:14]opened+sec_in_day 1712881938 [10:47:14]quantity*price = 50022 [10:47:14]sum+1 = 50024 [10:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 28 11.04.2024 10:47 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27141 ФПД: 279608961756433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T104745&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27141&fm=279608961756433&tin=02508201610067®Number=0000000000091578&sum=50000 [10:47:15]StoreToDocumentArchive [10:47:15]shift 317 fd 27141 [10:47:15]save to /storage/0317/doc_00027141 [10:47:15]save last doc name /storage/0317/doc_00027141 to /storage/kkm_last_doc_name [10:47:15]save OK [10:47:15]Clear old archive folders... [10:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:15]tlvbuf is 00EF7080 [10:47:15]SAM_PROTO_ClearQueue [10:47:15]wFMCommunicate request_size=4 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 09 00 00 [10:47:15]Write to MH i2c: E2 08 00 F1 9E 80 09 00 00 00 00 00 00 01 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 03 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 03 00 F1 9E 00 90 00 03 [10:47:15]RAPDU: 90 00 [10:47:15]wFMCommunicate OK [10:47:15]SAM_PROTO_ClearQueue done [10:47:15]KKMCreateOFDPacket [10:47:15]OFDProtocolAddRootSTLVToBuf [10:47:15]FM_MakeSignedData [10:47:15]FM_MakeSignedData [10:47:15]SAM_PROTO_SignData [10:47:15]wFMCommunicate request_size=4 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 0D 01 02 [10:47:15]Write to MH i2c: E2 08 00 F2 9E 80 0D 01 02 00 00 00 00 09 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 03 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 03 00 F2 9E 00 90 00 04 [10:47:15]RAPDU: 90 00 [10:47:15]wFMCommunicate OK [10:47:15]wFMCommunicate request_size=255 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D1 BF 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 05 6A 00 00 35 04 06 00 FE [10:47:15]Write to MH i2c: E2 02 01 F3 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D1 BF 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 05 6A 00 00 35 04 06 00 FE 00 00 9D [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 03 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 03 00 F3 9E 00 90 00 05 [10:47:15]RAPDU: 90 00 [10:47:15]wFMCommunicate OK [10:47:15]wFMCommunicate request_size=10 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 0D 02 02 05 4D 88 D7 6D 11 [10:47:15]Write to MH i2c: E2 0D 00 F4 9E 80 0D 02 02 05 00 4D 88 D7 6D 11 00 00 40 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 03 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 03 00 F4 9E 00 90 00 06 [10:47:15]RAPDU: 90 00 [10:47:15]wFMCommunicate OK [10:47:15]wFMCommunicate request_size=4 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 0D 03 02 [10:47:15]Write to MH i2c: E2 08 00 F5 9E 80 0D 03 02 00 00 00 00 0E [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 0B 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 0B 00 F5 9E 00 CE 53 D9 7C 91 E6 40 A3 90 00 DF [10:47:15]RAPDU: CE 53 D9 7C 91 E6 40 A3 90 00 [10:47:15]wFMCommunicate OK [10:47:15]SAM_PROTO_SignData done [10:47:15]FM_MakeSignedData done [10:47:15]CreateOFDProtocolMessage [10:47:15]wFMCommunicate request_size=4 [10:47:15]MH_SAM_APDU [10:47:15]CAPDU: 80 11 00 00 [10:47:15]Write to MH i2c: E2 08 00 F6 9E 80 11 00 00 00 00 00 00 0E [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:15]Read from MH i2c: E2 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 17 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: E2 17 00 F6 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 66 [10:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:47:15]wFMCommunicate OK [10:47:15]CreateOFDProtocolMessage done [10:47:15]OFDSenderStorePacket 27141 [10:47:15]StoreOFDPacket docnum=27141 [10:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 DD 17 07 01 48 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D1 BF 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 05 6A 00 00 35 04 06 00 FE 4D 88 D7 6D 11 CE 53 D9 7C 91 E6 40 A3 [10:47:15]CheckFolder [10:47:15]dirname=/storage/ofd_packets [10:47:15]CheckFolder done [10:47:15]ProducePacketName [10:47:15]name=ofd_packets/00027141 [10:47:15]NVStorageSaveData ofd_packets/00027141 [10:47:15]File name is /storage/ofd_packets/00027141 [10:47:15]Write 301 bytes [10:47:15]NVStorageSaveData done [10:47:15]OFDSenderStorePacket done [10:47:15]KKMCreateOFDPacket done [10:47:15]NVStorageSaveData kkm_last_timestamp [10:47:15]File name is /storage/kkm_last_timestamp [10:47:15]Write 4 bytes [10:47:15]NVStorageSaveData done [10:47:15]ExternCall_PrintAddStr [10:47:15]wPrintStart [10:47:15]Write to MH i2c: 01 00 00 F7 9E 95 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 07 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 07 00 F7 9E 00 00 00 00 00 FF 0F AA [10:47:15]RasterBufferAndPrint [10:47:15]line Счет N : (1)359893 [10:47:15]line ИНН: 02508201610067 [10:47:15]line Контрольно-Кассовый Чек [10:47:15]line ПРОДАЖА [10:47:15]line ТРК (МРК, ГНК) : 51 [10:47:15]line Товар: 2710124130 [10:47:15]line Аи-92-К-5 [10:47:15]line 7.890 * 63.40 [10:47:15]line = 500.23 [10:47:15]line НДС 12% НСП 1% [10:47:15]line > о реализуемом товаре [10:47:15]line ОКРУГЛЕНИЕ: -0.23 [10:47:15]line ИТОГО: 500.00 [10:47:15]line Внесено: 500.00 [10:47:15]line СДАЧА: 0.00 [10:47:15]line НСП 1% : 4.43 [10:47:15]line НДС 12% : 53.12 [10:47:15]line Наличными: 500.00 [10:47:15]line Безнал.: 0.00 [10:47:15]line Место: АЗС № 122 "Партнер Нефть" [10:47:15]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:47:15]line СНО: Общий режим [10:47:15]line Чек 28 11.04.2024 10:47 [10:47:15]line Смена: 317 ФФД: 1.0 [10:47:15]line ЗНМ: 0300000147 [10:47:15]line РНМ: 0000000000091578 [10:47:15]line Версия ККМ: 001 [10:47:15]line ФМ: 0000000000874657 [10:47:15]line ФД: 27141 [10:47:15]line ФПД: 279608961756433 [10:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T104745&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27141&fm=279608961756433&tin=02508201610067®Number=0000000000091578&sum=50000 [10:47:16]OFD Sender: Processing packet 27141 [packets to send 44, broken 43] [10:47:16]ProducePacketName [10:47:16]name=ofd_packets/00027141 [10:47:16]OFD Sender: To server: pG, [10:47:16]CommunicateWithHost lk.salyk.kg:30040 [10:47:16]ConnectInit lk.salyk.kg [10:47:16]written 0, free lines is 4095 [10:47:16]Connected sock=10 [10:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 DD 17 07 01 48 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D1 BF 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 05 6A 00 00 35 04 06 00 FE 4D 88 D7 6D 11 CE 53 D9 7C 91 E6 40 A3 [10:47: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 35 37 4F 00 00 00 05 1E 47 00 62 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 35 37 10 04 04 00 05 6A 00 00 F4 03 04 00 31 67 17 66 B6 04 01 00 00 C8 04 83 41 EE 44 7E FF [10:47:16]CommunicateWithHost err = 0 [10:47:16]CheckOFDResponse [10:47:16]1017 (14) - 77093643461234 [10:47:16]1041 (16) - 0000000000874657 [10:47:16]1040 (4) - 27141 [10:47:16]1012 (4) - 11.04.2024 04:29 [10:47:16]1206 (1) - 0 [10:47:16]OFD Sender: Remove packet 27141 [10:47:16]ProducePacketName [10:47:16]name=ofd_packets/00027141 [10:47:16]NVStorageDeleteData [10:47:16]Write to MH i2c: 01 00 00 22 9F C1 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 07 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: 01 07 00 22 9F 00 00 00 00 00 82 0C 56 [10:47:16]RasterBufferAndPrint [10:47:16]line [10:47:16]line [10:47:16]line [10:47:16]line [10:47:16]line [10:47:16]written 0, free lines is 3205 [10:47:16]MH_Cut [10:47:16]Write to MH i2c: D1 01 00 29 9F 01 9A [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: D1 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: D1 01 00 [10:47:16]MH_I2C_Read... [10:47:16]Read from MH i2c: D1 01 00 29 9F 00 99 [10:47:16]Write to MH i2c: 01 00 00 2A 9F C9 [10:47:16]Write i2c OK [10:47:16]MH_I2C_Read... [10:47:16]OFD Sender: No OFD packet to send [10:47:17]*** Cut start [10:47:17]*** Partial cut [10:47:17]*** CUTSNS_PIN = 1 [10:47:17]*** CUTSNS_PIN = 0 [10:47:17]*** Brake cut motor [10:47:18]Read from MH i2c: 01 [10:47:18]MH_I2C_Read... [10:47:18]*** Stop cut motor [10:47:18]*** Cut end [10:47:18]Read from MH i2c: 01 07 00 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: 01 07 00 2A 9F 00 00 00 00 00 FF 0F DE [10:47:18]process_action close_receipt done [10:47:18]requested_data is exist [10:47:18]produce_requested_data [10:47:18]requested_item fm.sn is exist - process it [10:47:18]wFMCommunicate request_size=4 [10:47:18]MH_SAM_APDU [10:47:18]CAPDU: 80 11 00 00 [10:47:18]Write to MH i2c: E2 08 00 2B 9F 80 11 00 00 00 00 00 00 44 [10:47:18]Write i2c OK [10:47:18]MH_I2C_Read... [10:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:18]Read from MH i2c: E2 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 17 00 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 17 00 2B 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 9C [10:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:47:18]wFMCommunicate OK [10:47:18]requested_item fd.num is exist - process it [10:47:18]SAM_PROTO_GetFieldsCounters [10:47:18]wFMCommunicate request_size=4 [10:47:18]MH_SAM_APDU [10:47:18]CAPDU: 80 13 00 00 [10:47:18]Write to MH i2c: E2 08 00 2C 9F 80 13 00 00 00 00 00 00 47 [10:47:18]Write i2c OK [10:47:18]MH_I2C_Read... [10:47:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:18]Read from MH i2c: E2 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 62 00 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 62 00 2C 9F 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 05 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:47:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 05 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:18]wFMCommunicate OK [10:47:18]SAM_PROTO_GetFieldsCounters done [10:47:18]requested_item shift.num is exist - process it [10:47:18]requested_item shift.opened is exist - process it [10:47:18]req_shift_opened [10:47:18]FM_GetShiftState [10:47:18]SAM_PROTO_GetShiftState [10:47:18]wFMCommunicate request_size=4 [10:47:18]MH_SAM_APDU [10:47:18]CAPDU: 80 13 01 00 [10:47:18]Write to MH i2c: E2 08 00 2D 9F 80 13 01 00 00 00 00 00 49 [10:47:18]Write i2c OK [10:47:18]MH_I2C_Read... [10:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:18]Read from MH i2c: E2 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 0E 00 [10:47:18]MH_I2C_Read... [10:47:18]Read from MH i2c: E2 0E 00 2D 9F 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 93 [10:47:18]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [10:47:18]wFMCommunicate OK [10:47:18]SAM_PROTO_GetShiftState done [10:47:18]FM_GetShiftState done [10:47:18]req_shift_opened done [10:47:18]requested_item shift.open_date is exist - process it [10:47:18]req_shift_open_date [10:47:18]req_shift_open_date done [10:47:18]produce_requested_data done [10:47:18]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27141,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [10:47:18]process_action_free close_receipt [10:47:18]json_value_free [10:47:18]json_value_free done [10:47:18]process_json_proto returns [10:47:18]Send response to host [10:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27141,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [10:47:18]free response buf [10:47:18]execute_script done [10:47:18]execute_script returns [10:47:18]free content buf [10:47:18]Sock 9.Close socket [10:47:18]Sock 9.Thread stoped [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:46]accept exits with 8 [11:10:46]New connection [11:10:46]New thread 3067014500 created [11:10:46]Thread 3066871140 joined [11:10:46]Waiting for new connection... [11:10:46] Sock 8.Parse request [11:10:46]Sock 8.Check first char [11:10:46]Sock 8.First char is OK [11:10:46]request: POST /json_proto HTTP/1.0 [11:10:46]Method: POST [11:10:46]URL: /json_proto [11:10:46]Method is POST - this is cgi request [11:10:46]url: /json_proto [11:10:46]query_string will be loaded in cgi processing [11:10:46]execute_cgi json_proto POST (null) [11:10:46]execute_cgi path=json_proto method=POST [11:10:46]POST find Content-Length [11:10:46]Host: 172.17.35.3:8080 [11:10:46]Content-Length: 1102 [11:10:46]Content-Type: application/json [11:10:46] [11:10:46]POST finish read [11:10:46]Found Content-Length = 1102 [11:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359894\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 25.020 x 71.80\u000A\u0418\u0422\u041E\u0413: 1796.44\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43212\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:46]execute_script... [11:10:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359894\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 25.020 x 71.80\u000A\u0418\u0422\u041E\u0413: 1796.44\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43212\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:46]POST & json_proto [11:10:46]process_json_proto [11:10:46]json parsed OK: [11:10:46]protocol is kg_v1.0 [11:10:46]action value=print_text [11:10:46]process_action print_text [11:10:46]cmd_print_text [11:10:46]ExternCall_PrintAddStr [11:10:46]wPrintStart [11:10:46]Write to MH i2c: 01 00 00 2E 9F CD [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 07 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 07 00 2E 9F 00 00 00 00 00 FF 0F E2 [11:10:46]RasterBufferAndPrint [11:10:46]line *****ТОВАРНЫЙ ЧЕК***** [11:10:46]line АЗС 122 [11:10:46]line Партнер нефть [11:10:46]line 02508201610067 [11:10:46]line Кассир : Эдилбаев К. [11:10:46]line Счет N : (1)359894 [11:10:46]line ПРОДАЖА [11:10:46]line ТРК (МРК, ГНК) : 11 [11:10:46]line Вид ГСМ : 2710194210 [11:10:46]line ДТ(л)-К-5 [11:10:46]line 25.020 x 71.80 [11:10:46]line ИТОГ: 1796.44 [11:10:46]line Тип оплаты: Талоны: Топливная Карта [11:10:46]line 43212 [11:10:46]written 0, free lines is 4095 [11:10:46]Write to MH i2c: 01 00 00 3F 9F DE [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 07 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: 01 07 00 3F 9F 00 00 00 00 00 5D 0E 50 [11:10:46]RasterBufferAndPrint [11:10:46]line [11:10:46]line [11:10:46]line [11:10:46]line [11:10:46]line [11:10:46]written 0, free lines is 3679 [11:10:46]MH_Cut [11:10:46]Write to MH i2c: D1 01 00 46 9F 01 B7 [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: D1 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: D1 01 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: D1 01 00 46 9F 00 B6 [11:10:46]Write to MH i2c: 01 00 00 47 9F E6 [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** Cut start [11:10:46]*** Partial cut [11:10:46]*** CUTSNS_PIN = 1 [11:10:46]*** CUTSNS_PIN = 0 [11:10:47]*** Brake cut motor [11:10:47]Read from MH i2c: 01 [11:10:47]MH_I2C_Read... [11:10:47]*** Stop cut motor [11:10:47]*** Cut end [11:10:47]Read from MH i2c: 01 07 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: 01 07 00 47 9F 00 00 00 00 00 FF 0F FB [11:10:47]process_action print_text done [11:10:47]requested_data is exist [11:10:47]produce_requested_data [11:10:47]requested_item fm.sn is exist - process it [11:10:47]wFMCommunicate request_size=4 [11:10:47]MH_SAM_APDU [11:10:47]CAPDU: 80 11 00 00 [11:10:47]Write to MH i2c: E2 08 00 48 9F 80 11 00 00 00 00 00 00 61 [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:47]Read from MH i2c: E2 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 17 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 17 00 48 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B9 [11:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:10:47]wFMCommunicate OK [11:10:47]requested_item fd.num is exist - process it [11:10:47]SAM_PROTO_GetFieldsCounters [11:10:47]wFMCommunicate request_size=4 [11:10:47]MH_SAM_APDU [11:10:47]CAPDU: 80 13 00 00 [11:10:47]Write to MH i2c: E2 08 00 49 9F 80 13 00 00 00 00 00 00 64 [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:47]Read from MH i2c: E2 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 62 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 62 00 49 9F 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 05 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [11:10: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 05 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:47]wFMCommunicate OK [11:10:47]SAM_PROTO_GetFieldsCounters done [11:10:47]requested_item shift.num is exist - process it [11:10:47]requested_item shift.opened is exist - process it [11:10:47]req_shift_opened [11:10:47]FM_GetShiftState [11:10:47]SAM_PROTO_GetShiftState [11:10:47]wFMCommunicate request_size=4 [11:10:47]MH_SAM_APDU [11:10:47]CAPDU: 80 13 01 00 [11:10:47]Write to MH i2c: E2 08 00 4A 9F 80 13 01 00 00 00 00 00 66 [11:10:47]Write i2c OK [11:10:47]MH_I2C_Read... [11:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:47]Read from MH i2c: E2 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 0E 00 [11:10:47]MH_I2C_Read... [11:10:47]Read from MH i2c: E2 0E 00 4A 9F 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 B0 [11:10:47]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:10:47]wFMCommunicate OK [11:10:47]SAM_PROTO_GetShiftState done [11:10:47]FM_GetShiftState done [11:10:47]req_shift_opened done [11:10:47]requested_item shift.open_date is exist - process it [11:10:47]req_shift_open_date [11:10:47]req_shift_open_date done [11:10:47]produce_requested_data done [11:10:47]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27141,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [11:10:47]process_action_free print_text [11:10:47]json_value_free [11:10:47]json_value_free done [11:10:47]process_json_proto returns [11:10:47]Send response to host [11:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27141,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [11:10:47]free response buf [11:10:47]execute_script done [11:10:47]execute_script returns [11:10:47]free content buf [11:10:47]Sock 8.Close socket [11:10:47]Sock 8.Thread stoped [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:55]accept exits with 9 [11:17:55]New connection [11:17:55]New thread 3066871140 created [11:17:55]Thread 3067014500 joined [11:17:55]Waiting for new connection... [11:17:55] Sock 9.Parse request [11:17:55]Sock 9.Check first char [11:17:55]Sock 9.First char is OK [11:17:55]request: POST /json_proto HTTP/1.0 [11:17:55]Method: POST [11:17:55]URL: /json_proto [11:17:55]Method is POST - this is cgi request [11:17:55]url: /json_proto [11:17:55]query_string will be loaded in cgi processing [11:17:55]execute_cgi json_proto POST (null) [11:17:55]execute_cgi path=json_proto method=POST [11:17:55]POST find Content-Length [11:17:55]Host: 172.17.35.3:8080 [11:17:55]Content-Length: 682 [11:17:55]Content-Type: application/json [11:17:55] [11:17:55]POST finish read [11:17:55]Found Content-Length = 682 [11:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:55]execute_script... [11:17:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:55]POST & json_proto [11:17:55]process_json_proto [11:17:55]json parsed OK: [11:17:55]protocol is kg_v1.0 [11:17:55]action value=close_receipt [11:17:55]process_action close_receipt [11:17:55]cmd_close_receipt [11:17:55]MH_GetDate [11:17:55]Write to MH i2c: F0 00 00 4B 9F D9 [11:17:55]Write i2c OK [11:17:55]MH_I2C_Read... [11:17:55]Read from MH i2c: F0 [11:17:55]MH_I2C_Read... [11:17:55]Read from MH i2c: F0 09 00 [11:17:55]MH_I2C_Read... [11:17:55]Read from MH i2c: F0 09 00 4B 9F 00 02 C7 17 66 2B 11 66 64 2E [11:17:55]GetLastDocTimeStamp 1712832465 [11:17:55]current date 1712834306 [11:17:55]FM_GetShiftState [11:17:55]SAM_PROTO_GetShiftState [11:17:55]wFMCommunicate request_size=4 [11:17:55]MH_SAM_APDU [11:17:55]CAPDU: 80 13 01 00 [11:17:55]Write to MH i2c: E2 08 00 4C 9F 80 13 01 00 00 00 00 00 68 [11:17:55]Write i2c OK [11:17:55]MH_I2C_Read... [11:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:55]Read from MH i2c: E2 [11:17:55]MH_I2C_Read... [11:17:55]Read from MH i2c: E2 0E 00 [11:17:55]MH_I2C_Read... [11:17:55]Read from MH i2c: E2 0E 00 4C 9F 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 B2 [11:17:55]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:17:55]wFMCommunicate OK [11:17:55]SAM_PROTO_GetShiftState done [11:17:55]FM_GetShiftState done [11:17:55]opened in 1712795538 [11:17:55]opened+sec_in_day 1712881938 [11:17:55]quantity*price = 100045 [11:17:55]sum+1 = 100046 [11:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 29 11.04.2024 11:18 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27142 ФПД: 151890611094171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T111827&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27142&fm=151890611094171&tin=02508201610067®Number=0000000000091578&sum=100000 [11:17:56]StoreToDocumentArchive [11:17:56]shift 317 fd 27142 [11:17:56]save to /storage/0317/doc_00027142 [11:17:56]save last doc name /storage/0317/doc_00027142 to /storage/kkm_last_doc_name [11:17:56]save OK [11:17:56]Clear old archive folders... [11:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:56]tlvbuf is 011AE7D0 [11:17:56]SAM_PROTO_ClearQueue [11:17:56]wFMCommunicate request_size=4 [11:17:56]MH_SAM_APDU [11:17:56]CAPDU: 80 09 00 00 [11:17:56]Write to MH i2c: E2 08 00 59 9F 80 09 00 00 00 00 00 00 6A [11:17:56]Write i2c OK [11:17:56]MH_I2C_Read... [11:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:56]Read from MH i2c: E2 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 03 00 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 03 00 59 9F 00 90 00 6C [11:17:56]RAPDU: 90 00 [11:17:56]wFMCommunicate OK [11:17:56]SAM_PROTO_ClearQueue done [11:17:56]KKMCreateOFDPacket [11:17:56]OFDProtocolAddRootSTLVToBuf [11:17:56]FM_MakeSignedData [11:17:56]FM_MakeSignedData [11:17:56]SAM_PROTO_SignData [11:17:56]wFMCommunicate request_size=4 [11:17:56]MH_SAM_APDU [11:17:56]CAPDU: 80 0D 01 02 [11:17:56]Write to MH i2c: E2 08 00 5A 9F 80 0D 01 02 00 00 00 00 72 [11:17:56]Write i2c OK [11:17:56]MH_I2C_Read... [11:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:56]Read from MH i2c: E2 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 03 00 [11:17:56]MH_I2C_Read... [11:17:56]Read from MH i2c: E2 03 00 5A 9F 00 90 00 6D [11:17:56]RAPDU: 90 00 [11:17:56]wFMCommunicate OK [11:17:56]wFMCommunicate request_size=255 [11:17:56]MH_SAM_APDU [11:17:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 03 C7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 6A 00 00 35 04 06 00 8A [11:17:56]Write to MH i2c: E2 02 01 5B 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 03 C7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 6A 00 00 35 04 06 00 8A 00 00 A2 [11:17:56]Write i2c OK [11:17:56]MH_I2C_Read... [11:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:57]Read from MH i2c: E2 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 03 00 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 03 00 5B 9F 00 90 00 6E [11:17:57]RAPDU: 90 00 [11:17:57]wFMCommunicate OK [11:17:57]wFMCommunicate request_size=10 [11:17:57]MH_SAM_APDU [11:17:57]CAPDU: 80 0D 02 02 05 24 C9 EB 42 9B [11:17:57]Write to MH i2c: E2 0D 00 5C 9F 80 0D 02 02 05 00 24 C9 EB 42 9B 00 00 34 [11:17:57]Write i2c OK [11:17:57]MH_I2C_Read... [11:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:57]Read from MH i2c: E2 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 03 00 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 03 00 5C 9F 00 90 00 6F [11:17:57]RAPDU: 90 00 [11:17:57]wFMCommunicate OK [11:17:57]wFMCommunicate request_size=4 [11:17:57]MH_SAM_APDU [11:17:57]CAPDU: 80 0D 03 02 [11:17:57]Write to MH i2c: E2 08 00 5D 9F 80 0D 03 02 00 00 00 00 77 [11:17:57]Write i2c OK [11:17:57]MH_I2C_Read... [11:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:57]Read from MH i2c: E2 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 0B 00 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 0B 00 5D 9F 00 9D 3E 64 67 94 C5 AC F5 90 00 18 [11:17:57]RAPDU: 9D 3E 64 67 94 C5 AC F5 90 00 [11:17:57]wFMCommunicate OK [11:17:57]SAM_PROTO_SignData done [11:17:57]FM_MakeSignedData done [11:17:57]CreateOFDProtocolMessage [11:17:57]wFMCommunicate request_size=4 [11:17:57]MH_SAM_APDU [11:17:57]CAPDU: 80 11 00 00 [11:17:57]Write to MH i2c: E2 08 00 5E 9F 80 11 00 00 00 00 00 00 77 [11:17:57]Write i2c OK [11:17:57]MH_I2C_Read... [11:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:57]Read from MH i2c: E2 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 17 00 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 17 00 5E 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 CF [11:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:17:57]wFMCommunicate OK [11:17:57]CreateOFDProtocolMessage done [11:17:57]OFDSenderStorePacket 27142 [11:17:57]StoreOFDPacket docnum=27142 [11:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 3F FF 07 01 40 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 03 C7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 6A 00 00 35 04 06 00 8A 24 C9 EB 42 9B 9D 3E 64 67 94 C5 AC F5 [11:17:57]CheckFolder [11:17:57]dirname=/storage/ofd_packets [11:17:57]CheckFolder done [11:17:57]ProducePacketName [11:17:57]name=ofd_packets/00027142 [11:17:57]NVStorageSaveData ofd_packets/00027142 [11:17:57]File name is /storage/ofd_packets/00027142 [11:17:57]Write 301 bytes [11:17:57]NVStorageSaveData done [11:17:57]OFDSenderStorePacket done [11:17:57]KKMCreateOFDPacket done [11:17:57]NVStorageSaveData kkm_last_timestamp [11:17:57]File name is /storage/kkm_last_timestamp [11:17:57]Write 4 bytes [11:17:57]NVStorageSaveData done [11:17:57]ExternCall_PrintAddStr [11:17:57]wPrintStart [11:17:57]Write to MH i2c: 01 00 00 5F 9F FE [11:17:57]Write i2c OK [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: 01 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: 01 07 00 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: 01 07 00 5F 9F 00 00 00 00 00 FF 0F 13 [11:17:57]RasterBufferAndPrint [11:17:57]line Счет N : (1)359895 [11:17:57]line ИНН: 02508201610067 [11:17:57]line Контрольно-Кассовый Чек [11:17:57]line ПРОДАЖА [11:17:57]line ТРК (МРК, ГНК) : 51 [11:17:57]line Товар: 2710124130 [11:17:57]line Аи-92-К-5 [11:17:57]line 15.780 * 63.40 [11:17:57]line = 1000.45 [11:17:57]line НДС 12% НСП 1% [11:17:57]line > о реализуемом товаре [11:17:57]line ОКРУГЛЕНИЕ: -0.45 [11:17:57]line ИТОГО: 1000.00 [11:17:57]line Внесено: 1000.00 [11:17:57]line СДАЧА: 0.00 [11:17:57]line НСП 1% : 8.85 [11:17:57]line НДС 12% : 106.24 [11:17:57]line Наличными: 1000.00 [11:17:57]line Безнал.: 0.00 [11:17:57]line Место: АЗС № 122 "Партнер Нефть" [11:17:57]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [11:17:57]line СНО: Общий режим [11:17:57]line Чек 29 11.04.2024 11:18 [11:17:57]line Смена: 317 ФФД: 1.0 [11:17:57]line ЗНМ: 0300000147 [11:17:57]line РНМ: 0000000000091578 [11:17:57]line Версия ККМ: 001 [11:17:57]line ФМ: 0000000000874657 [11:17:57]line ФД: 27142 [11:17:57]line ФПД: 151890611094171 [11:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T111827&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27142&fm=151890611094171&tin=02508201610067®Number=0000000000091578&sum=100000 [11:17:57]OFD Sender: Processing packet 27142 [packets to send 44, broken 43] [11:17:57]ProducePacketName [11:17:57]name=ofd_packets/00027142 [11:17:57]OFD Sender: To server: pG, [11:17:57]CommunicateWithHost lk.salyk.kg:30040 [11:17:57]ConnectInit lk.salyk.kg [11:17:57]written 0, free lines is 4095 [11:17:57]Connected sock=10 [11:17:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 3F FF 07 01 40 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 03 C7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 6A 00 00 35 04 06 00 8A 24 C9 EB 42 9B 9D 3E 64 67 94 C5 AC F5 [11:17: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 35 37 4F 00 00 00 E7 18 47 00 FA 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 6A 00 00 F4 03 04 00 63 6E 17 66 B6 04 01 00 00 1D BC 65 41 BC 14 92 6B [11:17:57]CommunicateWithHost err = 0 [11:17:57]CheckOFDResponse [11:17:57]1017 (14) - 77093643461234 [11:17:57]1041 (16) - 0000000000874657 [11:17:57]1040 (4) - 27142 [11:17:57]1012 (4) - 11.04.2024 05:00 [11:17:57]1206 (1) - 0 [11:17:57]OFD Sender: Remove packet 27142 [11:17:57]ProducePacketName [11:17:57]name=ofd_packets/00027142 [11:17:57]NVStorageDeleteData [11:17:58]Write to MH i2c: 01 00 00 8A 9F 29 [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: 01 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: 01 07 00 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: 01 07 00 8A 9F 00 00 00 00 00 89 0C C5 [11:17:58]RasterBufferAndPrint [11:17:58]line [11:17:58]line [11:17:58]line [11:17:58]line [11:17:58]line [11:17:58]written 0, free lines is 3213 [11:17:58]MH_Cut [11:17:58]Write to MH i2c: D1 01 00 91 9F 01 02 [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: D1 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: D1 01 00 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: D1 01 00 91 9F 00 01 [11:17:58]Write to MH i2c: 01 00 00 92 9F 31 [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]OFD Sender: No OFD packet to send [11:17:59]*** Cut start [11:17:59]*** Partial cut [11:17:59]*** CUTSNS_PIN = 1 [11:17:59]*** CUTSNS_PIN = 0 [11:17:59]*** Brake cut motor [11:17:59]Read from MH i2c: 01 [11:17:59]MH_I2C_Read... [11:17:59]*** Stop cut motor [11:17:59]*** Cut end [11:17:59]Read from MH i2c: 01 07 00 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: 01 07 00 92 9F 00 00 00 00 00 FF 0F 46 [11:17:59]process_action close_receipt done [11:17:59]requested_data is exist [11:17:59]produce_requested_data [11:17:59]requested_item fm.sn is exist - process it [11:17:59]wFMCommunicate request_size=4 [11:17:59]MH_SAM_APDU [11:17:59]CAPDU: 80 11 00 00 [11:17:59]Write to MH i2c: E2 08 00 93 9F 80 11 00 00 00 00 00 00 AC [11:17:59]Write i2c OK [11:17:59]MH_I2C_Read... [11:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:59]Read from MH i2c: E2 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: E2 17 00 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: E2 17 00 93 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 04 [11:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:17:59]wFMCommunicate OK [11:17:59]requested_item fd.num is exist - process it [11:17:59]SAM_PROTO_GetFieldsCounters [11:17:59]wFMCommunicate request_size=4 [11:17:59]MH_SAM_APDU [11:17:59]CAPDU: 80 13 00 00 [11:17:59]Write to MH i2c: E2 08 00 94 9F 80 13 00 00 00 00 00 00 AF [11:17:59]Write i2c OK [11:17:59]MH_I2C_Read... [11:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:59]Read from MH i2c: E2 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: E2 62 00 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: E2 62 00 94 9F 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 06 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:17: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 06 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:59]wFMCommunicate OK [11:17:59]SAM_PROTO_GetFieldsCounters done [11:17:59]requested_item shift.num is exist - process it [11:17:59]requested_item shift.opened is exist - process it [11:17:59]req_shift_opened [11:17:59]FM_GetShiftState [11:17:59]SAM_PROTO_GetShiftState [11:17:59]wFMCommunicate request_size=4 [11:17:59]MH_SAM_APDU [11:17:59]CAPDU: 80 13 01 00 [11:17:59]Write to MH i2c: E2 08 00 95 9F 80 13 01 00 00 00 00 00 B1 [11:17:59]Write i2c OK [11:17:59]MH_I2C_Read... [11:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:59]Read from MH i2c: E2 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: E2 0E 00 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: E2 0E 00 95 9F 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 FB [11:17:59]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:17:59]wFMCommunicate OK [11:17:59]SAM_PROTO_GetShiftState done [11:17:59]FM_GetShiftState done [11:17:59]req_shift_opened done [11:17:59]requested_item shift.open_date is exist - process it [11:17:59]req_shift_open_date [11:17:59]req_shift_open_date done [11:17:59]produce_requested_data done [11:17:59]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27142,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [11:17:59]process_action_free close_receipt [11:17:59]json_value_free [11:17:59]json_value_free done [11:17:59]process_json_proto returns [11:17:59]Send response to host [11:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27142,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [11:17:59]free response buf [11:17:59]execute_script done [11:17:59]execute_script returns [11:17:59]free content buf [11:17:59]Sock 9.Close socket [11:17:59]Sock 9.Thread stoped [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:25]accept exits with 8 [11:43:25]New connection [11:43:25]New thread 3067014500 created [11:43:25]Thread 3066871140 joined [11:43:25]Waiting for new connection... [11:43:25] Sock 8.Parse request [11:43:25]Sock 8.Check first char [11:43:25]Sock 8.First char is OK [11:43:25]request: POST /json_proto HTTP/1.0 [11:43:25]Method: POST [11:43:25]URL: /json_proto [11:43:25]Method is POST - this is cgi request [11:43:25]url: /json_proto [11:43:25]query_string will be loaded in cgi processing [11:43:25]execute_cgi json_proto POST (null) [11:43:25]execute_cgi path=json_proto method=POST [11:43:25]POST find Content-Length [11:43:25]Host: 172.17.35.3:8080 [11:43:25]Content-Length: 682 [11:43:25]Content-Type: application/json [11:43:25] [11:43:25]POST finish read [11:43:25]Found Content-Length = 682 [11:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:25]execute_script... [11:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:25]POST & json_proto [11:43:25]process_json_proto [11:43:25]json parsed OK: [11:43:25]protocol is kg_v1.0 [11:43:25]action value=close_receipt [11:43:25]process_action close_receipt [11:43:25]cmd_close_receipt [11:43:25]MH_GetDate [11:43:25]Write to MH i2c: F0 00 00 96 9F 24 [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: F0 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: F0 09 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: F0 09 00 96 9F 00 FC CC 17 66 2B 11 66 64 78 [11:43:25]GetLastDocTimeStamp 1712834307 [11:43:25]current date 1712835836 [11:43:25]FM_GetShiftState [11:43:25]SAM_PROTO_GetShiftState [11:43:25]wFMCommunicate request_size=4 [11:43:25]MH_SAM_APDU [11:43:25]CAPDU: 80 13 01 00 [11:43:25]Write to MH i2c: E2 08 00 97 9F 80 13 01 00 00 00 00 00 B3 [11:43:25]Write i2c OK [11:43:25]MH_I2C_Read... [11:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:25]Read from MH i2c: E2 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 0E 00 [11:43:25]MH_I2C_Read... [11:43:25]Read from MH i2c: E2 0E 00 97 9F 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 FD [11:43:25]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:43:25]wFMCommunicate OK [11:43:25]SAM_PROTO_GetShiftState done [11:43:25]FM_GetShiftState done [11:43:25]opened in 1712795538 [11:43:25]opened+sec_in_day 1712881938 [11:43:25]quantity*price = 100045 [11:43:25]sum+1 = 100046 [11:43:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 30 11.04.2024 11:43 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27143 ФПД: 34899604894321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T114356&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27143&fm=34899604894321&tin=02508201610067®Number=0000000000091578&sum=100000 [11:43:26]StoreToDocumentArchive [11:43:26]shift 317 fd 27143 [11:43:26]save to /storage/0317/doc_00027143 [11:43:26]save last doc name /storage/0317/doc_00027143 to /storage/kkm_last_doc_name [11:43:26]save OK [11:43:26]Clear old archive folders... [11:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:26]tlvbuf is 010A1DC0 [11:43:26]SAM_PROTO_ClearQueue [11:43:26]wFMCommunicate request_size=4 [11:43:26]MH_SAM_APDU [11:43:26]CAPDU: 80 09 00 00 [11:43:26]Write to MH i2c: E2 08 00 A4 9F 80 09 00 00 00 00 00 00 B5 [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:26]Read from MH i2c: E2 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 A4 9F 00 90 00 B7 [11:43:26]RAPDU: 90 00 [11:43:26]wFMCommunicate OK [11:43:26]SAM_PROTO_ClearQueue done [11:43:26]KKMCreateOFDPacket [11:43:26]OFDProtocolAddRootSTLVToBuf [11:43:26]FM_MakeSignedData [11:43:26]FM_MakeSignedData [11:43:26]SAM_PROTO_SignData [11:43:26]wFMCommunicate request_size=4 [11:43:26]MH_SAM_APDU [11:43:26]CAPDU: 80 0D 01 02 [11:43:26]Write to MH i2c: E2 08 00 A5 9F 80 0D 01 02 00 00 00 00 BD [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:26]Read from MH i2c: E2 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 A5 9F 00 90 00 B8 [11:43:26]RAPDU: 90 00 [11:43:26]wFMCommunicate OK [11:43:26]wFMCommunicate request_size=255 [11:43:26]MH_SAM_APDU [11:43:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FC CC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 07 6A 00 00 35 04 06 00 1F [11:43:26]Write to MH i2c: E2 02 01 A6 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FC CC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 07 6A 00 00 35 04 06 00 1F 00 00 82 [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:26]Read from MH i2c: E2 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 [11:43:26]MH_I2C_Read... [11:43:26]Read from MH i2c: E2 03 00 A6 9F 00 90 00 B9 [11:43:26]RAPDU: 90 00 [11:43:26]wFMCommunicate OK [11:43:26]wFMCommunicate request_size=10 [11:43:26]MH_SAM_APDU [11:43:26]CAPDU: 80 0D 02 02 05 BD B2 8D 72 71 [11:43:26]Write to MH i2c: E2 0D 00 A7 9F 80 0D 02 02 05 00 BD B2 8D 72 71 00 00 A9 [11:43:26]Write i2c OK [11:43:26]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 03 00 A7 9F 00 90 00 BA [11:43:27]RAPDU: 90 00 [11:43:27]wFMCommunicate OK [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 0D 03 02 [11:43:27]Write to MH i2c: E2 08 00 A8 9F 80 0D 03 02 00 00 00 00 C2 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 0B 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 0B 00 A8 9F 00 B9 6D 50 6A E6 D9 7B 55 90 00 32 [11:43:27]RAPDU: B9 6D 50 6A E6 D9 7B 55 90 00 [11:43:27]wFMCommunicate OK [11:43:27]SAM_PROTO_SignData done [11:43:27]FM_MakeSignedData done [11:43:27]CreateOFDProtocolMessage [11:43:27]wFMCommunicate request_size=4 [11:43:27]MH_SAM_APDU [11:43:27]CAPDU: 80 11 00 00 [11:43:27]Write to MH i2c: E2 08 00 A9 9F 80 11 00 00 00 00 00 00 C2 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:27]Read from MH i2c: E2 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 17 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: E2 17 00 A9 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 1A [11:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:43:27]wFMCommunicate OK [11:43:27]CreateOFDProtocolMessage done [11:43:27]OFDSenderStorePacket 27143 [11:43:27]StoreOFDPacket docnum=27143 [11:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 B5 E0 07 01 DD A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FC CC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 07 6A 00 00 35 04 06 00 1F BD B2 8D 72 71 B9 6D 50 6A E6 D9 7B 55 [11:43:27]CheckFolder [11:43:27]dirname=/storage/ofd_packets [11:43:27]CheckFolder done [11:43:27]ProducePacketName [11:43:27]name=ofd_packets/00027143 [11:43:27]NVStorageSaveData ofd_packets/00027143 [11:43:27]File name is /storage/ofd_packets/00027143 [11:43:27]Write 301 bytes [11:43:27]NVStorageSaveData done [11:43:27]OFDSenderStorePacket done [11:43:27]KKMCreateOFDPacket done [11:43:27]NVStorageSaveData kkm_last_timestamp [11:43:27]File name is /storage/kkm_last_timestamp [11:43:27]Write 4 bytes [11:43:27]NVStorageSaveData done [11:43:27]ExternCall_PrintAddStr [11:43:27]wPrintStart [11:43:27]Write to MH i2c: 01 00 00 AA 9F 49 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 AA 9F 00 00 00 00 00 FF 0F 5E [11:43:27]RasterBufferAndPrint [11:43:27]line Счет N : (1)359896 [11:43:27]line ИНН: 02508201610067 [11:43:27]line Контрольно-Кассовый Чек [11:43:27]line ПРОДАЖА [11:43:27]line ТРК (МРК, ГНК) : 61 [11:43:27]line Товар: 2710124130 [11:43:27]line Аи-92-К-5 [11:43:27]line 15.780 * 63.40 [11:43:27]line = 1000.45 [11:43:27]line НДС 12% НСП 1% [11:43:27]line > о реализуемом товаре [11:43:27]line ОКРУГЛЕНИЕ: -0.45 [11:43:27]line ИТОГО: 1000.00 [11:43:27]line Внесено: 1000.00 [11:43:27]line СДАЧА: 0.00 [11:43:27]line НСП 1% : 8.85 [11:43:27]line НДС 12% : 106.24 [11:43:27]line Наличными: 1000.00 [11:43:27]line Безнал.: 0.00 [11:43:27]line Место: АЗС № 122 "Партнер Нефть" [11:43:27]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [11:43:27]line СНО: Общий режим [11:43:27]line Чек 30 11.04.2024 11:43 [11:43:27]line Смена: 317 ФФД: 1.0 [11:43:27]line ЗНМ: 0300000147 [11:43:27]line РНМ: 0000000000091578 [11:43:27]line Версия ККМ: 001 [11:43:27]line ФМ: 0000000000874657 [11:43:27]line ФД: 27143 [11:43:27]line ФПД: 34899604894321 [11:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T114356&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27143&fm=34899604894321&tin=02508201610067®Number=0000000000091578&sum=100000 [11:43:27]OFD Sender: Processing packet 27143 [packets to send 44, broken 43] [11:43:27]ProducePacketName [11:43:27]name=ofd_packets/00027143 [11:43:27]OFD Sender: To server: pG, [11:43:27]CommunicateWithHost lk.salyk.kg:30040 [11:43:27]ConnectInit lk.salyk.kg [11:43:27]written 0, free lines is 4095 [11:43:27]Connected sock=10 [11:43:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 B5 E0 07 01 DD A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FC CC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 07 6A 00 00 35 04 06 00 1F BD B2 8D 72 71 B9 6D 50 6A E6 D9 7B 55 [11:43:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 8A 9B 47 00 42 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 35 37 10 04 04 00 07 6A 00 00 F4 03 04 00 5D 74 17 66 B6 04 01 00 00 8E B1 E0 4E 7C AB F2 E4 [11:43:27]CommunicateWithHost err = 0 [11:43:27]CheckOFDResponse [11:43:27]1017 (14) - 77093643461234 [11:43:27]1041 (16) - 0000000000874657 [11:43:27]1040 (4) - 27143 [11:43:27]1012 (4) - 11.04.2024 05:25 [11:43:27]1206 (1) - 0 [11:43:27]OFD Sender: Remove packet 27143 [11:43:27]ProducePacketName [11:43:27]name=ofd_packets/00027143 [11:43:27]NVStorageDeleteData [11:43:27]Write to MH i2c: 01 00 00 D5 9F 74 [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: 01 07 00 D5 9F 00 00 00 00 00 7A 0C 01 [11:43:27]RasterBufferAndPrint [11:43:27]line [11:43:27]line [11:43:27]line [11:43:27]line [11:43:27]line [11:43:27]written 0, free lines is 3198 [11:43:27]MH_Cut [11:43:27]Write to MH i2c: D1 01 00 DC 9F 01 4D [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: D1 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: D1 01 00 [11:43:27]MH_I2C_Read... [11:43:27]Read from MH i2c: D1 01 00 DC 9F 00 4C [11:43:27]Write to MH i2c: 01 00 00 DD 9F 7C [11:43:27]Write i2c OK [11:43:27]MH_I2C_Read... [11:43:28]OFD Sender: No OFD packet to send [11:43:28]*** Cut start [11:43:28]*** Partial cut [11:43:28]*** CUTSNS_PIN = 1 [11:43:28]*** CUTSNS_PIN = 0 [11:43:29]*** Brake cut motor [11:43:29]Read from MH i2c: 01 [11:43:29]MH_I2C_Read... [11:43:29]*** Stop cut motor [11:43:29]*** Cut end [11:43:29]Read from MH i2c: 01 07 00 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: 01 07 00 DD 9F 00 00 00 00 00 FF 0F 91 [11:43:29]process_action close_receipt done [11:43:29]requested_data is exist [11:43:29]produce_requested_data [11:43:29]requested_item fm.sn is exist - process it [11:43:29]wFMCommunicate request_size=4 [11:43:29]MH_SAM_APDU [11:43:29]CAPDU: 80 11 00 00 [11:43:29]Write to MH i2c: E2 08 00 DE 9F 80 11 00 00 00 00 00 00 F7 [11:43:29]Write i2c OK [11:43:29]MH_I2C_Read... [11:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:29]Read from MH i2c: E2 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 17 00 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 17 00 DE 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 4F [11:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:43:29]wFMCommunicate OK [11:43:29]requested_item fd.num is exist - process it [11:43:29]SAM_PROTO_GetFieldsCounters [11:43:29]wFMCommunicate request_size=4 [11:43:29]MH_SAM_APDU [11:43:29]CAPDU: 80 13 00 00 [11:43:29]Write to MH i2c: E2 08 00 DF 9F 80 13 00 00 00 00 00 00 FA [11:43:29]Write i2c OK [11:43:29]MH_I2C_Read... [11:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:29]Read from MH i2c: E2 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 62 00 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 62 00 DF 9F 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 07 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [11:43:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 07 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:29]wFMCommunicate OK [11:43:29]SAM_PROTO_GetFieldsCounters done [11:43:29]requested_item shift.num is exist - process it [11:43:29]requested_item shift.opened is exist - process it [11:43:29]req_shift_opened [11:43:29]FM_GetShiftState [11:43:29]SAM_PROTO_GetShiftState [11:43:29]wFMCommunicate request_size=4 [11:43:29]MH_SAM_APDU [11:43:29]CAPDU: 80 13 01 00 [11:43:29]Write to MH i2c: E2 08 00 E0 9F 80 13 01 00 00 00 00 00 FC [11:43:29]Write i2c OK [11:43:29]MH_I2C_Read... [11:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:29]Read from MH i2c: E2 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 0E 00 [11:43:29]MH_I2C_Read... [11:43:29]Read from MH i2c: E2 0E 00 E0 9F 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 46 [11:43:29]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:43:29]wFMCommunicate OK [11:43:29]SAM_PROTO_GetShiftState done [11:43:29]FM_GetShiftState done [11:43:29]req_shift_opened done [11:43:29]requested_item shift.open_date is exist - process it [11:43:29]req_shift_open_date [11:43:29]req_shift_open_date done [11:43:29]produce_requested_data done [11:43:29]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27143,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [11:43:29]process_action_free close_receipt [11:43:29]json_value_free [11:43:29]json_value_free done [11:43:29]process_json_proto returns [11:43:29]Send response to host [11:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27143,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [11:43:29]free response buf [11:43:29]execute_script done [11:43:29]execute_script returns [11:43:29]free content buf [11:43:29]Sock 8.Close socket [11:43:29]Sock 8.Thread stoped [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:33]accept exits with 9 [11:48:33]New connection [11:48:33]New thread 3066871140 created [11:48:33]Thread 3067014500 joined [11:48:33]Waiting for new connection... [11:48:33] Sock 9.Parse request [11:48:33]Sock 9.Check first char [11:48:33]Sock 9.First char is OK [11:48:33]request: POST /json_proto HTTP/1.0 [11:48:33]Method: POST [11:48:33]URL: /json_proto [11:48:33]Method is POST - this is cgi request [11:48:33]url: /json_proto [11:48:33]query_string will be loaded in cgi processing [11:48:33]execute_cgi json_proto POST (null) [11:48:33]execute_cgi path=json_proto method=POST [11:48:33]POST find Content-Length [11:48:33]Host: 172.17.35.3:8080 [11:48:33]Content-Length: 800 [11:48:33]Content-Type: application/json [11:48:33] [11:48:33]POST finish read [11:48:33]Found Content-Length = 800 [11:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:33]execute_script... [11:48:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:33]POST & json_proto [11:48:33]process_json_proto [11:48:33]json parsed OK: [11:48:33]protocol is kg_v1.0 [11:48:33]action value=close_receipt [11:48:33]process_action close_receipt [11:48:33]cmd_close_receipt [11:48:33]MH_GetDate [11:48:33]Write to MH i2c: F0 00 00 E1 9F 6F [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: F0 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: F0 09 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: F0 09 00 E1 9F 00 31 CE 17 66 2B 11 66 64 FA [11:48:33]GetLastDocTimeStamp 1712835836 [11:48:33]current date 1712836145 [11:48:33]FM_GetShiftState [11:48:33]SAM_PROTO_GetShiftState [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 13 01 00 [11:48:33]Write to MH i2c: E2 08 00 E2 9F 80 13 01 00 00 00 00 00 FE [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 E2 9F 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 48 [11:48:33]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:48:33]wFMCommunicate OK [11:48:33]SAM_PROTO_GetShiftState done [11:48:33]FM_GetShiftState done [11:48:33]opened in 1712795538 [11:48:33]opened+sec_in_day 1712881938 [11:48:33]quantity*price = 50022 [11:48:33]sum+1 = 50024 [11:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.23 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.23 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 31 11.04.2024 11:49 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 27144 ФПД: 201844097605287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T114905&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27144&fm=201844097605287&tin=02508201610067®Number=0000000000091578&sum=50023 [11:48:34]StoreToDocumentArchive [11:48:34]shift 317 fd 27144 [11:48:34]save to /storage/0317/doc_00027144 [11:48:34]save last doc name /storage/0317/doc_00027144 to /storage/kkm_last_doc_name [11:48:34]save OK [11:48:34]Clear old archive folders... [11:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:34]tlvbuf is 011C5780 [11:48:34]SAM_PROTO_ClearQueue [11:48:34]wFMCommunicate request_size=4 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 09 00 00 [11:48:34]Write to MH i2c: E2 08 00 EF 9F 80 09 00 00 00 00 00 00 00 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 EF 9F 00 90 00 02 [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]SAM_PROTO_ClearQueue done [11:48:34]KKMCreateOFDPacket [11:48:34]OFDProtocolAddRootSTLVToBuf [11:48:34]FM_MakeSignedData [11:48:34]FM_MakeSignedData [11:48:34]SAM_PROTO_SignData [11:48:34]wFMCommunicate request_size=4 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 0D 01 02 [11:48:34]Write to MH i2c: E2 08 00 F0 9F 80 0D 01 02 00 00 00 00 08 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 F0 9F 00 90 00 03 [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]wFMCommunicate request_size=255 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 31 CE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 6A 00 00 35 04 06 00 B7 [11:48:34]Write to MH i2c: E2 02 01 F1 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 31 CE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 6A 00 00 35 04 06 00 B7 00 00 F8 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:35]Read from MH i2c: E2 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 03 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 03 00 F1 9F 00 90 00 04 [11:48:35]RAPDU: 90 00 [11:48:35]wFMCommunicate OK [11:48:35]wFMCommunicate request_size=10 [11:48:35]MH_SAM_APDU [11:48:35]CAPDU: 80 0D 02 02 05 93 7D BC DE A7 [11:48:35]Write to MH i2c: E2 0D 00 F2 9F 80 0D 02 02 05 00 93 7D BC DE A7 00 00 66 [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:35]Read from MH i2c: E2 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 03 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 03 00 F2 9F 00 90 00 05 [11:48:35]RAPDU: 90 00 [11:48:35]wFMCommunicate OK [11:48:35]wFMCommunicate request_size=4 [11:48:35]MH_SAM_APDU [11:48:35]CAPDU: 80 0D 03 02 [11:48:35]Write to MH i2c: E2 08 00 F3 9F 80 0D 03 02 00 00 00 00 0D [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:35]Read from MH i2c: E2 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 0B 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 0B 00 F3 9F 00 09 7E D4 98 F7 CB 2D BF 90 00 AF [11:48:35]RAPDU: 09 7E D4 98 F7 CB 2D BF 90 00 [11:48:35]wFMCommunicate OK [11:48:35]SAM_PROTO_SignData done [11:48:35]FM_MakeSignedData done [11:48:35]CreateOFDProtocolMessage [11:48:35]wFMCommunicate request_size=4 [11:48:35]MH_SAM_APDU [11:48:35]CAPDU: 80 11 00 00 [11:48:35]Write to MH i2c: E2 08 00 F4 9F 80 11 00 00 00 00 00 00 0D [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:35]Read from MH i2c: E2 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 17 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 17 00 F4 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 65 [11:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:48:35]wFMCommunicate OK [11:48:35]CreateOFDProtocolMessage done [11:48:35]OFDSenderStorePacket 27144 [11:48:35]StoreOFDPacket docnum=27144 [11:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 23 64 07 01 6C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 31 CE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 6A 00 00 35 04 06 00 B7 93 7D BC DE A7 09 7E D4 98 F7 CB 2D BF [11:48:35]CheckFolder [11:48:35]dirname=/storage/ofd_packets [11:48:35]CheckFolder done [11:48:35]ProducePacketName [11:48:35]name=ofd_packets/00027144 [11:48:35]NVStorageSaveData ofd_packets/00027144 [11:48:35]File name is /storage/ofd_packets/00027144 [11:48:35]Write 301 bytes [11:48:35]NVStorageSaveData done [11:48:35]OFDSenderStorePacket done [11:48:35]KKMCreateOFDPacket done [11:48:35]NVStorageSaveData kkm_last_timestamp [11:48:35]File name is /storage/kkm_last_timestamp [11:48:35]Write 4 bytes [11:48:35]NVStorageSaveData done [11:48:35]ExternCall_PrintAddStr [11:48:35]wPrintStart [11:48:35]Write to MH i2c: 01 00 00 F5 9F 94 [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: 01 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: 01 07 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: 01 07 00 F5 9F 00 00 00 00 00 FF 0F A9 [11:48:35]RasterBufferAndPrint [11:48:35]line Счет N : (1)359897 [11:48:35]line ИНН: 02508201610067 [11:48:35]line Контрольно-Кассовый Чек [11:48:35]line ПРОДАЖА [11:48:35]line ТРК (МРК, ГНК) : 51 [11:48:35]line Товар: 2710124130 [11:48:35]line Аи-92-К-5 [11:48:35]line 7.890 * 63.40 [11:48:35]line = 500.23 [11:48:35]line НДС 12% НСП 1% [11:48:35]line > о реализуемом товаре [11:48:35]line ИТОГО: 500.23 [11:48:35]line НСП 1% : 4.43 [11:48:35]line НДС 12% : 53.12 [11:48:35]line Наличными: 0.00 [11:48:35]line Безнал.: 500.23 [11:48:35]line Место: АЗС № 122 "Партнер Нефть" [11:48:35]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [11:48:35]line СНО: Общий режим [11:48:35]line Чек 31 11.04.2024 11:49 [11:48:35]line Смена: 317 ФФД: 1.0 [11:48:35]line ЗНМ: 0300000147 [11:48:35]line РНМ: 0000000000091578 [11:48:35]line Версия ККМ: 001 [11:48:35]line Платежная система: O! деньги [11:48:35]line ФМ: 0000000000874657 [11:48:35]line ФД: 27144 [11:48:35]line ФПД: 201844097605287 [11:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T114905&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27144&fm=201844097605287&tin=02508201610067®Number=0000000000091578&sum=50023 [11:48:35]OFD Sender: Processing packet 27144 [packets to send 44, broken 43] [11:48:35]ProducePacketName [11:48:35]name=ofd_packets/00027144 [11:48:35]OFD Sender: To server: pG, [11:48:35]CommunicateWithHost lk.salyk.kg:30040 [11:48:35]ConnectInit lk.salyk.kg [11:48:35]written 0, free lines is 4095 [11:48:35]Connected sock=10 [11:48: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 35 37 0F 01 00 00 23 64 07 01 6C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 31 CE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 6A 00 00 35 04 06 00 B7 93 7D BC DE A7 09 7E D4 98 F7 CB 2D BF [11:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 C5 D4 47 00 1C 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 6A 00 00 F4 03 04 00 91 75 17 66 B6 04 01 00 00 41 A7 64 90 F1 EF DF 62 [11:48:35]CommunicateWithHost err = 0 [11:48:35]CheckOFDResponse [11:48:35]1017 (14) - 77093643461234 [11:48:35]1041 (16) - 0000000000874657 [11:48:35]1040 (4) - 27144 [11:48:35]1012 (4) - 11.04.2024 05:30 [11:48:35]1206 (1) - 0 [11:48:35]OFD Sender: Remove packet 27144 [11:48:35]ProducePacketName [11:48:35]name=ofd_packets/00027144 [11:48:35]NVStorageDeleteData [11:48:36]Write to MH i2c: 01 00 00 1F A0 BF [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: 01 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: 01 07 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: 01 07 00 1F A0 00 00 00 00 00 93 0C 65 [11:48:36]RasterBufferAndPrint [11:48:36]line [11:48:36]line [11:48:36]line [11:48:36]line [11:48:36]line [11:48:36]written 0, free lines is 3222 [11:48:36]MH_Cut [11:48:36]Write to MH i2c: D1 01 00 26 A0 01 98 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: D1 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: D1 01 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: D1 01 00 26 A0 00 97 [11:48:36]Write to MH i2c: 01 00 00 27 A0 C7 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]OFD Sender: No OFD packet to send [11:48:37]*** Cut start [11:48:37]*** Partial cut [11:48:37]*** CUTSNS_PIN = 1 [11:48:37]*** CUTSNS_PIN = 0 [11:48:37]*** Brake cut motor [11:48:37]Read from MH i2c: 01 [11:48:37]MH_I2C_Read... [11:48:37]*** Stop cut motor [11:48:37]*** Cut end [11:48:37]Read from MH i2c: 01 07 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: 01 07 00 27 A0 00 00 00 00 00 FF 0F DC [11:48:37]process_action close_receipt done [11:48:37]requested_data is exist [11:48:37]produce_requested_data [11:48:37]requested_item fm.sn is exist - process it [11:48:37]wFMCommunicate request_size=4 [11:48:37]MH_SAM_APDU [11:48:37]CAPDU: 80 11 00 00 [11:48:37]Write to MH i2c: E2 08 00 28 A0 80 11 00 00 00 00 00 00 42 [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 17 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 17 00 28 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 9A [11:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:48:37]wFMCommunicate OK [11:48:37]requested_item fd.num is exist - process it [11:48:37]SAM_PROTO_GetFieldsCounters [11:48:37]wFMCommunicate request_size=4 [11:48:37]MH_SAM_APDU [11:48:37]CAPDU: 80 13 00 00 [11:48:37]Write to MH i2c: E2 08 00 29 A0 80 13 00 00 00 00 00 00 45 [11:48:37]Write i2c OK [11:48:37]MH_I2C_Read... [11:48:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:38]Read from MH i2c: E2 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 62 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 62 00 29 A0 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 08 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [11:48: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 08 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:38]wFMCommunicate OK [11:48:38]SAM_PROTO_GetFieldsCounters done [11:48:38]requested_item shift.num is exist - process it [11:48:38]requested_item shift.opened is exist - process it [11:48:38]req_shift_opened [11:48:38]FM_GetShiftState [11:48:38]SAM_PROTO_GetShiftState [11:48:38]wFMCommunicate request_size=4 [11:48:38]MH_SAM_APDU [11:48:38]CAPDU: 80 13 01 00 [11:48:38]Write to MH i2c: E2 08 00 2A A0 80 13 01 00 00 00 00 00 47 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:38]Read from MH i2c: E2 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 0E 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 0E 00 2A A0 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 91 [11:48:38]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:48:38]wFMCommunicate OK [11:48:38]SAM_PROTO_GetShiftState done [11:48:38]FM_GetShiftState done [11:48:38]req_shift_opened done [11:48:38]requested_item shift.open_date is exist - process it [11:48:38]req_shift_open_date [11:48:38]req_shift_open_date done [11:48:38]produce_requested_data done [11:48:38]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27144,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [11:48:38]process_action_free close_receipt [11:48:38]json_value_free [11:48:38]json_value_free done [11:48:38]process_json_proto returns [11:48:38]Send response to host [11:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27144,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [11:48:38]free response buf [11:48:38]execute_script done [11:48:38]execute_script returns [11:48:38]free content buf [11:48:38]Sock 9.Close socket [11:48:38]Sock 9.Thread stoped [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:04]accept exits with 8 [11:51:04]New connection [11:51:04]New thread 3067014500 created [11:51:04]Thread 3066871140 joined [11:51:04]Waiting for new connection... [11:51:04] Sock 8.Parse request [11:51:04]Sock 8.Check first char [11:51:04]Sock 8.First char is OK [11:51:04]request: POST /json_proto HTTP/1.0 [11:51:04]Method: POST [11:51:04]URL: /json_proto [11:51:04]Method is POST - this is cgi request [11:51:04]url: /json_proto [11:51:04]query_string will be loaded in cgi processing [11:51:04]execute_cgi json_proto POST (null) [11:51:04]execute_cgi path=json_proto method=POST [11:51:04]POST find Content-Length [11:51:04]Host: 172.17.35.3:8080 [11:51:04]Content-Length: 682 [11:51:04]Content-Type: application/json [11:51:04] [11:51:04]POST finish read [11:51:04]Found Content-Length = 682 [11:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:04]execute_script... [11:51:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:04]POST & json_proto [11:51:04]process_json_proto [11:51:04]json parsed OK: [11:51:04]protocol is kg_v1.0 [11:51:04]action value=close_receipt [11:51:04]process_action close_receipt [11:51:04]cmd_close_receipt [11:51:04]MH_GetDate [11:51:04]Write to MH i2c: F0 00 00 2B A0 BA [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: F0 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: F0 09 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: F0 09 00 2B A0 00 C8 CE 17 66 2B 11 66 64 DC [11:51:04]GetLastDocTimeStamp 1712836145 [11:51:04]current date 1712836296 [11:51:04]FM_GetShiftState [11:51:04]SAM_PROTO_GetShiftState [11:51:04]wFMCommunicate request_size=4 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 13 01 00 [11:51:04]Write to MH i2c: E2 08 00 2C A0 80 13 01 00 00 00 00 00 49 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 0E 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 0E 00 2C A0 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 93 [11:51:04]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:51:04]wFMCommunicate OK [11:51:04]SAM_PROTO_GetShiftState done [11:51:04]FM_GetShiftState done [11:51:04]opened in 1712795538 [11:51:04]opened+sec_in_day 1712881938 [11:51:04]quantity*price = 300038 [11:51:04]sum+1 = 300040 [11:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 32 11.04.2024 11:51 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27145 ФПД: 109532135198297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T115136&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27145&fm=109532135198297&tin=02508201610067®Number=0000000000091578&sum=300000 [11:51:05]StoreToDocumentArchive [11:51:05]shift 317 fd 27145 [11:51:05]save to /storage/0317/doc_00027145 [11:51:05]save last doc name /storage/0317/doc_00027145 to /storage/kkm_last_doc_name [11:51:05]save OK [11:51:06]Clear old archive folders... [11:51:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:06]tlvbuf is 00EDB540 [11:51:06]SAM_PROTO_ClearQueue [11:51:06]wFMCommunicate request_size=4 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 09 00 00 [11:51:06]Write to MH i2c: E2 08 00 39 A0 80 09 00 00 00 00 00 00 4B [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 39 A0 00 90 00 4D [11:51:06]RAPDU: 90 00 [11:51:06]wFMCommunicate OK [11:51:06]SAM_PROTO_ClearQueue done [11:51:06]KKMCreateOFDPacket [11:51:06]OFDProtocolAddRootSTLVToBuf [11:51:06]FM_MakeSignedData [11:51:06]FM_MakeSignedData [11:51:06]SAM_PROTO_SignData [11:51:06]wFMCommunicate request_size=4 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 0D 01 02 [11:51:06]Write to MH i2c: E2 08 00 3A A0 80 0D 01 02 00 00 00 00 53 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 3A A0 00 90 00 4E [11:51:06]RAPDU: 90 00 [11:51:06]wFMCommunicate OK [11:51:06]wFMCommunicate request_size=255 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C8 CE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 09 6A 00 00 35 04 06 00 63 [11:51:06]Write to MH i2c: E2 02 01 3B A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C8 CE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 09 6A 00 00 35 04 06 00 63 00 00 71 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 3B A0 00 90 00 4F [11:51:06]RAPDU: 90 00 [11:51:06]wFMCommunicate OK [11:51:06]wFMCommunicate request_size=10 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 0D 02 02 05 9E 70 02 8E 59 [11:51:06]Write to MH i2c: E2 0D 00 3C A0 80 0D 02 02 05 00 9E 70 02 8E 59 00 00 57 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 03 00 3C A0 00 90 00 50 [11:51:06]RAPDU: 90 00 [11:51:06]wFMCommunicate OK [11:51:06]wFMCommunicate request_size=4 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 0D 03 02 [11:51:06]Write to MH i2c: E2 08 00 3D A0 80 0D 03 02 00 00 00 00 58 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 0B 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 0B 00 3D A0 00 F6 7C EC 7D BE 97 C7 81 90 00 D1 [11:51:06]RAPDU: F6 7C EC 7D BE 97 C7 81 90 00 [11:51:06]wFMCommunicate OK [11:51:06]SAM_PROTO_SignData done [11:51:06]FM_MakeSignedData done [11:51:06]CreateOFDProtocolMessage [11:51:06]wFMCommunicate request_size=4 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 11 00 00 [11:51:06]Write to MH i2c: E2 08 00 3E A0 80 11 00 00 00 00 00 00 58 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 17 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 17 00 3E A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B0 [11:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:51:06]wFMCommunicate OK [11:51:06]CreateOFDProtocolMessage done [11:51:06]OFDSenderStorePacket 27145 [11:51:06]StoreOFDPacket docnum=27145 [11:51:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 07 D6 07 01 1C C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C8 CE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 09 6A 00 00 35 04 06 00 63 9E 70 02 8E 59 F6 7C EC 7D BE 97 C7 81 [11:51:06]CheckFolder [11:51:06]dirname=/storage/ofd_packets [11:51:06]CheckFolder done [11:51:06]ProducePacketName [11:51:06]name=ofd_packets/00027145 [11:51:06]NVStorageSaveData ofd_packets/00027145 [11:51:06]File name is /storage/ofd_packets/00027145 [11:51:06]Write 301 bytes [11:51:06]NVStorageSaveData done [11:51:06]OFDSenderStorePacket done [11:51:06]KKMCreateOFDPacket done [11:51:06]NVStorageSaveData kkm_last_timestamp [11:51:06]File name is /storage/kkm_last_timestamp [11:51:06]Write 4 bytes [11:51:06]NVStorageSaveData done [11:51:06]ExternCall_PrintAddStr [11:51:06]wPrintStart [11:51:06]Write to MH i2c: 01 00 00 3F A0 DF [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: 01 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: 01 07 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: 01 07 00 3F A0 00 00 00 00 00 FF 0F F4 [11:51:06]RasterBufferAndPrint [11:51:06]line Счет N : (1)359898 [11:51:06]line ИНН: 02508201610067 [11:51:06]line Контрольно-Кассовый Чек [11:51:06]line ПРОДАЖА [11:51:06]line ТРК (МРК, ГНК) : 63 [11:51:06]line Товар: 2710124500 [11:51:06]line Аи-95-К-5 [11:51:06]line 41.730 * 71.90 [11:51:06]line = 3000.39 [11:51:06]line НДС 12% НСП 1% [11:51:06]line > о реализуемом товаре [11:51:06]line ОКРУГЛЕНИЕ: -0.39 [11:51:06]line ИТОГО: 3000.00 [11:51:06]line Внесено: 3000.00 [11:51:06]line СДАЧА: 0.00 [11:51:06]line НСП 1% : 26.55 [11:51:06]line НДС 12% : 318.62 [11:51:06]line Наличными: 3000.00 [11:51:06]line Безнал.: 0.00 [11:51:06]line Место: АЗС № 122 "Партнер Нефть" [11:51:06]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [11:51:06]line СНО: Общий режим [11:51:06]line Чек 32 11.04.2024 11:51 [11:51:06]line Смена: 317 ФФД: 1.0 [11:51:06]line ЗНМ: 0300000147 [11:51:06]line РНМ: 0000000000091578 [11:51:06]line Версия ККМ: 001 [11:51:06]line ФМ: 0000000000874657 [11:51:06]line ФД: 27145 [11:51:06]line ФПД: 109532135198297 [11:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T115136&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27145&fm=109532135198297&tin=02508201610067®Number=0000000000091578&sum=300000 [11:51:06]OFD Sender: Processing packet 27145 [packets to send 44, broken 43] [11:51:06]ProducePacketName [11:51:06]name=ofd_packets/00027145 [11:51:06]OFD Sender: To server: pG, [11:51:06]CommunicateWithHost lk.salyk.kg:30040 [11:51:06]ConnectInit lk.salyk.kg [11:51:06]written 0, free lines is 4095 [11:51:06]Connected sock=10 [11:51: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 35 37 0F 01 00 00 07 D6 07 01 1C C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C8 CE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 09 6A 00 00 35 04 06 00 63 9E 70 02 8E 59 F6 7C EC 7D BE 97 C7 81 [11:51: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 35 37 4F 00 00 00 16 BA 47 00 16 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 35 37 10 04 04 00 09 6A 00 00 F4 03 04 00 28 76 17 66 B6 04 01 00 00 F5 0A 9A CF 3A 6B 5F 71 [11:51:07]CommunicateWithHost err = 0 [11:51:07]CheckOFDResponse [11:51:07]1017 (14) - 77093643461234 [11:51:07]1041 (16) - 0000000000874657 [11:51:07]1040 (4) - 27145 [11:51:07]1012 (4) - 11.04.2024 05:33 [11:51:07]1206 (1) - 0 [11:51:07]OFD Sender: Remove packet 27145 [11:51:07]ProducePacketName [11:51:07]name=ofd_packets/00027145 [11:51:07]NVStorageDeleteData [11:51:07]Write to MH i2c: 01 00 00 6A A0 0A [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 6A A0 00 00 00 00 00 86 0C A3 [11:51:07]RasterBufferAndPrint [11:51:07]line [11:51:07]line [11:51:07]line [11:51:07]line [11:51:07]line [11:51:07]written 0, free lines is 3210 [11:51:07]MH_Cut [11:51:07]Write to MH i2c: D1 01 00 71 A0 01 E3 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: D1 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: D1 01 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: D1 01 00 71 A0 00 E2 [11:51:07]Write to MH i2c: 01 00 00 72 A0 12 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]OFD Sender: No OFD packet to send [11:51:08]*** Cut start [11:51:08]*** Partial cut [11:51:08]*** CUTSNS_PIN = 1 [11:51:08]*** CUTSNS_PIN = 0 [11:51:08]*** Brake cut motor [11:51:09]Read from MH i2c: 01 [11:51:09]MH_I2C_Read... [11:51:09]*** Stop cut motor [11:51:09]*** Cut end [11:51:09]Read from MH i2c: 01 07 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: 01 07 00 72 A0 00 00 00 00 00 FF 0F 27 [11:51:09]process_action close_receipt done [11:51:09]requested_data is exist [11:51:09]produce_requested_data [11:51:09]requested_item fm.sn is exist - process it [11:51:09]wFMCommunicate request_size=4 [11:51:09]MH_SAM_APDU [11:51:09]CAPDU: 80 11 00 00 [11:51:09]Write to MH i2c: E2 08 00 73 A0 80 11 00 00 00 00 00 00 8D [11:51:09]Write i2c OK [11:51:09]MH_I2C_Read... [11:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:09]Read from MH i2c: E2 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 17 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 17 00 73 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E5 [11:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:51:09]wFMCommunicate OK [11:51:09]requested_item fd.num is exist - process it [11:51:09]SAM_PROTO_GetFieldsCounters [11:51:09]wFMCommunicate request_size=4 [11:51:09]MH_SAM_APDU [11:51:09]CAPDU: 80 13 00 00 [11:51:09]Write to MH i2c: E2 08 00 74 A0 80 13 00 00 00 00 00 00 90 [11:51:09]Write i2c OK [11:51:09]MH_I2C_Read... [11:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:09]Read from MH i2c: E2 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 62 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 62 00 74 A0 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 09 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [11:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 09 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:09]wFMCommunicate OK [11:51:09]SAM_PROTO_GetFieldsCounters done [11:51:09]requested_item shift.num is exist - process it [11:51:09]requested_item shift.opened is exist - process it [11:51:09]req_shift_opened [11:51:09]FM_GetShiftState [11:51:09]SAM_PROTO_GetShiftState [11:51:09]wFMCommunicate request_size=4 [11:51:09]MH_SAM_APDU [11:51:09]CAPDU: 80 13 01 00 [11:51:09]Write to MH i2c: E2 08 00 75 A0 80 13 01 00 00 00 00 00 92 [11:51:09]Write i2c OK [11:51:09]MH_I2C_Read... [11:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:09]Read from MH i2c: E2 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 0E 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 0E 00 75 A0 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 DC [11:51:09]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:51:09]wFMCommunicate OK [11:51:09]SAM_PROTO_GetShiftState done [11:51:09]FM_GetShiftState done [11:51:09]req_shift_opened done [11:51:09]requested_item shift.open_date is exist - process it [11:51:09]req_shift_open_date [11:51:09]req_shift_open_date done [11:51:09]produce_requested_data done [11:51:09]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27145,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [11:51:09]process_action_free close_receipt [11:51:09]json_value_free [11:51:09]json_value_free done [11:51:09]process_json_proto returns [11:51:09]Send response to host [11:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27145,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [11:51:09]free response buf [11:51:09]execute_script done [11:51:09]execute_script returns [11:51:09]free content buf [11:51:09]Sock 8.Close socket [11:51:09]Sock 8.Thread stoped [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:45]accept exits with 9 [11:58:45]New connection [11:58:45]New thread 3066871140 created [11:58:45]Thread 3067014500 joined [11:58:45]Waiting for new connection... [11:58:45] Sock 9.Parse request [11:58:45]Sock 9.Check first char [11:58:45]Sock 9.First char is OK [11:58:45]request: POST /json_proto HTTP/1.0 [11:58:45]Method: POST [11:58:45]URL: /json_proto [11:58:45]Method is POST - this is cgi request [11:58:45]url: /json_proto [11:58:45]query_string will be loaded in cgi processing [11:58:45]execute_cgi json_proto POST (null) [11:58:45]execute_cgi path=json_proto method=POST [11:58:45]POST find Content-Length [11:58:45]Host: 172.17.35.3:8080 [11:58:45]Content-Length: 677 [11:58:45]Content-Type: application/json [11:58:45] [11:58:45]POST finish read [11:58:45]Found Content-Length = 677 [11:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 3.160, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:45]execute_script... [11:58:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 3.160, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:45]POST & json_proto [11:58:45]process_json_proto [11:58:45]json parsed OK: [11:58:45]protocol is kg_v1.0 [11:58:45]action value=close_receipt [11:58:45]process_action close_receipt [11:58:45]cmd_close_receipt [11:58:45]MH_GetDate [11:58:45]Write to MH i2c: F0 00 00 76 A0 05 [11:58:45]Write i2c OK [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: F0 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: F0 09 00 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: F0 09 00 76 A0 00 94 D0 17 66 2B 11 66 64 F5 [11:58:45]GetLastDocTimeStamp 1712836296 [11:58:45]current date 1712836756 [11:58:45]FM_GetShiftState [11:58:45]SAM_PROTO_GetShiftState [11:58:45]wFMCommunicate request_size=4 [11:58:45]MH_SAM_APDU [11:58:45]CAPDU: 80 13 01 00 [11:58:45]Write to MH i2c: E2 08 00 77 A0 80 13 01 00 00 00 00 00 94 [11:58:45]Write i2c OK [11:58:45]MH_I2C_Read... [11:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:45]Read from MH i2c: E2 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 0E 00 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 0E 00 77 A0 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 DE [11:58:45]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:58:45]wFMCommunicate OK [11:58:45]SAM_PROTO_GetShiftState done [11:58:45]FM_GetShiftState done [11:58:45]opened in 1712795538 [11:58:45]opened+sec_in_day 1712881938 [11:58:45]quantity*price = 20034 [11:58:45]sum+1 = 20035 [11:58:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 33 11.04.2024 11:59 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27146 ФПД: 183127115388392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T115916&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27146&fm=183127115388392&tin=02508201610067®Number=0000000000091578&sum=20000 [11:58:46]StoreToDocumentArchive [11:58:46]shift 317 fd 27146 [11:58:46]save to /storage/0317/doc_00027146 [11:58:46]save last doc name /storage/0317/doc_00027146 to /storage/kkm_last_doc_name [11:58:46]save OK [11:58:46]Clear old archive folders... [11:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:46]tlvbuf is 00E54910 [11:58:46]SAM_PROTO_ClearQueue [11:58:46]wFMCommunicate request_size=4 [11:58:46]MH_SAM_APDU [11:58:46]CAPDU: 80 09 00 00 [11:58:46]Write to MH i2c: E2 08 00 84 A0 80 09 00 00 00 00 00 00 96 [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:46]Read from MH i2c: E2 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 03 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 03 00 84 A0 00 90 00 98 [11:58:46]RAPDU: 90 00 [11:58:46]wFMCommunicate OK [11:58:46]SAM_PROTO_ClearQueue done [11:58:46]KKMCreateOFDPacket [11:58:46]OFDProtocolAddRootSTLVToBuf [11:58:46]FM_MakeSignedData [11:58:46]FM_MakeSignedData [11:58:46]SAM_PROTO_SignData [11:58:46]wFMCommunicate request_size=4 [11:58:46]MH_SAM_APDU [11:58:46]CAPDU: 80 0D 01 02 [11:58:46]Write to MH i2c: E2 08 00 85 A0 80 0D 01 02 00 00 00 00 9E [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:46]Read from MH i2c: E2 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 03 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 03 00 85 A0 00 90 00 99 [11:58:46]RAPDU: 90 00 [11:58:46]wFMCommunicate OK [11:58:46]wFMCommunicate request_size=255 [11:58:46]MH_SAM_APDU [11:58:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 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 4F 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 21 00 00 00 F4 03 04 00 94 D0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0A 6A 00 00 35 04 06 00 A6 [11:58:46]Write to MH i2c: E2 02 01 86 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 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 4F 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 21 00 00 00 F4 03 04 00 94 D0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0A 6A 00 00 35 04 06 00 A6 00 00 C0 [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:46]Read from MH i2c: E2 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 03 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 03 00 86 A0 00 90 00 9A [11:58:46]RAPDU: 90 00 [11:58:46]wFMCommunicate OK [11:58:46]wFMCommunicate request_size=10 [11:58:46]MH_SAM_APDU [11:58:46]CAPDU: 80 0D 02 02 05 8D 9A A9 55 E8 [11:58:46]Write to MH i2c: E2 0D 00 87 A0 80 0D 02 02 05 00 8D 9A A9 55 E8 00 00 B8 [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:46]Read from MH i2c: E2 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 03 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 03 00 87 A0 00 90 00 9B [11:58:46]RAPDU: 90 00 [11:58:46]wFMCommunicate OK [11:58:46]wFMCommunicate request_size=4 [11:58:46]MH_SAM_APDU [11:58:46]CAPDU: 80 0D 03 02 [11:58:46]Write to MH i2c: E2 08 00 88 A0 80 0D 03 02 00 00 00 00 A3 [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:46]Read from MH i2c: E2 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 0B 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 0B 00 88 A0 00 B6 21 68 57 4F 22 84 0B 90 00 3A [11:58:46]RAPDU: B6 21 68 57 4F 22 84 0B 90 00 [11:58:46]wFMCommunicate OK [11:58:46]SAM_PROTO_SignData done [11:58:46]FM_MakeSignedData done [11:58:46]CreateOFDProtocolMessage [11:58:46]wFMCommunicate request_size=4 [11:58:46]MH_SAM_APDU [11:58:46]CAPDU: 80 11 00 00 [11:58:46]Write to MH i2c: E2 08 00 89 A0 80 11 00 00 00 00 00 00 A3 [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:46]Read from MH i2c: E2 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 17 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 17 00 89 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 FB [11:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:58:46]wFMCommunicate OK [11:58:46]CreateOFDProtocolMessage done [11:58:46]OFDSenderStorePacket 27146 [11:58:46]StoreOFDPacket docnum=27146 [11:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 DD 1D 07 01 20 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 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 4F 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 21 00 00 00 F4 03 04 00 94 D0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0A 6A 00 00 35 04 06 00 A6 8D 9A A9 55 E8 B6 21 68 57 4F 22 84 0B [11:58:46]CheckFolder [11:58:46]dirname=/storage/ofd_packets [11:58:46]CheckFolder done [11:58:46]ProducePacketName [11:58:46]name=ofd_packets/00027146 [11:58:46]NVStorageSaveData ofd_packets/00027146 [11:58:46]File name is /storage/ofd_packets/00027146 [11:58:46]Write 301 bytes [11:58:46]NVStorageSaveData done [11:58:46]OFDSenderStorePacket done [11:58:46]KKMCreateOFDPacket done [11:58:46]NVStorageSaveData kkm_last_timestamp [11:58:46]File name is /storage/kkm_last_timestamp [11:58:46]Write 4 bytes [11:58:46]NVStorageSaveData done [11:58:46]ExternCall_PrintAddStr [11:58:46]wPrintStart [11:58:46]Write to MH i2c: 01 00 00 8A A0 2A [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: 01 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: 01 07 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: 01 07 00 8A A0 00 00 00 00 00 FF 0F 3F [11:58:46]RasterBufferAndPrint [11:58:46]line Счет N : (1)359899 [11:58:46]line ИНН: 02508201610067 [11:58:46]line Контрольно-Кассовый Чек [11:58:46]line ПРОДАЖА [11:58:46]line ТРК (МРК, ГНК) : 61 [11:58:46]line Товар: 2710124130 [11:58:46]line Аи-92-К-5 [11:58:46]line 3.160 * 63.40 [11:58:46]line = 200.34 [11:58:46]line НДС 12% НСП 1% [11:58:46]line > о реализуемом товаре [11:58:46]line ОКРУГЛЕНИЕ: -0.34 [11:58:46]line ИТОГО: 200.00 [11:58:46]line Внесено: 200.00 [11:58:46]line СДАЧА: 0.00 [11:58:46]line НСП 1% : 1.77 [11:58:46]line НДС 12% : 21.27 [11:58:46]line Наличными: 200.00 [11:58:46]line Безнал.: 0.00 [11:58:46]line Место: АЗС № 122 "Партнер Нефть" [11:58:46]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [11:58:46]line СНО: Общий режим [11:58:46]line Чек 33 11.04.2024 11:59 [11:58:46]line Смена: 317 ФФД: 1.0 [11:58:46]line ЗНМ: 0300000147 [11:58:46]line РНМ: 0000000000091578 [11:58:46]line Версия ККМ: 001 [11:58:46]line ФМ: 0000000000874657 [11:58:46]line ФД: 27146 [11:58:46]line ФПД: 183127115388392 [11:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T115916&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27146&fm=183127115388392&tin=02508201610067®Number=0000000000091578&sum=20000 [11:58:47]OFD Sender: Processing packet 27146 [packets to send 44, broken 43] [11:58:47]ProducePacketName [11:58:47]name=ofd_packets/00027146 [11:58:47]OFD Sender: To server: pG, [11:58:47]CommunicateWithHost lk.salyk.kg:30040 [11:58:47]ConnectInit lk.salyk.kg [11:58:47]written 0, free lines is 4095 [11:58:47]Connected sock=10 [11:58:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 DD 1D 07 01 20 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 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 4F 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 21 00 00 00 F4 03 04 00 94 D0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0A 6A 00 00 35 04 06 00 A6 8D 9A A9 55 E8 B6 21 68 57 4F 22 84 0B [11:58: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 35 37 4F 00 00 00 C8 AB 47 00 FD 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 35 37 10 04 04 00 0A 6A 00 00 F4 03 04 00 F5 77 17 66 B6 04 01 00 00 0C DB DE EC 4E D1 DD 0E [11:58:47]CommunicateWithHost err = 0 [11:58:47]CheckOFDResponse [11:58:47]1017 (14) - 77093643461234 [11:58:47]1041 (16) - 0000000000874657 [11:58:47]1040 (4) - 27146 [11:58:47]1012 (4) - 11.04.2024 05:41 [11:58:47]1206 (1) - 0 [11:58:47]OFD Sender: Remove packet 27146 [11:58:47]ProducePacketName [11:58:47]name=ofd_packets/00027146 [11:58:47]NVStorageDeleteData [11:58:47]Write to MH i2c: 01 00 00 B5 A0 55 [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: 01 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: 01 07 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: 01 07 00 B5 A0 00 00 00 00 00 7A 0C E2 [11:58:47]RasterBufferAndPrint [11:58:47]line [11:58:47]line [11:58:47]line [11:58:47]line [11:58:47]line [11:58:47]written 0, free lines is 3197 [11:58:47]MH_Cut [11:58:47]Write to MH i2c: D1 01 00 BC A0 01 2E [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: D1 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: D1 01 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: D1 01 00 BC A0 00 2D [11:58:47]Write to MH i2c: 01 00 00 BD A0 5D [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]OFD Sender: No OFD packet to send [11:58:48]*** Cut start [11:58:48]*** Partial cut [11:58:48]*** CUTSNS_PIN = 1 [11:58:48]*** CUTSNS_PIN = 0 [11:58:48]*** Brake cut motor [11:58:49]Read from MH i2c: 01 [11:58:49]MH_I2C_Read... [11:58:49]*** Stop cut motor [11:58:49]*** Cut end [11:58:49]Read from MH i2c: 01 07 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 07 00 BD A0 00 00 00 00 00 FF 0F 72 [11:58:49]process_action close_receipt done [11:58:49]requested_data is exist [11:58:49]produce_requested_data [11:58:49]requested_item fm.sn is exist - process it [11:58:49]wFMCommunicate request_size=4 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 11 00 00 [11:58:49]Write to MH i2c: E2 08 00 BE A0 80 11 00 00 00 00 00 00 D8 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 17 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 17 00 BE A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 30 [11:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:58:49]wFMCommunicate OK [11:58:49]requested_item fd.num is exist - process it [11:58:49]SAM_PROTO_GetFieldsCounters [11:58:49]wFMCommunicate request_size=4 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 13 00 00 [11:58:49]Write to MH i2c: E2 08 00 BF A0 80 13 00 00 00 00 00 00 DB [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 62 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 62 00 BF A0 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0A 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [11:58: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0A 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:49]wFMCommunicate OK [11:58:49]SAM_PROTO_GetFieldsCounters done [11:58:49]requested_item shift.num is exist - process it [11:58:49]requested_item shift.opened is exist - process it [11:58:49]req_shift_opened [11:58:49]FM_GetShiftState [11:58:49]SAM_PROTO_GetShiftState [11:58:49]wFMCommunicate request_size=4 [11:58:49]MH_SAM_APDU [11:58:49]CAPDU: 80 13 01 00 [11:58:49]Write to MH i2c: E2 08 00 C0 A0 80 13 01 00 00 00 00 00 DD [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:49]Read from MH i2c: E2 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 0E 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: E2 0E 00 C0 A0 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 27 [11:58:49]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [11:58:49]wFMCommunicate OK [11:58:49]SAM_PROTO_GetShiftState done [11:58:49]FM_GetShiftState done [11:58:49]req_shift_opened done [11:58:49]requested_item shift.open_date is exist - process it [11:58:49]req_shift_open_date [11:58:49]req_shift_open_date done [11:58:49]produce_requested_data done [11:58:49]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27146,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [11:58:49]process_action_free close_receipt [11:58:49]json_value_free [11:58:49]json_value_free done [11:58:49]process_json_proto returns [11:58:49]Send response to host [11:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27146,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [11:58:49]free response buf [11:58:49]execute_script done [11:58:49]execute_script returns [11:58:49]free content buf [11:58:49]Sock 9.Close socket [11:58:49]Sock 9.Thread stoped [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]accept exits with 8 [12:16:23]New connection [12:16:23]New thread 3067014500 created [12:16:23]Thread 3066871140 joined [12:16:23]Waiting for new connection... [12:16:23] Sock 8.Parse request [12:16:23]Sock 8.Check first char [12:16:23]Sock 8.First char is OK [12:16:23]request: POST /json_proto HTTP/1.0 [12:16:23]Method: POST [12:16:23]URL: /json_proto [12:16:23]Method is POST - this is cgi request [12:16:23]url: /json_proto [12:16:23]query_string will be loaded in cgi processing [12:16:23]execute_cgi json_proto POST (null) [12:16:23]execute_cgi path=json_proto method=POST [12:16:23]POST find Content-Length [12:16:23]Host: 172.17.35.3:8080 [12:16:23]Content-Length: 1088 [12:16:23]Content-Type: application/json [12:16:23] [12:16:23]POST finish read [12:16:23]Found Content-Length = 1088 [12:16:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359900\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 71.80\u000A\u0418\u0422\u041E\u0413: 718.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A5555\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:23]execute_script... [12:16:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359900\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 71.80\u000A\u0418\u0422\u041E\u0413: 718.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A5555\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:23]POST & json_proto [12:16:23]process_json_proto [12:16:23]json parsed OK: [12:16:23]protocol is kg_v1.0 [12:16:23]action value=print_text [12:16:23]process_action print_text [12:16:23]cmd_print_text [12:16:23]ExternCall_PrintAddStr [12:16:23]wPrintStart [12:16:23]Write to MH i2c: 01 00 00 C1 A0 61 [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 07 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 07 00 C1 A0 00 00 00 00 00 FF 0F 76 [12:16:23]RasterBufferAndPrint [12:16:23]line *****ТОВАРНЫЙ ЧЕК***** [12:16:23]line АЗС 122 [12:16:23]line Партнер нефть [12:16:23]line 02508201610067 [12:16:23]line Кассир : Эдилбаев К. [12:16:23]line Счет N : (1)359900 [12:16:23]line ПРОДАЖА [12:16:23]line ТРК (МРК, ГНК) : 21 [12:16:23]line Вид ГСМ : 2710194210 [12:16:23]line ДТ(л)-К-5 [12:16:23]line 10.000 x 71.80 [12:16:23]line ИТОГ: 718.00 [12:16:23]line Тип оплаты: Талоны: Партнер нефть [12:16:23]line 5555 [12:16:23]written 0, free lines is 4095 [12:16:23]Write to MH i2c: 01 00 00 D2 A0 72 [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 07 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 07 00 D2 A0 00 00 00 00 00 5D 0E E4 [12:16:23]RasterBufferAndPrint [12:16:23]line [12:16:23]line [12:16:23]line [12:16:23]line [12:16:23]line [12:16:23]written 0, free lines is 3678 [12:16:23]MH_Cut [12:16:23]Write to MH i2c: D1 01 00 D9 A0 01 4B [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: D1 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: D1 01 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: D1 01 00 D9 A0 00 4A [12:16:23]Write to MH i2c: 01 00 00 DA A0 7A [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]*** Cut start [12:16:23]*** Partial cut [12:16:23]*** CUTSNS_PIN = 1 [12:16:23]OFD Sender: No OFD packet to send [12:16:23]*** CUTSNS_PIN = 0 [12:16:24]*** Brake cut motor [12:16:24]Read from MH i2c: 01 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: 01 07 00 [12:16:24]MH_I2C_Read... [12:16:24]*** Stop cut motor [12:16:24]*** Cut end [12:16:24]Read from MH i2c: 01 07 00 DA A0 00 00 00 00 00 FF 0F 8F [12:16:24]process_action print_text done [12:16:24]requested_data is exist [12:16:24]produce_requested_data [12:16:24]requested_item fm.sn is exist - process it [12:16:24]wFMCommunicate request_size=4 [12:16:24]MH_SAM_APDU [12:16:24]CAPDU: 80 11 00 00 [12:16:24]Write to MH i2c: E2 08 00 DB A0 80 11 00 00 00 00 00 00 F5 [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:24]Read from MH i2c: E2 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 17 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 17 00 DB A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 4D [12:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:16:24]wFMCommunicate OK [12:16:24]requested_item fd.num is exist - process it [12:16:24]SAM_PROTO_GetFieldsCounters [12:16:24]wFMCommunicate request_size=4 [12:16:24]MH_SAM_APDU [12:16:24]CAPDU: 80 13 00 00 [12:16:24]Write to MH i2c: E2 08 00 DC A0 80 13 00 00 00 00 00 00 F8 [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:24]Read from MH i2c: E2 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 62 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 62 00 DC A0 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0A 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0A 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:24]wFMCommunicate OK [12:16:24]SAM_PROTO_GetFieldsCounters done [12:16:24]requested_item shift.num is exist - process it [12:16:24]requested_item shift.opened is exist - process it [12:16:24]req_shift_opened [12:16:24]FM_GetShiftState [12:16:24]SAM_PROTO_GetShiftState [12:16:24]wFMCommunicate request_size=4 [12:16:24]MH_SAM_APDU [12:16:24]CAPDU: 80 13 01 00 [12:16:24]Write to MH i2c: E2 08 00 DD A0 80 13 01 00 00 00 00 00 FA [12:16:24]Write i2c OK [12:16:24]MH_I2C_Read... [12:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:24]Read from MH i2c: E2 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 0E 00 [12:16:24]MH_I2C_Read... [12:16:24]Read from MH i2c: E2 0E 00 DD A0 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 44 [12:16:24]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:16:24]wFMCommunicate OK [12:16:24]SAM_PROTO_GetShiftState done [12:16:24]FM_GetShiftState done [12:16:24]req_shift_opened done [12:16:24]requested_item shift.open_date is exist - process it [12:16:24]req_shift_open_date [12:16:24]req_shift_open_date done [12:16:24]produce_requested_data done [12:16:24]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27146,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [12:16:24]process_action_free print_text [12:16:24]json_value_free [12:16:24]json_value_free done [12:16:24]process_json_proto returns [12:16:24]Send response to host [12:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27146,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [12:16:24]free response buf [12:16:24]execute_script done [12:16:24]execute_script returns [12:16:24]free content buf [12:16:24]Sock 8.Close socket [12:16:24]Sock 8.Thread stoped [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:00]accept exits with 9 [12:20:00]New connection [12:20:00]New thread 3066871140 created [12:20:00]Thread 3067014500 joined [12:20:00]Waiting for new connection... [12:20:00] Sock 9.Parse request [12:20:00]Sock 9.Check first char [12:20:00]Sock 9.First char is OK [12:20:00]request: POST /json_proto HTTP/1.0 [12:20:00]Method: POST [12:20:00]URL: /json_proto [12:20:00]Method is POST - this is cgi request [12:20:00]url: /json_proto [12:20:00]query_string will be loaded in cgi processing [12:20:00]execute_cgi json_proto POST (null) [12:20:00]execute_cgi path=json_proto method=POST [12:20:00]POST find Content-Length [12:20:00]Host: 172.17.35.3:8080 [12:20:00]Content-Length: 682 [12:20:00]Content-Type: application/json [12:20:00] [12:20:00]POST finish read [12:20:00]Found Content-Length = 682 [12:20:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:00]execute_script... [12:20:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:00]POST & json_proto [12:20:00]process_json_proto [12:20:00]json parsed OK: [12:20:00]protocol is kg_v1.0 [12:20:00]action value=close_receipt [12:20:00]process_action close_receipt [12:20:00]cmd_close_receipt [12:20:00]MH_GetDate [12:20:00]Write to MH i2c: F0 00 00 DE A0 6D [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: F0 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: F0 09 00 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: F0 09 00 DE A0 00 8F D5 17 66 2B 11 66 64 5D [12:20:00]GetLastDocTimeStamp 1712836756 [12:20:00]current date 1712838031 [12:20:00]FM_GetShiftState [12:20:00]SAM_PROTO_GetShiftState [12:20:00]wFMCommunicate request_size=4 [12:20:00]MH_SAM_APDU [12:20:00]CAPDU: 80 13 01 00 [12:20:00]Write to MH i2c: E2 08 00 DF A0 80 13 01 00 00 00 00 00 FC [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:00]Read from MH i2c: E2 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: E2 0E 00 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: E2 0E 00 DF A0 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 46 [12:20:00]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:20:00]wFMCommunicate OK [12:20:00]SAM_PROTO_GetShiftState done [12:20:00]FM_GetShiftState done [12:20:00]opened in 1712795538 [12:20:00]opened+sec_in_day 1712881938 [12:20:00]quantity*price = 120001 [12:20:00]sum+1 = 120002 [12:20:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 34 11.04.2024 12:20 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27147 ФПД: 148904149549856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T122031&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27147&fm=148904149549856&tin=02508201610067®Number=0000000000091578&sum=120000 [12:20:01]StoreToDocumentArchive [12:20:01]shift 317 fd 27147 [12:20:01]save to /storage/0317/doc_00027147 [12:20:01]save last doc name /storage/0317/doc_00027147 to /storage/kkm_last_doc_name [12:20:01]save OK [12:20:01]Clear old archive folders... [12:20:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:01]tlvbuf is 01119E50 [12:20:01]SAM_PROTO_ClearQueue [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 09 00 00 [12:20:01]Write to MH i2c: E2 08 00 EC A0 80 09 00 00 00 00 00 00 FE [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 EC A0 00 90 00 00 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]SAM_PROTO_ClearQueue done [12:20:01]KKMCreateOFDPacket [12:20:01]OFDProtocolAddRootSTLVToBuf [12:20:01]FM_MakeSignedData [12:20:01]FM_MakeSignedData [12:20:01]SAM_PROTO_SignData [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 01 02 [12:20:01]Write to MH i2c: E2 08 00 ED A0 80 0D 01 02 00 00 00 00 06 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 ED A0 00 90 00 01 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]wFMCommunicate request_size=255 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 8F D5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 6A 00 00 35 04 06 00 87 [12:20:01]Write to MH i2c: E2 02 01 EE A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 8F D5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 6A 00 00 35 04 06 00 87 00 00 E2 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 EE A0 00 90 00 02 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]wFMCommunicate request_size=10 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 02 02 05 6D 72 F0 83 20 [12:20:01]Write to MH i2c: E2 0D 00 EF A0 80 0D 02 02 05 00 6D 72 F0 83 20 00 00 85 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 EF A0 00 90 00 03 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 03 02 [12:20:01]Write to MH i2c: E2 08 00 F0 A0 80 0D 03 02 00 00 00 00 0B [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 0B 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 0B 00 F0 A0 00 62 08 97 B0 9F D2 E0 A7 90 00 B5 [12:20:01]RAPDU: 62 08 97 B0 9F D2 E0 A7 90 00 [12:20:01]wFMCommunicate OK [12:20:01]SAM_PROTO_SignData done [12:20:01]FM_MakeSignedData done [12:20:01]CreateOFDProtocolMessage [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 11 00 00 [12:20:01]Write to MH i2c: E2 08 00 F1 A0 80 11 00 00 00 00 00 00 0B [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 17 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 17 00 F1 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 63 [12:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:20:01]wFMCommunicate OK [12:20:01]CreateOFDProtocolMessage done [12:20:01]OFDSenderStorePacket 27147 [12:20:01]StoreOFDPacket docnum=27147 [12:20:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 28 B4 07 01 3C E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 8F D5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 6A 00 00 35 04 06 00 87 6D 72 F0 83 20 62 08 97 B0 9F D2 E0 A7 [12:20:01]CheckFolder [12:20:01]dirname=/storage/ofd_packets [12:20:01]CheckFolder done [12:20:01]ProducePacketName [12:20:01]name=ofd_packets/00027147 [12:20:01]NVStorageSaveData ofd_packets/00027147 [12:20:01]File name is /storage/ofd_packets/00027147 [12:20:01]Write 301 bytes [12:20:01]NVStorageSaveData done [12:20:01]OFDSenderStorePacket done [12:20:01]KKMCreateOFDPacket done [12:20:01]NVStorageSaveData kkm_last_timestamp [12:20:01]File name is /storage/kkm_last_timestamp [12:20:01]Write 4 bytes [12:20:01]NVStorageSaveData done [12:20:01]ExternCall_PrintAddStr [12:20:01]wPrintStart [12:20:01]Write to MH i2c: 01 00 00 F2 A0 92 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: 01 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: 01 07 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: 01 07 00 F2 A0 00 00 00 00 00 FF 0F A7 [12:20:01]RasterBufferAndPrint [12:20:01]line Счет N : (1)359901 [12:20:01]line ИНН: 02508201610067 [12:20:01]line Контрольно-Кассовый Чек [12:20:01]line ПРОДАЖА [12:20:01]line ТРК (МРК, ГНК) : 63 [12:20:01]line Товар: 2710124500 [12:20:01]line Аи-95-К-5 [12:20:01]line 16.690 * 71.90 [12:20:01]line = 1200.01 [12:20:01]line НДС 12% НСП 1% [12:20:01]line > о реализуемом товаре [12:20:01]line ОКРУГЛЕНИЕ: -0.01 [12:20:01]line ИТОГО: 1200.00 [12:20:01]line Внесено: 1200.00 [12:20:01]line СДАЧА: 0.00 [12:20:01]line НСП 1% : 10.62 [12:20:01]line НДС 12% : 127.43 [12:20:01]line Наличными: 1200.00 [12:20:01]line Безнал.: 0.00 [12:20:01]line Место: АЗС № 122 "Партнер Нефть" [12:20:01]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:20:01]line СНО: Общий режим [12:20:01]line Чек 34 11.04.2024 12:20 [12:20:01]line Смена: 317 ФФД: 1.0 [12:20:01]line ЗНМ: 0300000147 [12:20:01]line РНМ: 0000000000091578 [12:20:01]line Версия ККМ: 001 [12:20:01]line ФМ: 0000000000874657 [12:20:01]line ФД: 27147 [12:20:01]line ФПД: 148904149549856 [12:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T122031&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27147&fm=148904149549856&tin=02508201610067®Number=0000000000091578&sum=120000 [12:20:02]OFD Sender: Processing packet 27147 [packets to send 44, broken 43] [12:20:02]ProducePacketName [12:20:02]name=ofd_packets/00027147 [12:20:02]OFD Sender: To server: pG, [12:20:02]CommunicateWithHost lk.salyk.kg:30040 [12:20:02]ConnectInit lk.salyk.kg [12:20:02]written 0, free lines is 4095 [12:20:02]Connected sock=10 [12:20: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 35 37 0F 01 00 00 28 B4 07 01 3C E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 8F D5 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 6A 00 00 35 04 06 00 87 6D 72 F0 83 20 62 08 97 B0 9F D2 E0 A7 [12:20:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 4E C3 47 00 10 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 6A 00 00 F4 03 04 00 F0 7C 17 66 B6 04 01 00 00 55 DA AC 15 BC 99 7E A1 [12:20:02]CommunicateWithHost err = 0 [12:20:02]CheckOFDResponse [12:20:02]1017 (14) - 77093643461234 [12:20:02]1041 (16) - 0000000000874657 [12:20:02]1040 (4) - 27147 [12:20:02]1012 (4) - 11.04.2024 06:02 [12:20:02]1206 (1) - 0 [12:20:02]OFD Sender: Remove packet 27147 [12:20:02]ProducePacketName [12:20:02]name=ofd_packets/00027147 [12:20:02]NVStorageDeleteData [12:20:02]Write to MH i2c: 01 00 00 1D A1 BE [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 07 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 07 00 1D A1 00 00 00 00 00 78 0C 49 [12:20:02]RasterBufferAndPrint [12:20:02]line [12:20:02]line [12:20:02]line [12:20:02]line [12:20:02]line [12:20:02]written 0, free lines is 3194 [12:20:02]MH_Cut [12:20:02]Write to MH i2c: D1 01 00 24 A1 01 97 [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: D1 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: D1 01 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: D1 01 00 24 A1 00 96 [12:20:02]Write to MH i2c: 01 00 00 25 A1 C6 [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:03]OFD Sender: No OFD packet to send [12:20:03]*** Cut start [12:20:03]*** Partial cut [12:20:03]*** CUTSNS_PIN = 1 [12:20:03]*** CUTSNS_PIN = 0 [12:20:04]*** Brake cut motor [12:20:04]Read from MH i2c: 01 [12:20:04]MH_I2C_Read... [12:20:04]*** Stop cut motor [12:20:04]*** Cut end [12:20:04]Read from MH i2c: 01 07 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: 01 07 00 25 A1 00 00 00 00 00 FF 0F DB [12:20:04]process_action close_receipt done [12:20:04]requested_data is exist [12:20:04]produce_requested_data [12:20:04]requested_item fm.sn is exist - process it [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 11 00 00 [12:20:04]Write to MH i2c: E2 08 00 26 A1 80 11 00 00 00 00 00 00 41 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 17 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 17 00 26 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 99 [12:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:20:04]wFMCommunicate OK [12:20:04]requested_item fd.num is exist - process it [12:20:04]SAM_PROTO_GetFieldsCounters [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 13 00 00 [12:20:04]Write to MH i2c: E2 08 00 27 A1 80 13 00 00 00 00 00 00 44 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 62 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 62 00 27 A1 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0B 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [12:20: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0B 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:04]wFMCommunicate OK [12:20:04]SAM_PROTO_GetFieldsCounters done [12:20:04]requested_item shift.num is exist - process it [12:20:04]requested_item shift.opened is exist - process it [12:20:04]req_shift_opened [12:20:04]FM_GetShiftState [12:20:04]SAM_PROTO_GetShiftState [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 13 01 00 [12:20:04]Write to MH i2c: E2 08 00 28 A1 80 13 01 00 00 00 00 00 46 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 0E 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 0E 00 28 A1 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 90 [12:20:04]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:20:04]wFMCommunicate OK [12:20:04]SAM_PROTO_GetShiftState done [12:20:04]FM_GetShiftState done [12:20:04]req_shift_opened done [12:20:04]requested_item shift.open_date is exist - process it [12:20:04]req_shift_open_date [12:20:04]req_shift_open_date done [12:20:04]produce_requested_data done [12:20:04]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27147,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [12:20:04]process_action_free close_receipt [12:20:04]json_value_free [12:20:04]json_value_free done [12:20:04]process_json_proto returns [12:20:04]Send response to host [12:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27147,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [12:20:04]free response buf [12:20:04]execute_script done [12:20:04]execute_script returns [12:20:04]free content buf [12:20:04]Sock 9.Close socket [12:20:04]Sock 9.Thread stoped [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:46]accept exits with 8 [12:22:46]New connection [12:22:46]New thread 3067014500 created [12:22:46]Thread 3066871140 joined [12:22:46]Waiting for new connection... [12:22:46] Sock 8.Parse request [12:22:46]Sock 8.Check first char [12:22:46]Sock 8.First char is OK [12:22:46]request: POST /json_proto HTTP/1.0 [12:22:46]Method: POST [12:22:46]URL: /json_proto [12:22:46]Method is POST - this is cgi request [12:22:46]url: /json_proto [12:22:46]query_string will be loaded in cgi processing [12:22:46]execute_cgi json_proto POST (null) [12:22:46]execute_cgi path=json_proto method=POST [12:22:46]POST find Content-Length [12:22:46]Host: 172.17.35.3:8080 [12:22:46]Content-Length: 682 [12:22:46]Content-Type: application/json [12:22:46] [12:22:46]POST finish read [12:22:46]Found Content-Length = 682 [12:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:46]execute_script... [12:22:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:46]POST & json_proto [12:22:46]process_json_proto [12:22:46]json parsed OK: [12:22:46]protocol is kg_v1.0 [12:22:46]action value=close_receipt [12:22:46]process_action close_receipt [12:22:46]cmd_close_receipt [12:22:46]MH_GetDate [12:22:46]Write to MH i2c: F0 00 00 29 A1 B9 [12:22:46]Write i2c OK [12:22:46]MH_I2C_Read... [12:22:46]Read from MH i2c: F0 [12:22:46]MH_I2C_Read... [12:22:46]Read from MH i2c: F0 09 00 [12:22:46]MH_I2C_Read... [12:22:46]Read from MH i2c: F0 09 00 29 A1 00 36 D6 17 66 2B 11 66 64 51 [12:22:46]GetLastDocTimeStamp 1712838031 [12:22:46]current date 1712838198 [12:22:46]FM_GetShiftState [12:22:46]SAM_PROTO_GetShiftState [12:22:46]wFMCommunicate request_size=4 [12:22:46]MH_SAM_APDU [12:22:46]CAPDU: 80 13 01 00 [12:22:46]Write to MH i2c: E2 08 00 2A A1 80 13 01 00 00 00 00 00 48 [12:22:46]Write i2c OK [12:22:46]MH_I2C_Read... [12:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:46]Read from MH i2c: E2 [12:22:46]MH_I2C_Read... [12:22:46]Read from MH i2c: E2 0E 00 [12:22:46]MH_I2C_Read... [12:22:46]Read from MH i2c: E2 0E 00 2A A1 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 92 [12:22:46]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:22:46]wFMCommunicate OK [12:22:46]SAM_PROTO_GetShiftState done [12:22:46]FM_GetShiftState done [12:22:46]opened in 1712795538 [12:22:46]opened+sec_in_day 1712881938 [12:22:46]quantity*price = 100045 [12:22:46]sum+1 = 100046 [12:22:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 35 11.04.2024 12:23 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27148 ФПД: 67356775117782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T122318&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27148&fm=67356775117782&tin=02508201610067®Number=0000000000091578&sum=100000 [12:22:47]StoreToDocumentArchive [12:22:47]shift 317 fd 27148 [12:22:47]save to /storage/0317/doc_00027148 [12:22:47]save last doc name /storage/0317/doc_00027148 to /storage/kkm_last_doc_name [12:22:47]save OK [12:22:47]Clear old archive folders... [12:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:47]tlvbuf is 00F308E0 [12:22:47]SAM_PROTO_ClearQueue [12:22:47]wFMCommunicate request_size=4 [12:22:47]MH_SAM_APDU [12:22:47]CAPDU: 80 09 00 00 [12:22:47]Write to MH i2c: E2 08 00 37 A1 80 09 00 00 00 00 00 00 4A [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:47]Read from MH i2c: E2 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 03 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 03 00 37 A1 00 90 00 4C [12:22:47]RAPDU: 90 00 [12:22:47]wFMCommunicate OK [12:22:47]SAM_PROTO_ClearQueue done [12:22:47]KKMCreateOFDPacket [12:22:47]OFDProtocolAddRootSTLVToBuf [12:22:47]FM_MakeSignedData [12:22:47]FM_MakeSignedData [12:22:47]SAM_PROTO_SignData [12:22:47]wFMCommunicate request_size=4 [12:22:47]MH_SAM_APDU [12:22:47]CAPDU: 80 0D 01 02 [12:22:47]Write to MH i2c: E2 08 00 38 A1 80 0D 01 02 00 00 00 00 52 [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:47]Read from MH i2c: E2 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 03 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 03 00 38 A1 00 90 00 4D [12:22:47]RAPDU: 90 00 [12:22:47]wFMCommunicate OK [12:22:47]wFMCommunicate request_size=255 [12:22:47]MH_SAM_APDU [12:22:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 36 D6 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0C 6A 00 00 35 04 06 00 3D [12:22:47]Write to MH i2c: E2 02 01 39 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 36 D6 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0C 6A 00 00 35 04 06 00 3D 00 00 83 [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:48]Read from MH i2c: E2 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 03 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 03 00 39 A1 00 90 00 4E [12:22:48]RAPDU: 90 00 [12:22:48]wFMCommunicate OK [12:22:48]wFMCommunicate request_size=10 [12:22:48]MH_SAM_APDU [12:22:48]CAPDU: 80 0D 02 02 05 42 B8 A7 73 D6 [12:22:48]Write to MH i2c: E2 0D 00 3A A1 80 0D 02 02 05 00 42 B8 A7 73 D6 00 00 49 [12:22:48]Write i2c OK [12:22:48]MH_I2C_Read... [12:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:48]Read from MH i2c: E2 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 03 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 03 00 3A A1 00 90 00 4F [12:22:48]RAPDU: 90 00 [12:22:48]wFMCommunicate OK [12:22:48]wFMCommunicate request_size=4 [12:22:48]MH_SAM_APDU [12:22:48]CAPDU: 80 0D 03 02 [12:22:48]Write to MH i2c: E2 08 00 3B A1 80 0D 03 02 00 00 00 00 57 [12:22:48]Write i2c OK [12:22:48]MH_I2C_Read... [12:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:48]Read from MH i2c: E2 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 0B 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 0B 00 3B A1 00 0B 5D D6 A5 4A 52 1B E8 90 00 DA [12:22:48]RAPDU: 0B 5D D6 A5 4A 52 1B E8 90 00 [12:22:48]wFMCommunicate OK [12:22:48]SAM_PROTO_SignData done [12:22:48]FM_MakeSignedData done [12:22:48]CreateOFDProtocolMessage [12:22:48]wFMCommunicate request_size=4 [12:22:48]MH_SAM_APDU [12:22:48]CAPDU: 80 11 00 00 [12:22:48]Write to MH i2c: E2 08 00 3C A1 80 11 00 00 00 00 00 00 57 [12:22:48]Write i2c OK [12:22:48]MH_I2C_Read... [12:22:48]OFD Sender: No OFD packet to send [12:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:48]Read from MH i2c: E2 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 17 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 17 00 3C A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AF [12:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:22:48]wFMCommunicate OK [12:22:48]CreateOFDProtocolMessage done [12:22:48]OFDSenderStorePacket 27148 [12:22:48]StoreOFDPacket docnum=27148 [12:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D0 2F 07 01 88 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 36 D6 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0C 6A 00 00 35 04 06 00 3D 42 B8 A7 73 D6 0B 5D D6 A5 4A 52 1B E8 [12:22:48]CheckFolder [12:22:48]dirname=/storage/ofd_packets [12:22:48]CheckFolder done [12:22:48]ProducePacketName [12:22:48]name=ofd_packets/00027148 [12:22:48]NVStorageSaveData ofd_packets/00027148 [12:22:48]File name is /storage/ofd_packets/00027148 [12:22:48]Write 301 bytes [12:22:48]NVStorageSaveData done [12:22:48]OFDSenderStorePacket done [12:22:48]KKMCreateOFDPacket done [12:22:48]NVStorageSaveData kkm_last_timestamp [12:22:48]File name is /storage/kkm_last_timestamp [12:22:48]Write 4 bytes [12:22:48]NVStorageSaveData done [12:22:48]ExternCall_PrintAddStr [12:22:48]wPrintStart [12:22:48]Write to MH i2c: 01 00 00 3D A1 DE [12:22:48]Write i2c OK [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: 01 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: 01 07 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: 01 07 00 3D A1 00 00 00 00 00 FF 0F F3 [12:22:48]RasterBufferAndPrint [12:22:48]line Счет N : (1)359903 [12:22:48]line ИНН: 02508201610067 [12:22:48]line Контрольно-Кассовый Чек [12:22:48]line ПРОДАЖА [12:22:48]line ТРК (МРК, ГНК) : 61 [12:22:48]line Товар: 2710124130 [12:22:48]line Аи-92-К-5 [12:22:48]line 15.780 * 63.40 [12:22:48]line = 1000.45 [12:22:48]line НДС 12% НСП 1% [12:22:48]line > о реализуемом товаре [12:22:48]line ОКРУГЛЕНИЕ: -0.45 [12:22:48]line ИТОГО: 1000.00 [12:22:48]line Внесено: 1000.00 [12:22:48]line СДАЧА: 0.00 [12:22:48]line НСП 1% : 8.85 [12:22:48]line НДС 12% : 106.24 [12:22:48]line Наличными: 1000.00 [12:22:48]line Безнал.: 0.00 [12:22:48]line Место: АЗС № 122 "Партнер Нефть" [12:22:48]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:22:48]line СНО: Общий режим [12:22:48]line Чек 35 11.04.2024 12:23 [12:22:48]line Смена: 317 ФФД: 1.0 [12:22:48]line ЗНМ: 0300000147 [12:22:48]line РНМ: 0000000000091578 [12:22:48]line Версия ККМ: 001 [12:22:48]line ФМ: 0000000000874657 [12:22:48]line ФД: 27148 [12:22:48]line ФПД: 67356775117782 [12:22:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T122318&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27148&fm=67356775117782&tin=02508201610067®Number=0000000000091578&sum=100000 [12:22:48]OFD Sender: Processing packet 27148 [packets to send 44, broken 43] [12:22:48]ProducePacketName [12:22:48]name=ofd_packets/00027148 [12:22:48]OFD Sender: To server: pG, [12:22:48]CommunicateWithHost lk.salyk.kg:30040 [12:22:48]ConnectInit lk.salyk.kg [12:22:48]written 0, free lines is 4095 [12:22:48]Connected sock=10 [12:22: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 35 37 0F 01 00 00 D0 2F 07 01 88 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 36 D6 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0C 6A 00 00 35 04 06 00 3D 42 B8 A7 73 D6 0B 5D D6 A5 4A 52 1B E8 [12:22: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 35 37 4F 00 00 00 B4 B2 47 00 26 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0C 6A 00 00 F4 03 04 00 96 7D 17 66 B6 04 01 00 00 07 5C 33 5E A5 15 FF 9B [12:22:48]CommunicateWithHost err = 0 [12:22:48]CheckOFDResponse [12:22:48]1017 (14) - 77093643461234 [12:22:48]1041 (16) - 0000000000874657 [12:22:48]1040 (4) - 27148 [12:22:48]1012 (4) - 11.04.2024 06:05 [12:22:48]1206 (1) - 0 [12:22:48]OFD Sender: Remove packet 27148 [12:22:48]ProducePacketName [12:22:48]name=ofd_packets/00027148 [12:22:48]NVStorageDeleteData [12:22:49]Write to MH i2c: 01 00 00 68 A1 09 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 07 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 07 00 68 A1 00 00 00 00 00 79 0C 95 [12:22:49]RasterBufferAndPrint [12:22:49]line [12:22:49]line [12:22:49]line [12:22:49]line [12:22:49]line [12:22:49]written 0, free lines is 3197 [12:22:49]MH_Cut [12:22:49]Write to MH i2c: D1 01 00 6F A1 01 E2 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: D1 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: D1 01 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: D1 01 00 6F A1 00 E1 [12:22:49]Write to MH i2c: 01 00 00 70 A1 11 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]OFD Sender: No OFD packet to send [12:22:50]*** Cut start [12:22:50]*** Partial cut [12:22:50]*** CUTSNS_PIN = 1 [12:22:50]*** CUTSNS_PIN = 0 [12:22:50]*** Brake cut motor [12:22:50]Read from MH i2c: 01 [12:22:50]MH_I2C_Read... [12:22:50]*** Stop cut motor [12:22:50]*** Cut end [12:22:50]Read from MH i2c: 01 07 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 07 00 70 A1 00 00 00 00 00 FF 0F 26 [12:22:50]process_action close_receipt done [12:22:50]requested_data is exist [12:22:50]produce_requested_data [12:22:50]requested_item fm.sn is exist - process it [12:22:50]wFMCommunicate request_size=4 [12:22:50]MH_SAM_APDU [12:22:50]CAPDU: 80 11 00 00 [12:22:50]Write to MH i2c: E2 08 00 71 A1 80 11 00 00 00 00 00 00 8C [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:50]Read from MH i2c: E2 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 17 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 17 00 71 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E4 [12:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:22:50]wFMCommunicate OK [12:22:50]requested_item fd.num is exist - process it [12:22:50]SAM_PROTO_GetFieldsCounters [12:22:50]wFMCommunicate request_size=4 [12:22:50]MH_SAM_APDU [12:22:50]CAPDU: 80 13 00 00 [12:22:50]Write to MH i2c: E2 08 00 72 A1 80 13 00 00 00 00 00 00 8F [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:50]Read from MH i2c: E2 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 62 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 62 00 72 A1 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0C 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [12:22: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0C 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:50]wFMCommunicate OK [12:22:50]SAM_PROTO_GetFieldsCounters done [12:22:50]requested_item shift.num is exist - process it [12:22:50]requested_item shift.opened is exist - process it [12:22:50]req_shift_opened [12:22:50]FM_GetShiftState [12:22:50]SAM_PROTO_GetShiftState [12:22:50]wFMCommunicate request_size=4 [12:22:50]MH_SAM_APDU [12:22:50]CAPDU: 80 13 01 00 [12:22:50]Write to MH i2c: E2 08 00 73 A1 80 13 01 00 00 00 00 00 91 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 0E 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 0E 00 73 A1 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 DB [12:22:51]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:22:51]wFMCommunicate OK [12:22:51]SAM_PROTO_GetShiftState done [12:22:51]FM_GetShiftState done [12:22:51]req_shift_opened done [12:22:51]requested_item shift.open_date is exist - process it [12:22:51]req_shift_open_date [12:22:51]req_shift_open_date done [12:22:51]produce_requested_data done [12:22:51]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27148,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [12:22:51]process_action_free close_receipt [12:22:51]json_value_free [12:22:51]json_value_free done [12:22:51]process_json_proto returns [12:22:51]Send response to host [12:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27148,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [12:22:51]free response buf [12:22:51]execute_script done [12:22:51]execute_script returns [12:22:51]free content buf [12:22:51]Sock 8.Close socket [12:22:51]Sock 8.Thread stoped [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:16]accept exits with 9 [12:23:16]New connection [12:23:16]New thread 3066871140 created [12:23:16]Thread 3067014500 joined [12:23:16]Waiting for new connection... [12:23:16] Sock 9.Parse request [12:23:16]Sock 9.Check first char [12:23:16]Sock 9.First char is OK [12:23:16]request: POST /json_proto HTTP/1.0 [12:23:16]Method: POST [12:23:16]URL: /json_proto [12:23:16]Method is POST - this is cgi request [12:23:16]url: /json_proto [12:23:16]query_string will be loaded in cgi processing [12:23:16]execute_cgi json_proto POST (null) [12:23:16]execute_cgi path=json_proto method=POST [12:23:16]POST find Content-Length [12:23:16]Host: 172.17.35.3:8080 [12:23:16]Content-Length: 1097 [12:23:16]Content-Type: application/json [12:23:16] [12:23:16]POST finish read [12:23:16]Found Content-Length = 1097 [12:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359902\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 63.40\u000A\u0418\u0422\u041E\u0413: 1902.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03605\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:16]execute_script... [12:23:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A.\u000A\u0421\u0447\u0435\u0442 N : (1)359902\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 63.40\u000A\u0418\u0422\u041E\u0413: 1902.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03605\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:16]POST & json_proto [12:23:16]process_json_proto [12:23:16]json parsed OK: [12:23:16]protocol is kg_v1.0 [12:23:16]action value=print_text [12:23:16]process_action print_text [12:23:16]cmd_print_text [12:23:16]ExternCall_PrintAddStr [12:23:16]wPrintStart [12:23:16]Write to MH i2c: 01 00 00 74 A1 15 [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 07 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 07 00 74 A1 00 00 00 00 00 FF 0F 2A [12:23:16]RasterBufferAndPrint [12:23:16]line *****ТОВАРНЫЙ ЧЕК***** [12:23:16]line АЗС 122 [12:23:16]line Партнер нефть [12:23:16]line 02508201610067 [12:23:16]line Кассир : Эдилбаев К. [12:23:16]line Счет N : (1)359902 [12:23:16]line ПРОДАЖА [12:23:16]line ТРК (МРК, ГНК) : 51 [12:23:16]line Вид ГСМ : 2710124130 [12:23:16]line Аи-92-К-5 [12:23:16]line 30.000 x 63.40 [12:23:16]line ИТОГ: 1902.00 [12:23:16]line Тип оплаты: Талоны: Топливная Карта [12:23:16]line 03605 [12:23:16]written 0, free lines is 4095 [12:23:16]Write to MH i2c: 01 00 00 85 A1 26 [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 07 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 07 00 85 A1 00 00 00 00 00 5E 0E 99 [12:23:16]RasterBufferAndPrint [12:23:16]line [12:23:16]line [12:23:16]line [12:23:16]line [12:23:16]line [12:23:16]written 0, free lines is 3680 [12:23:16]MH_Cut [12:23:16]Write to MH i2c: D1 01 00 8C A1 01 FF [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: D1 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: D1 01 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: D1 01 00 8C A1 00 FE [12:23:16]Write to MH i2c: 01 00 00 8D A1 2E [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:17]*** Cut start [12:23:17]*** Partial cut [12:23:17]*** CUTSNS_PIN = 1 [12:23:17]*** CUTSNS_PIN = 0 [12:23:17]*** Brake cut motor [12:23:17]Read from MH i2c: 01 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: 01 07 00 [12:23:17]MH_I2C_Read... [12:23:17]*** Stop cut motor [12:23:17]*** Cut end [12:23:17]Read from MH i2c: 01 07 00 8D A1 00 00 00 00 00 FF 0F 43 [12:23:17]process_action print_text done [12:23:17]requested_data is exist [12:23:17]produce_requested_data [12:23:17]requested_item fm.sn is exist - process it [12:23:17]wFMCommunicate request_size=4 [12:23:17]MH_SAM_APDU [12:23:17]CAPDU: 80 11 00 00 [12:23:17]Write to MH i2c: E2 08 00 8E A1 80 11 00 00 00 00 00 00 A9 [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:17]Read from MH i2c: E2 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 17 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 17 00 8E A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 01 [12:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:23:17]wFMCommunicate OK [12:23:17]requested_item fd.num is exist - process it [12:23:17]SAM_PROTO_GetFieldsCounters [12:23:17]wFMCommunicate request_size=4 [12:23:17]MH_SAM_APDU [12:23:17]CAPDU: 80 13 00 00 [12:23:17]Write to MH i2c: E2 08 00 8F A1 80 13 00 00 00 00 00 00 AC [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:17]Read from MH i2c: E2 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 62 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 62 00 8F A1 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0C 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [12:23: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0C 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:17]wFMCommunicate OK [12:23:17]SAM_PROTO_GetFieldsCounters done [12:23:17]requested_item shift.num is exist - process it [12:23:17]requested_item shift.opened is exist - process it [12:23:17]req_shift_opened [12:23:17]FM_GetShiftState [12:23:17]SAM_PROTO_GetShiftState [12:23:17]wFMCommunicate request_size=4 [12:23:17]MH_SAM_APDU [12:23:17]CAPDU: 80 13 01 00 [12:23:17]Write to MH i2c: E2 08 00 90 A1 80 13 01 00 00 00 00 00 AE [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:17]Read from MH i2c: E2 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 0E 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 0E 00 90 A1 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 F8 [12:23:17]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:23:17]wFMCommunicate OK [12:23:17]SAM_PROTO_GetShiftState done [12:23:17]FM_GetShiftState done [12:23:17]req_shift_opened done [12:23:17]requested_item shift.open_date is exist - process it [12:23:17]req_shift_open_date [12:23:17]req_shift_open_date done [12:23:17]produce_requested_data done [12:23:17]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27148,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [12:23:17]process_action_free print_text [12:23:17]json_value_free [12:23:17]json_value_free done [12:23:17]process_json_proto returns [12:23:17]Send response to host [12:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27148,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [12:23:17]free response buf [12:23:17]execute_script done [12:23:17]execute_script returns [12:23:17]free content buf [12:23:17]Sock 9.Close socket [12:23:17]Sock 9.Thread stoped [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]accept exits with 8 [12:32:09]New connection [12:32:09]New thread 3067014500 created [12:32:09]Thread 3066871140 joined [12:32:09]Waiting for new connection... [12:32:09] Sock 8.Parse request [12:32:09]Sock 8.Check first char [12:32:09]Sock 8.First char is OK [12:32:09]request: POST /json_proto HTTP/1.0 [12:32:09]Method: POST [12:32:09]URL: /json_proto [12:32:09]Method is POST - this is cgi request [12:32:09]url: /json_proto [12:32:09]query_string will be loaded in cgi processing [12:32:09]execute_cgi json_proto POST (null) [12:32:09]execute_cgi path=json_proto method=POST [12:32:09]POST find Content-Length [12:32:09]Host: 172.17.35.3:8080 [12:32:09]Content-Length: 677 [12:32:09]Content-Type: application/json [12:32:09] [12:32:09]POST finish read [12:32:09]Found Content-Length = 677 [12:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:09]execute_script... [12:32:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:09]POST & json_proto [12:32:09]process_json_proto [12:32:09]json parsed OK: [12:32:09]protocol is kg_v1.0 [12:32:09]action value=close_receipt [12:32:09]process_action close_receipt [12:32:09]cmd_close_receipt [12:32:09]MH_GetDate [12:32:09]Write to MH i2c: F0 00 00 91 A1 21 [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: F0 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: F0 09 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: F0 09 00 91 A1 00 68 D8 17 66 2B 11 66 64 ED [12:32:09]GetLastDocTimeStamp 1712838198 [12:32:09]current date 1712838760 [12:32:09]FM_GetShiftState [12:32:09]SAM_PROTO_GetShiftState [12:32:09]wFMCommunicate request_size=4 [12:32:09]MH_SAM_APDU [12:32:09]CAPDU: 80 13 01 00 [12:32:09]Write to MH i2c: E2 08 00 92 A1 80 13 01 00 00 00 00 00 B0 [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:09]Read from MH i2c: E2 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 0E 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 0E 00 92 A1 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 FA [12:32:09]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:32:09]wFMCommunicate OK [12:32:09]SAM_PROTO_GetShiftState done [12:32:09]FM_GetShiftState done [12:32:09]opened in 1712795538 [12:32:09]opened+sec_in_day 1712881938 [12:32:09]quantity*price = 50022 [12:32:09]sum+1 = 50024 [12:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 36 11.04.2024 12:32 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27149 ФПД: 37768182163161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T123240&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27149&fm=37768182163161&tin=02508201610067®Number=0000000000091578&sum=50000 [12:32:10]StoreToDocumentArchive [12:32:10]shift 317 fd 27149 [12:32:10]save to /storage/0317/doc_00027149 [12:32:10]save last doc name /storage/0317/doc_00027149 to /storage/kkm_last_doc_name [12:32:10]save OK [12:32:10]Clear old archive folders... [12:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:10]tlvbuf is 01106B70 [12:32:10]SAM_PROTO_ClearQueue [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 09 00 00 [12:32:10]Write to MH i2c: E2 08 00 9F A1 80 09 00 00 00 00 00 00 B2 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 9F A1 00 90 00 B4 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_ClearQueue done [12:32:10]KKMCreateOFDPacket [12:32:10]OFDProtocolAddRootSTLVToBuf [12:32:10]FM_MakeSignedData [12:32:10]FM_MakeSignedData [12:32:10]SAM_PROTO_SignData [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 01 02 [12:32:10]Write to MH i2c: E2 08 00 A0 A1 80 0D 01 02 00 00 00 00 BA [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 A0 A1 00 90 00 B5 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=255 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 D8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0D 6A 00 00 35 04 06 00 22 [12:32:10]Write to MH i2c: E2 02 01 A1 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 D8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0D 6A 00 00 35 04 06 00 22 00 00 32 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 A1 A1 00 90 00 B6 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=10 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 02 02 05 59 97 14 E6 D9 [12:32:10]Write to MH i2c: E2 0D 00 A2 A1 80 0D 02 02 05 00 59 97 14 E6 D9 00 00 8A [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 A2 A1 00 90 00 B7 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 03 02 [12:32:10]Write to MH i2c: E2 08 00 A3 A1 80 0D 03 02 00 00 00 00 BF [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0B 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0B 00 A3 A1 00 87 69 31 1A 7B 81 0E 02 90 00 07 [12:32:10]RAPDU: 87 69 31 1A 7B 81 0E 02 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_SignData done [12:32:10]FM_MakeSignedData done [12:32:10]CreateOFDProtocolMessage [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 11 00 00 [12:32:10]Write to MH i2c: E2 08 00 A4 A1 80 11 00 00 00 00 00 00 BF [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 17 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 17 00 A4 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 17 [12:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:32:10]wFMCommunicate OK [12:32:10]CreateOFDProtocolMessage done [12:32:10]OFDSenderStorePacket 27149 [12:32:10]StoreOFDPacket docnum=27149 [12:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 A5 F5 07 01 93 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 D8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0D 6A 00 00 35 04 06 00 22 59 97 14 E6 D9 87 69 31 1A 7B 81 0E 02 [12:32:10]CheckFolder [12:32:10]dirname=/storage/ofd_packets [12:32:10]CheckFolder done [12:32:10]ProducePacketName [12:32:10]name=ofd_packets/00027149 [12:32:10]NVStorageSaveData ofd_packets/00027149 [12:32:10]File name is /storage/ofd_packets/00027149 [12:32:10]Write 301 bytes [12:32:10]NVStorageSaveData done [12:32:10]OFDSenderStorePacket done [12:32:10]KKMCreateOFDPacket done [12:32:10]NVStorageSaveData kkm_last_timestamp [12:32:10]File name is /storage/kkm_last_timestamp [12:32:10]Write 4 bytes [12:32:10]NVStorageSaveData done [12:32:10]ExternCall_PrintAddStr [12:32:10]wPrintStart [12:32:10]Write to MH i2c: 01 00 00 A5 A1 46 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 07 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 07 00 A5 A1 00 00 00 00 00 FF 0F 5B [12:32:10]RasterBufferAndPrint [12:32:10]line Счет N : (1)359904 [12:32:10]line ИНН: 02508201610067 [12:32:10]line Контрольно-Кассовый Чек [12:32:10]line ПРОДАЖА [12:32:10]line ТРК (МРК, ГНК) : 61 [12:32:10]line Товар: 2710124130 [12:32:10]line Аи-92-К-5 [12:32:10]line 7.890 * 63.40 [12:32:10]line = 500.23 [12:32:10]line НДС 12% НСП 1% [12:32:10]line > о реализуемом товаре [12:32:10]line ОКРУГЛЕНИЕ: -0.23 [12:32:10]line ИТОГО: 500.00 [12:32:10]line Внесено: 500.00 [12:32:10]line СДАЧА: 0.00 [12:32:10]line НСП 1% : 4.43 [12:32:10]line НДС 12% : 53.12 [12:32:10]line Наличными: 500.00 [12:32:10]line Безнал.: 0.00 [12:32:10]line Место: АЗС № 122 "Партнер Нефть" [12:32:10]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:32:10]line СНО: Общий режим [12:32:10]line Чек 36 11.04.2024 12:32 [12:32:10]line Смена: 317 ФФД: 1.0 [12:32:10]line ЗНМ: 0300000147 [12:32:10]line РНМ: 0000000000091578 [12:32:10]line Версия ККМ: 001 [12:32:10]line ФМ: 0000000000874657 [12:32:10]line ФД: 27149 [12:32:10]line ФПД: 37768182163161 [12:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T123240&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27149&fm=37768182163161&tin=02508201610067®Number=0000000000091578&sum=50000 [12:32:11]OFD Sender: Processing packet 27149 [packets to send 44, broken 43] [12:32:11]ProducePacketName [12:32:11]name=ofd_packets/00027149 [12:32:11]OFD Sender: To server: pG, [12:32:11]CommunicateWithHost lk.salyk.kg:30040 [12:32:11]ConnectInit lk.salyk.kg [12:32:11]written 0, free lines is 4095 [12:32:11]Connected sock=11 [12:32: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 35 37 0F 01 00 00 A5 F5 07 01 93 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 68 D8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0D 6A 00 00 35 04 06 00 22 59 97 14 E6 D9 87 69 31 1A 7B 81 0E 02 [12:32: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 35 37 4F 00 00 00 37 CB 47 00 50 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 35 37 10 04 04 00 0D 6A 00 00 F4 03 04 00 C9 7F 17 66 B6 04 01 00 00 B0 DE 49 C1 3F 0C 2D 9A [12:32:11]CommunicateWithHost err = 0 [12:32:11]CheckOFDResponse [12:32:11]1017 (14) - 77093643461234 [12:32:11]1041 (16) - 0000000000874657 [12:32:11]1040 (4) - 27149 [12:32:11]1012 (4) - 11.04.2024 06:14 [12:32:11]1206 (1) - 0 [12:32:11]OFD Sender: Remove packet 27149 [12:32:11]ProducePacketName [12:32:11]name=ofd_packets/00027149 [12:32:11]NVStorageDeleteData [12:32:11]Write to MH i2c: 01 00 00 D0 A1 71 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 07 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 07 00 D0 A1 00 00 00 00 00 78 0C FC [12:32:11]RasterBufferAndPrint [12:32:11]line [12:32:11]line [12:32:11]line [12:32:11]line [12:32:11]line [12:32:11]written 0, free lines is 3195 [12:32:11]MH_Cut [12:32:11]Write to MH i2c: D1 01 00 D7 A1 01 4A [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: D1 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: D1 01 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: D1 01 00 D7 A1 00 49 [12:32:11]Write to MH i2c: 01 00 00 D8 A1 79 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:12]OFD Sender: No OFD packet to send [12:32:12]*** Cut start [12:32:12]*** Partial cut [12:32:12]*** CUTSNS_PIN = 1 [12:32:12]*** CUTSNS_PIN = 0 [12:32:13]*** Brake cut motor [12:32:13]Read from MH i2c: 01 [12:32:13]MH_I2C_Read... [12:32:13]*** Stop cut motor [12:32:13]*** Cut end [12:32:13]Read from MH i2c: 01 07 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: 01 07 00 D8 A1 00 00 00 00 00 FF 0F 8E [12:32:13]process_action close_receipt done [12:32:13]requested_data is exist [12:32:13]produce_requested_data [12:32:13]requested_item fm.sn is exist - process it [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 11 00 00 [12:32:13]Write to MH i2c: E2 08 00 D9 A1 80 11 00 00 00 00 00 00 F4 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 17 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 17 00 D9 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 4C [12:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:32:13]wFMCommunicate OK [12:32:13]requested_item fd.num is exist - process it [12:32:13]SAM_PROTO_GetFieldsCounters [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 13 00 00 [12:32:13]Write to MH i2c: E2 08 00 DA A1 80 13 00 00 00 00 00 00 F7 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 62 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 62 00 DA A1 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0D 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [12:32: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0D 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:13]wFMCommunicate OK [12:32:13]SAM_PROTO_GetFieldsCounters done [12:32:13]requested_item shift.num is exist - process it [12:32:13]requested_item shift.opened is exist - process it [12:32:13]req_shift_opened [12:32:13]FM_GetShiftState [12:32:13]SAM_PROTO_GetShiftState [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 13 01 00 [12:32:13]Write to MH i2c: E2 08 00 DB A1 80 13 01 00 00 00 00 00 F9 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 0E 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 0E 00 DB A1 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 43 [12:32:13]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:32:13]wFMCommunicate OK [12:32:13]SAM_PROTO_GetShiftState done [12:32:13]FM_GetShiftState done [12:32:13]req_shift_opened done [12:32:13]requested_item shift.open_date is exist - process it [12:32:13]req_shift_open_date [12:32:13]req_shift_open_date done [12:32:13]produce_requested_data done [12:32:13]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27149,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [12:32:13]process_action_free close_receipt [12:32:13]json_value_free [12:32:13]json_value_free done [12:32:13]process_json_proto returns [12:32:13]Send response to host [12:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27149,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [12:32:13]free response buf [12:32:13]execute_script done [12:32:13]execute_script returns [12:32:13]free content buf [12:32:13]Sock 8.Close socket [12:32:13]Sock 8.Thread stoped [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:45]accept exits with 9 [12:47:45]New connection [12:47:45]New thread 3066871140 created [12:47:45]Thread 3067014500 joined [12:47:45]Waiting for new connection... [12:47:45] Sock 9.Parse request [12:47:45]Sock 9.Check first char [12:47:45]Sock 9.First char is OK [12:47:45]request: POST /json_proto HTTP/1.0 [12:47:45]Method: POST [12:47:45]URL: /json_proto [12:47:45]Method is POST - this is cgi request [12:47:45]url: /json_proto [12:47:45]query_string will be loaded in cgi processing [12:47:45]execute_cgi json_proto POST (null) [12:47:45]execute_cgi path=json_proto method=POST [12:47:45]POST find Content-Length [12:47:45]Host: 172.17.35.3:8080 [12:47:45]Content-Length: 678 [12:47:45]Content-Type: application/json [12:47:45] [12:47:45]POST finish read [12:47:45]Found Content-Length = 678 [12:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 11.050, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:45]execute_script... [12:47:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 11.050, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:45]POST & json_proto [12:47:45]process_json_proto [12:47:45]json parsed OK: [12:47:45]protocol is kg_v1.0 [12:47:45]action value=close_receipt [12:47:45]process_action close_receipt [12:47:45]cmd_close_receipt [12:47:45]MH_GetDate [12:47:45]Write to MH i2c: F0 00 00 DC A1 6C [12:47:45]Write i2c OK [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: F0 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: F0 09 00 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: F0 09 00 DC A1 00 11 DC 17 66 2B 11 66 64 E5 [12:47:45]GetLastDocTimeStamp 1712838760 [12:47:45]current date 1712839697 [12:47:45]FM_GetShiftState [12:47:45]SAM_PROTO_GetShiftState [12:47:45]wFMCommunicate request_size=4 [12:47:45]MH_SAM_APDU [12:47:45]CAPDU: 80 13 01 00 [12:47:45]Write to MH i2c: E2 08 00 DD A1 80 13 01 00 00 00 00 00 FB [12:47:45]Write i2c OK [12:47:45]MH_I2C_Read... [12:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:45]Read from MH i2c: E2 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 0E 00 [12:47:45]MH_I2C_Read... [12:47:45]Read from MH i2c: E2 0E 00 DD A1 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 45 [12:47:45]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:47:45]wFMCommunicate OK [12:47:45]SAM_PROTO_GetShiftState done [12:47:45]FM_GetShiftState done [12:47:45]opened in 1712795538 [12:47:45]opened+sec_in_day 1712881938 [12:47:45]quantity*price = 70057 [12:47:45]sum+1 = 70058 [12:47:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 37 11.04.2024 12:48 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27150 ФПД: 94980037020877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T124817&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27150&fm=94980037020877&tin=02508201610067®Number=0000000000091578&sum=70000 [12:47:47]StoreToDocumentArchive [12:47:47]shift 317 fd 27150 [12:47:47]save to /storage/0317/doc_00027150 [12:47:47]save last doc name /storage/0317/doc_00027150 to /storage/kkm_last_doc_name [12:47:47]save OK [12:47:47]Clear old archive folders... [12:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:47]tlvbuf is 00EE3610 [12:47:47]SAM_PROTO_ClearQueue [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 09 00 00 [12:47:47]Write to MH i2c: E2 08 00 EA A1 80 09 00 00 00 00 00 00 FD [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 03 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 03 00 EA A1 00 90 00 FF [12:47:47]RAPDU: 90 00 [12:47:47]wFMCommunicate OK [12:47:47]SAM_PROTO_ClearQueue done [12:47:47]KKMCreateOFDPacket [12:47:47]OFDProtocolAddRootSTLVToBuf [12:47:47]FM_MakeSignedData [12:47:47]FM_MakeSignedData [12:47:47]SAM_PROTO_SignData [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 0D 01 02 [12:47:47]Write to MH i2c: E2 08 00 EB A1 80 0D 01 02 00 00 00 00 05 [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 03 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 03 00 EB A1 00 90 00 00 [12:47:47]RAPDU: 90 00 [12:47:47]wFMCommunicate OK [12:47:47]wFMCommunicate request_size=255 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 11 DC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0E 6A 00 00 35 04 06 00 56 [12:47:47]Write to MH i2c: E2 02 01 EC A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 11 DC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0E 6A 00 00 35 04 06 00 56 00 00 3F [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 03 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 03 00 EC A1 00 90 00 01 [12:47:47]RAPDU: 90 00 [12:47:47]wFMCommunicate OK [12:47:47]wFMCommunicate request_size=10 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 0D 02 02 05 62 43 5E 0C CD [12:47:47]Write to MH i2c: E2 0D 00 ED A1 80 0D 02 02 05 00 62 43 5E 0C CD 00 00 EE [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 03 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 03 00 ED A1 00 90 00 02 [12:47:47]RAPDU: 90 00 [12:47:47]wFMCommunicate OK [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 0D 03 02 [12:47:47]Write to MH i2c: E2 08 00 EE A1 80 0D 03 02 00 00 00 00 0A [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 0B 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 0B 00 EE A1 00 08 0E E6 35 5D A5 D6 06 90 00 1A [12:47:47]RAPDU: 08 0E E6 35 5D A5 D6 06 90 00 [12:47:47]wFMCommunicate OK [12:47:47]SAM_PROTO_SignData done [12:47:47]FM_MakeSignedData done [12:47:47]CreateOFDProtocolMessage [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 11 00 00 [12:47:47]Write to MH i2c: E2 08 00 EF A1 80 11 00 00 00 00 00 00 0A [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 17 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 17 00 EF A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 62 [12:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:47:47]wFMCommunicate OK [12:47:47]CreateOFDProtocolMessage done [12:47:47]OFDSenderStorePacket 27150 [12:47:47]StoreOFDPacket docnum=27150 [12:47:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 4F 62 07 01 00 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 11 DC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0E 6A 00 00 35 04 06 00 56 62 43 5E 0C CD 08 0E E6 35 5D A5 D6 06 [12:47:47]CheckFolder [12:47:47]dirname=/storage/ofd_packets [12:47:47]CheckFolder done [12:47:47]ProducePacketName [12:47:47]name=ofd_packets/00027150 [12:47:47]NVStorageSaveData ofd_packets/00027150 [12:47:47]File name is /storage/ofd_packets/00027150 [12:47:47]Write 301 bytes [12:47:47]NVStorageSaveData done [12:47:47]OFDSenderStorePacket done [12:47:47]KKMCreateOFDPacket done [12:47:47]NVStorageSaveData kkm_last_timestamp [12:47:47]File name is /storage/kkm_last_timestamp [12:47:47]Write 4 bytes [12:47:47]NVStorageSaveData done [12:47:47]ExternCall_PrintAddStr [12:47:47]wPrintStart [12:47:47]Write to MH i2c: 01 00 00 F0 A1 91 [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: 01 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: 01 07 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: 01 07 00 F0 A1 00 00 00 00 00 FF 0F A6 [12:47:47]RasterBufferAndPrint [12:47:47]line Счет N : (1)359905 [12:47:47]line ИНН: 02508201610067 [12:47:47]line Контрольно-Кассовый Чек [12:47:47]line ПРОДАЖА [12:47:47]line ТРК (МРК, ГНК) : 61 [12:47:47]line Товар: 2710124130 [12:47:47]line Аи-92-К-5 [12:47:47]line 11.050 * 63.40 [12:47:47]line = 700.57 [12:47:47]line НДС 12% НСП 1% [12:47:47]line > о реализуемом товаре [12:47:47]line ОКРУГЛЕНИЕ: -0.57 [12:47:47]line ИТОГО: 700.00 [12:47:47]line Внесено: 700.00 [12:47:47]line СДАЧА: 0.00 [12:47:47]line НСП 1% : 6.20 [12:47:47]line НДС 12% : 74.40 [12:47:47]line Наличными: 700.00 [12:47:47]line Безнал.: 0.00 [12:47:47]line Место: АЗС № 122 "Партнер Нефть" [12:47:47]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:47:47]line СНО: Общий режим [12:47:47]line Чек 37 11.04.2024 12:48 [12:47:47]line Смена: 317 ФФД: 1.0 [12:47:47]line ЗНМ: 0300000147 [12:47:47]line РНМ: 0000000000091578 [12:47:47]line Версия ККМ: 001 [12:47:47]line ФМ: 0000000000874657 [12:47:47]line ФД: 27150 [12:47:47]line ФПД: 94980037020877 [12:47:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T124817&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27150&fm=94980037020877&tin=02508201610067®Number=0000000000091578&sum=70000 [12:47:47]OFD Sender: Processing packet 27150 [packets to send 44, broken 43] [12:47:47]ProducePacketName [12:47:47]name=ofd_packets/00027150 [12:47:47]OFD Sender: To server: pG, [12:47:47]CommunicateWithHost lk.salyk.kg:30040 [12:47:47]ConnectInit lk.salyk.kg [12:47:47]written 0, free lines is 4095 [12:47:48]Connected sock=8 [12:47: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 35 37 0F 01 00 00 4F 62 07 01 00 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 11 DC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0E 6A 00 00 35 04 06 00 56 62 43 5E 0C CD 08 0E E6 35 5D A5 D6 06 [12:47: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 35 37 4F 00 00 00 B0 57 47 00 0B 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0E 6A 00 00 F4 03 04 00 71 83 17 66 B6 04 01 00 00 4A DA 88 79 9A 19 42 96 [12:47:48]CommunicateWithHost err = 0 [12:47:48]CheckOFDResponse [12:47:48]1017 (14) - 77093643461234 [12:47:48]1041 (16) - 0000000000874657 [12:47:48]1040 (4) - 27150 [12:47:48]1012 (4) - 11.04.2024 06:30 [12:47:48]1206 (1) - 0 [12:47:48]OFD Sender: Remove packet 27150 [12:47:48]ProducePacketName [12:47:48]name=ofd_packets/00027150 [12:47:48]NVStorageDeleteData [12:47:48]Write to MH i2c: 01 00 00 1B A2 BD [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: 01 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: 01 07 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: 01 07 00 1B A2 00 00 00 00 00 75 0C 45 [12:47:48]RasterBufferAndPrint [12:47:48]line [12:47:48]line [12:47:48]line [12:47:48]line [12:47:48]line [12:47:48]written 0, free lines is 3192 [12:47:48]MH_Cut [12:47:48]Write to MH i2c: D1 01 00 22 A2 01 96 [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: D1 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: D1 01 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: D1 01 00 22 A2 00 95 [12:47:48]Write to MH i2c: 01 00 00 23 A2 C5 [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]OFD Sender: No OFD packet to send [12:47:49]*** Cut start [12:47:49]*** Partial cut [12:47:49]*** CUTSNS_PIN = 1 [12:47:49]*** CUTSNS_PIN = 0 [12:47:49]*** Brake cut motor [12:47:50]Read from MH i2c: 01 [12:47:50]MH_I2C_Read... [12:47:50]*** Stop cut motor [12:47:50]*** Cut end [12:47:50]Read from MH i2c: 01 07 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: 01 07 00 23 A2 00 00 00 00 00 FF 0F DA [12:47:50]process_action close_receipt done [12:47:50]requested_data is exist [12:47:50]produce_requested_data [12:47:50]requested_item fm.sn is exist - process it [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 11 00 00 [12:47:50]Write to MH i2c: E2 08 00 24 A2 80 11 00 00 00 00 00 00 40 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 17 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 17 00 24 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 98 [12:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:47:50]wFMCommunicate OK [12:47:50]requested_item fd.num is exist - process it [12:47:50]SAM_PROTO_GetFieldsCounters [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 13 00 00 [12:47:50]Write to MH i2c: E2 08 00 25 A2 80 13 00 00 00 00 00 00 43 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 62 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 62 00 25 A2 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0E 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [12:47: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0E 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:50]wFMCommunicate OK [12:47:50]SAM_PROTO_GetFieldsCounters done [12:47:50]requested_item shift.num is exist - process it [12:47:50]requested_item shift.opened is exist - process it [12:47:50]req_shift_opened [12:47:50]FM_GetShiftState [12:47:50]SAM_PROTO_GetShiftState [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 13 01 00 [12:47:50]Write to MH i2c: E2 08 00 26 A2 80 13 01 00 00 00 00 00 45 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 0E 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 0E 00 26 A2 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 8F [12:47:50]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [12:47:50]wFMCommunicate OK [12:47:50]SAM_PROTO_GetShiftState done [12:47:50]FM_GetShiftState done [12:47:50]req_shift_opened done [12:47:50]requested_item shift.open_date is exist - process it [12:47:50]req_shift_open_date [12:47:50]req_shift_open_date done [12:47:50]produce_requested_data done [12:47:50]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27150,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [12:47:50]process_action_free close_receipt [12:47:50]json_value_free [12:47:50]json_value_free done [12:47:50]process_json_proto returns [12:47:50]Send response to host [12:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27150,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [12:47:50]free response buf [12:47:50]execute_script done [12:47:50]execute_script returns [12:47:50]free content buf [12:47:50]Sock 9.Close socket [12:47:50]Sock 9.Thread stoped [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:18]accept exits with 10 [13:03:18]New connection [13:03:18]New thread 3067014500 created [13:03:18]Thread 3066871140 joined [13:03:18]Waiting for new connection... [13:03:18] Sock 10.Parse request [13:03:18]Sock 10.Check first char [13:03:18]Sock 10.First char is OK [13:03:18]request: POST /json_proto HTTP/1.0 [13:03:18]Method: POST [13:03:18]URL: /json_proto [13:03:18]Method is POST - this is cgi request [13:03:18]url: /json_proto [13:03:18]query_string will be loaded in cgi processing [13:03:18]execute_cgi json_proto POST (null) [13:03:18]execute_cgi path=json_proto method=POST [13:03:18]POST find Content-Length [13:03:18]Host: 172.17.35.3:8080 [13:03:18]Content-Length: 682 [13:03:18]Content-Type: application/json [13:03:18] [13:03:18]POST finish read [13:03:18]Found Content-Length = 682 [13:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:18]execute_script... [13:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:18]POST & json_proto [13:03:18]process_json_proto [13:03:18]json parsed OK: [13:03:18]protocol is kg_v1.0 [13:03:18]action value=close_receipt [13:03:18]process_action close_receipt [13:03:18]cmd_close_receipt [13:03:18]MH_GetDate [13:03:18]Write to MH i2c: F0 00 00 27 A2 B8 [13:03:18]Write i2c OK [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: F0 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: F0 09 00 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: F0 09 00 27 A2 00 B6 DF 17 66 2B 11 66 64 D9 [13:03:18]GetLastDocTimeStamp 1712839697 [13:03:18]current date 1712840630 [13:03:18]FM_GetShiftState [13:03:18]SAM_PROTO_GetShiftState [13:03:18]wFMCommunicate request_size=4 [13:03:18]MH_SAM_APDU [13:03:18]CAPDU: 80 13 01 00 [13:03:18]Write to MH i2c: E2 08 00 28 A2 80 13 01 00 00 00 00 00 47 [13:03:18]Write i2c OK [13:03:18]MH_I2C_Read... [13:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:18]Read from MH i2c: E2 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: E2 0E 00 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: E2 0E 00 28 A2 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 91 [13:03:18]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:03:18]wFMCommunicate OK [13:03:18]SAM_PROTO_GetShiftState done [13:03:18]FM_GetShiftState done [13:03:18]opened in 1712795538 [13:03:18]opened+sec_in_day 1712881938 [13:03:18]quantity*price = 100045 [13:03:18]sum+1 = 100046 [13:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 38 11.04.2024 13:03 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27151 ФПД: 212627579889587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T130350&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27151&fm=212627579889587&tin=02508201610067®Number=0000000000091578&sum=100000 [13:03:19]StoreToDocumentArchive [13:03:19]shift 317 fd 27151 [13:03:19]save to /storage/0317/doc_00027151 [13:03:19]save last doc name /storage/0317/doc_00027151 to /storage/kkm_last_doc_name [13:03:19]save OK [13:03:19]Clear old archive folders... [13:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:19]tlvbuf is 011D8360 [13:03:19]SAM_PROTO_ClearQueue [13:03:19]wFMCommunicate request_size=4 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 09 00 00 [13:03:19]Write to MH i2c: E2 08 00 35 A2 80 09 00 00 00 00 00 00 49 [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 35 A2 00 90 00 4B [13:03:19]RAPDU: 90 00 [13:03:19]wFMCommunicate OK [13:03:19]SAM_PROTO_ClearQueue done [13:03:19]KKMCreateOFDPacket [13:03:19]OFDProtocolAddRootSTLVToBuf [13:03:19]FM_MakeSignedData [13:03:19]FM_MakeSignedData [13:03:19]SAM_PROTO_SignData [13:03:19]wFMCommunicate request_size=4 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 0D 01 02 [13:03:19]Write to MH i2c: E2 08 00 36 A2 80 0D 01 02 00 00 00 00 51 [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 36 A2 00 90 00 4C [13:03:19]RAPDU: 90 00 [13:03:19]wFMCommunicate OK [13:03:19]wFMCommunicate request_size=255 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B6 DF 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 6A 00 00 35 04 06 00 C1 [13:03:19]Write to MH i2c: E2 02 01 37 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B6 DF 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 6A 00 00 35 04 06 00 C1 00 00 95 [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]OFD Sender: No OFD packet to send [13:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 37 A2 00 90 00 4D [13:03:19]RAPDU: 90 00 [13:03:19]wFMCommunicate OK [13:03:19]wFMCommunicate request_size=10 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 0D 02 02 05 62 37 5E 67 B3 [13:03:19]Write to MH i2c: E2 0D 00 38 A2 80 0D 02 02 05 00 62 37 5E 67 B3 00 00 6F [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 38 A2 00 90 00 4E [13:03:19]RAPDU: 90 00 [13:03:19]wFMCommunicate OK [13:03:19]wFMCommunicate request_size=4 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 0D 03 02 [13:03:19]Write to MH i2c: E2 08 00 39 A2 80 0D 03 02 00 00 00 00 56 [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 0B 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 0B 00 39 A2 00 93 61 3A A2 B5 C9 7E D6 90 00 F9 [13:03:19]RAPDU: 93 61 3A A2 B5 C9 7E D6 90 00 [13:03:19]wFMCommunicate OK [13:03:19]SAM_PROTO_SignData done [13:03:19]FM_MakeSignedData done [13:03:19]CreateOFDProtocolMessage [13:03:19]wFMCommunicate request_size=4 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 11 00 00 [13:03:19]Write to MH i2c: E2 08 00 3A A2 80 11 00 00 00 00 00 00 56 [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 17 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 17 00 3A A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AE [13:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:03:19]wFMCommunicate OK [13:03:19]CreateOFDProtocolMessage done [13:03:19]OFDSenderStorePacket 27151 [13:03:19]StoreOFDPacket docnum=27151 [13:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 28 6A 07 01 1A 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B6 DF 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 6A 00 00 35 04 06 00 C1 62 37 5E 67 B3 93 61 3A A2 B5 C9 7E D6 [13:03:19]CheckFolder [13:03:19]dirname=/storage/ofd_packets [13:03:19]CheckFolder done [13:03:19]ProducePacketName [13:03:19]name=ofd_packets/00027151 [13:03:19]NVStorageSaveData ofd_packets/00027151 [13:03:19]File name is /storage/ofd_packets/00027151 [13:03:19]Write 301 bytes [13:03:19]NVStorageSaveData done [13:03:19]OFDSenderStorePacket done [13:03:19]KKMCreateOFDPacket done [13:03:19]NVStorageSaveData kkm_last_timestamp [13:03:19]File name is /storage/kkm_last_timestamp [13:03:19]Write 4 bytes [13:03:19]NVStorageSaveData done [13:03:19]ExternCall_PrintAddStr [13:03:19]wPrintStart [13:03:19]Write to MH i2c: 01 00 00 3B A2 DD [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: 01 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: 01 07 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: 01 07 00 3B A2 00 00 00 00 00 FF 0F F2 [13:03:19]RasterBufferAndPrint [13:03:19]line Счет N : (1)359906 [13:03:19]line ИНН: 02508201610067 [13:03:19]line Контрольно-Кассовый Чек [13:03:19]line ПРОДАЖА [13:03:19]line ТРК (МРК, ГНК) : 51 [13:03:19]line Товар: 2710124130 [13:03:19]line Аи-92-К-5 [13:03:19]line 15.780 * 63.40 [13:03:19]line = 1000.45 [13:03:19]line НДС 12% НСП 1% [13:03:19]line > о реализуемом товаре [13:03:19]line ОКРУГЛЕНИЕ: -0.45 [13:03:19]line ИТОГО: 1000.00 [13:03:19]line Внесено: 1000.00 [13:03:19]line СДАЧА: 0.00 [13:03:19]line НСП 1% : 8.85 [13:03:19]line НДС 12% : 106.24 [13:03:19]line Наличными: 1000.00 [13:03:19]line Безнал.: 0.00 [13:03:19]line Место: АЗС № 122 "Партнер Нефть" [13:03:19]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:03:19]line СНО: Общий режим [13:03:19]line Чек 38 11.04.2024 13:03 [13:03:19]line Смена: 317 ФФД: 1.0 [13:03:19]line ЗНМ: 0300000147 [13:03:19]line РНМ: 0000000000091578 [13:03:19]line Версия ККМ: 001 [13:03:19]line ФМ: 0000000000874657 [13:03:19]line ФД: 27151 [13:03:19]line ФПД: 212627579889587 [13:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T130350&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27151&fm=212627579889587&tin=02508201610067®Number=0000000000091578&sum=100000 [13:03:20]OFD Sender: Processing packet 27151 [packets to send 44, broken 43] [13:03:20]ProducePacketName [13:03:20]name=ofd_packets/00027151 [13:03:20]OFD Sender: To server: pG, [13:03:20]CommunicateWithHost lk.salyk.kg:30040 [13:03:20]ConnectInit lk.salyk.kg [13:03:20]written 0, free lines is 4095 [13:03:20]Connected sock=11 [13:03: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 35 37 0F 01 00 00 28 6A 07 01 1A 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B6 DF 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 6A 00 00 35 04 06 00 C1 62 37 5E 67 B3 93 61 3A A2 B5 C9 7E D6 [13:03: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 35 37 4F 00 00 00 AE 80 47 00 E0 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 6A 00 00 F4 03 04 00 16 87 17 66 B6 04 01 00 00 AC 5A 45 CC D3 60 70 0E [13:03:20]CommunicateWithHost err = 0 [13:03:20]CheckOFDResponse [13:03:20]1017 (14) - 77093643461234 [13:03:20]1041 (16) - 0000000000874657 [13:03:20]1040 (4) - 27151 [13:03:20]1012 (4) - 11.04.2024 06:45 [13:03:20]1206 (1) - 0 [13:03:20]OFD Sender: Remove packet 27151 [13:03:20]ProducePacketName [13:03:20]name=ofd_packets/00027151 [13:03:20]NVStorageDeleteData [13:03:20]Write to MH i2c: 01 00 00 66 A2 08 [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: 01 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: 01 07 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: 01 07 00 66 A2 00 00 00 00 00 74 0C 8F [13:03:20]RasterBufferAndPrint [13:03:20]line [13:03:20]line [13:03:20]line [13:03:20]line [13:03:20]line [13:03:20]written 0, free lines is 3191 [13:03:20]MH_Cut [13:03:20]Write to MH i2c: D1 01 00 6D A2 01 E1 [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: D1 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: D1 01 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: D1 01 00 6D A2 00 E0 [13:03:20]Write to MH i2c: 01 00 00 6E A2 10 [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:21]OFD Sender: No OFD packet to send [13:03:21]*** Cut start [13:03:21]*** Partial cut [13:03:21]*** CUTSNS_PIN = 1 [13:03:21]*** CUTSNS_PIN = 0 [13:03:22]*** Brake cut motor [13:03:22]Read from MH i2c: 01 [13:03:22]MH_I2C_Read... [13:03:22]*** Stop cut motor [13:03:22]*** Cut end [13:03:22]Read from MH i2c: 01 07 00 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: 01 07 00 6E A2 00 00 00 00 00 FF 0F 25 [13:03:22]process_action close_receipt done [13:03:22]requested_data is exist [13:03:22]produce_requested_data [13:03:22]requested_item fm.sn is exist - process it [13:03:22]wFMCommunicate request_size=4 [13:03:22]MH_SAM_APDU [13:03:22]CAPDU: 80 11 00 00 [13:03:22]Write to MH i2c: E2 08 00 6F A2 80 11 00 00 00 00 00 00 8B [13:03:22]Write i2c OK [13:03:22]MH_I2C_Read... [13:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:22]Read from MH i2c: E2 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 17 00 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 17 00 6F A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E3 [13:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:03:22]wFMCommunicate OK [13:03:22]requested_item fd.num is exist - process it [13:03:22]SAM_PROTO_GetFieldsCounters [13:03:22]wFMCommunicate request_size=4 [13:03:22]MH_SAM_APDU [13:03:22]CAPDU: 80 13 00 00 [13:03:22]Write to MH i2c: E2 08 00 70 A2 80 13 00 00 00 00 00 00 8E [13:03:22]Write i2c OK [13:03:22]MH_I2C_Read... [13:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:22]Read from MH i2c: E2 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 62 00 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 62 00 70 A2 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0F 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [13:03: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0F 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:22]wFMCommunicate OK [13:03:22]SAM_PROTO_GetFieldsCounters done [13:03:22]requested_item shift.num is exist - process it [13:03:22]requested_item shift.opened is exist - process it [13:03:22]req_shift_opened [13:03:22]FM_GetShiftState [13:03:22]SAM_PROTO_GetShiftState [13:03:22]wFMCommunicate request_size=4 [13:03:22]MH_SAM_APDU [13:03:22]CAPDU: 80 13 01 00 [13:03:22]Write to MH i2c: E2 08 00 71 A2 80 13 01 00 00 00 00 00 90 [13:03:22]Write i2c OK [13:03:22]MH_I2C_Read... [13:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:22]Read from MH i2c: E2 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 0E 00 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 0E 00 71 A2 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 DA [13:03:22]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:03:22]wFMCommunicate OK [13:03:22]SAM_PROTO_GetShiftState done [13:03:22]FM_GetShiftState done [13:03:22]req_shift_opened done [13:03:22]requested_item shift.open_date is exist - process it [13:03:22]req_shift_open_date [13:03:22]req_shift_open_date done [13:03:22]produce_requested_data done [13:03:22]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27151,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [13:03:22]process_action_free close_receipt [13:03:22]json_value_free [13:03:22]json_value_free done [13:03:22]process_json_proto returns [13:03:22]Send response to host [13:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27151,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [13:03:22]free response buf [13:03:22]execute_script done [13:03:22]execute_script returns [13:03:22]free content buf [13:03:22]Sock 10.Close socket [13:03:22]Sock 10.Thread stoped [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]accept exits with 8 [13:13:56]New connection [13:13:56]New thread 3066871140 created [13:13:56]Thread 3067014500 joined [13:13:56]Waiting for new connection... [13:13:56] Sock 8.Parse request [13:13:56]Sock 8.Check first char [13:13:56]Sock 8.First char is OK [13:13:56]request: POST /json_proto HTTP/1.0 [13:13:56]Method: POST [13:13:56]URL: /json_proto [13:13:56]Method is POST - this is cgi request [13:13:56]url: /json_proto [13:13:56]query_string will be loaded in cgi processing [13:13:56]execute_cgi json_proto POST (null) [13:13:56]execute_cgi path=json_proto method=POST [13:13:56]POST find Content-Length [13:13:56]Host: 172.17.35.3:8080 [13:13:56]Content-Length: 819 [13:13:56]Content-Type: application/json [13:13:56] [13:13:56]POST finish read [13:13:56]Found Content-Length = 819 [13:13:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:56]execute_script... [13:13:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:56]POST & json_proto [13:13:56]process_json_proto [13:13:56]json parsed OK: [13:13:56]protocol is kg_v1.0 [13:13:56]action value=close_receipt [13:13:56]process_action close_receipt [13:13:56]cmd_close_receipt [13:13:56]MH_GetDate [13:13:56]Write to MH i2c: F0 00 00 72 A2 03 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: F0 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: F0 09 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: F0 09 00 72 A2 00 34 E2 17 66 2B 11 66 64 A5 [13:13:56]GetLastDocTimeStamp 1712840630 [13:13:56]current date 1712841268 [13:13:56]FM_GetShiftState [13:13:56]SAM_PROTO_GetShiftState [13:13:56]wFMCommunicate request_size=4 [13:13:56]MH_SAM_APDU [13:13:56]CAPDU: 80 13 01 00 [13:13:56]Write to MH i2c: E2 08 00 73 A2 80 13 01 00 00 00 00 00 92 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:56]Read from MH i2c: E2 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 0E 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 0E 00 73 A2 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 DC [13:13:56]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:13:56]wFMCommunicate OK [13:13:56]SAM_PROTO_GetShiftState done [13:13:56]FM_GetShiftState done [13:13:56]opened in 1712795538 [13:13:56]opened+sec_in_day 1712881938 [13:13:56]quantity*price = 100012 [13:13:56]sum+1 = 100014 [13:13:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 39 11.04.2024 13:14 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874657 ФД: 27152 ФПД: 238491211738615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T131428&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27152&fm=238491211738615&tin=02508201610067®Number=0000000000091578&sum=100013 [13:13:57]StoreToDocumentArchive [13:13:57]shift 317 fd 27152 [13:13:57]save to /storage/0317/doc_00027152 [13:13:57]save last doc name /storage/0317/doc_00027152 to /storage/kkm_last_doc_name [13:13:57]save OK [13:13:57]Clear old archive folders... [13:13:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:57]tlvbuf is 010E27F0 [13:13:57]SAM_PROTO_ClearQueue [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 09 00 00 [13:13:57]Write to MH i2c: E2 08 00 80 A2 80 09 00 00 00 00 00 00 94 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 80 A2 00 90 00 96 [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]SAM_PROTO_ClearQueue done [13:13:57]KKMCreateOFDPacket [13:13:57]OFDProtocolAddRootSTLVToBuf [13:13:57]FM_MakeSignedData [13:13:57]FM_MakeSignedData [13:13:57]SAM_PROTO_SignData [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 01 02 [13:13:57]Write to MH i2c: E2 08 00 81 A2 80 0D 01 02 00 00 00 00 9C [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 81 A2 00 90 00 97 [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=255 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 34 E2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 10 6A 00 00 35 04 06 00 D8 [13:13:57]Write to MH i2c: E2 02 01 82 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 34 E2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 10 6A 00 00 35 04 06 00 D8 00 00 76 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 82 A2 00 90 00 98 [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=10 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 02 02 05 E8 0F F5 2D F7 [13:13:57]Write to MH i2c: E2 0D 00 83 A2 80 0D 02 02 05 00 E8 0F F5 2D F7 00 00 B9 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 83 A2 00 90 00 99 [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 03 02 [13:13:57]Write to MH i2c: E2 08 00 84 A2 80 0D 03 02 00 00 00 00 A1 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 0B 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 0B 00 84 A2 00 0A D8 98 D5 4B B1 5A 80 90 00 C7 [13:13:57]RAPDU: 0A D8 98 D5 4B B1 5A 80 90 00 [13:13:57]wFMCommunicate OK [13:13:57]SAM_PROTO_SignData done [13:13:57]FM_MakeSignedData done [13:13:57]CreateOFDProtocolMessage [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 11 00 00 [13:13:57]Write to MH i2c: E2 08 00 85 A2 80 11 00 00 00 00 00 00 A1 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 17 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 17 00 85 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F9 [13:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:13:57]wFMCommunicate OK [13:13:57]CreateOFDProtocolMessage done [13:13:57]OFDSenderStorePacket 27152 [13:13:57]StoreOFDPacket docnum=27152 [13:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 CA 1B 07 01 EB 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 34 E2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 10 6A 00 00 35 04 06 00 D8 E8 0F F5 2D F7 0A D8 98 D5 4B B1 5A 80 [13:13:57]CheckFolder [13:13:57]dirname=/storage/ofd_packets [13:13:57]CheckFolder done [13:13:57]ProducePacketName [13:13:57]name=ofd_packets/00027152 [13:13:57]NVStorageSaveData ofd_packets/00027152 [13:13:57]File name is /storage/ofd_packets/00027152 [13:13:57]Write 301 bytes [13:13:57]NVStorageSaveData done [13:13:57]OFDSenderStorePacket done [13:13:57]KKMCreateOFDPacket done [13:13:57]NVStorageSaveData kkm_last_timestamp [13:13:57]File name is /storage/kkm_last_timestamp [13:13:57]Write 4 bytes [13:13:57]NVStorageSaveData done [13:13:57]ExternCall_PrintAddStr [13:13:57]wPrintStart [13:13:57]Write to MH i2c: 01 00 00 86 A2 28 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 07 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 07 00 86 A2 00 00 00 00 00 FF 0F 3D [13:13:57]RasterBufferAndPrint [13:13:57]line Счет N : (1)359907 [13:13:57]line ИНН: 02508201610067 [13:13:57]line Контрольно-Кассовый Чек [13:13:57]line ПРОДАЖА [13:13:57]line ТРК (МРК, ГНК) : 63 [13:13:57]line Товар: 2710124500 [13:13:57]line Аи-95-К-5 [13:13:57]line 13.910 * 71.90 [13:13:57]line = 1000.13 [13:13:57]line НДС 12% НСП 1% [13:13:57]line > о реализуемом товаре [13:13:57]line ИТОГО: 1000.13 [13:13:57]line НСП 1% : 8.85 [13:13:57]line НДС 12% : 106.21 [13:13:57]line Наличными: 0.00 [13:13:57]line Безнал.: 1000.13 [13:13:57]line Место: АЗС № 122 "Партнер Нефть" [13:13:58]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:13:58]line СНО: Общий режим [13:13:58]line Чек 39 11.04.2024 13:14 [13:13:58]line Смена: 317 ФФД: 1.0 [13:13:58]line ЗНМ: 0300000147 [13:13:58]line РНМ: 0000000000091578 [13:13:58]line Версия ККМ: 001 [13:13:58]line Платежная система: Бакай Банк [13:13:58]line ФМ: 0000000000874657 [13:13:58]line ФД: 27152 [13:13:58]line ФПД: 238491211738615 [13:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T131428&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27152&fm=238491211738615&tin=02508201610067®Number=0000000000091578&sum=100013 [13:13:58]OFD Sender: Processing packet 27152 [packets to send 44, broken 43] [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00027152 [13:13:58]OFD Sender: To server: pG, [13:13:58]CommunicateWithHost lk.salyk.kg:30040 [13:13:58]ConnectInit lk.salyk.kg [13:13:58]written 0, free lines is 4095 [13:13:58]Connected sock=5 [13:13: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 35 37 0F 01 00 00 CA 1B 07 01 EB 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 34 E2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 10 6A 00 00 35 04 06 00 D8 E8 0F F5 2D F7 0A D8 98 D5 4B B1 5A 80 [13:13: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 35 37 4F 00 00 00 AF A6 47 00 00 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 10 6A 00 00 F4 03 04 00 94 89 17 66 B6 04 01 00 00 EE 34 15 43 BD 85 58 80 [13:13:58]CommunicateWithHost err = 0 [13:13:58]CheckOFDResponse [13:13:58]1017 (14) - 77093643461234 [13:13:58]1041 (16) - 0000000000874657 [13:13:58]1040 (4) - 27152 [13:13:58]1012 (4) - 11.04.2024 06:56 [13:13:58]1206 (1) - 0 [13:13:58]OFD Sender: Remove packet 27152 [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00027152 [13:13:58]NVStorageDeleteData [13:13:58]Write to MH i2c: 01 00 00 B0 A2 52 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 B0 A2 00 00 00 00 00 8A 0C EF [13:13:58]RasterBufferAndPrint [13:13:58]line [13:13:58]line [13:13:58]line [13:13:58]line [13:13:58]line [13:13:58]written 0, free lines is 3214 [13:13:58]MH_Cut [13:13:58]Write to MH i2c: D1 01 00 B7 A2 01 2B [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: D1 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: D1 01 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: D1 01 00 B7 A2 00 2A [13:13:58]Write to MH i2c: 01 00 00 B8 A2 5A [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:59]OFD Sender: No OFD packet to send [13:13:59]*** Cut start [13:13:59]*** Partial cut [13:13:59]*** CUTSNS_PIN = 1 [13:13:59]*** CUTSNS_PIN = 0 [13:14:00]*** Brake cut motor [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]*** Stop cut motor [13:14:00]*** Cut end [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 B8 A2 00 00 00 00 00 FF 0F 6F [13:14:00]process_action close_receipt done [13:14:00]requested_data is exist [13:14:00]produce_requested_data [13:14:00]requested_item fm.sn is exist - process it [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 11 00 00 [13:14:00]Write to MH i2c: E2 08 00 B9 A2 80 11 00 00 00 00 00 00 D5 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 B9 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 2D [13:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:14:00]wFMCommunicate OK [13:14:00]requested_item fd.num is exist - process it [13:14:00]SAM_PROTO_GetFieldsCounters [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 13 00 00 [13:14:00]Write to MH i2c: E2 08 00 BA A2 80 13 00 00 00 00 00 00 D8 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 62 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 62 00 BA A2 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 10 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [13:14: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 10 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_GetFieldsCounters done [13:14:00]requested_item shift.num is exist - process it [13:14:00]requested_item shift.opened is exist - process it [13:14:00]req_shift_opened [13:14:00]FM_GetShiftState [13:14:00]SAM_PROTO_GetShiftState [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 13 01 00 [13:14:00]Write to MH i2c: E2 08 00 BB A2 80 13 01 00 00 00 00 00 DA [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:00]Read from MH i2c: E2 0E 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0E 00 BB A2 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 24 [13:14:00]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_GetShiftState done [13:14:00]FM_GetShiftState done [13:14:00]req_shift_opened done [13:14:00]requested_item shift.open_date is exist - process it [13:14:00]req_shift_open_date [13:14:00]req_shift_open_date done [13:14:00]produce_requested_data done [13:14:00]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27152,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [13:14:00]process_action_free close_receipt [13:14:00]json_value_free [13:14:00]json_value_free done [13:14:00]process_json_proto returns [13:14:00]Send response to host [13:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27152,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [13:14:00]free response buf [13:14:00]execute_script done [13:14:00]execute_script returns [13:14:00]free content buf [13:14:00]Sock 8.Close socket [13:14:00]Sock 8.Thread stoped [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:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]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:05]accept exits with 9 [13:31:05]New connection [13:31:05]New thread 3067014500 created [13:31:05]Thread 3066871140 joined [13:31:05]Waiting for new connection... [13:31:05] Sock 9.Parse request [13:31:05]Sock 9.Check first char [13:31:05]Sock 9.First char is OK [13:31:05]request: POST /json_proto HTTP/1.0 [13:31:05]Method: POST [13:31:05]URL: /json_proto [13:31:05]Method is POST - this is cgi request [13:31:05]url: /json_proto [13:31:05]query_string will be loaded in cgi processing [13:31:05]execute_cgi json_proto POST (null) [13:31:05]execute_cgi path=json_proto method=POST [13:31:05]POST find Content-Length [13:31:05]Host: 172.17.35.3:8080 [13:31:05]Content-Length: 677 [13:31:05]Content-Type: application/json [13:31:05] [13:31:05]POST finish read [13:31:05]Found Content-Length = 677 [13:31:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 6.310, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:05]execute_script... [13:31:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 6.310, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:05]POST & json_proto [13:31:05]process_json_proto [13:31:05]json parsed OK: [13:31:05]protocol is kg_v1.0 [13:31:05]action value=close_receipt [13:31:05]process_action close_receipt [13:31:05]cmd_close_receipt [13:31:05]MH_GetDate [13:31:05]Write to MH i2c: F0 00 00 BC A2 4D [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: F0 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: F0 09 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: F0 09 00 BC A2 00 39 E6 17 66 2B 11 66 64 F8 [13:31:05]GetLastDocTimeStamp 1712841268 [13:31:05]current date 1712842297 [13:31:05]FM_GetShiftState [13:31:05]SAM_PROTO_GetShiftState [13:31:05]wFMCommunicate request_size=4 [13:31:05]MH_SAM_APDU [13:31:05]CAPDU: 80 13 01 00 [13:31:05]Write to MH i2c: E2 08 00 BD A2 80 13 01 00 00 00 00 00 DC [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:06]Read from MH i2c: E2 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 0E 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 0E 00 BD A2 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 26 [13:31:06]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:31:06]wFMCommunicate OK [13:31:06]SAM_PROTO_GetShiftState done [13:31:06]FM_GetShiftState done [13:31:06]opened in 1712795538 [13:31:06]opened+sec_in_day 1712881938 [13:31:06]quantity*price = 40005 [13:31:06]sum+1 = 40006 [13:31:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 40 11.04.2024 13:31 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27153 ФПД: 78235772936757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T133137&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27153&fm=78235772936757&tin=02508201610067®Number=0000000000091578&sum=40000 [13:31:07]StoreToDocumentArchive [13:31:07]shift 317 fd 27153 [13:31:07]save to /storage/0317/doc_00027153 [13:31:07]save last doc name /storage/0317/doc_00027153 to /storage/kkm_last_doc_name [13:31:07]save OK [13:31:07]Clear old archive folders... [13:31:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:07]tlvbuf is 0119F650 [13:31:07]SAM_PROTO_ClearQueue [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 09 00 00 [13:31:07]Write to MH i2c: E2 08 00 CA A2 80 09 00 00 00 00 00 00 DE [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 CA A2 00 90 00 E0 [13:31:07]RAPDU: 90 00 [13:31:07]wFMCommunicate OK [13:31:07]SAM_PROTO_ClearQueue done [13:31:07]KKMCreateOFDPacket [13:31:07]OFDProtocolAddRootSTLVToBuf [13:31:07]FM_MakeSignedData [13:31:07]FM_MakeSignedData [13:31:07]SAM_PROTO_SignData [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 0D 01 02 [13:31:07]Write to MH i2c: E2 08 00 CB A2 80 0D 01 02 00 00 00 00 E6 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 CB A2 00 90 00 E1 [13:31:07]RAPDU: 90 00 [13:31:07]wFMCommunicate OK [13:31:07]wFMCommunicate request_size=255 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 39 E6 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 6A 00 00 35 04 06 00 47 [13:31:07]Write to MH i2c: E2 02 01 CC A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 39 E6 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 6A 00 00 35 04 06 00 47 00 00 FC [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 CC A2 00 90 00 E2 [13:31:07]RAPDU: 90 00 [13:31:07]wFMCommunicate OK [13:31:07]wFMCommunicate request_size=10 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 0D 02 02 05 27 AF 74 62 35 [13:31:07]Write to MH i2c: E2 0D 00 CD A2 80 0D 02 02 05 00 27 AF 74 62 35 00 00 D4 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 03 00 CD A2 00 90 00 E3 [13:31:07]RAPDU: 90 00 [13:31:07]wFMCommunicate OK [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 0D 03 02 [13:31:07]Write to MH i2c: E2 08 00 CE A2 80 0D 03 02 00 00 00 00 EB [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0B 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0B 00 CE A2 00 AE CB 4E CA 95 AD E8 82 90 00 29 [13:31:07]RAPDU: AE CB 4E CA 95 AD E8 82 90 00 [13:31:07]wFMCommunicate OK [13:31:07]SAM_PROTO_SignData done [13:31:07]FM_MakeSignedData done [13:31:07]CreateOFDProtocolMessage [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 11 00 00 [13:31:07]Write to MH i2c: E2 08 00 CF A2 80 11 00 00 00 00 00 00 EB [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 17 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 17 00 CF A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 43 [13:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:31:07]wFMCommunicate OK [13:31:07]CreateOFDProtocolMessage done [13:31:07]OFDSenderStorePacket 27153 [13:31:07]StoreOFDPacket docnum=27153 [13:31:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 11 DB 07 01 02 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 39 E6 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 6A 00 00 35 04 06 00 47 27 AF 74 62 35 AE CB 4E CA 95 AD E8 82 [13:31:07]CheckFolder [13:31:07]dirname=/storage/ofd_packets [13:31:07]CheckFolder done [13:31:07]ProducePacketName [13:31:07]name=ofd_packets/00027153 [13:31:07]NVStorageSaveData ofd_packets/00027153 [13:31:07]File name is /storage/ofd_packets/00027153 [13:31:07]Write 301 bytes [13:31:07]NVStorageSaveData done [13:31:07]OFDSenderStorePacket done [13:31:07]KKMCreateOFDPacket done [13:31:07]NVStorageSaveData kkm_last_timestamp [13:31:07]File name is /storage/kkm_last_timestamp [13:31:07]Write 4 bytes [13:31:07]NVStorageSaveData done [13:31:07]ExternCall_PrintAddStr [13:31:07]wPrintStart [13:31:07]Write to MH i2c: 01 00 00 D0 A2 72 [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: 01 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: 01 07 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: 01 07 00 D0 A2 00 00 00 00 00 FF 0F 87 [13:31:07]RasterBufferAndPrint [13:31:07]line Счет N : (1)359908 [13:31:07]line ИНН: 02508201610067 [13:31:07]line Контрольно-Кассовый Чек [13:31:07]line ПРОДАЖА [13:31:07]line ТРК (МРК, ГНК) : 51 [13:31:07]line Товар: 2710124130 [13:31:07]line Аи-92-К-5 [13:31:07]line 6.310 * 63.40 [13:31:07]line = 400.05 [13:31:07]line НДС 12% НСП 1% [13:31:07]line > о реализуемом товаре [13:31:07]line ОКРУГЛЕНИЕ: -0.05 [13:31:07]line ИТОГО: 400.00 [13:31:07]line Внесено: 400.00 [13:31:07]line СДАЧА: 0.00 [13:31:07]line НСП 1% : 3.54 [13:31:07]line НДС 12% : 42.48 [13:31:07]line Наличными: 400.00 [13:31:07]line Безнал.: 0.00 [13:31:07]line Место: АЗС № 122 "Партнер Нефть" [13:31:07]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:31:07]line СНО: Общий режим [13:31:07]line Чек 40 11.04.2024 13:31 [13:31:07]line Смена: 317 ФФД: 1.0 [13:31:07]line ЗНМ: 0300000147 [13:31:07]line РНМ: 0000000000091578 [13:31:07]line Версия ККМ: 001 [13:31:07]line ФМ: 0000000000874657 [13:31:07]line ФД: 27153 [13:31:07]line ФПД: 78235772936757 [13:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T133137&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27153&fm=78235772936757&tin=02508201610067®Number=0000000000091578&sum=40000 [13:31:08]OFD Sender: Processing packet 27153 [packets to send 44, broken 43] [13:31:08]ProducePacketName [13:31:08]name=ofd_packets/00027153 [13:31:08]OFD Sender: To server: pG, [13:31:08]CommunicateWithHost lk.salyk.kg:30040 [13:31:08]ConnectInit lk.salyk.kg [13:31:08]written 0, free lines is 4095 [13:31:08]Connected sock=10 [13:31: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 35 37 0F 01 00 00 11 DB 07 01 02 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 39 E6 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 6A 00 00 35 04 06 00 47 27 AF 74 62 35 AE CB 4E CA 95 AD E8 82 [13:31: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 35 37 4F 00 00 00 26 FB 47 00 A8 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 6A 00 00 F4 03 04 00 9A 8D 17 66 B6 04 01 00 00 2C 9B 4D E0 09 AE FC 06 [13:31:08]CommunicateWithHost err = 0 [13:31:08]CheckOFDResponse [13:31:08]1017 (14) - 77093643461234 [13:31:08]1041 (16) - 0000000000874657 [13:31:08]1040 (4) - 27153 [13:31:08]1012 (4) - 11.04.2024 07:13 [13:31:08]1206 (1) - 0 [13:31:08]OFD Sender: Remove packet 27153 [13:31:08]ProducePacketName [13:31:08]name=ofd_packets/00027153 [13:31:08]NVStorageDeleteData [13:31:08]Write to MH i2c: 01 00 00 FB A2 9D [13:31:08]Write i2c OK [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: 01 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: 01 07 00 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: 01 07 00 FB A2 00 00 00 00 00 73 0C 23 [13:31:08]RasterBufferAndPrint [13:31:08]line [13:31:08]line [13:31:08]line [13:31:08]line [13:31:08]line [13:31:08]written 0, free lines is 3191 [13:31:08]MH_Cut [13:31:08]Write to MH i2c: D1 01 00 02 A3 01 77 [13:31:08]Write i2c OK [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: D1 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: D1 01 00 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: D1 01 00 02 A3 00 76 [13:31:08]Write to MH i2c: 01 00 00 03 A3 A6 [13:31:08]Write i2c OK [13:31:08]MH_I2C_Read... [13:31:08]OFD Sender: No OFD packet to send [13:31:09]*** Cut start [13:31:09]*** Partial cut [13:31:09]*** CUTSNS_PIN = 1 [13:31:09]*** CUTSNS_PIN = 0 [13:31:09]*** Brake cut motor [13:31:10]Read from MH i2c: 01 [13:31:10]MH_I2C_Read... [13:31:10]*** Stop cut motor [13:31:10]*** Cut end [13:31:10]Read from MH i2c: 01 07 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: 01 07 00 03 A3 00 00 00 00 00 FF 0F BB [13:31:10]process_action close_receipt done [13:31:10]requested_data is exist [13:31:10]produce_requested_data [13:31:10]requested_item fm.sn is exist - process it [13:31:10]wFMCommunicate request_size=4 [13:31:10]MH_SAM_APDU [13:31:10]CAPDU: 80 11 00 00 [13:31:10]Write to MH i2c: E2 08 00 04 A3 80 11 00 00 00 00 00 00 21 [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:10]Read from MH i2c: E2 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 17 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 17 00 04 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 79 [13:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:31:10]wFMCommunicate OK [13:31:10]requested_item fd.num is exist - process it [13:31:10]SAM_PROTO_GetFieldsCounters [13:31:10]wFMCommunicate request_size=4 [13:31:10]MH_SAM_APDU [13:31:10]CAPDU: 80 13 00 00 [13:31:10]Write to MH i2c: E2 08 00 05 A3 80 13 00 00 00 00 00 00 24 [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:10]Read from MH i2c: E2 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 62 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 62 00 05 A3 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 11 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [13:31: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 11 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:10]wFMCommunicate OK [13:31:10]SAM_PROTO_GetFieldsCounters done [13:31:10]requested_item shift.num is exist - process it [13:31:10]requested_item shift.opened is exist - process it [13:31:10]req_shift_opened [13:31:10]FM_GetShiftState [13:31:10]SAM_PROTO_GetShiftState [13:31:10]wFMCommunicate request_size=4 [13:31:10]MH_SAM_APDU [13:31:10]CAPDU: 80 13 01 00 [13:31:10]Write to MH i2c: E2 08 00 06 A3 80 13 01 00 00 00 00 00 26 [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:10]Read from MH i2c: E2 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 0E 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: E2 0E 00 06 A3 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 70 [13:31:10]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:31:10]wFMCommunicate OK [13:31:10]SAM_PROTO_GetShiftState done [13:31:10]FM_GetShiftState done [13:31:10]req_shift_opened done [13:31:10]requested_item shift.open_date is exist - process it [13:31:10]req_shift_open_date [13:31:10]req_shift_open_date done [13:31:10]produce_requested_data done [13:31:10]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27153,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [13:31:10]process_action_free close_receipt [13:31:10]json_value_free [13:31:10]json_value_free done [13:31:10]process_json_proto returns [13:31:10]Send response to host [13:31:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27153,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [13:31:10]free response buf [13:31:10]execute_script done [13:31:10]execute_script returns [13:31:10]free content buf [13:31:10]Sock 9.Close socket [13:31:10]Sock 9.Thread stoped [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:08]accept exits with 8 [13:47:08]New connection [13:47:08]New thread 3066871140 created [13:47:08]Thread 3067014500 joined [13:47:08]Waiting for new connection... [13:47:08] Sock 8.Parse request [13:47:08]Sock 8.Check first char [13:47:08]Sock 8.First char is OK [13:47:08]request: POST /json_proto HTTP/1.0 [13:47:08]Method: POST [13:47:08]URL: /json_proto [13:47:08]Method is POST - this is cgi request [13:47:08]url: /json_proto [13:47:08]query_string will be loaded in cgi processing [13:47:08]execute_cgi json_proto POST (null) [13:47:08]execute_cgi path=json_proto method=POST [13:47:08]POST find Content-Length [13:47:08]Host: 172.17.35.3:8080 [13:47:08]Content-Length: 677 [13:47:08]Content-Type: application/json [13:47:08] [13:47:08]POST finish read [13:47:08]Found Content-Length = 677 [13:47:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.060, "sum" : 651.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 651.00, "total" : 651.00, "payments": [ { "type": 0, "sum" : 651.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:08]execute_script... [13:47:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.060, "sum" : 651.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 651.00, "total" : 651.00, "payments": [ { "type": 0, "sum" : 651.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:08]POST & json_proto [13:47:08]process_json_proto [13:47:08]json parsed OK: [13:47:08]protocol is kg_v1.0 [13:47:08]action value=close_receipt [13:47:08]process_action close_receipt [13:47:08]cmd_close_receipt [13:47:08]MH_GetDate [13:47:08]Write to MH i2c: F0 00 00 07 A3 99 [13:47:08]Write i2c OK [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: F0 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: F0 09 00 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: F0 09 00 07 A3 00 FC E9 17 66 2B 11 66 64 0A [13:47:08]GetLastDocTimeStamp 1712842297 [13:47:08]current date 1712843260 [13:47:08]FM_GetShiftState [13:47:08]SAM_PROTO_GetShiftState [13:47:08]wFMCommunicate request_size=4 [13:47:08]MH_SAM_APDU [13:47:08]CAPDU: 80 13 01 00 [13:47:08]Write to MH i2c: E2 08 00 08 A3 80 13 01 00 00 00 00 00 28 [13:47:08]Write i2c OK [13:47:08]MH_I2C_Read... [13:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:08]Read from MH i2c: E2 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: E2 0E 00 [13:47:08]MH_I2C_Read... [13:47:08]Read from MH i2c: E2 0E 00 08 A3 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 72 [13:47:08]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:47:08]wFMCommunicate OK [13:47:08]SAM_PROTO_GetShiftState done [13:47:08]FM_GetShiftState done [13:47:08]opened in 1712795538 [13:47:08]opened+sec_in_day 1712881938 [13:47:08]quantity*price = 65141 [13:47:08]sum+1 = 65142 [13:47:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 651.00 Внесено: 651.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.18 Наличными: 651.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 41 11.04.2024 13:47 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27154 ФПД: 166807036816625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T134740&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27154&fm=166807036816625&tin=02508201610067®Number=0000000000091578&sum=65100 [13:47:10]StoreToDocumentArchive [13:47:10]shift 317 fd 27154 [13:47:10]save to /storage/0317/doc_00027154 [13:47:10]save last doc name /storage/0317/doc_00027154 to /storage/kkm_last_doc_name [13:47:10]save OK [13:47:10]Clear old archive folders... [13:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:10]tlvbuf is 00E3B890 [13:47:10]SAM_PROTO_ClearQueue [13:47:10]wFMCommunicate request_size=4 [13:47:10]MH_SAM_APDU [13:47:10]CAPDU: 80 09 00 00 [13:47:10]Write to MH i2c: E2 08 00 15 A3 80 09 00 00 00 00 00 00 2A [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:10]Read from MH i2c: E2 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 15 A3 00 90 00 2C [13:47:10]RAPDU: 90 00 [13:47:10]wFMCommunicate OK [13:47:10]SAM_PROTO_ClearQueue done [13:47:10]KKMCreateOFDPacket [13:47:10]OFDProtocolAddRootSTLVToBuf [13:47:10]FM_MakeSignedData [13:47:10]FM_MakeSignedData [13:47:10]SAM_PROTO_SignData [13:47:10]wFMCommunicate request_size=4 [13:47:10]MH_SAM_APDU [13:47:10]CAPDU: 80 0D 01 02 [13:47:10]Write to MH i2c: E2 08 00 16 A3 80 0D 01 02 00 00 00 00 32 [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:10]Read from MH i2c: E2 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 16 A3 00 90 00 2D [13:47:10]RAPDU: 90 00 [13:47:10]wFMCommunicate OK [13:47:10]wFMCommunicate request_size=255 [13:47:10]MH_SAM_APDU [13:47:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 75 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1B 00 00 00 00 07 04 06 00 4C FE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FC E9 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 6A 00 00 35 04 06 00 97 [13:47:10]Write to MH i2c: E2 02 01 17 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 75 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1B 00 00 00 00 07 04 06 00 4C FE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FC E9 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 6A 00 00 35 04 06 00 97 00 00 49 [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:10]Read from MH i2c: E2 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 17 A3 00 90 00 2E [13:47:10]RAPDU: 90 00 [13:47:10]wFMCommunicate OK [13:47:10]wFMCommunicate request_size=10 [13:47:10]MH_SAM_APDU [13:47:10]CAPDU: 80 0D 02 02 05 B5 CA 2C EC F1 [13:47:10]Write to MH i2c: E2 0D 00 18 A3 80 0D 02 02 05 00 B5 CA 2C EC F1 00 00 C7 [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:10]Read from MH i2c: E2 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 03 00 18 A3 00 90 00 2F [13:47:10]RAPDU: 90 00 [13:47:10]wFMCommunicate OK [13:47:10]wFMCommunicate request_size=4 [13:47:10]MH_SAM_APDU [13:47:10]CAPDU: 80 0D 03 02 [13:47:10]Write to MH i2c: E2 08 00 19 A3 80 0D 03 02 00 00 00 00 37 [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:10]Read from MH i2c: E2 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 0B 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 0B 00 19 A3 00 69 F6 F8 A5 44 07 54 09 90 00 DC [13:47:10]RAPDU: 69 F6 F8 A5 44 07 54 09 90 00 [13:47:10]wFMCommunicate OK [13:47:10]SAM_PROTO_SignData done [13:47:10]FM_MakeSignedData done [13:47:10]CreateOFDProtocolMessage [13:47:10]wFMCommunicate request_size=4 [13:47:10]MH_SAM_APDU [13:47:10]CAPDU: 80 11 00 00 [13:47:10]Write to MH i2c: E2 08 00 1A A3 80 11 00 00 00 00 00 00 37 [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:10]Read from MH i2c: E2 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 17 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: E2 17 00 1A A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 8F [13:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:47:10]wFMCommunicate OK [13:47:10]CreateOFDProtocolMessage done [13:47:10]OFDSenderStorePacket 27154 [13:47:10]StoreOFDPacket docnum=27154 [13:47:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 1F 9D 07 01 65 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 75 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1B 00 00 00 00 07 04 06 00 4C FE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FC E9 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 6A 00 00 35 04 06 00 97 B5 CA 2C EC F1 69 F6 F8 A5 44 07 54 09 [13:47:10]CheckFolder [13:47:10]dirname=/storage/ofd_packets [13:47:10]CheckFolder done [13:47:10]ProducePacketName [13:47:10]name=ofd_packets/00027154 [13:47:10]NVStorageSaveData ofd_packets/00027154 [13:47:10]File name is /storage/ofd_packets/00027154 [13:47:10]Write 301 bytes [13:47:10]NVStorageSaveData done [13:47:10]OFDSenderStorePacket done [13:47:10]KKMCreateOFDPacket done [13:47:10]NVStorageSaveData kkm_last_timestamp [13:47:10]File name is /storage/kkm_last_timestamp [13:47:10]Write 4 bytes [13:47:10]NVStorageSaveData done [13:47:10]ExternCall_PrintAddStr [13:47:10]wPrintStart [13:47:10]Write to MH i2c: 01 00 00 1B A3 BE [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: 01 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: 01 07 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: 01 07 00 1B A3 00 00 00 00 00 FF 0F D3 [13:47:10]RasterBufferAndPrint [13:47:10]line Счет N : (1)359909 [13:47:10]line ИНН: 02508201610067 [13:47:10]line Контрольно-Кассовый Чек [13:47:10]line ПРОДАЖА [13:47:10]line ТРК (МРК, ГНК) : 63 [13:47:10]line Товар: 2710124500 [13:47:10]line Аи-95-К-5 [13:47:10]line 9.060 * 71.90 [13:47:10]line = 651.41 [13:47:10]line НДС 12% НСП 1% [13:47:10]line > о реализуемом товаре [13:47:10]line ОКРУГЛЕНИЕ: -0.41 [13:47:10]line ИТОГО: 651.00 [13:47:10]line Внесено: 651.00 [13:47:10]line СДАЧА: 0.00 [13:47:10]line НСП 1% : 5.76 [13:47:10]line НДС 12% : 69.18 [13:47:10]line Наличными: 651.00 [13:47:10]line Безнал.: 0.00 [13:47:10]line Место: АЗС № 122 "Партнер Нефть" [13:47:10]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:47:10]line СНО: Общий режим [13:47:10]line Чек 41 11.04.2024 13:47 [13:47:10]line Смена: 317 ФФД: 1.0 [13:47:10]line ЗНМ: 0300000147 [13:47:10]line РНМ: 0000000000091578 [13:47:10]line Версия ККМ: 001 [13:47:10]line ФМ: 0000000000874657 [13:47:10]line ФД: 27154 [13:47:10]line ФПД: 166807036816625 [13:47:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T134740&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27154&fm=166807036816625&tin=02508201610067®Number=0000000000091578&sum=65100 [13:47:10]written 0, free lines is 4095 [13:47:10]OFD Sender: Processing packet 27154 [packets to send 44, broken 43] [13:47:10]ProducePacketName [13:47:10]name=ofd_packets/00027154 [13:47:10]OFD Sender: To server: pG, [13:47:10]CommunicateWithHost lk.salyk.kg:30040 [13:47:10]ConnectInit lk.salyk.kg [13:47:11]Connected sock=9 [13:47: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 35 37 0F 01 00 00 1F 9D 07 01 65 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 64 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 75 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1B 00 00 00 00 07 04 06 00 4C FE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FC E9 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 6A 00 00 35 04 06 00 97 B5 CA 2C EC F1 69 F6 F8 A5 44 07 54 09 [13:47: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 35 37 4F 00 00 00 6A 87 47 00 E9 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 6A 00 00 F4 03 04 00 5C 91 17 66 B6 04 01 00 00 FC 42 60 B4 E4 18 C3 24 [13:47:11]CommunicateWithHost err = 0 [13:47:11]CheckOFDResponse [13:47:11]1017 (14) - 77093643461234 [13:47:11]1041 (16) - 0000000000874657 [13:47:11]1040 (4) - 27154 [13:47:11]1012 (4) - 11.04.2024 07:29 [13:47:11]1206 (1) - 0 [13:47:11]OFD Sender: Remove packet 27154 [13:47:11]ProducePacketName [13:47:11]name=ofd_packets/00027154 [13:47:11]NVStorageDeleteData [13:47:11]Write to MH i2c: 01 00 00 46 A3 E9 [13:47:11]Write i2c OK [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: 01 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: 01 07 00 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: 01 07 00 46 A3 00 00 00 00 00 72 0C 6E [13:47:11]RasterBufferAndPrint [13:47:11]line [13:47:11]line [13:47:11]line [13:47:11]line [13:47:11]line [13:47:11]written 0, free lines is 3190 [13:47:11]MH_Cut [13:47:11]Write to MH i2c: D1 01 00 4D A3 01 C2 [13:47:11]Write i2c OK [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: D1 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: D1 01 00 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: D1 01 00 4D A3 00 C1 [13:47:11]Write to MH i2c: 01 00 00 4E A3 F1 [13:47:11]Write i2c OK [13:47:11]MH_I2C_Read... [13:47:11]OFD Sender: No OFD packet to send [13:47:12]*** Cut start [13:47:12]*** Partial cut [13:47:12]*** CUTSNS_PIN = 1 [13:47:12]*** CUTSNS_PIN = 0 [13:47:12]*** Brake cut motor [13:47:13]Read from MH i2c: 01 [13:47:13]MH_I2C_Read... [13:47:13]*** Stop cut motor [13:47:13]*** Cut end [13:47:13]Read from MH i2c: 01 07 00 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: 01 07 00 4E A3 00 00 00 00 00 FF 0F 06 [13:47:13]process_action close_receipt done [13:47:13]requested_data is exist [13:47:13]produce_requested_data [13:47:13]requested_item fm.sn is exist - process it [13:47:13]wFMCommunicate request_size=4 [13:47:13]MH_SAM_APDU [13:47:13]CAPDU: 80 11 00 00 [13:47:13]Write to MH i2c: E2 08 00 4F A3 80 11 00 00 00 00 00 00 6C [13:47:13]Write i2c OK [13:47:13]MH_I2C_Read... [13:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:13]Read from MH i2c: E2 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: E2 17 00 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: E2 17 00 4F A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C4 [13:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:47:13]wFMCommunicate OK [13:47:13]requested_item fd.num is exist - process it [13:47:13]SAM_PROTO_GetFieldsCounters [13:47:13]wFMCommunicate request_size=4 [13:47:13]MH_SAM_APDU [13:47:13]CAPDU: 80 13 00 00 [13:47:13]Write to MH i2c: E2 08 00 50 A3 80 13 00 00 00 00 00 00 6F [13:47:13]Write i2c OK [13:47:13]MH_I2C_Read... [13:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:13]Read from MH i2c: E2 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: E2 62 00 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: E2 62 00 50 A3 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 12 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [13:47: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 12 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:13]wFMCommunicate OK [13:47:13]SAM_PROTO_GetFieldsCounters done [13:47:13]requested_item shift.num is exist - process it [13:47:13]requested_item shift.opened is exist - process it [13:47:13]req_shift_opened [13:47:13]FM_GetShiftState [13:47:13]SAM_PROTO_GetShiftState [13:47:13]wFMCommunicate request_size=4 [13:47:13]MH_SAM_APDU [13:47:13]CAPDU: 80 13 01 00 [13:47:13]Write to MH i2c: E2 08 00 51 A3 80 13 01 00 00 00 00 00 71 [13:47:13]Write i2c OK [13:47:13]MH_I2C_Read... [13:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:13]Read from MH i2c: E2 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: E2 0E 00 [13:47:13]MH_I2C_Read... [13:47:13]Read from MH i2c: E2 0E 00 51 A3 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 BB [13:47:13]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:47:13]wFMCommunicate OK [13:47:13]SAM_PROTO_GetShiftState done [13:47:13]FM_GetShiftState done [13:47:13]req_shift_opened done [13:47:13]requested_item shift.open_date is exist - process it [13:47:13]req_shift_open_date [13:47:13]req_shift_open_date done [13:47:13]produce_requested_data done [13:47:13]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27154,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [13:47:13]process_action_free close_receipt [13:47:13]json_value_free [13:47:13]json_value_free done [13:47:13]process_json_proto returns [13:47:13]Send response to host [13:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27154,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [13:47:13]free response buf [13:47:13]execute_script done [13:47:13]execute_script returns [13:47:13]free content buf [13:47:13]Sock 8.Close socket [13:47:13]Sock 8.Thread stoped [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:47]accept exits with 10 [13:47:47]New connection [13:47:47]New thread 3067014500 created [13:47:47]Thread 3066871140 joined [13:47:47]Waiting for new connection... [13:47:47] Sock 10.Parse request [13:47:47]Sock 10.Check first char [13:47:47]Sock 10.First char is OK [13:47:47]request: POST /json_proto HTTP/1.0 [13:47:47]Method: POST [13:47:47]URL: /json_proto [13:47:47]Method is POST - this is cgi request [13:47:47]url: /json_proto [13:47:47]query_string will be loaded in cgi processing [13:47:47]execute_cgi json_proto POST (null) [13:47:47]execute_cgi path=json_proto method=POST [13:47:47]POST find Content-Length [13:47:47]Host: 172.17.35.3:8080 [13:47:47]Content-Length: 677 [13:47:47]Content-Type: application/json [13:47:47] [13:47:47]POST finish read [13:47:47]Found Content-Length = 677 [13:47:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 9.470, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:47]execute_script... [13:47:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 9.470, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:47]POST & json_proto [13:47:47]process_json_proto [13:47:47]json parsed OK: [13:47:47]protocol is kg_v1.0 [13:47:47]action value=close_receipt [13:47:47]process_action close_receipt [13:47:47]cmd_close_receipt [13:47:47]MH_GetDate [13:47:47]Write to MH i2c: F0 00 00 52 A3 E4 [13:47:47]Write i2c OK [13:47:47]MH_I2C_Read... [13:47:47]Read from MH i2c: F0 [13:47:47]MH_I2C_Read... [13:47:47]Read from MH i2c: F0 09 00 [13:47:47]MH_I2C_Read... [13:47:47]Read from MH i2c: F0 09 00 52 A3 00 23 EA 17 66 2B 11 66 64 7D [13:47:47]GetLastDocTimeStamp 1712843260 [13:47:47]current date 1712843299 [13:47:47]FM_GetShiftState [13:47:47]SAM_PROTO_GetShiftState [13:47:47]wFMCommunicate request_size=4 [13:47:47]MH_SAM_APDU [13:47:47]CAPDU: 80 13 01 00 [13:47:47]Write to MH i2c: E2 08 00 53 A3 80 13 01 00 00 00 00 00 73 [13:47:47]Write i2c OK [13:47:47]MH_I2C_Read... [13:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:48]Read from MH i2c: E2 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 0E 00 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 0E 00 53 A3 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 BD [13:47:48]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:47:48]wFMCommunicate OK [13:47:48]SAM_PROTO_GetShiftState done [13:47:48]FM_GetShiftState done [13:47:48]opened in 1712795538 [13:47:48]opened+sec_in_day 1712881938 [13:47:48]quantity*price = 60039 [13:47:48]sum+1 = 60041 [13:47:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 42 11.04.2024 13:48 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27155 ФПД: 230422758485142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T134819&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27155&fm=230422758485142&tin=02508201610067®Number=0000000000091578&sum=60000 [13:47:49]StoreToDocumentArchive [13:47:49]shift 317 fd 27155 [13:47:49]save to /storage/0317/doc_00027155 [13:47:49]save last doc name /storage/0317/doc_00027155 to /storage/kkm_last_doc_name [13:47:49]save OK [13:47:49]Clear old archive folders... [13:47:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:49]tlvbuf is 00F30A60 [13:47:49]SAM_PROTO_ClearQueue [13:47:49]wFMCommunicate request_size=4 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 09 00 00 [13:47:49]Write to MH i2c: E2 08 00 60 A3 80 09 00 00 00 00 00 00 75 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 60 A3 00 90 00 77 [13:47:49]RAPDU: 90 00 [13:47:49]wFMCommunicate OK [13:47:49]SAM_PROTO_ClearQueue done [13:47:49]KKMCreateOFDPacket [13:47:49]OFDProtocolAddRootSTLVToBuf [13:47:49]FM_MakeSignedData [13:47:49]FM_MakeSignedData [13:47:49]SAM_PROTO_SignData [13:47:49]wFMCommunicate request_size=4 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 0D 01 02 [13:47:49]Write to MH i2c: E2 08 00 61 A3 80 0D 01 02 00 00 00 00 7D [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 61 A3 00 90 00 78 [13:47:49]RAPDU: 90 00 [13:47:49]wFMCommunicate OK [13:47:49]wFMCommunicate request_size=255 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 23 EA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 6A 00 00 35 04 06 00 D1 [13:47:49]Write to MH i2c: E2 02 01 62 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 23 EA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 6A 00 00 35 04 06 00 D1 00 00 EA [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 62 A3 00 90 00 79 [13:47:49]RAPDU: 90 00 [13:47:49]wFMCommunicate OK [13:47:49]wFMCommunicate request_size=10 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 0D 02 02 05 91 7A AA EC 96 [13:47:49]Write to MH i2c: E2 0D 00 63 A3 80 0D 02 02 05 00 91 7A AA EC 96 00 00 C1 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 03 00 63 A3 00 90 00 7A [13:47:49]RAPDU: 90 00 [13:47:49]wFMCommunicate OK [13:47:49]wFMCommunicate request_size=4 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 0D 03 02 [13:47:49]Write to MH i2c: E2 08 00 64 A3 80 0D 03 02 00 00 00 00 82 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 0B 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 0B 00 64 A3 00 E3 AA 54 BD 32 E5 79 C7 90 00 78 [13:47:49]RAPDU: E3 AA 54 BD 32 E5 79 C7 90 00 [13:47:49]wFMCommunicate OK [13:47:49]SAM_PROTO_SignData done [13:47:49]FM_MakeSignedData done [13:47:49]CreateOFDProtocolMessage [13:47:49]wFMCommunicate request_size=4 [13:47:49]MH_SAM_APDU [13:47:49]CAPDU: 80 11 00 00 [13:47:49]Write to MH i2c: E2 08 00 65 A3 80 11 00 00 00 00 00 00 82 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:49]Read from MH i2c: E2 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 17 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: E2 17 00 65 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 DA [13:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:47:49]wFMCommunicate OK [13:47:49]CreateOFDProtocolMessage done [13:47:49]OFDSenderStorePacket 27155 [13:47:49]StoreOFDPacket docnum=27155 [13:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 AC A5 07 01 53 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 23 EA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 6A 00 00 35 04 06 00 D1 91 7A AA EC 96 E3 AA 54 BD 32 E5 79 C7 [13:47:49]CheckFolder [13:47:49]dirname=/storage/ofd_packets [13:47:49]CheckFolder done [13:47:49]ProducePacketName [13:47:49]name=ofd_packets/00027155 [13:47:49]NVStorageSaveData ofd_packets/00027155 [13:47:49]File name is /storage/ofd_packets/00027155 [13:47:49]Write 301 bytes [13:47:49]NVStorageSaveData done [13:47:49]OFDSenderStorePacket done [13:47:49]KKMCreateOFDPacket done [13:47:49]NVStorageSaveData kkm_last_timestamp [13:47:49]File name is /storage/kkm_last_timestamp [13:47:49]Write 4 bytes [13:47:49]NVStorageSaveData done [13:47:49]ExternCall_PrintAddStr [13:47:49]wPrintStart [13:47:49]Write to MH i2c: 01 00 00 66 A3 09 [13:47:49]Write i2c OK [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: 01 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: 01 07 00 [13:47:49]MH_I2C_Read... [13:47:49]Read from MH i2c: 01 07 00 66 A3 00 00 00 00 00 FF 0F 1E [13:47:49]RasterBufferAndPrint [13:47:49]line Счет N : (1)359910 [13:47:49]line ИНН: 02508201610067 [13:47:49]line Контрольно-Кассовый Чек [13:47:49]line ПРОДАЖА [13:47:49]line ТРК (МРК, ГНК) : 51 [13:47:49]line Товар: 2710124130 [13:47:49]line Аи-92-К-5 [13:47:49]line 9.470 * 63.40 [13:47:49]line = 600.40 [13:47:49]line НДС 12% НСП 1% [13:47:49]line > о реализуемом товаре [13:47:49]line ОКРУГЛЕНИЕ: -0.40 [13:47:49]line ИТОГО: 600.00 [13:47:49]line Внесено: 600.00 [13:47:49]line СДАЧА: 0.00 [13:47:49]line НСП 1% : 5.31 [13:47:49]line НДС 12% : 63.76 [13:47:49]line Наличными: 600.00 [13:47:49]line Безнал.: 0.00 [13:47:49]line Место: АЗС № 122 "Партнер Нефть" [13:47:49]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:47:49]line СНО: Общий режим [13:47:49]line Чек 42 11.04.2024 13:48 [13:47:49]line Смена: 317 ФФД: 1.0 [13:47:49]line ЗНМ: 0300000147 [13:47:49]line РНМ: 0000000000091578 [13:47:49]line Версия ККМ: 001 [13:47:49]line ФМ: 0000000000874657 [13:47:49]line ФД: 27155 [13:47:49]line ФПД: 230422758485142 [13:47:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T134819&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27155&fm=230422758485142&tin=02508201610067®Number=0000000000091578&sum=60000 [13:47:50]OFD Sender: Processing packet 27155 [packets to send 44, broken 43] [13:47:50]ProducePacketName [13:47:50]name=ofd_packets/00027155 [13:47:50]OFD Sender: To server: pG, [13:47:50]CommunicateWithHost lk.salyk.kg:30040 [13:47:50]ConnectInit lk.salyk.kg [13:47:50]written 0, free lines is 4095 [13:47:50]Connected sock=9 [13:47: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 35 37 0F 01 00 00 AC A5 07 01 53 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 23 EA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 6A 00 00 35 04 06 00 D1 91 7A AA EC 96 E3 AA 54 BD 32 E5 79 C7 [13:47: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 35 37 4F 00 00 00 10 E3 47 00 AB F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 6A 00 00 F4 03 04 00 84 91 17 66 B6 04 01 00 00 D6 A8 1C 72 18 AE E4 43 [13:47:50]CommunicateWithHost err = 0 [13:47:50]CheckOFDResponse [13:47:50]1017 (14) - 77093643461234 [13:47:50]1041 (16) - 0000000000874657 [13:47:50]1040 (4) - 27155 [13:47:50]1012 (4) - 11.04.2024 07:30 [13:47:50]1206 (1) - 0 [13:47:50]OFD Sender: Remove packet 27155 [13:47:50]ProducePacketName [13:47:50]name=ofd_packets/00027155 [13:47:50]NVStorageDeleteData [13:47:50]Write to MH i2c: 01 00 00 91 A3 34 [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: 01 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: 01 07 00 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: 01 07 00 91 A3 00 00 00 00 00 7D 0C C4 [13:47:50]RasterBufferAndPrint [13:47:50]line [13:47:50]line [13:47:50]line [13:47:50]line [13:47:50]line [13:47:50]written 0, free lines is 3201 [13:47:50]MH_Cut [13:47:50]Write to MH i2c: D1 01 00 98 A3 01 0D [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: D1 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: D1 01 00 [13:47:50]MH_I2C_Read... [13:47:50]Read from MH i2c: D1 01 00 98 A3 00 0C [13:47:50]Write to MH i2c: 01 00 00 99 A3 3C [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:50]OFD Sender: No OFD packet to send [13:47:51]*** Cut start [13:47:51]*** Partial cut [13:47:51]*** CUTSNS_PIN = 1 [13:47:51]*** CUTSNS_PIN = 0 [13:47:51]*** Brake cut motor [13:47:52]Read from MH i2c: 01 [13:47:52]MH_I2C_Read... [13:47:52]*** Stop cut motor [13:47:52]*** Cut end [13:47:52]Read from MH i2c: 01 07 00 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: 01 07 00 99 A3 00 00 00 00 00 FF 0F 51 [13:47:52]process_action close_receipt done [13:47:52]requested_data is exist [13:47:52]produce_requested_data [13:47:52]requested_item fm.sn is exist - process it [13:47:52]wFMCommunicate request_size=4 [13:47:52]MH_SAM_APDU [13:47:52]CAPDU: 80 11 00 00 [13:47:52]Write to MH i2c: E2 08 00 9A A3 80 11 00 00 00 00 00 00 B7 [13:47:52]Write i2c OK [13:47:52]MH_I2C_Read... [13:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:52]Read from MH i2c: E2 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 17 00 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 17 00 9A A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 0F [13:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:47:52]wFMCommunicate OK [13:47:52]requested_item fd.num is exist - process it [13:47:52]SAM_PROTO_GetFieldsCounters [13:47:52]wFMCommunicate request_size=4 [13:47:52]MH_SAM_APDU [13:47:52]CAPDU: 80 13 00 00 [13:47:52]Write to MH i2c: E2 08 00 9B A3 80 13 00 00 00 00 00 00 BA [13:47:52]Write i2c OK [13:47:52]MH_I2C_Read... [13:47:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:52]Read from MH i2c: E2 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 62 00 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 62 00 9B A3 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 13 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [13:47: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 13 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:52]wFMCommunicate OK [13:47:52]SAM_PROTO_GetFieldsCounters done [13:47:52]requested_item shift.num is exist - process it [13:47:52]requested_item shift.opened is exist - process it [13:47:52]req_shift_opened [13:47:52]FM_GetShiftState [13:47:52]SAM_PROTO_GetShiftState [13:47:52]wFMCommunicate request_size=4 [13:47:52]MH_SAM_APDU [13:47:52]CAPDU: 80 13 01 00 [13:47:52]Write to MH i2c: E2 08 00 9C A3 80 13 01 00 00 00 00 00 BC [13:47:52]Write i2c OK [13:47:52]MH_I2C_Read... [13:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:52]Read from MH i2c: E2 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 0E 00 [13:47:52]MH_I2C_Read... [13:47:52]Read from MH i2c: E2 0E 00 9C A3 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 06 [13:47:52]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:47:52]wFMCommunicate OK [13:47:52]SAM_PROTO_GetShiftState done [13:47:52]FM_GetShiftState done [13:47:52]req_shift_opened done [13:47:52]requested_item shift.open_date is exist - process it [13:47:52]req_shift_open_date [13:47:52]req_shift_open_date done [13:47:52]produce_requested_data done [13:47:52]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27155,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [13:47:52]process_action_free close_receipt [13:47:52]json_value_free [13:47:52]json_value_free done [13:47:52]process_json_proto returns [13:47:52]Send response to host [13:47:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27155,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [13:47:52]free response buf [13:47:52]execute_script done [13:47:52]execute_script returns [13:47:52]free content buf [13:47:52]Sock 10.Close socket [13:47:52]Sock 10.Thread stoped [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:31]accept exits with 8 [13:57:31]New connection [13:57:31]New thread 3066871140 created [13:57:31]Thread 3067014500 joined [13:57:31]Waiting for new connection... [13:57:31] Sock 8.Parse request [13:57:31]Sock 8.Check first char [13:57:31]Sock 8.First char is OK [13:57:31]request: POST /json_proto HTTP/1.0 [13:57:31]Method: POST [13:57:31]URL: /json_proto [13:57:31]Method is POST - this is cgi request [13:57:31]url: /json_proto [13:57:31]query_string will be loaded in cgi processing [13:57:31]execute_cgi json_proto POST (null) [13:57:31]execute_cgi path=json_proto method=POST [13:57:31]POST find Content-Length [13:57:31]Host: 172.17.35.3:8080 [13:57:31]Content-Length: 682 [13:57:31]Content-Type: application/json [13:57:31] [13:57:31]POST finish read [13:57:31]Found Content-Length = 682 [13:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:31]execute_script... [13:57:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:31]POST & json_proto [13:57:31]process_json_proto [13:57:31]json parsed OK: [13:57:31]protocol is kg_v1.0 [13:57:31]action value=close_receipt [13:57:31]process_action close_receipt [13:57:31]cmd_close_receipt [13:57:31]MH_GetDate [13:57:31]Write to MH i2c: F0 00 00 9D A3 2F [13:57:31]Write i2c OK [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: F0 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: F0 09 00 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: F0 09 00 9D A3 00 6B EC 17 66 2B 11 66 64 12 [13:57:31]GetLastDocTimeStamp 1712843299 [13:57:31]current date 1712843883 [13:57:31]FM_GetShiftState [13:57:31]SAM_PROTO_GetShiftState [13:57:31]wFMCommunicate request_size=4 [13:57:31]MH_SAM_APDU [13:57:31]CAPDU: 80 13 01 00 [13:57:31]Write to MH i2c: E2 08 00 9E A3 80 13 01 00 00 00 00 00 BE [13:57:31]Write i2c OK [13:57:31]MH_I2C_Read... [13:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:31]Read from MH i2c: E2 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 0E 00 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 0E 00 9E A3 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 08 [13:57:31]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:57:31]wFMCommunicate OK [13:57:31]SAM_PROTO_GetShiftState done [13:57:31]FM_GetShiftState done [13:57:31]opened in 1712795538 [13:57:31]opened+sec_in_day 1712881938 [13:57:31]quantity*price = 100045 [13:57:31]sum+1 = 100046 [13:57:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 43 11.04.2024 13:58 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27156 ФПД: 108027937789576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T135803&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27156&fm=108027937789576&tin=02508201610067®Number=0000000000091578&sum=100000 [13:57:32]StoreToDocumentArchive [13:57:32]shift 317 fd 27156 [13:57:32]save to /storage/0317/doc_00027156 [13:57:32]save last doc name /storage/0317/doc_00027156 to /storage/kkm_last_doc_name [13:57:32]save OK [13:57:32]Clear old archive folders... [13:57:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:32]tlvbuf is 00EF4310 [13:57:32]SAM_PROTO_ClearQueue [13:57:32]wFMCommunicate request_size=4 [13:57:32]MH_SAM_APDU [13:57:32]CAPDU: 80 09 00 00 [13:57:32]Write to MH i2c: E2 08 00 AB A3 80 09 00 00 00 00 00 00 C0 [13:57:32]Write i2c OK [13:57:32]MH_I2C_Read... [13:57:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:32]Read from MH i2c: E2 [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: E2 03 00 [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: E2 03 00 AB A3 00 90 00 C2 [13:57:32]RAPDU: 90 00 [13:57:32]wFMCommunicate OK [13:57:32]SAM_PROTO_ClearQueue done [13:57:32]KKMCreateOFDPacket [13:57:32]OFDProtocolAddRootSTLVToBuf [13:57:32]FM_MakeSignedData [13:57:32]FM_MakeSignedData [13:57:32]SAM_PROTO_SignData [13:57:32]wFMCommunicate request_size=4 [13:57:32]MH_SAM_APDU [13:57:32]CAPDU: 80 0D 01 02 [13:57:32]Write to MH i2c: E2 08 00 AC A3 80 0D 01 02 00 00 00 00 C8 [13:57:32]Write i2c OK [13:57:32]MH_I2C_Read... [13:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:32]Read from MH i2c: E2 [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: E2 03 00 [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: E2 03 00 AC A3 00 90 00 C3 [13:57:32]RAPDU: 90 00 [13:57:32]wFMCommunicate OK [13:57:32]wFMCommunicate request_size=255 [13:57:32]MH_SAM_APDU [13:57:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6B EC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 6A 00 00 35 04 06 00 62 [13:57:32]Write to MH i2c: E2 02 01 AD A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6B EC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 6A 00 00 35 04 06 00 62 00 00 79 [13:57:32]Write i2c OK [13:57:32]MH_I2C_Read... [13:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:33]Read from MH i2c: E2 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 03 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 03 00 AD A3 00 90 00 C4 [13:57:33]RAPDU: 90 00 [13:57:33]wFMCommunicate OK [13:57:33]wFMCommunicate request_size=10 [13:57:33]MH_SAM_APDU [13:57:33]CAPDU: 80 0D 02 02 05 40 36 DB 96 88 [13:57:33]Write to MH i2c: E2 0D 00 AE A3 80 0D 02 02 05 00 40 36 DB 96 88 00 00 44 [13:57:33]Write i2c OK [13:57:33]MH_I2C_Read... [13:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:33]Read from MH i2c: E2 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 03 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 03 00 AE A3 00 90 00 C5 [13:57:33]RAPDU: 90 00 [13:57:33]wFMCommunicate OK [13:57:33]wFMCommunicate request_size=4 [13:57:33]MH_SAM_APDU [13:57:33]CAPDU: 80 0D 03 02 [13:57:33]Write to MH i2c: E2 08 00 AF A3 80 0D 03 02 00 00 00 00 CD [13:57:33]Write i2c OK [13:57:33]MH_I2C_Read... [13:57:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:33]Read from MH i2c: E2 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 0B 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 0B 00 AF A3 00 5D 80 3A 59 03 30 2D 51 90 00 EF [13:57:33]RAPDU: 5D 80 3A 59 03 30 2D 51 90 00 [13:57:33]wFMCommunicate OK [13:57:33]SAM_PROTO_SignData done [13:57:33]FM_MakeSignedData done [13:57:33]CreateOFDProtocolMessage [13:57:33]wFMCommunicate request_size=4 [13:57:33]MH_SAM_APDU [13:57:33]CAPDU: 80 11 00 00 [13:57:33]Write to MH i2c: E2 08 00 B0 A3 80 11 00 00 00 00 00 00 CD [13:57:33]Write i2c OK [13:57:33]MH_I2C_Read... [13:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:33]Read from MH i2c: E2 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 17 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 17 00 B0 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 25 [13:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:57:33]wFMCommunicate OK [13:57:33]CreateOFDProtocolMessage done [13:57:33]OFDSenderStorePacket 27156 [13:57:33]StoreOFDPacket docnum=27156 [13:57:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 07 76 07 01 E1 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6B EC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 6A 00 00 35 04 06 00 62 40 36 DB 96 88 5D 80 3A 59 03 30 2D 51 [13:57:33]CheckFolder [13:57:33]dirname=/storage/ofd_packets [13:57:33]CheckFolder done [13:57:33]ProducePacketName [13:57:33]name=ofd_packets/00027156 [13:57:33]NVStorageSaveData ofd_packets/00027156 [13:57:33]File name is /storage/ofd_packets/00027156 [13:57:33]Write 301 bytes [13:57:33]NVStorageSaveData done [13:57:33]OFDSenderStorePacket done [13:57:33]KKMCreateOFDPacket done [13:57:33]NVStorageSaveData kkm_last_timestamp [13:57:33]File name is /storage/kkm_last_timestamp [13:57:33]Write 4 bytes [13:57:33]NVStorageSaveData done [13:57:33]ExternCall_PrintAddStr [13:57:33]wPrintStart [13:57:33]Write to MH i2c: 01 00 00 B1 A3 54 [13:57:33]Write i2c OK [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: 01 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: 01 07 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: 01 07 00 B1 A3 00 00 00 00 00 FF 0F 69 [13:57:33]RasterBufferAndPrint [13:57:33]line Счет N : (1)359911 [13:57:33]line ИНН: 02508201610067 [13:57:33]line Контрольно-Кассовый Чек [13:57:33]line ПРОДАЖА [13:57:33]line ТРК (МРК, ГНК) : 61 [13:57:33]line Товар: 2710124130 [13:57:33]line Аи-92-К-5 [13:57:33]line 15.780 * 63.40 [13:57:33]line = 1000.45 [13:57:33]line НДС 12% НСП 1% [13:57:33]line > о реализуемом товаре [13:57:33]line ОКРУГЛЕНИЕ: -0.45 [13:57:33]line ИТОГО: 1000.00 [13:57:33]line Внесено: 1000.00 [13:57:33]line СДАЧА: 0.00 [13:57:33]line НСП 1% : 8.85 [13:57:33]line НДС 12% : 106.24 [13:57:33]line Наличными: 1000.00 [13:57:33]line Безнал.: 0.00 [13:57:33]line Место: АЗС № 122 "Партнер Нефть" [13:57:33]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:57:33]line СНО: Общий режим [13:57:33]line Чек 43 11.04.2024 13:58 [13:57:33]line Смена: 317 ФФД: 1.0 [13:57:33]line ЗНМ: 0300000147 [13:57:33]line РНМ: 0000000000091578 [13:57:33]line Версия ККМ: 001 [13:57:33]line ФМ: 0000000000874657 [13:57:33]line ФД: 27156 [13:57:33]line ФПД: 108027937789576 [13:57:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T135803&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27156&fm=108027937789576&tin=02508201610067®Number=0000000000091578&sum=100000 [13:57:33]OFD Sender: Processing packet 27156 [packets to send 44, broken 43] [13:57:33]ProducePacketName [13:57:33]name=ofd_packets/00027156 [13:57:33]OFD Sender: To server: pG, [13:57:33]CommunicateWithHost lk.salyk.kg:30040 [13:57:33]ConnectInit lk.salyk.kg [13:57:33]written 0, free lines is 4095 [13:57:33]Connected sock=10 [13:57: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 35 37 0F 01 00 00 07 76 07 01 E1 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6B EC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 6A 00 00 35 04 06 00 62 40 36 DB 96 88 5D 80 3A 59 03 30 2D 51 [13:57: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 35 37 4F 00 00 00 86 1F 47 00 FA 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 6A 00 00 F4 03 04 00 CB 93 17 66 B6 04 01 00 00 E8 D3 21 32 D9 03 BF 37 [13:57:33]CommunicateWithHost err = 0 [13:57:33]CheckOFDResponse [13:57:33]1017 (14) - 77093643461234 [13:57:33]1041 (16) - 0000000000874657 [13:57:33]1040 (4) - 27156 [13:57:33]1012 (4) - 11.04.2024 07:39 [13:57:33]1206 (1) - 0 [13:57:33]OFD Sender: Remove packet 27156 [13:57:33]ProducePacketName [13:57:33]name=ofd_packets/00027156 [13:57:33]NVStorageDeleteData [13:57:34]Write to MH i2c: 01 00 00 DC A3 7F [13:57:34]Write i2c OK [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: 01 [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: 01 07 00 [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: 01 07 00 DC A3 00 00 00 00 00 77 0C 09 [13:57:34]RasterBufferAndPrint [13:57:34]line [13:57:34]line [13:57:34]line [13:57:34]line [13:57:34]line [13:57:34]written 0, free lines is 3194 [13:57:34]MH_Cut [13:57:34]Write to MH i2c: D1 01 00 E3 A3 01 58 [13:57:34]Write i2c OK [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: D1 [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: D1 01 00 [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: D1 01 00 E3 A3 00 57 [13:57:34]Write to MH i2c: 01 00 00 E4 A3 87 [13:57:34]Write i2c OK [13:57:34]MH_I2C_Read... [13:57:34]OFD Sender: No OFD packet to send [13:57:35]*** Cut start [13:57:35]*** Partial cut [13:57:35]*** CUTSNS_PIN = 1 [13:57:35]*** CUTSNS_PIN = 0 [13:57:35]*** Brake cut motor [13:57:35]Read from MH i2c: 01 [13:57:35]MH_I2C_Read... [13:57:35]*** Stop cut motor [13:57:35]*** Cut end [13:57:35]Read from MH i2c: 01 07 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: 01 07 00 E4 A3 00 00 00 00 00 FF 0F 9C [13:57:35]process_action close_receipt done [13:57:35]requested_data is exist [13:57:35]produce_requested_data [13:57:35]requested_item fm.sn is exist - process it [13:57:35]wFMCommunicate request_size=4 [13:57:35]MH_SAM_APDU [13:57:35]CAPDU: 80 11 00 00 [13:57:35]Write to MH i2c: E2 08 00 E5 A3 80 11 00 00 00 00 00 00 02 [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 17 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 17 00 E5 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 5A [13:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:57:36]wFMCommunicate OK [13:57:36]requested_item fd.num is exist - process it [13:57:36]SAM_PROTO_GetFieldsCounters [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 13 00 00 [13:57:36]Write to MH i2c: E2 08 00 E6 A3 80 13 00 00 00 00 00 00 05 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 62 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 62 00 E6 A3 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 14 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [13:57: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 14 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:36]wFMCommunicate OK [13:57:36]SAM_PROTO_GetFieldsCounters done [13:57:36]requested_item shift.num is exist - process it [13:57:36]requested_item shift.opened is exist - process it [13:57:36]req_shift_opened [13:57:36]FM_GetShiftState [13:57:36]SAM_PROTO_GetShiftState [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 13 01 00 [13:57:36]Write to MH i2c: E2 08 00 E7 A3 80 13 01 00 00 00 00 00 07 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 0E 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 0E 00 E7 A3 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 51 [13:57:36]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:57:36]wFMCommunicate OK [13:57:36]SAM_PROTO_GetShiftState done [13:57:36]FM_GetShiftState done [13:57:36]req_shift_opened done [13:57:36]requested_item shift.open_date is exist - process it [13:57:36]req_shift_open_date [13:57:36]req_shift_open_date done [13:57:36]produce_requested_data done [13:57:36]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27156,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [13:57:36]process_action_free close_receipt [13:57:36]json_value_free [13:57:36]json_value_free done [13:57:36]process_json_proto returns [13:57:36]Send response to host [13:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27156,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [13:57:36]free response buf [13:57:36]execute_script done [13:57:36]execute_script returns [13:57:36]free content buf [13:57:36]Sock 8.Close socket [13:57:36]Sock 8.Thread stoped [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:58]accept exits with 9 [13:58:58]New connection [13:58:58]New thread 3067014500 created [13:58:58]Thread 3066871140 joined [13:58:58]Waiting for new connection... [13:58:58] Sock 9.Parse request [13:58:58]Sock 9.Check first char [13:58:58]Sock 9.First char is OK [13:58:58]request: POST /json_proto HTTP/1.0 [13:58:58]Method: POST [13:58:58]URL: /json_proto [13:58:58]Method is POST - this is cgi request [13:58:58]url: /json_proto [13:58:58]query_string will be loaded in cgi processing [13:58:58]execute_cgi json_proto POST (null) [13:58:58]execute_cgi path=json_proto method=POST [13:58:58]POST find Content-Length [13:58:58]Host: 172.17.35.3:8080 [13:58:58]Content-Length: 682 [13:58:58]Content-Type: application/json [13:58:58] [13:58:58]POST finish read [13:58:58]Found Content-Length = 682 [13:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 31.550, "sum" : 2000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:58]execute_script... [13:58:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 31.550, "sum" : 2000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:58]POST & json_proto [13:58:58]process_json_proto [13:58:58]json parsed OK: [13:58:58]protocol is kg_v1.0 [13:58:58]action value=close_receipt [13:58:58]process_action close_receipt [13:58:58]cmd_close_receipt [13:58:58]MH_GetDate [13:58:58]Write to MH i2c: F0 00 00 E8 A3 7A [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: F0 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: F0 09 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: F0 09 00 E8 A3 00 C2 EC 17 66 2B 11 66 64 B4 [13:58:58]GetLastDocTimeStamp 1712843883 [13:58:58]current date 1712843970 [13:58:58]FM_GetShiftState [13:58:58]SAM_PROTO_GetShiftState [13:58:58]wFMCommunicate request_size=4 [13:58:58]MH_SAM_APDU [13:58:58]CAPDU: 80 13 01 00 [13:58:58]Write to MH i2c: E2 08 00 E9 A3 80 13 01 00 00 00 00 00 09 [13:58:58]Write i2c OK [13:58:58]MH_I2C_Read... [13:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:58]Read from MH i2c: E2 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 0E 00 [13:58:58]MH_I2C_Read... [13:58:58]Read from MH i2c: E2 0E 00 E9 A3 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 53 [13:58:58]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:58:58]wFMCommunicate OK [13:58:58]SAM_PROTO_GetShiftState done [13:58:58]FM_GetShiftState done [13:58:58]opened in 1712795538 [13:58:58]opened+sec_in_day 1712881938 [13:58:58]quantity*price = 200027 [13:58:58]sum+1 = 200028 [13:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 44 11.04.2024 13:59 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27157 ФПД: 161366978285954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T135930&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27157&fm=161366978285954&tin=02508201610067®Number=0000000000091578&sum=200000 [13:58:59]StoreToDocumentArchive [13:58:59]shift 317 fd 27157 [13:58:59]save to /storage/0317/doc_00027157 [13:58:59]save last doc name /storage/0317/doc_00027157 to /storage/kkm_last_doc_name [13:58:59]save OK [13:58:59]Clear old archive folders... [13:59:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:00]tlvbuf is 01163340 [13:59:00]SAM_PROTO_ClearQueue [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 09 00 00 [13:59:00]Write to MH i2c: E2 08 00 F6 A3 80 09 00 00 00 00 00 00 0B [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 F6 A3 00 90 00 0D [13:59:00]RAPDU: 90 00 [13:59:00]wFMCommunicate OK [13:59:00]SAM_PROTO_ClearQueue done [13:59:00]KKMCreateOFDPacket [13:59:00]OFDProtocolAddRootSTLVToBuf [13:59:00]FM_MakeSignedData [13:59:00]FM_MakeSignedData [13:59:00]SAM_PROTO_SignData [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 0D 01 02 [13:59:00]Write to MH i2c: E2 08 00 F7 A3 80 0D 01 02 00 00 00 00 13 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 F7 A3 00 90 00 0E [13:59:00]RAPDU: 90 00 [13:59:00]wFMCommunicate OK [13:59:00]wFMCommunicate request_size=255 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C2 EC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 6A 00 00 35 04 06 00 92 [13:59:00]Write to MH i2c: E2 02 01 F8 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C2 EC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 6A 00 00 35 04 06 00 92 00 00 A9 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 F8 A3 00 90 00 0F [13:59:00]RAPDU: 90 00 [13:59:00]wFMCommunicate OK [13:59:00]wFMCommunicate request_size=10 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 0D 02 02 05 C3 2D 6B 51 82 [13:59:00]Write to MH i2c: E2 0D 00 F9 A3 80 0D 02 02 05 00 C3 2D 6B 51 82 00 00 4E [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 03 00 F9 A3 00 90 00 10 [13:59:00]RAPDU: 90 00 [13:59:00]wFMCommunicate OK [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 0D 03 02 [13:59:00]Write to MH i2c: E2 08 00 FA A3 80 0D 03 02 00 00 00 00 18 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 0B 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 0B 00 FA A3 00 8D 61 A5 E7 99 89 94 16 90 00 5F [13:59:00]RAPDU: 8D 61 A5 E7 99 89 94 16 90 00 [13:59:00]wFMCommunicate OK [13:59:00]SAM_PROTO_SignData done [13:59:00]FM_MakeSignedData done [13:59:00]CreateOFDProtocolMessage [13:59:00]wFMCommunicate request_size=4 [13:59:00]MH_SAM_APDU [13:59:00]CAPDU: 80 11 00 00 [13:59:00]Write to MH i2c: E2 08 00 FB A3 80 11 00 00 00 00 00 00 18 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:00]Read from MH i2c: E2 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 17 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: E2 17 00 FB A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 70 [13:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:59:00]wFMCommunicate OK [13:59:00]CreateOFDProtocolMessage done [13:59:00]OFDSenderStorePacket 27157 [13:59:00]StoreOFDPacket docnum=27157 [13:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D3 70 07 01 04 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C2 EC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 6A 00 00 35 04 06 00 92 C3 2D 6B 51 82 8D 61 A5 E7 99 89 94 16 [13:59:00]CheckFolder [13:59:00]dirname=/storage/ofd_packets [13:59:00]CheckFolder done [13:59:00]ProducePacketName [13:59:00]name=ofd_packets/00027157 [13:59:00]NVStorageSaveData ofd_packets/00027157 [13:59:00]File name is /storage/ofd_packets/00027157 [13:59:00]Write 301 bytes [13:59:00]NVStorageSaveData done [13:59:00]OFDSenderStorePacket done [13:59:00]KKMCreateOFDPacket done [13:59:00]NVStorageSaveData kkm_last_timestamp [13:59:00]File name is /storage/kkm_last_timestamp [13:59:00]Write 4 bytes [13:59:00]NVStorageSaveData done [13:59:00]ExternCall_PrintAddStr [13:59:00]wPrintStart [13:59:00]Write to MH i2c: 01 00 00 FC A3 9F [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 07 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 07 00 FC A3 00 00 00 00 00 FF 0F B4 [13:59:00]RasterBufferAndPrint [13:59:00]line Счет N : (1)359912 [13:59:00]line ИНН: 02508201610067 [13:59:00]line Контрольно-Кассовый Чек [13:59:00]line ПРОДАЖА [13:59:00]line ТРК (МРК, ГНК) : 51 [13:59:00]line Товар: 2710124130 [13:59:00]line Аи-92-К-5 [13:59:00]line 31.550 * 63.40 [13:59:00]line = 2000.27 [13:59:00]line НДС 12% НСП 1% [13:59:00]line > о реализуемом товаре [13:59:00]line ОКРУГЛЕНИЕ: -0.27 [13:59:00]line ИТОГО: 2000.00 [13:59:00]line Внесено: 2000.00 [13:59:00]line СДАЧА: 0.00 [13:59:00]line НСП 1% : 17.70 [13:59:00]line НДС 12% : 212.42 [13:59:00]line Наличными: 2000.00 [13:59:00]line Безнал.: 0.00 [13:59:00]line Место: АЗС № 122 "Партнер Нефть" [13:59:00]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:59:00]line СНО: Общий режим [13:59:00]line Чек 44 11.04.2024 13:59 [13:59:00]line Смена: 317 ФФД: 1.0 [13:59:00]line ЗНМ: 0300000147 [13:59:00]line РНМ: 0000000000091578 [13:59:00]line Версия ККМ: 001 [13:59:00]line ФМ: 0000000000874657 [13:59:00]line ФД: 27157 [13:59:00]line ФПД: 161366978285954 [13:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T135930&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27157&fm=161366978285954&tin=02508201610067®Number=0000000000091578&sum=200000 [13:59:00]OFD Sender: Processing packet 27157 [packets to send 44, broken 43] [13:59:00]ProducePacketName [13:59:00]name=ofd_packets/00027157 [13:59:00]OFD Sender: To server: pG, [13:59:00]CommunicateWithHost lk.salyk.kg:30040 [13:59:00]ConnectInit lk.salyk.kg [13:59:00]written 0, free lines is 4095 [13:59:00]Connected sock=10 [13:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D3 70 07 01 04 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C2 EC 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 6A 00 00 35 04 06 00 92 C3 2D 6B 51 82 8D 61 A5 E7 99 89 94 16 [13:59: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 35 37 4F 00 00 00 0E 67 47 00 46 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 6A 00 00 F4 03 04 00 22 94 17 66 B6 04 01 00 00 5F 6B 65 90 E6 CD 4F 8D [13:59:01]CommunicateWithHost err = 0 [13:59:01]CheckOFDResponse [13:59:01]1017 (14) - 77093643461234 [13:59:01]1041 (16) - 0000000000874657 [13:59:01]1040 (4) - 27157 [13:59:01]1012 (4) - 11.04.2024 07:41 [13:59:01]1206 (1) - 0 [13:59:01]OFD Sender: Remove packet 27157 [13:59:01]ProducePacketName [13:59:01]name=ofd_packets/00027157 [13:59:01]NVStorageDeleteData [13:59:01]Write to MH i2c: 01 00 00 27 A4 CB [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: 01 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: 01 07 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: 01 07 00 27 A4 00 00 00 00 00 7E 0C 5C [13:59:01]RasterBufferAndPrint [13:59:01]line [13:59:01]line [13:59:01]line [13:59:01]line [13:59:01]line [13:59:01]written 0, free lines is 3202 [13:59:01]MH_Cut [13:59:01]Write to MH i2c: D1 01 00 2E A4 01 A4 [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: D1 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: D1 01 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: D1 01 00 2E A4 00 A3 [13:59:01]Write to MH i2c: 01 00 00 2F A4 D3 [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]OFD Sender: No OFD packet to send [13:59:02]*** Cut start [13:59:02]*** Partial cut [13:59:02]*** CUTSNS_PIN = 1 [13:59:02]*** CUTSNS_PIN = 0 [13:59:02]*** Brake cut motor [13:59:03]Read from MH i2c: 01 [13:59:03]MH_I2C_Read... [13:59:03]*** Stop cut motor [13:59:03]*** Cut end [13:59:03]Read from MH i2c: 01 07 00 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: 01 07 00 2F A4 00 00 00 00 00 FF 0F E8 [13:59:03]process_action close_receipt done [13:59:03]requested_data is exist [13:59:03]produce_requested_data [13:59:03]requested_item fm.sn is exist - process it [13:59:03]wFMCommunicate request_size=4 [13:59:03]MH_SAM_APDU [13:59:03]CAPDU: 80 11 00 00 [13:59:03]Write to MH i2c: E2 08 00 30 A4 80 11 00 00 00 00 00 00 4E [13:59:03]Write i2c OK [13:59:03]MH_I2C_Read... [13:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:03]Read from MH i2c: E2 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: E2 17 00 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: E2 17 00 30 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 A6 [13:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:59:03]wFMCommunicate OK [13:59:03]requested_item fd.num is exist - process it [13:59:03]SAM_PROTO_GetFieldsCounters [13:59:03]wFMCommunicate request_size=4 [13:59:03]MH_SAM_APDU [13:59:03]CAPDU: 80 13 00 00 [13:59:03]Write to MH i2c: E2 08 00 31 A4 80 13 00 00 00 00 00 00 51 [13:59:03]Write i2c OK [13:59:03]MH_I2C_Read... [13:59:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:03]Read from MH i2c: E2 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: E2 62 00 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: E2 62 00 31 A4 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 15 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [13:59: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 15 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:03]wFMCommunicate OK [13:59:03]SAM_PROTO_GetFieldsCounters done [13:59:03]requested_item shift.num is exist - process it [13:59:03]requested_item shift.opened is exist - process it [13:59:03]req_shift_opened [13:59:03]FM_GetShiftState [13:59:03]SAM_PROTO_GetShiftState [13:59:03]wFMCommunicate request_size=4 [13:59:03]MH_SAM_APDU [13:59:03]CAPDU: 80 13 01 00 [13:59:03]Write to MH i2c: E2 08 00 32 A4 80 13 01 00 00 00 00 00 53 [13:59:03]Write i2c OK [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: E2 [13:59:03]MH_I2C_Read... [13:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:03]Read from MH i2c: E2 0E 00 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: E2 0E 00 32 A4 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 9D [13:59:03]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [13:59:03]wFMCommunicate OK [13:59:03]SAM_PROTO_GetShiftState done [13:59:03]FM_GetShiftState done [13:59:03]req_shift_opened done [13:59:03]requested_item shift.open_date is exist - process it [13:59:03]req_shift_open_date [13:59:03]req_shift_open_date done [13:59:03]produce_requested_data done [13:59:03]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27157,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [13:59:03]process_action_free close_receipt [13:59:03]json_value_free [13:59:03]json_value_free done [13:59:03]process_json_proto returns [13:59:03]Send response to host [13:59:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27157,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [13:59:03]free response buf [13:59:03]execute_script done [13:59:03]execute_script returns [13:59:03]free content buf [13:59:03]Sock 9.Close socket [13:59:03]Sock 9.Thread stoped [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:29]accept exits with 8 [14:04:29]New connection [14:04:29]New thread 3066871140 created [14:04:29]Thread 3067014500 joined [14:04:29]Waiting for new connection... [14:04:29] Sock 8.Parse request [14:04:29]Sock 8.Check first char [14:04:29]Sock 8.First char is OK [14:04:29]request: POST /json_proto HTTP/1.0 [14:04:29]Method: POST [14:04:29]URL: /json_proto [14:04:29]Method is POST - this is cgi request [14:04:29]url: /json_proto [14:04:29]query_string will be loaded in cgi processing [14:04:29]execute_cgi json_proto POST (null) [14:04:29]execute_cgi path=json_proto method=POST [14:04:29]POST find Content-Length [14:04:29]Host: 172.17.35.3:8080 [14:04:29]Content-Length: 677 [14:04:29]Content-Type: application/json [14:04:29] [14:04:29]POST finish read [14:04:29]Found Content-Length = 677 [14:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:29]execute_script... [14:04:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:29]POST & json_proto [14:04:29]process_json_proto [14:04:29]json parsed OK: [14:04:29]protocol is kg_v1.0 [14:04:29]action value=close_receipt [14:04:29]process_action close_receipt [14:04:29]cmd_close_receipt [14:04:29]MH_GetDate [14:04:29]Write to MH i2c: F0 00 00 33 A4 C6 [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: F0 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: F0 09 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: F0 09 00 33 A4 00 0D EE 17 66 2B 11 66 64 4D [14:04:29]GetLastDocTimeStamp 1712843970 [14:04:29]current date 1712844301 [14:04:29]FM_GetShiftState [14:04:29]SAM_PROTO_GetShiftState [14:04:29]wFMCommunicate request_size=4 [14:04:29]MH_SAM_APDU [14:04:29]CAPDU: 80 13 01 00 [14:04:29]Write to MH i2c: E2 08 00 34 A4 80 13 01 00 00 00 00 00 55 [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:29]Read from MH i2c: E2 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 0E 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: E2 0E 00 34 A4 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 9F [14:04:29]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:04:29]wFMCommunicate OK [14:04:29]SAM_PROTO_GetShiftState done [14:04:29]FM_GetShiftState done [14:04:29]opened in 1712795538 [14:04:29]opened+sec_in_day 1712881938 [14:04:29]quantity*price = 50022 [14:04:29]sum+1 = 50024 [14:04:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 45 11.04.2024 14:05 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27158 ФПД: 183410755354198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T140501&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27158&fm=183410755354198&tin=02508201610067®Number=0000000000091578&sum=50000 [14:04:30]StoreToDocumentArchive [14:04:30]shift 317 fd 27158 [14:04:30]save to /storage/0317/doc_00027158 [14:04:30]save last doc name /storage/0317/doc_00027158 to /storage/kkm_last_doc_name [14:04:30]save OK [14:04:30]Clear old archive folders... [14:04:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:30]tlvbuf is 00E55020 [14:04:30]SAM_PROTO_ClearQueue [14:04:30]wFMCommunicate request_size=4 [14:04:30]MH_SAM_APDU [14:04:30]CAPDU: 80 09 00 00 [14:04:30]Write to MH i2c: E2 08 00 41 A4 80 09 00 00 00 00 00 00 57 [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:30]Read from MH i2c: E2 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: E2 03 00 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: E2 03 00 41 A4 00 90 00 59 [14:04:30]RAPDU: 90 00 [14:04:30]wFMCommunicate OK [14:04:30]SAM_PROTO_ClearQueue done [14:04:30]KKMCreateOFDPacket [14:04:30]OFDProtocolAddRootSTLVToBuf [14:04:30]FM_MakeSignedData [14:04:30]FM_MakeSignedData [14:04:30]SAM_PROTO_SignData [14:04:30]wFMCommunicate request_size=4 [14:04:30]MH_SAM_APDU [14:04:30]CAPDU: 80 0D 01 02 [14:04:30]Write to MH i2c: E2 08 00 42 A4 80 0D 01 02 00 00 00 00 5F [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:30]Read from MH i2c: E2 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: E2 03 00 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: E2 03 00 42 A4 00 90 00 5A [14:04:30]RAPDU: 90 00 [14:04:30]wFMCommunicate OK [14:04:30]wFMCommunicate request_size=255 [14:04:30]MH_SAM_APDU [14:04:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D EE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 16 6A 00 00 35 04 06 00 A6 [14:04:30]Write to MH i2c: E2 02 01 43 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D EE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 16 6A 00 00 35 04 06 00 A6 00 00 28 [14:04:30]Write i2c OK [14:04:30]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 43 A4 00 90 00 5B [14:04:31]RAPDU: 90 00 [14:04:31]wFMCommunicate OK [14:04:31]wFMCommunicate request_size=10 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 0D 02 02 05 CF A4 EB BE 56 [14:04:31]Write to MH i2c: E2 0D 00 44 A4 80 0D 02 02 05 00 CF A4 EB BE 56 00 00 DE [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 44 A4 00 90 00 5C [14:04:31]RAPDU: 90 00 [14:04:31]wFMCommunicate OK [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 0D 03 02 [14:04:31]Write to MH i2c: E2 08 00 45 A4 80 0D 03 02 00 00 00 00 64 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 0B 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 0B 00 45 A4 00 29 84 33 D6 51 FA 43 4D 90 00 F6 [14:04:31]RAPDU: 29 84 33 D6 51 FA 43 4D 90 00 [14:04:31]wFMCommunicate OK [14:04:31]SAM_PROTO_SignData done [14:04:31]FM_MakeSignedData done [14:04:31]CreateOFDProtocolMessage [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 11 00 00 [14:04:31]Write to MH i2c: E2 08 00 46 A4 80 11 00 00 00 00 00 00 64 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 17 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 17 00 46 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 BC [14:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:04:31]wFMCommunicate OK [14:04:31]CreateOFDProtocolMessage done [14:04:31]OFDSenderStorePacket 27158 [14:04:31]StoreOFDPacket docnum=27158 [14:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 6B 7C 07 01 5E 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D EE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 16 6A 00 00 35 04 06 00 A6 CF A4 EB BE 56 29 84 33 D6 51 FA 43 4D [14:04:31]CheckFolder [14:04:31]dirname=/storage/ofd_packets [14:04:31]CheckFolder done [14:04:31]ProducePacketName [14:04:31]name=ofd_packets/00027158 [14:04:31]NVStorageSaveData ofd_packets/00027158 [14:04:31]File name is /storage/ofd_packets/00027158 [14:04:31]Write 301 bytes [14:04:31]NVStorageSaveData done [14:04:31]OFDSenderStorePacket done [14:04:31]KKMCreateOFDPacket done [14:04:31]NVStorageSaveData kkm_last_timestamp [14:04:31]File name is /storage/kkm_last_timestamp [14:04:31]Write 4 bytes [14:04:31]NVStorageSaveData done [14:04:31]ExternCall_PrintAddStr [14:04:31]wPrintStart [14:04:31]Write to MH i2c: 01 00 00 47 A4 EB [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: 01 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: 01 07 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: 01 07 00 47 A4 00 00 00 00 00 FF 0F 00 [14:04:31]RasterBufferAndPrint [14:04:31]line Счет N : (1)359913 [14:04:31]line ИНН: 02508201610067 [14:04:31]line Контрольно-Кассовый Чек [14:04:31]line ПРОДАЖА [14:04:31]line ТРК (МРК, ГНК) : 51 [14:04:31]line Товар: 2710124130 [14:04:31]line Аи-92-К-5 [14:04:31]line 7.890 * 63.40 [14:04:31]line = 500.23 [14:04:31]line НДС 12% НСП 1% [14:04:31]line > о реализуемом товаре [14:04:31]line ОКРУГЛЕНИЕ: -0.23 [14:04:31]line ИТОГО: 500.00 [14:04:31]line Внесено: 500.00 [14:04:31]line СДАЧА: 0.00 [14:04:31]line НСП 1% : 4.43 [14:04:31]line НДС 12% : 53.12 [14:04:31]line Наличными: 500.00 [14:04:31]line Безнал.: 0.00 [14:04:31]line Место: АЗС № 122 "Партнер Нефть" [14:04:31]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:04:31]line СНО: Общий режим [14:04:31]line Чек 45 11.04.2024 14:05 [14:04:31]line Смена: 317 ФФД: 1.0 [14:04:31]line ЗНМ: 0300000147 [14:04:31]line РНМ: 0000000000091578 [14:04:31]line Версия ККМ: 001 [14:04:31]line ФМ: 0000000000874657 [14:04:31]line ФД: 27158 [14:04:31]line ФПД: 183410755354198 [14:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T140501&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27158&fm=183410755354198&tin=02508201610067®Number=0000000000091578&sum=50000 [14:04:31]OFD Sender: Processing packet 27158 [packets to send 44, broken 43] [14:04:31]ProducePacketName [14:04:31]name=ofd_packets/00027158 [14:04:31]OFD Sender: To server: pG, [14:04:31]CommunicateWithHost lk.salyk.kg:30040 [14:04:31]ConnectInit lk.salyk.kg [14:04:31]written 0, free lines is 4095 [14:04:31]Connected sock=10 [14:04: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 35 37 0F 01 00 00 6B 7C 07 01 5E 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D EE 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 16 6A 00 00 35 04 06 00 A6 CF A4 EB BE 56 29 84 33 D6 51 FA 43 4D [14:04:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 38 E6 47 00 23 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 16 6A 00 00 F4 03 04 00 6D 95 17 66 B6 04 01 00 00 8B 83 28 9D 1B 4E 60 73 [14:04:31]CommunicateWithHost err = 0 [14:04:31]CheckOFDResponse [14:04:31]1017 (14) - 77093643461234 [14:04:31]1041 (16) - 0000000000874657 [14:04:31]1040 (4) - 27158 [14:04:31]1012 (4) - 11.04.2024 07:46 [14:04:31]1206 (1) - 0 [14:04:31]OFD Sender: Remove packet 27158 [14:04:31]ProducePacketName [14:04:31]name=ofd_packets/00027158 [14:04:31]NVStorageDeleteData [14:04:32]Write to MH i2c: 01 00 00 72 A4 16 [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: 01 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: 01 07 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: 01 07 00 72 A4 00 00 00 00 00 7D 0C A6 [14:04:32]RasterBufferAndPrint [14:04:32]line [14:04:32]line [14:04:32]line [14:04:32]line [14:04:32]line [14:04:32]written 0, free lines is 3200 [14:04:32]MH_Cut [14:04:32]Write to MH i2c: D1 01 00 79 A4 01 EF [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: D1 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: D1 01 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: D1 01 00 79 A4 00 EE [14:04:32]Write to MH i2c: 01 00 00 7A A4 1E [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]OFD Sender: No OFD packet to send [14:04:33]*** Cut start [14:04:33]*** Partial cut [14:04:33]*** CUTSNS_PIN = 1 [14:04:33]*** CUTSNS_PIN = 0 [14:04:33]*** Brake cut motor [14:04:33]Read from MH i2c: 01 [14:04:33]MH_I2C_Read... [14:04:33]*** Stop cut motor [14:04:33]*** Cut end [14:04:33]Read from MH i2c: 01 07 00 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: 01 07 00 7A A4 00 00 00 00 00 FF 0F 33 [14:04:33]process_action close_receipt done [14:04:33]requested_data is exist [14:04:33]produce_requested_data [14:04:33]requested_item fm.sn is exist - process it [14:04:33]wFMCommunicate request_size=4 [14:04:33]MH_SAM_APDU [14:04:33]CAPDU: 80 11 00 00 [14:04:33]Write to MH i2c: E2 08 00 7B A4 80 11 00 00 00 00 00 00 99 [14:04:33]Write i2c OK [14:04:33]MH_I2C_Read... [14:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:33]Read from MH i2c: E2 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: E2 17 00 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: E2 17 00 7B A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F1 [14:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:04:33]wFMCommunicate OK [14:04:33]requested_item fd.num is exist - process it [14:04:33]SAM_PROTO_GetFieldsCounters [14:04:33]wFMCommunicate request_size=4 [14:04:33]MH_SAM_APDU [14:04:33]CAPDU: 80 13 00 00 [14:04:33]Write to MH i2c: E2 08 00 7C A4 80 13 00 00 00 00 00 00 9C [14:04:33]Write i2c OK [14:04:33]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 62 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 62 00 7C A4 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 16 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [14:04: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 16 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:34]wFMCommunicate OK [14:04:34]SAM_PROTO_GetFieldsCounters done [14:04:34]requested_item shift.num is exist - process it [14:04:34]requested_item shift.opened is exist - process it [14:04:34]req_shift_opened [14:04:34]FM_GetShiftState [14:04:34]SAM_PROTO_GetShiftState [14:04:34]wFMCommunicate request_size=4 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 13 01 00 [14:04:34]Write to MH i2c: E2 08 00 7D A4 80 13 01 00 00 00 00 00 9E [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0E 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0E 00 7D A4 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 E8 [14:04:34]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:04:34]wFMCommunicate OK [14:04:34]SAM_PROTO_GetShiftState done [14:04:34]FM_GetShiftState done [14:04:34]req_shift_opened done [14:04:34]requested_item shift.open_date is exist - process it [14:04:34]req_shift_open_date [14:04:34]req_shift_open_date done [14:04:34]produce_requested_data done [14:04:34]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27158,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:04:34]process_action_free close_receipt [14:04:34]json_value_free [14:04:34]json_value_free done [14:04:34]process_json_proto returns [14:04:34]Send response to host [14:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27158,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:04:34]free response buf [14:04:34]execute_script done [14:04:34]execute_script returns [14:04:34]free content buf [14:04:34]Sock 8.Close socket [14:04:34]Sock 8.Thread stoped [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:08]accept exits with 9 [14:15:08]New connection [14:15:08]New thread 3067014500 created [14:15:08]Thread 3066871140 joined [14:15:08]Waiting for new connection... [14:15:08] Sock 9.Parse request [14:15:08]Sock 9.Check first char [14:15:08]Sock 9.First char is OK [14:15:08]request: POST /json_proto HTTP/1.0 [14:15:08]Method: POST [14:15:08]URL: /json_proto [14:15:08]Method is POST - this is cgi request [14:15:08]url: /json_proto [14:15:08]query_string will be loaded in cgi processing [14:15:08]execute_cgi json_proto POST (null) [14:15:08]execute_cgi path=json_proto method=POST [14:15:08]POST find Content-Length [14:15:08]Host: 172.17.35.3:8080 [14:15:08]Content-Length: 803 [14:15:08]Content-Type: application/json [14:15:08] [14:15:08]POST finish read [14:15:08]Found Content-Length = 803 [14:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:08]execute_script... [14:15:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:08]POST & json_proto [14:15:08]process_json_proto [14:15:08]json parsed OK: [14:15:08]protocol is kg_v1.0 [14:15:08]action value=close_receipt [14:15:08]process_action close_receipt [14:15:08]cmd_close_receipt [14:15:08]MH_GetDate [14:15:08]Write to MH i2c: F0 00 00 7E A4 11 [14:15:08]Write i2c OK [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: F0 [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: F0 09 00 [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: F0 09 00 7E A4 00 8C F0 17 66 2B 11 66 64 19 [14:15:08]GetLastDocTimeStamp 1712844301 [14:15:08]current date 1712844940 [14:15:08]FM_GetShiftState [14:15:08]SAM_PROTO_GetShiftState [14:15:08]wFMCommunicate request_size=4 [14:15:08]MH_SAM_APDU [14:15:08]CAPDU: 80 13 01 00 [14:15:08]Write to MH i2c: E2 08 00 7F A4 80 13 01 00 00 00 00 00 A0 [14:15:08]Write i2c OK [14:15:08]MH_I2C_Read... [14:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:08]Read from MH i2c: E2 [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: E2 0E 00 [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: E2 0E 00 7F A4 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 EA [14:15:08]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:15:08]wFMCommunicate OK [14:15:08]SAM_PROTO_GetShiftState done [14:15:08]FM_GetShiftState done [14:15:08]opened in 1712795538 [14:15:08]opened+sec_in_day 1712881938 [14:15:08]quantity*price = 100012 [14:15:08]sum+1 = 100014 [14:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 46 11.04.2024 14:15 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 27159 ФПД: 242366486075207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T141540&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27159&fm=242366486075207&tin=02508201610067®Number=0000000000091578&sum=100013 [14:15:09]StoreToDocumentArchive [14:15:09]shift 317 fd 27159 [14:15:09]save to /storage/0317/doc_00027159 [14:15:09]save last doc name /storage/0317/doc_00027159 to /storage/kkm_last_doc_name [14:15:09]save OK [14:15:09]Clear old archive folders... [14:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:09]tlvbuf is 00F30850 [14:15:09]SAM_PROTO_ClearQueue [14:15:09]wFMCommunicate request_size=4 [14:15:09]MH_SAM_APDU [14:15:09]CAPDU: 80 09 00 00 [14:15:09]Write to MH i2c: E2 08 00 8C A4 80 09 00 00 00 00 00 00 A2 [14:15:09]Write i2c OK [14:15:09]MH_I2C_Read... [14:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:09]Read from MH i2c: E2 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 03 00 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 03 00 8C A4 00 90 00 A4 [14:15:09]RAPDU: 90 00 [14:15:09]wFMCommunicate OK [14:15:09]SAM_PROTO_ClearQueue done [14:15:09]KKMCreateOFDPacket [14:15:09]OFDProtocolAddRootSTLVToBuf [14:15:09]FM_MakeSignedData [14:15:09]FM_MakeSignedData [14:15:09]SAM_PROTO_SignData [14:15:09]wFMCommunicate request_size=4 [14:15:09]MH_SAM_APDU [14:15:09]CAPDU: 80 0D 01 02 [14:15:09]Write to MH i2c: E2 08 00 8D A4 80 0D 01 02 00 00 00 00 AA [14:15:09]Write i2c OK [14:15:09]MH_I2C_Read... [14:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:10]Read from MH i2c: E2 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 03 00 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 03 00 8D A4 00 90 00 A5 [14:15:10]RAPDU: 90 00 [14:15:10]wFMCommunicate OK [14:15:10]wFMCommunicate request_size=255 [14:15:10]MH_SAM_APDU [14:15:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 8C F0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 17 6A 00 00 35 04 06 00 DC [14:15:10]Write to MH i2c: E2 02 01 8E A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 8C F0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 17 6A 00 00 35 04 06 00 DC 00 00 FC [14:15:10]Write i2c OK [14:15:10]MH_I2C_Read... [14:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:10]Read from MH i2c: E2 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 03 00 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 03 00 8E A4 00 90 00 A6 [14:15:10]RAPDU: 90 00 [14:15:10]wFMCommunicate OK [14:15:10]wFMCommunicate request_size=10 [14:15:10]MH_SAM_APDU [14:15:10]CAPDU: 80 0D 02 02 05 6E 58 4E D7 47 [14:15:10]Write to MH i2c: E2 0D 00 8F A4 80 0D 02 02 05 00 6E 58 4E D7 47 00 00 E9 [14:15:10]Write i2c OK [14:15:10]MH_I2C_Read... [14:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:10]Read from MH i2c: E2 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 03 00 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 03 00 8F A4 00 90 00 A7 [14:15:10]RAPDU: 90 00 [14:15:10]wFMCommunicate OK [14:15:10]wFMCommunicate request_size=4 [14:15:10]MH_SAM_APDU [14:15:10]CAPDU: 80 0D 03 02 [14:15:10]Write to MH i2c: E2 08 00 90 A4 80 0D 03 02 00 00 00 00 AF [14:15:10]Write i2c OK [14:15:10]MH_I2C_Read... [14:15:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:10]Read from MH i2c: E2 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 0B 00 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 0B 00 90 A4 00 25 7F 28 E9 02 0D E2 18 90 00 6E [14:15:10]RAPDU: 25 7F 28 E9 02 0D E2 18 90 00 [14:15:10]wFMCommunicate OK [14:15:10]SAM_PROTO_SignData done [14:15:10]FM_MakeSignedData done [14:15:10]CreateOFDProtocolMessage [14:15:10]wFMCommunicate request_size=4 [14:15:10]MH_SAM_APDU [14:15:10]CAPDU: 80 11 00 00 [14:15:10]Write to MH i2c: E2 08 00 91 A4 80 11 00 00 00 00 00 00 AF [14:15:10]Write i2c OK [14:15:10]MH_I2C_Read... [14:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:10]Read from MH i2c: E2 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 17 00 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: E2 17 00 91 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 07 [14:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:15:10]wFMCommunicate OK [14:15:10]CreateOFDProtocolMessage done [14:15:10]OFDSenderStorePacket 27159 [14:15:10]StoreOFDPacket docnum=27159 [14:15:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 BD 60 07 01 4B FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 8C F0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 17 6A 00 00 35 04 06 00 DC 6E 58 4E D7 47 25 7F 28 E9 02 0D E2 18 [14:15:10]CheckFolder [14:15:10]dirname=/storage/ofd_packets [14:15:10]CheckFolder done [14:15:10]ProducePacketName [14:15:10]name=ofd_packets/00027159 [14:15:10]NVStorageSaveData ofd_packets/00027159 [14:15:10]File name is /storage/ofd_packets/00027159 [14:15:10]Write 301 bytes [14:15:10]NVStorageSaveData done [14:15:10]OFDSenderStorePacket done [14:15:10]KKMCreateOFDPacket done [14:15:10]NVStorageSaveData kkm_last_timestamp [14:15:10]File name is /storage/kkm_last_timestamp [14:15:10]Write 4 bytes [14:15:10]NVStorageSaveData done [14:15:10]ExternCall_PrintAddStr [14:15:10]wPrintStart [14:15:10]Write to MH i2c: 01 00 00 92 A4 36 [14:15:10]Write i2c OK [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: 01 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: 01 07 00 [14:15:10]MH_I2C_Read... [14:15:10]Read from MH i2c: 01 07 00 92 A4 00 00 00 00 00 FF 0F 4B [14:15:10]RasterBufferAndPrint [14:15:10]line Счет N : (1)359914 [14:15:10]line ИНН: 02508201610067 [14:15:10]line Контрольно-Кассовый Чек [14:15:10]line ПРОДАЖА [14:15:10]line ТРК (МРК, ГНК) : 53 [14:15:10]line Товар: 2710124500 [14:15:10]line Аи-95-К-5 [14:15:10]line 13.910 * 71.90 [14:15:10]line = 1000.13 [14:15:10]line НДС 12% НСП 1% [14:15:10]line > о реализуемом товаре [14:15:10]line ИТОГО: 1000.13 [14:15:10]line НСП 1% : 8.85 [14:15:10]line НДС 12% : 106.21 [14:15:10]line Наличными: 0.00 [14:15:10]line Безнал.: 1000.13 [14:15:10]line Место: АЗС № 122 "Партнер Нефть" [14:15:10]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:15:10]line СНО: Общий режим [14:15:10]line Чек 46 11.04.2024 14:15 [14:15:10]line Смена: 317 ФФД: 1.0 [14:15:10]line ЗНМ: 0300000147 [14:15:10]line РНМ: 0000000000091578 [14:15:10]line Версия ККМ: 001 [14:15:10]line Платежная система: O! деньги [14:15:10]line ФМ: 0000000000874657 [14:15:10]line ФД: 27159 [14:15:10]line ФПД: 242366486075207 [14:15:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T141540&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27159&fm=242366486075207&tin=02508201610067®Number=0000000000091578&sum=100013 [14:15:10]OFD Sender: Processing packet 27159 [packets to send 44, broken 43] [14:15:10]ProducePacketName [14:15:10]name=ofd_packets/00027159 [14:15:10]OFD Sender: To server: pG, [14:15:10]CommunicateWithHost lk.salyk.kg:30040 [14:15:10]ConnectInit lk.salyk.kg [14:15:10]written 0, free lines is 4095 [14:15:10]Connected sock=11 [14:15: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 35 37 0F 01 00 00 BD 60 07 01 4B FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 8C F0 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 17 6A 00 00 35 04 06 00 DC 6E 58 4E D7 47 25 7F 28 E9 02 0D E2 18 [14:15: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 35 37 4F 00 00 00 84 72 47 00 C8 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 35 37 10 04 04 00 17 6A 00 00 F4 03 04 00 EC 97 17 66 B6 04 01 00 00 FD 3B C1 E1 85 89 4E 4E [14:15:11]CommunicateWithHost err = 0 [14:15:11]CheckOFDResponse [14:15:11]1017 (14) - 77093643461234 [14:15:11]1041 (16) - 0000000000874657 [14:15:11]1040 (4) - 27159 [14:15:11]1012 (4) - 11.04.2024 07:57 [14:15:11]1206 (1) - 0 [14:15:11]OFD Sender: Remove packet 27159 [14:15:11]ProducePacketName [14:15:11]name=ofd_packets/00027159 [14:15:11]NVStorageDeleteData [14:15:11]Write to MH i2c: 01 00 00 BC A4 60 [14:15:11]Write i2c OK [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: 01 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: 01 07 00 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: 01 07 00 BC A4 00 00 00 00 00 8B 0C FE [14:15:11]RasterBufferAndPrint [14:15:11]line [14:15:11]line [14:15:11]line [14:15:11]line [14:15:11]line [14:15:11]written 0, free lines is 3214 [14:15:11]MH_Cut [14:15:11]Write to MH i2c: D1 01 00 C3 A4 01 39 [14:15:11]Write i2c OK [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: D1 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: D1 01 00 [14:15:11]MH_I2C_Read... [14:15:11]Read from MH i2c: D1 01 00 C3 A4 00 38 [14:15:11]Write to MH i2c: 01 00 00 C4 A4 68 [14:15:11]Write i2c OK [14:15:11]MH_I2C_Read... [14:15:11]OFD Sender: No OFD packet to send [14:15:12]*** Cut start [14:15:12]*** Partial cut [14:15:12]*** CUTSNS_PIN = 1 [14:15:12]*** CUTSNS_PIN = 0 [14:15:12]*** Brake cut motor [14:15:13]Read from MH i2c: 01 [14:15:13]MH_I2C_Read... [14:15:13]*** Stop cut motor [14:15:13]*** Cut end [14:15:13]Read from MH i2c: 01 07 00 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: 01 07 00 C4 A4 00 00 00 00 00 FF 0F 7D [14:15:13]process_action close_receipt done [14:15:13]requested_data is exist [14:15:13]produce_requested_data [14:15:13]requested_item fm.sn is exist - process it [14:15:13]wFMCommunicate request_size=4 [14:15:13]MH_SAM_APDU [14:15:13]CAPDU: 80 11 00 00 [14:15:13]Write to MH i2c: E2 08 00 C5 A4 80 11 00 00 00 00 00 00 E3 [14:15:13]Write i2c OK [14:15:13]MH_I2C_Read... [14:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:13]Read from MH i2c: E2 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 17 00 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 17 00 C5 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 3B [14:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:15:13]wFMCommunicate OK [14:15:13]requested_item fd.num is exist - process it [14:15:13]SAM_PROTO_GetFieldsCounters [14:15:13]wFMCommunicate request_size=4 [14:15:13]MH_SAM_APDU [14:15:13]CAPDU: 80 13 00 00 [14:15:13]Write to MH i2c: E2 08 00 C6 A4 80 13 00 00 00 00 00 00 E6 [14:15:13]Write i2c OK [14:15:13]MH_I2C_Read... [14:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:13]Read from MH i2c: E2 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 62 00 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 62 00 C6 A4 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 17 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [14:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 17 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:13]wFMCommunicate OK [14:15:13]SAM_PROTO_GetFieldsCounters done [14:15:13]requested_item shift.num is exist - process it [14:15:13]requested_item shift.opened is exist - process it [14:15:13]req_shift_opened [14:15:13]FM_GetShiftState [14:15:13]SAM_PROTO_GetShiftState [14:15:13]wFMCommunicate request_size=4 [14:15:13]MH_SAM_APDU [14:15:13]CAPDU: 80 13 01 00 [14:15:13]Write to MH i2c: E2 08 00 C7 A4 80 13 01 00 00 00 00 00 E8 [14:15:13]Write i2c OK [14:15:13]MH_I2C_Read... [14:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:13]Read from MH i2c: E2 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 0E 00 [14:15:13]MH_I2C_Read... [14:15:13]Read from MH i2c: E2 0E 00 C7 A4 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 32 [14:15:13]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:15:13]wFMCommunicate OK [14:15:13]SAM_PROTO_GetShiftState done [14:15:13]FM_GetShiftState done [14:15:13]req_shift_opened done [14:15:13]requested_item shift.open_date is exist - process it [14:15:13]req_shift_open_date [14:15:13]req_shift_open_date done [14:15:13]produce_requested_data done [14:15:13]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27159,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:15:13]process_action_free close_receipt [14:15:13]json_value_free [14:15:13]json_value_free done [14:15:13]process_json_proto returns [14:15:13]Send response to host [14:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27159,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:15:13]free response buf [14:15:13]execute_script done [14:15:13]execute_script returns [14:15:13]free content buf [14:15:13]Sock 9.Close socket [14:15:13]Sock 9.Thread stoped [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:51]accept exits with 8 [14:23:51]New connection [14:23:51]New thread 3066871140 created [14:23:51]Thread 3067014500 joined [14:23:51]Waiting for new connection... [14:23:51] Sock 8.Parse request [14:23:51]Sock 8.Check first char [14:23:51]Sock 8.First char is OK [14:23:51]request: POST /json_proto HTTP/1.0 [14:23:51]Method: POST [14:23:51]URL: /json_proto [14:23:51]Method is POST - this is cgi request [14:23:51]url: /json_proto [14:23:51]query_string will be loaded in cgi processing [14:23:51]execute_cgi json_proto POST (null) [14:23:51]execute_cgi path=json_proto method=POST [14:23:51]POST find Content-Length [14:23:51]Host: 172.17.35.3:8080 [14:23:51]Content-Length: 682 [14:23:51]Content-Type: application/json [14:23:51] [14:23:51]POST finish read [14:23:51]Found Content-Length = 682 [14:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 8.360, "sum" : 600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:51]execute_script... [14:23:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 8.360, "sum" : 600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:51]POST & json_proto [14:23:51]process_json_proto [14:23:51]json parsed OK: [14:23:51]protocol is kg_v1.0 [14:23:51]action value=close_receipt [14:23:51]process_action close_receipt [14:23:51]cmd_close_receipt [14:23:51]MH_GetDate [14:23:51]Write to MH i2c: F0 00 00 C8 A4 5B [14:23:51]Write i2c OK [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: F0 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: F0 09 00 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: F0 09 00 C8 A4 00 97 F2 17 66 2B 11 66 64 70 [14:23:51]GetLastDocTimeStamp 1712844940 [14:23:51]current date 1712845463 [14:23:51]FM_GetShiftState [14:23:51]SAM_PROTO_GetShiftState [14:23:51]wFMCommunicate request_size=4 [14:23:51]MH_SAM_APDU [14:23:51]CAPDU: 80 13 01 00 [14:23:51]Write to MH i2c: E2 08 00 C9 A4 80 13 01 00 00 00 00 00 EA [14:23:51]Write i2c OK [14:23:51]MH_I2C_Read... [14:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:51]Read from MH i2c: E2 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 0E 00 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 0E 00 C9 A4 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 34 [14:23:51]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:23:51]wFMCommunicate OK [14:23:51]SAM_PROTO_GetShiftState done [14:23:51]FM_GetShiftState done [14:23:51]opened in 1712795538 [14:23:51]opened+sec_in_day 1712881938 [14:23:51]quantity*price = 60024 [14:23:51]sum+1 = 60026 [14:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 47 11.04.2024 14:24 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27160 ФПД: 149792522627052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T142423&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27160&fm=149792522627052&tin=02508201610067®Number=0000000000091578&sum=60000 [14:23:52]StoreToDocumentArchive [14:23:52]shift 317 fd 27160 [14:23:52]save to /storage/0317/doc_00027160 [14:23:52]save last doc name /storage/0317/doc_00027160 to /storage/kkm_last_doc_name [14:23:52]save OK [14:23:52]Clear old archive folders... [14:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:23:52]tlvbuf is 00E9E740 [14:23:52]SAM_PROTO_ClearQueue [14:23:52]wFMCommunicate request_size=4 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 09 00 00 [14:23:52]Write to MH i2c: E2 08 00 D6 A4 80 09 00 00 00 00 00 00 EC [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:52]Read from MH i2c: E2 03 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 D6 A4 00 90 00 EE [14:23:52]RAPDU: 90 00 [14:23:52]wFMCommunicate OK [14:23:52]SAM_PROTO_ClearQueue done [14:23:52]KKMCreateOFDPacket [14:23:52]OFDProtocolAddRootSTLVToBuf [14:23:52]FM_MakeSignedData [14:23:52]FM_MakeSignedData [14:23:52]SAM_PROTO_SignData [14:23:52]wFMCommunicate request_size=4 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 0D 01 02 [14:23:52]Write to MH i2c: E2 08 00 D7 A4 80 0D 01 02 00 00 00 00 F4 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 D7 A4 00 90 00 EF [14:23:52]RAPDU: 90 00 [14:23:52]wFMCommunicate OK [14:23:52]wFMCommunicate request_size=255 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 79 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 97 F2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 18 6A 00 00 35 04 06 00 [14:23:52]Write to MH i2c: E2 02 01 D8 A4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 79 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 97 F2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 18 6A 00 00 35 04 06 00 00 00 32 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 D8 A4 00 90 00 F0 [14:23:52]RAPDU: 90 00 [14:23:52]wFMCommunicate OK [14:23:52]wFMCommunicate request_size=11 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 0D 02 02 06 88 3C 4A 19 E7 EC [14:23:52]Write to MH i2c: E2 0E 00 D9 A4 80 0D 02 02 06 00 88 3C 4A 19 E7 EC 00 00 FD [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 D9 A4 00 90 00 F1 [14:23:52]RAPDU: 90 00 [14:23:52]wFMCommunicate OK [14:23:52]wFMCommunicate request_size=4 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 0D 03 02 [14:23:52]Write to MH i2c: E2 08 00 DA A4 80 0D 03 02 00 00 00 00 F9 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 0B 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 0B 00 DA A4 00 59 94 71 3F CE 5B 2A A8 90 00 92 [14:23:52]RAPDU: 59 94 71 3F CE 5B 2A A8 90 00 [14:23:52]wFMCommunicate OK [14:23:52]SAM_PROTO_SignData done [14:23:52]FM_MakeSignedData done [14:23:52]CreateOFDProtocolMessage [14:23:52]wFMCommunicate request_size=4 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 11 00 00 [14:23:52]Write to MH i2c: E2 08 00 DB A4 80 11 00 00 00 00 00 00 F9 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 17 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 17 00 DB A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 51 [14:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:23:52]wFMCommunicate OK [14:23:52]CreateOFDProtocolMessage done [14:23:52]OFDSenderStorePacket 27160 [14:23:52]StoreOFDPacket docnum=27160 [14:23:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 FF 6D 08 01 38 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 79 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 97 F2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 18 6A 00 00 35 04 06 00 88 3C 4A 19 E7 EC 59 94 71 3F CE 5B 2A A8 [14:23:52]CheckFolder [14:23:52]dirname=/storage/ofd_packets [14:23:52]CheckFolder done [14:23:52]ProducePacketName [14:23:52]name=ofd_packets/00027160 [14:23:52]NVStorageSaveData ofd_packets/00027160 [14:23:52]File name is /storage/ofd_packets/00027160 [14:23:52]Write 302 bytes [14:23:52]NVStorageSaveData done [14:23:52]OFDSenderStorePacket done [14:23:52]KKMCreateOFDPacket done [14:23:52]NVStorageSaveData kkm_last_timestamp [14:23:52]File name is /storage/kkm_last_timestamp [14:23:52]Write 4 bytes [14:23:52]NVStorageSaveData done [14:23:52]ExternCall_PrintAddStr [14:23:52]wPrintStart [14:23:52]Write to MH i2c: 01 00 00 DC A4 80 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: 01 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: 01 07 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: 01 07 00 DC A4 00 00 00 00 00 FF 0F 95 [14:23:52]RasterBufferAndPrint [14:23:52]line Счет N : (1)359915 [14:23:52]line ИНН: 02508201610067 [14:23:52]line Контрольно-Кассовый Чек [14:23:52]line ПРОДАЖА [14:23:52]line ТРК (МРК, ГНК) : 11 [14:23:52]line Товар: 2710194210 [14:23:52]line ДТ(л)-К-5 [14:23:52]line 8.360 * 71.80 [14:23:52]line = 600.25 [14:23:52]line НДС 12% НСП 1% [14:23:52]line > о реализуемом товаре [14:23:52]line ОКРУГЛЕНИЕ: -0.25 [14:23:52]line ИТОГО: 600.00 [14:23:52]line Внесено: 600.00 [14:23:52]line СДАЧА: 0.00 [14:23:52]line НСП 1% : 5.31 [14:23:52]line НДС 12% : 63.74 [14:23:52]line Наличными: 600.00 [14:23:52]line Безнал.: 0.00 [14:23:52]line Место: АЗС № 122 "Партнер Нефть" [14:23:52]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:23:52]line СНО: Общий режим [14:23:52]line Чек 47 11.04.2024 14:24 [14:23:52]line Смена: 317 ФФД: 1.0 [14:23:52]line ЗНМ: 0300000147 [14:23:52]line РНМ: 0000000000091578 [14:23:52]line Версия ККМ: 001 [14:23:52]line ФМ: 0000000000874657 [14:23:52]line ФД: 27160 [14:23:52]line ФПД: 149792522627052 [14:23:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T142423&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27160&fm=149792522627052&tin=02508201610067®Number=0000000000091578&sum=60000 [14:23:53]OFD Sender: Processing packet 27160 [packets to send 44, broken 43] [14:23:53]ProducePacketName [14:23:53]name=ofd_packets/00027160 [14:23:53]OFD Sender: To server: pG, [14:23:53]CommunicateWithHost lk.salyk.kg:30040 [14:23:53]ConnectInit lk.salyk.kg [14:23:53]written 0, free lines is 4095 [14:23:53]Connected sock=9 [14:23: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 35 37 10 01 00 00 FF 6D 08 01 38 F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 79 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 97 F2 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 18 6A 00 00 35 04 06 00 88 3C 4A 19 E7 EC 59 94 71 3F CE 5B 2A A8 [14:23: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 35 37 4F 00 00 00 29 FD 47 00 33 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 35 37 10 04 04 00 18 6A 00 00 F4 03 04 00 F7 99 17 66 B6 04 01 00 00 F4 77 63 B0 33 CA 52 3A [14:23:53]CommunicateWithHost err = 0 [14:23:53]CheckOFDResponse [14:23:53]1017 (14) - 77093643461234 [14:23:53]1041 (16) - 0000000000874657 [14:23:53]1040 (4) - 27160 [14:23:53]1012 (4) - 11.04.2024 08:06 [14:23:53]1206 (1) - 0 [14:23:53]OFD Sender: Remove packet 27160 [14:23:53]ProducePacketName [14:23:53]name=ofd_packets/00027160 [14:23:53]NVStorageDeleteData [14:23:53]Write to MH i2c: 01 00 00 07 A5 AC [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: 01 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: 01 07 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: 01 07 00 07 A5 00 00 00 00 00 78 0C 37 [14:23:53]RasterBufferAndPrint [14:23:53]line [14:23:53]line [14:23:53]line [14:23:53]line [14:23:53]line [14:23:53]written 0, free lines is 3195 [14:23:53]MH_Cut [14:23:53]Write to MH i2c: D1 01 00 0E A5 01 85 [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: D1 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: D1 01 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: D1 01 00 0E A5 00 84 [14:23:53]Write to MH i2c: 01 00 00 0F A5 B4 [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]OFD Sender: No OFD packet to send [14:23:54]*** Cut start [14:23:54]*** Partial cut [14:23:54]*** CUTSNS_PIN = 1 [14:23:54]*** CUTSNS_PIN = 0 [14:23:55]*** Brake cut motor [14:23:55]Read from MH i2c: 01 [14:23:55]MH_I2C_Read... [14:23:55]*** Stop cut motor [14:23:55]*** Cut end [14:23:55]Read from MH i2c: 01 07 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 07 00 0F A5 00 00 00 00 00 FF 0F C9 [14:23:55]process_action close_receipt done [14:23:55]requested_data is exist [14:23:55]produce_requested_data [14:23:55]requested_item fm.sn is exist - process it [14:23:55]wFMCommunicate request_size=4 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 11 00 00 [14:23:55]Write to MH i2c: E2 08 00 10 A5 80 11 00 00 00 00 00 00 2F [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 17 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 17 00 10 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 87 [14:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:23:55]wFMCommunicate OK [14:23:55]requested_item fd.num is exist - process it [14:23:55]SAM_PROTO_GetFieldsCounters [14:23:55]wFMCommunicate request_size=4 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 13 00 00 [14:23:55]Write to MH i2c: E2 08 00 11 A5 80 13 00 00 00 00 00 00 32 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 62 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 62 00 11 A5 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 18 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [14:23: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 18 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:55]wFMCommunicate OK [14:23:55]SAM_PROTO_GetFieldsCounters done [14:23:55]requested_item shift.num is exist - process it [14:23:55]requested_item shift.opened is exist - process it [14:23:55]req_shift_opened [14:23:55]FM_GetShiftState [14:23:55]SAM_PROTO_GetShiftState [14:23:55]wFMCommunicate request_size=4 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 13 01 00 [14:23:55]Write to MH i2c: E2 08 00 12 A5 80 13 01 00 00 00 00 00 34 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 0E 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 0E 00 12 A5 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 7E [14:23:55]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:23:55]wFMCommunicate OK [14:23:55]SAM_PROTO_GetShiftState done [14:23:55]FM_GetShiftState done [14:23:55]req_shift_opened done [14:23:55]requested_item shift.open_date is exist - process it [14:23:55]req_shift_open_date [14:23:55]req_shift_open_date done [14:23:55]produce_requested_data done [14:23:55]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27160,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:23:55]process_action_free close_receipt [14:23:55]json_value_free [14:23:55]json_value_free done [14:23:55]process_json_proto returns [14:23:55]Send response to host [14:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27160,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:23:55]free response buf [14:23:55]execute_script done [14:23:55]execute_script returns [14:23:55]free content buf [14:23:55]Sock 8.Close socket [14:23:55]Sock 8.Thread stoped [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]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:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:11]accept exits with 10 [14:33:11]New connection [14:33:11]New thread 3067014500 created [14:33:11]Thread 3066871140 joined [14:33:11]Waiting for new connection... [14:33:11] Sock 10.Parse request [14:33:11]Sock 10.Check first char [14:33:11]Sock 10.First char is OK [14:33:11]request: POST /json_proto HTTP/1.0 [14:33:11]Method: POST [14:33:11]URL: /json_proto [14:33:11]Method is POST - this is cgi request [14:33:11]url: /json_proto [14:33:11]query_string will be loaded in cgi processing [14:33:11]execute_cgi json_proto POST (null) [14:33:11]execute_cgi path=json_proto method=POST [14:33:11]POST find Content-Length [14:33:11]Host: 172.17.35.3:8080 [14:33:11]Content-Length: 677 [14:33:11]Content-Type: application/json [14:33:11] [14:33:11]POST finish read [14:33:11]Found Content-Length = 677 [14:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:11]execute_script... [14:33:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:11]POST & json_proto [14:33:11]process_json_proto [14:33:11]json parsed OK: [14:33:11]protocol is kg_v1.0 [14:33:11]action value=close_receipt [14:33:11]process_action close_receipt [14:33:11]cmd_close_receipt [14:33:11]MH_GetDate [14:33:11]Write to MH i2c: F0 00 00 13 A5 A7 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 09 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: F0 09 00 13 A5 00 C7 F4 17 66 2B 11 66 64 EE [14:33:11]GetLastDocTimeStamp 1712845463 [14:33:11]current date 1712846023 [14:33:11]FM_GetShiftState [14:33:11]SAM_PROTO_GetShiftState [14:33:11]wFMCommunicate request_size=4 [14:33:11]MH_SAM_APDU [14:33:11]CAPDU: 80 13 01 00 [14:33:11]Write to MH i2c: E2 08 00 14 A5 80 13 01 00 00 00 00 00 36 [14:33:11]Write i2c OK [14:33:11]MH_I2C_Read... [14:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:11]Read from MH i2c: E2 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0E 00 [14:33:11]MH_I2C_Read... [14:33:11]Read from MH i2c: E2 0E 00 14 A5 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 80 [14:33:11]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:33:11]wFMCommunicate OK [14:33:11]SAM_PROTO_GetShiftState done [14:33:11]FM_GetShiftState done [14:33:11]opened in 1712795538 [14:33:11]opened+sec_in_day 1712881938 [14:33:11]quantity*price = 40048 [14:33:11]sum+1 = 40049 [14:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 48 11.04.2024 14:33 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27161 ФПД: 146637385139247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T143343&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27161&fm=146637385139247&tin=02508201610067®Number=0000000000091578&sum=40000 [14:33:12]StoreToDocumentArchive [14:33:12]shift 317 fd 27161 [14:33:12]save to /storage/0317/doc_00027161 [14:33:12]save last doc name /storage/0317/doc_00027161 to /storage/kkm_last_doc_name [14:33:12]save OK [14:33:12]Clear old archive folders... [14:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:12]tlvbuf is 00E29F00 [14:33:12]SAM_PROTO_ClearQueue [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 09 00 00 [14:33:12]Write to MH i2c: E2 08 00 21 A5 80 09 00 00 00 00 00 00 38 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 21 A5 00 90 00 3A [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_ClearQueue done [14:33:12]KKMCreateOFDPacket [14:33:12]OFDProtocolAddRootSTLVToBuf [14:33:12]FM_MakeSignedData [14:33:12]FM_MakeSignedData [14:33:12]SAM_PROTO_SignData [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 01 02 [14:33:12]Write to MH i2c: E2 08 00 22 A5 80 0D 01 02 00 00 00 00 40 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 22 A5 00 90 00 3B [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=255 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C7 F4 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 6A 00 00 35 04 06 00 85 [14:33:12]Write to MH i2c: E2 02 01 23 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C7 F4 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 6A 00 00 35 04 06 00 85 00 00 E3 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 23 A5 00 90 00 3C [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=10 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 02 02 05 5D AD 40 84 2F [14:33:12]Write to MH i2c: E2 0D 00 24 A5 80 0D 02 02 05 00 5D AD 40 84 2F 00 00 4A [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 03 00 24 A5 00 90 00 3D [14:33:12]RAPDU: 90 00 [14:33:12]wFMCommunicate OK [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 0D 03 02 [14:33:12]Write to MH i2c: E2 08 00 25 A5 80 0D 03 02 00 00 00 00 45 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0B 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0B 00 25 A5 00 2F 67 D9 C8 C1 41 54 66 90 00 39 [14:33:12]RAPDU: 2F 67 D9 C8 C1 41 54 66 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_SignData done [14:33:12]FM_MakeSignedData done [14:33:12]CreateOFDProtocolMessage [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 11 00 00 [14:33:12]Write to MH i2c: E2 08 00 26 A5 80 11 00 00 00 00 00 00 45 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 17 00 26 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 9D [14:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:33:12]wFMCommunicate OK [14:33:12]CreateOFDProtocolMessage done [14:33:12]OFDSenderStorePacket 27161 [14:33:12]StoreOFDPacket docnum=27161 [14:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 FD 5E 07 01 2E 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C7 F4 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 6A 00 00 35 04 06 00 85 5D AD 40 84 2F 2F 67 D9 C8 C1 41 54 66 [14:33:12]CheckFolder [14:33:12]dirname=/storage/ofd_packets [14:33:12]CheckFolder done [14:33:12]ProducePacketName [14:33:12]name=ofd_packets/00027161 [14:33:12]NVStorageSaveData ofd_packets/00027161 [14:33:12]File name is /storage/ofd_packets/00027161 [14:33:12]Write 301 bytes [14:33:12]NVStorageSaveData done [14:33:12]OFDSenderStorePacket done [14:33:12]KKMCreateOFDPacket done [14:33:12]NVStorageSaveData kkm_last_timestamp [14:33:12]File name is /storage/kkm_last_timestamp [14:33:12]Write 4 bytes [14:33:12]NVStorageSaveData done [14:33:12]ExternCall_PrintAddStr [14:33:12]wPrintStart [14:33:12]Write to MH i2c: 01 00 00 27 A5 CC [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: 01 07 00 27 A5 00 00 00 00 00 FF 0F E1 [14:33:12]RasterBufferAndPrint [14:33:12]line Счет N : (1)359916 [14:33:12]line ИНН: 02508201610067 [14:33:12]line Контрольно-Кассовый Чек [14:33:12]line ПРОДАЖА [14:33:12]line ТРК (МРК, ГНК) : 53 [14:33:12]line Товар: 2710124500 [14:33:12]line Аи-95-К-5 [14:33:12]line 5.570 * 71.90 [14:33:12]line = 400.48 [14:33:12]line НДС 12% НСП 1% [14:33:12]line > о реализуемом товаре [14:33:12]line ОКРУГЛЕНИЕ: -0.48 [14:33:12]line ИТОГО: 400.00 [14:33:12]line Внесено: 400.00 [14:33:12]line СДАЧА: 0.00 [14:33:12]line НСП 1% : 3.54 [14:33:12]line НДС 12% : 42.53 [14:33:12]line Наличными: 400.00 [14:33:12]line Безнал.: 0.00 [14:33:12]line Место: АЗС № 122 "Партнер Нефть" [14:33:12]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:33:12]line СНО: Общий режим [14:33:12]line Чек 48 11.04.2024 14:33 [14:33:12]line Смена: 317 ФФД: 1.0 [14:33:12]line ЗНМ: 0300000147 [14:33:12]line РНМ: 0000000000091578 [14:33:12]line Версия ККМ: 001 [14:33:12]line ФМ: 0000000000874657 [14:33:12]line ФД: 27161 [14:33:12]line ФПД: 146637385139247 [14:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T143343&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27161&fm=146637385139247&tin=02508201610067®Number=0000000000091578&sum=40000 [14:33:13]OFD Sender: Processing packet 27161 [packets to send 44, broken 43] [14:33:13]ProducePacketName [14:33:13]name=ofd_packets/00027161 [14:33:13]OFD Sender: To server: pG, [14:33:13]CommunicateWithHost lk.salyk.kg:30040 [14:33:13]ConnectInit lk.salyk.kg [14:33:13]written 0, free lines is 4095 [14:33:13]Connected sock=9 [14:33:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 FD 5E 07 01 2E 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C7 F4 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 6A 00 00 35 04 06 00 85 5D AD 40 84 2F 2F 67 D9 C8 C1 41 54 66 [14:33: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 35 37 4F 00 00 00 70 D9 47 00 AA 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 6A 00 00 F4 03 04 00 27 9C 17 66 B6 04 01 00 00 0A 80 E8 C7 86 CA BF 8D [14:33:13]CommunicateWithHost err = 0 [14:33:13]CheckOFDResponse [14:33:13]1017 (14) - 77093643461234 [14:33:13]1041 (16) - 0000000000874657 [14:33:13]1040 (4) - 27161 [14:33:13]1012 (4) - 11.04.2024 08:15 [14:33:13]1206 (1) - 0 [14:33:13]OFD Sender: Remove packet 27161 [14:33:13]ProducePacketName [14:33:13]name=ofd_packets/00027161 [14:33:13]NVStorageDeleteData [14:33:13]Write to MH i2c: 01 00 00 52 A5 F7 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 52 A5 00 00 00 00 00 76 0C 80 [14:33:13]RasterBufferAndPrint [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]line [14:33:13]written 0, free lines is 3192 [14:33:13]MH_Cut [14:33:13]Write to MH i2c: D1 01 00 59 A5 01 D0 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 01 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: D1 01 00 59 A5 00 CF [14:33:13]Write to MH i2c: 01 00 00 5A A5 FF [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]OFD Sender: No OFD packet to send [14:33:14]*** Cut start [14:33:14]*** Partial cut [14:33:14]*** CUTSNS_PIN = 1 [14:33:14]*** CUTSNS_PIN = 0 [14:33:15]*** Brake cut motor [14:33:15]Read from MH i2c: 01 [14:33:15]MH_I2C_Read... [14:33:15]*** Stop cut motor [14:33:15]*** Cut end [14:33:15]Read from MH i2c: 01 07 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: 01 07 00 5A A5 00 00 00 00 00 FF 0F 14 [14:33:15]process_action close_receipt done [14:33:15]requested_data is exist [14:33:15]produce_requested_data [14:33:15]requested_item fm.sn is exist - process it [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 11 00 00 [14:33:15]Write to MH i2c: E2 08 00 5B A5 80 11 00 00 00 00 00 00 7A [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:15]Read from MH i2c: E2 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 17 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 17 00 5B A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 D2 [14:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:33:15]wFMCommunicate OK [14:33:15]requested_item fd.num is exist - process it [14:33:15]SAM_PROTO_GetFieldsCounters [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 13 00 00 [14:33:15]Write to MH i2c: E2 08 00 5C A5 80 13 00 00 00 00 00 00 7D [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:15]Read from MH i2c: E2 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 62 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 62 00 5C A5 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 19 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [14:33: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 19 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:15]wFMCommunicate OK [14:33:15]SAM_PROTO_GetFieldsCounters done [14:33:15]requested_item shift.num is exist - process it [14:33:15]requested_item shift.opened is exist - process it [14:33:15]req_shift_opened [14:33:15]FM_GetShiftState [14:33:15]SAM_PROTO_GetShiftState [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 13 01 00 [14:33:15]Write to MH i2c: E2 08 00 5D A5 80 13 01 00 00 00 00 00 7F [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:15]Read from MH i2c: E2 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 0E 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: E2 0E 00 5D A5 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 C9 [14:33:15]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:33:15]wFMCommunicate OK [14:33:15]SAM_PROTO_GetShiftState done [14:33:15]FM_GetShiftState done [14:33:15]req_shift_opened done [14:33:15]requested_item shift.open_date is exist - process it [14:33:15]req_shift_open_date [14:33:15]req_shift_open_date done [14:33:15]produce_requested_data done [14:33:15]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27161,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:33:15]process_action_free close_receipt [14:33:15]json_value_free [14:33:15]json_value_free done [14:33:15]process_json_proto returns [14:33:15]Send response to host [14:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27161,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:33:15]free response buf [14:33:15]execute_script done [14:33:15]execute_script returns [14:33:15]free content buf [14:33:15]Sock 10.Close socket [14:33:15]Sock 10.Thread stoped [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:42:59]ConnectInit Can't connect to host [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:17]accept exits with 8 [14:43:17]New connection [14:43:17]New thread 3066871140 created [14:43:17]Thread 3067014500 joined [14:43:17]Waiting for new connection... [14:43:17] Sock 8.Parse request [14:43:17]Sock 8.Check first char [14:43:17]Sock 8.First char is OK [14:43:17]request: POST /json_proto HTTP/1.0 [14:43:17]Method: POST [14:43:17]URL: /json_proto [14:43:17]Method is POST - this is cgi request [14:43:17]url: /json_proto [14:43:17]query_string will be loaded in cgi processing [14:43:17]execute_cgi json_proto POST (null) [14:43:17]execute_cgi path=json_proto method=POST [14:43:17]POST find Content-Length [14:43:17]Host: 172.17.35.3:8080 [14:43:17]Content-Length: 215 [14:43:17]Content-Type: application/json [14:43:17] [14:43:17]POST finish read [14:43:17]Found Content-Length = 215 [14:43:17]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" ] } } [14:43:17]execute_script... [14:43:17]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" ] } } [14:43:17]POST & json_proto [14:43:17]process_json_proto [14:43:17]json parsed OK: [14:43:17]protocol is kg_v1.0 [14:43:17]action value=get_value [14:43:17]process_action get_value [14:43:17]cmd_get_value [14:43:17]process_action get_value done [14:43:17]requested_data is exist [14:43:17]produce_requested_data [14:43:17]requested_item kkm.sn is exist - process it [14:43:17]requested_item kkm.ver is exist - process it [14:43:17]requested_item fm.sn is exist - process it [14:43:17]wFMCommunicate request_size=4 [14:43:17]MH_SAM_APDU [14:43:17]CAPDU: 80 11 00 00 [14:43:17]Write to MH i2c: E2 08 00 5E A5 80 11 00 00 00 00 00 00 7D [14:43:17]Write i2c OK [14:43:17]MH_I2C_Read... [14:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:17]Read from MH i2c: E2 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 17 00 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 17 00 5E A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 D5 [14:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:43:17]wFMCommunicate OK [14:43:17]requested_item fd.num is exist - process it [14:43:17]SAM_PROTO_GetFieldsCounters [14:43:17]wFMCommunicate request_size=4 [14:43:17]MH_SAM_APDU [14:43:17]CAPDU: 80 13 00 00 [14:43:17]Write to MH i2c: E2 08 00 5F A5 80 13 00 00 00 00 00 00 80 [14:43:17]Write i2c OK [14:43:17]MH_I2C_Read... [14:43:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:17]Read from MH i2c: E2 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 62 00 [14:43:17]MH_I2C_Read... [14:43:17]Read from MH i2c: E2 62 00 5F A5 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 19 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [14:43: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 19 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:17]wFMCommunicate OK [14:43:17]SAM_PROTO_GetFieldsCounters done [14:43:17]requested_item shift.num is exist - process it [14:43:17]requested_item shift.opened is exist - process it [14:43:17]req_shift_opened [14:43:17]FM_GetShiftState [14:43:17]SAM_PROTO_GetShiftState [14:43:17]wFMCommunicate request_size=4 [14:43:17]MH_SAM_APDU [14:43:17]CAPDU: 80 13 01 00 [14:43:17]Write to MH i2c: E2 08 00 60 A5 80 13 01 00 00 00 00 00 82 [14:43:17]Write i2c OK [14:43:17]MH_I2C_Read... [14:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:18]Read from MH i2c: E2 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 0E 00 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 0E 00 60 A5 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 CC [14:43:18]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:43:18]wFMCommunicate OK [14:43:18]SAM_PROTO_GetShiftState done [14:43:18]FM_GetShiftState done [14:43:18]req_shift_opened done [14:43:18]requested_item shift.open_date is exist - process it [14:43:18]req_shift_open_date [14:43:18]req_shift_open_date done [14:43:18]produce_requested_data done [14:43:18]produce_requested_data return {"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":27161,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:43:18]process_action_free get_value [14:43:18]json_value_free [14:43:18]json_value_free done [14:43:18]process_json_proto returns [14:43:18]Send response to host [14:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":27161,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:43:18]free response buf [14:43:18]execute_script done [14:43:18]execute_script returns [14:43:18]free content buf [14:43:18]Sock 8.Close socket [14:43:18]Sock 8.Thread stoped [14:43:18]accept exits with 9 [14:43:18]New connection [14:43:18]New thread 3067014500 created [14:43:18]Thread 3066871140 joined [14:43:18]Waiting for new connection... [14:43:18] Sock 9.Parse request [14:43:18]Sock 9.Check first char [14:43:18]Sock 9.First char is OK [14:43:18]request: POST /json_proto HTTP/1.0 [14:43:18]Method: POST [14:43:18]URL: /json_proto [14:43:18]Method is POST - this is cgi request [14:43:18]url: /json_proto [14:43:18]query_string will be loaded in cgi processing [14:43:18]execute_cgi json_proto POST (null) [14:43:18]execute_cgi path=json_proto method=POST [14:43:18]POST find Content-Length [14:43:18]Host: 172.17.35.3:8080 [14:43:18]Content-Length: 331 [14:43:18]Content-Type: application/json [14:43:18] [14:43:18]POST finish read [14:43:18]Found Content-Length = 331 [14:43:18]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" ] } } [14:43:18]execute_script... [14:43:18]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" ] } } [14:43:18]POST & json_proto [14:43:18]process_json_proto [14:43:18]json parsed OK: [14:43:18]protocol is kg_v1.0 [14:43:18]action value=get_value [14:43:18]process_action get_value [14:43:18]cmd_get_value [14:43:18]process_action get_value done [14:43:18]requested_data is exist [14:43:18]produce_requested_data [14:43:18]requested_item fm.sale.total is exist - process it [14:43:18]SAM_PROTO_GetFMData [14:43:18]wFMCommunicate request_size=4 [14:43:18]MH_SAM_APDU [14:43:18]CAPDU: 80 13 03 00 [14:43:18]Write to MH i2c: E2 08 00 61 A5 80 13 03 00 00 00 00 00 85 [14:43:18]Write i2c OK [14:43:18]MH_I2C_Read... [14:43:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:43:18]Read from MH i2c: E2 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 FD 00 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 FD 00 61 A5 00 C0 04 85 04 BC 04 6E 04 04 00 9F 67 00 00 69 04 A1 00 6F 04 04 00 5B 67 00 00 B1 04 04 00 83 97 88 9D 70 04 04 00 E8 FC FD 80 72 04 04 00 9B 9A 8A 1C 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 96 B4 BB 10 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 2E F3 64 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 C0 [14:43:18]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 9F 67 00 00 69 04 A1 00 6F 04 04 00 5B 67 00 00 B1 04 04 00 83 97 88 9D 70 04 04 00 E8 FC FD 80 72 04 04 00 9B 9A 8A 1C 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 96 B4 BB 10 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 2E F3 64 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 [14:43:18]wFMCommunicate OK [14:43:18]wFMCommunicate request_size=4 [14:43:18]MH_SAM_APDU [14:43:18]CAPDU: 80 17 00 00 [14:43:18]Write to MH i2c: E2 08 00 62 A5 80 17 00 00 00 00 00 00 87 [14:43:18]Write i2c OK [14:43:18]MH_I2C_Read... [14:43:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:43:18]Read from MH i2c: E2 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 FD 00 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 FD 00 62 A5 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 CD [14:43:18]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 [14:43:18]wFMCommunicate OK [14:43:18]wFMCommunicate request_size=4 [14:43:18]MH_SAM_APDU [14:43:18]CAPDU: 80 17 00 00 [14:43:18]Write to MH i2c: E2 08 00 63 A5 80 17 00 00 00 00 00 00 88 [14:43:18]Write i2c OK [14:43:18]MH_I2C_Read... [14:43:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:43:19]Read from MH i2c: E2 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: E2 FD 00 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: E2 FD 00 63 A5 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 2B [14:43:19]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [14:43:19]wFMCommunicate OK [14:43:19]wFMCommunicate request_size=4 [14:43:19]MH_SAM_APDU [14:43:19]CAPDU: 80 17 00 00 [14:43:19]Write to MH i2c: E2 08 00 64 A5 80 17 00 00 00 00 00 00 89 [14:43:19]Write i2c OK [14:43:19]MH_I2C_Read... [14:43:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:43:19]Read from MH i2c: E2 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: E2 FD 00 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: E2 FD 00 64 A5 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 01 [14:43:19]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [14:43:19]wFMCommunicate OK [14:43:19]wFMCommunicate request_size=4 [14:43:19]MH_SAM_APDU [14:43:19]CAPDU: 80 17 00 00 [14:43:19]Write to MH i2c: E2 08 00 65 A5 80 17 00 00 00 00 00 00 8A [14:43:19]OFD Sender: No OFD packet to send [14:43:19]Write i2c OK [14:43:19]MH_I2C_Read... [14:43:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [14:43:19]Read from MH i2c: E2 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: E2 DD 00 [14:43:19]MH_I2C_Read... [14:43:19]Read from MH i2c: E2 DD 00 65 A5 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 72 [14:43:19]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:43:19]wFMCommunicate OK [14:43:19]SAM_PROTO_GetFMData done [14:43:19]requested_item fm.sale_refund.total is exist - process it [14:43:19]requested_item fm.buy.total is exist - process it [14:43:19]requested_item shift.sale.total is exist - process it [14:43:19]SAM_PROTO_GetShiftData [14:43:19]wFMCommunicate request_size=4 [14:43:19]MH_SAM_APDU [14:43:19]CAPDU: 80 13 02 00 [14:43:19]Write to MH i2c: E2 08 00 66 A5 80 13 02 00 00 00 00 00 89 [14:43:19]Write i2c OK [14:43:19]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 FD 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 FD 00 66 A5 00 AE 04 AA 04 AA 04 6E 04 04 00 30 00 00 00 69 04 9B 00 6F 04 04 00 30 00 00 00 B1 04 03 00 24 D0 3B 70 04 03 00 24 19 31 72 04 03 00 00 B7 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 93 5A 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 88 87 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 0A [14:43:20]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 30 00 00 00 69 04 9B 00 6F 04 04 00 30 00 00 00 B1 04 03 00 24 D0 3B 70 04 03 00 24 19 31 72 04 03 00 00 B7 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 93 5A 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 88 87 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [14:43:20]wFMCommunicate OK [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 17 00 00 [14:43:20]Write to MH i2c: E2 08 00 67 A5 80 17 00 00 00 00 00 00 8C [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 FD 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 FD 00 67 A5 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 AE [14:43:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [14:43:20]wFMCommunicate OK [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 17 00 00 [14:43:20]Write to MH i2c: E2 08 00 68 A5 80 17 00 00 00 00 00 00 8D [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 FD 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 FD 00 68 A5 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 44 [14:43:20]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [14:43:20]wFMCommunicate OK [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 17 00 00 [14:43:20]Write to MH i2c: E2 08 00 69 A5 80 17 00 00 00 00 00 00 8E [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 FD 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 FD 00 69 A5 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 00 [14:43:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [14:43:21]wFMCommunicate OK [14:43:21]wFMCommunicate request_size=4 [14:43:21]MH_SAM_APDU [14:43:21]CAPDU: 80 17 00 00 [14:43:21]Write to MH i2c: E2 08 00 6A A5 80 17 00 00 00 00 00 00 8F [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 CB 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 CB 00 6A A5 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 78 [14:43:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:43:21]wFMCommunicate OK [14:43:21]SAM_PROTO_GetShiftData done [14:43:21]requested_item shift.sale.total_cash is exist - process it [14:43:21]requested_item shift.sale_refund.total is exist - process it [14:43:21]requested_item shift.sale_refund.total_cash is exist - process it [14:43:21]requested_item shift.buy.total is exist - process it [14:43:21]requested_item shift.buy.total_cash is exist - process it [14:43:21]produce_requested_data done [14:43:21]produce_requested_data return {"fm.sale.total":26429745.95,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":39199.08,"shift.sale.total_cash":32177.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} [14:43:21]process_action_free get_value [14:43:21]json_value_free [14:43:21]json_value_free done [14:43:21]process_json_proto returns [14:43:21]Send response to host [14:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26429745.95,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":39199.08,"shift.sale.total_cash":32177.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}}} [14:43:21]free response buf [14:43:21]execute_script done [14:43:21]execute_script returns [14:43:21]free content buf [14:43:21]Sock 9.Close socket [14:43:21]Sock 9.Thread stoped [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:35]accept exits with 8 [14:43:35]New connection [14:43:35]New thread 3066871140 created [14:43:35]Thread 3067014500 joined [14:43:35]Waiting for new connection... [14:43:35] Sock 8.Parse request [14:43:35]Sock 8.Check first char [14:43:35]Sock 8.First char is OK [14:43:35]request: POST /json_proto HTTP/1.0 [14:43:35]Method: POST [14:43:35]URL: /json_proto [14:43:35]Method is POST - this is cgi request [14:43:35]url: /json_proto [14:43:35]query_string will be loaded in cgi processing [14:43:35]execute_cgi json_proto POST (null) [14:43:35]execute_cgi path=json_proto method=POST [14:43:35]POST find Content-Length [14:43:35]Host: 172.17.35.3:8080 [14:43:35]Content-Length: 805 [14:43:35]Content-Type: application/json [14:43:35] [14:43:35]POST finish read [14:43:35]Found Content-Length = 805 [14:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124100", "name": "\u0414\u0422(\u043B)-\u041A-1", "price" : 71.80, "quantity" : 6.440, "sum" : 462.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 462.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:35]execute_script... [14:43:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124100", "name": "\u0414\u0422(\u043B)-\u041A-1", "price" : 71.80, "quantity" : 6.440, "sum" : 462.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 462.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:35]POST & json_proto [14:43:35]process_json_proto [14:43:35]json parsed OK: [14:43:35]protocol is kg_v1.0 [14:43:35]action value=close_receipt [14:43:35]process_action close_receipt [14:43:35]cmd_close_receipt [14:43:35]MH_GetDate [14:43:35]Write to MH i2c: F0 00 00 6B A5 FF [14:43:35]Write i2c OK [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: F0 [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: F0 09 00 [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: F0 09 00 6B A5 00 37 F7 17 66 2B 11 66 64 B9 [14:43:35]GetLastDocTimeStamp 1712846023 [14:43:35]current date 1712846647 [14:43:35]FM_GetShiftState [14:43:35]SAM_PROTO_GetShiftState [14:43:35]wFMCommunicate request_size=4 [14:43:35]MH_SAM_APDU [14:43:35]CAPDU: 80 13 01 00 [14:43:35]Write to MH i2c: E2 08 00 6C A5 80 13 01 00 00 00 00 00 8E [14:43:35]Write i2c OK [14:43:35]MH_I2C_Read... [14:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:35]Read from MH i2c: E2 [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: E2 0E 00 [14:43:35]MH_I2C_Read... [14:43:35]Read from MH i2c: E2 0E 00 6C A5 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 D8 [14:43:35]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:43:35]wFMCommunicate OK [14:43:35]SAM_PROTO_GetShiftState done [14:43:35]FM_GetShiftState done [14:43:35]opened in 1712795538 [14:43:35]opened+sec_in_day 1712881938 [14:43:35]quantity*price = 46239 [14:43:35]sum+1 = 46240 [14:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 462.39 НСП 1% : 4.09 НДС 12% : 49.10 Наличными: 0.00 Безнал.: 462.39 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 49 11.04.2024 14:44 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 27162 ФПД: 79665923662122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T144407&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27162&fm=79665923662122&tin=02508201610067®Number=0000000000091578&sum=46239 [14:43:36]StoreToDocumentArchive [14:43:36]shift 317 fd 27162 [14:43:36]save to /storage/0317/doc_00027162 [14:43:36]save last doc name /storage/0317/doc_00027162 to /storage/kkm_last_doc_name [14:43:36]save OK [14:43:36]Clear old archive folders... [14:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:43:36]tlvbuf is 010251F0 [14:43:36]SAM_PROTO_ClearQueue [14:43:36]wFMCommunicate request_size=4 [14:43:36]MH_SAM_APDU [14:43:36]CAPDU: 80 09 00 00 [14:43:36]Write to MH i2c: E2 08 00 79 A5 80 09 00 00 00 00 00 00 90 [14:43:36]Write i2c OK [14:43:36]MH_I2C_Read... [14:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:36]Read from MH i2c: E2 [14:43:36]MH_I2C_Read... [14:43:36]Read from MH i2c: E2 03 00 [14:43:36]MH_I2C_Read... [14:43:36]Read from MH i2c: E2 03 00 79 A5 00 90 00 92 [14:43:36]RAPDU: 90 00 [14:43:36]wFMCommunicate OK [14:43:36]SAM_PROTO_ClearQueue done [14:43:36]KKMCreateOFDPacket [14:43:36]OFDProtocolAddRootSTLVToBuf [14:43:36]FM_MakeSignedData [14:43:36]FM_MakeSignedData [14:43:36]SAM_PROTO_SignData [14:43:36]wFMCommunicate request_size=4 [14:43:36]MH_SAM_APDU [14:43:36]CAPDU: 80 0D 01 02 [14:43:36]Write to MH i2c: E2 08 00 7A A5 80 0D 01 02 00 00 00 00 98 [14:43:36]Write i2c OK [14:43:36]MH_I2C_Read... [14:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:36]Read from MH i2c: E2 [14:43:36]MH_I2C_Read... [14:43:36]Read from MH i2c: E2 03 00 [14:43:36]MH_I2C_Read... [14:43:36]Read from MH i2c: E2 03 00 7A A5 00 90 00 93 [14:43:36]RAPDU: 90 00 [14:43:36]wFMCommunicate OK [14:43:36]wFMCommunicate request_size=255 [14:43:36]MH_SAM_APDU [14:43:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 31 FF 03 08 00 03 28 19 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 9F B4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F B4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 37 F7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 6A 00 00 35 04 06 00 [14:43:36]Write to MH i2c: E2 02 01 7B A5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 31 FF 03 08 00 03 28 19 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 9F B4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F B4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 37 F7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 6A 00 00 35 04 06 00 00 00 B5 [14:43:36]Write i2c OK [14:43:36]MH_I2C_Read... [14:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:37]Read from MH i2c: E2 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 03 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 03 00 7B A5 00 90 00 94 [14:43:37]RAPDU: 90 00 [14:43:37]wFMCommunicate OK [14:43:37]wFMCommunicate request_size=11 [14:43:37]MH_SAM_APDU [14:43:37]CAPDU: 80 0D 02 02 06 48 74 AB 14 A1 2A [14:43:37]Write to MH i2c: E2 0E 00 7C A5 80 0D 02 02 06 00 48 74 AB 14 A1 2A 00 00 ED [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:37]Read from MH i2c: E2 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 03 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 03 00 7C A5 00 90 00 95 [14:43:37]RAPDU: 90 00 [14:43:37]wFMCommunicate OK [14:43:37]wFMCommunicate request_size=4 [14:43:37]MH_SAM_APDU [14:43:37]CAPDU: 80 0D 03 02 [14:43:37]Write to MH i2c: E2 08 00 7D A5 80 0D 03 02 00 00 00 00 9D [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:37]Read from MH i2c: E2 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 0B 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 0B 00 7D A5 00 58 C6 A1 46 33 81 82 00 90 00 D9 [14:43:37]RAPDU: 58 C6 A1 46 33 81 82 00 90 00 [14:43:37]wFMCommunicate OK [14:43:37]SAM_PROTO_SignData done [14:43:37]FM_MakeSignedData done [14:43:37]CreateOFDProtocolMessage [14:43:37]wFMCommunicate request_size=4 [14:43:37]MH_SAM_APDU [14:43:37]CAPDU: 80 11 00 00 [14:43:37]Write to MH i2c: E2 08 00 7E A5 80 11 00 00 00 00 00 00 9D [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:37]Read from MH i2c: E2 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 17 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: E2 17 00 7E A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F5 [14:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:43:37]wFMCommunicate OK [14:43:37]CreateOFDProtocolMessage done [14:43:37]OFDSenderStorePacket 27162 [14:43:37]StoreOFDPacket docnum=27162 [14:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 75 00 08 01 67 D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 31 FF 03 08 00 03 28 19 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 9F B4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F B4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 37 F7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 6A 00 00 35 04 06 00 48 74 AB 14 A1 2A 58 C6 A1 46 33 81 82 00 [14:43:37]CheckFolder [14:43:37]dirname=/storage/ofd_packets [14:43:37]CheckFolder done [14:43:37]ProducePacketName [14:43:37]name=ofd_packets/00027162 [14:43:37]NVStorageSaveData ofd_packets/00027162 [14:43:37]File name is /storage/ofd_packets/00027162 [14:43:37]Write 302 bytes [14:43:37]NVStorageSaveData done [14:43:37]OFDSenderStorePacket done [14:43:37]KKMCreateOFDPacket done [14:43:37]NVStorageSaveData kkm_last_timestamp [14:43:37]File name is /storage/kkm_last_timestamp [14:43:37]Write 4 bytes [14:43:37]NVStorageSaveData done [14:43:37]ExternCall_PrintAddStr [14:43:37]wPrintStart [14:43:37]Write to MH i2c: 01 00 00 7F A5 24 [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: 01 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: 01 07 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: 01 07 00 7F A5 00 00 00 00 00 FF 0F 39 [14:43:37]RasterBufferAndPrint [14:43:37]line Счет N : (1)359917 [14:43:37]line ИНН: 02508201610067 [14:43:37]line Контрольно-Кассовый Чек [14:43:37]line ПРОДАЖА [14:43:37]line ТРК (МРК, ГНК) : 21 [14:43:37]line Товар: 2710124100 [14:43:37]line ДТ(л)-К-1 [14:43:37]line 6.440 * 71.80 [14:43:37]line = 462.39 [14:43:37]line НДС 12% НСП 1% [14:43:37]line > о реализуемом товаре [14:43:37]line ИТОГО: 462.39 [14:43:37]line НСП 1% : 4.09 [14:43:37]line НДС 12% : 49.10 [14:43:37]line Наличными: 0.00 [14:43:37]line Безнал.: 462.39 [14:43:37]line Место: АЗС № 122 "Партнер Нефть" [14:43:37]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:43:37]line СНО: Общий режим [14:43:37]line Чек 49 11.04.2024 14:44 [14:43:37]line Смена: 317 ФФД: 1.0 [14:43:37]line ЗНМ: 0300000147 [14:43:37]line РНМ: 0000000000091578 [14:43:37]line Версия ККМ: 001 [14:43:37]line Платежная система: O! деньги [14:43:37]line ФМ: 0000000000874657 [14:43:37]line ФД: 27162 [14:43:37]line ФПД: 79665923662122 [14:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T144407&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27162&fm=79665923662122&tin=02508201610067®Number=0000000000091578&sum=46239 [14:43:37]OFD Sender: Processing packet 27162 [packets to send 44, broken 43] [14:43:37]ProducePacketName [14:43:37]name=ofd_packets/00027162 [14:43:37]OFD Sender: To server: pG, [14:43:37]CommunicateWithHost lk.salyk.kg:30040 [14:43:37]ConnectInit lk.salyk.kg [14:43:37]written 0, free lines is 4095 [14:43:37]Connected sock=10 [14:43: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 35 37 10 01 00 00 75 00 08 01 67 D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 31 FF 03 08 00 03 28 19 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 9F B4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F B4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 37 F7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 6A 00 00 35 04 06 00 48 74 AB 14 A1 2A 58 C6 A1 46 33 81 82 00 [14:43: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 35 37 4F 00 00 00 6A F3 47 00 5A 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 6A 00 00 F4 03 04 00 97 9E 17 66 B6 04 01 00 00 A8 09 D4 CF 16 AD 86 7D [14:43:37]CommunicateWithHost err = 0 [14:43:37]CheckOFDResponse [14:43:37]1017 (14) - 77093643461234 [14:43:37]1041 (16) - 0000000000874657 [14:43:37]1040 (4) - 27162 [14:43:37]1012 (4) - 11.04.2024 08:25 [14:43:37]1206 (1) - 0 [14:43:37]OFD Sender: Remove packet 27162 [14:43:37]ProducePacketName [14:43:37]name=ofd_packets/00027162 [14:43:37]NVStorageDeleteData [14:43:37]Write to MH i2c: 01 00 00 A9 A5 4E [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: 01 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: 01 07 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: 01 07 00 A9 A5 00 00 00 00 00 8D 0C EE [14:43:37]RasterBufferAndPrint [14:43:37]line [14:43:37]line [14:43:37]line [14:43:37]line [14:43:37]line [14:43:37]written 0, free lines is 3216 [14:43:37]MH_Cut [14:43:37]Write to MH i2c: D1 01 00 B0 A5 01 27 [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: D1 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: D1 01 00 [14:43:37]MH_I2C_Read... [14:43:37]Read from MH i2c: D1 01 00 B0 A5 00 26 [14:43:37]Write to MH i2c: 01 00 00 B1 A5 56 [14:43:37]Write i2c OK [14:43:37]MH_I2C_Read... [14:43:38]OFD Sender: No OFD packet to send [14:43:39]*** Cut start [14:43:39]*** Partial cut [14:43:39]*** CUTSNS_PIN = 1 [14:43:39]*** CUTSNS_PIN = 0 [14:43:39]*** Brake cut motor [14:43:39]Read from MH i2c: 01 [14:43:39]MH_I2C_Read... [14:43:39]*** Stop cut motor [14:43:39]*** Cut end [14:43:39]Read from MH i2c: 01 07 00 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: 01 07 00 B1 A5 00 00 00 00 00 FF 0F 6B [14:43:39]process_action close_receipt done [14:43:39]requested_data is exist [14:43:39]produce_requested_data [14:43:39]requested_item fm.sn is exist - process it [14:43:39]wFMCommunicate request_size=4 [14:43:39]MH_SAM_APDU [14:43:39]CAPDU: 80 11 00 00 [14:43:39]Write to MH i2c: E2 08 00 B2 A5 80 11 00 00 00 00 00 00 D1 [14:43:39]Write i2c OK [14:43:39]MH_I2C_Read... [14:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:39]Read from MH i2c: E2 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 17 00 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 17 00 B2 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 29 [14:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:43:39]wFMCommunicate OK [14:43:39]requested_item fd.num is exist - process it [14:43:39]SAM_PROTO_GetFieldsCounters [14:43:39]wFMCommunicate request_size=4 [14:43:39]MH_SAM_APDU [14:43:39]CAPDU: 80 13 00 00 [14:43:39]Write to MH i2c: E2 08 00 B3 A5 80 13 00 00 00 00 00 00 D4 [14:43:39]Write i2c OK [14:43:39]MH_I2C_Read... [14:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:39]Read from MH i2c: E2 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 62 00 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 62 00 B3 A5 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1A 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [14:43: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1A 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:39]wFMCommunicate OK [14:43:39]SAM_PROTO_GetFieldsCounters done [14:43:39]requested_item shift.num is exist - process it [14:43:39]requested_item shift.opened is exist - process it [14:43:39]req_shift_opened [14:43:39]FM_GetShiftState [14:43:39]SAM_PROTO_GetShiftState [14:43:39]wFMCommunicate request_size=4 [14:43:39]MH_SAM_APDU [14:43:39]CAPDU: 80 13 01 00 [14:43:39]Write to MH i2c: E2 08 00 B4 A5 80 13 01 00 00 00 00 00 D6 [14:43:39]Write i2c OK [14:43:39]MH_I2C_Read... [14:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:39]Read from MH i2c: E2 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 0E 00 [14:43:39]MH_I2C_Read... [14:43:39]Read from MH i2c: E2 0E 00 B4 A5 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 20 [14:43:39]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:43:39]wFMCommunicate OK [14:43:39]SAM_PROTO_GetShiftState done [14:43:39]FM_GetShiftState done [14:43:39]req_shift_opened done [14:43:39]requested_item shift.open_date is exist - process it [14:43:39]req_shift_open_date [14:43:39]req_shift_open_date done [14:43:39]produce_requested_data done [14:43:39]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27162,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:43:39]process_action_free close_receipt [14:43:39]json_value_free [14:43:39]json_value_free done [14:43:39]process_json_proto returns [14:43:39]Send response to host [14:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27162,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:43:39]free response buf [14:43:40]execute_script done [14:43:40]execute_script returns [14:43:40]free content buf [14:43:40]Sock 8.Close socket [14:43:40]Sock 8.Thread stoped [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:03]accept exits with 9 [14:46:03]New connection [14:46:03]New thread 3067014500 created [14:46:03]Thread 3066871140 joined [14:46:03]Waiting for new connection... [14:46:03] Sock 9.Parse request [14:46:03]Sock 9.Check first char [14:46:03]Sock 9.First char is OK [14:46:03]request: POST /json_proto HTTP/1.0 [14:46:03]Method: POST [14:46:03]URL: /json_proto [14:46:03]Method is POST - this is cgi request [14:46:03]url: /json_proto [14:46:03]query_string will be loaded in cgi processing [14:46:03]execute_cgi json_proto POST (null) [14:46:03]execute_cgi path=json_proto method=POST [14:46:03]POST find Content-Length [14:46:03]Host: 172.17.35.3:8080 [14:46:03]Content-Length: 805 [14:46:03]Content-Type: application/json [14:46:03] [14:46:03]POST finish read [14:46:03]Found Content-Length = 805 [14:46:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 3.570, "sum" : 256.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 256.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:03]execute_script... [14:46:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 3.570, "sum" : 256.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 256.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:03]POST & json_proto [14:46:03]process_json_proto [14:46:03]json parsed OK: [14:46:03]protocol is kg_v1.0 [14:46:03]action value=close_receipt [14:46:03]process_action close_receipt [14:46:03]cmd_close_receipt [14:46:03]MH_GetDate [14:46:03]Write to MH i2c: F0 00 00 B5 A5 49 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: F0 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: F0 09 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: F0 09 00 B5 A5 00 CB F7 17 66 2B 11 66 64 97 [14:46:03]GetLastDocTimeStamp 1712846647 [14:46:03]current date 1712846795 [14:46:03]FM_GetShiftState [14:46:03]SAM_PROTO_GetShiftState [14:46:03]wFMCommunicate request_size=4 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 13 01 00 [14:46:03]Write to MH i2c: E2 08 00 B6 A5 80 13 01 00 00 00 00 00 D8 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:03]Read from MH i2c: E2 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 0E 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 0E 00 B6 A5 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 22 [14:46:03]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:46:03]wFMCommunicate OK [14:46:03]SAM_PROTO_GetShiftState done [14:46:03]FM_GetShiftState done [14:46:03]opened in 1712795538 [14:46:03]opened+sec_in_day 1712881938 [14:46:03]quantity*price = 25632 [14:46:03]sum+1 = 25634 [14:46:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 256.33 НСП 1% : 2.27 НДС 12% : 27.22 Наличными: 0.00 Безнал.: 256.33 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 50 11.04.2024 14:46 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 27163 ФПД: 3478847781453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T144635&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27163&fm=3478847781453&tin=02508201610067®Number=0000000000091578&sum=25633 [14:46:04]StoreToDocumentArchive [14:46:04]shift 317 fd 27163 [14:46:04]save to /storage/0317/doc_00027163 [14:46:04]save last doc name /storage/0317/doc_00027163 to /storage/kkm_last_doc_name [14:46:04]save OK [14:46:04]Clear old archive folders... [14:46:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:46:04]tlvbuf is 00E32AD0 [14:46:04]SAM_PROTO_ClearQueue [14:46:04]wFMCommunicate request_size=4 [14:46:04]MH_SAM_APDU [14:46:04]CAPDU: 80 09 00 00 [14:46:04]Write to MH i2c: E2 08 00 C3 A5 80 09 00 00 00 00 00 00 DA [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:04]Read from MH i2c: E2 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 C3 A5 00 90 00 DC [14:46:04]RAPDU: 90 00 [14:46:04]wFMCommunicate OK [14:46:04]SAM_PROTO_ClearQueue done [14:46:04]KKMCreateOFDPacket [14:46:04]OFDProtocolAddRootSTLVToBuf [14:46:04]FM_MakeSignedData [14:46:04]FM_MakeSignedData [14:46:04]SAM_PROTO_SignData [14:46:04]wFMCommunicate request_size=4 [14:46:04]MH_SAM_APDU [14:46:04]CAPDU: 80 0D 01 02 [14:46:04]Write to MH i2c: E2 08 00 C4 A5 80 0D 01 02 00 00 00 00 E2 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 C4 A5 00 90 00 DD [14:46:05]RAPDU: 90 00 [14:46:05]wFMCommunicate OK [14:46:05]wFMCommunicate request_size=255 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 0D 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 21 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 CB F7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1B 6A 00 00 35 04 06 00 [14:46:05]Write to MH i2c: E2 02 01 C5 A5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 0D 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 21 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 CB F7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1B 6A 00 00 35 04 06 00 00 00 AA [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 C5 A5 00 90 00 DE [14:46:05]RAPDU: 90 00 [14:46:05]wFMCommunicate OK [14:46:05]wFMCommunicate request_size=11 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 0D 02 02 06 03 29 FB 7C 7A 4D [14:46:05]Write to MH i2c: E2 0E 00 C6 A5 80 0D 02 02 06 00 03 29 FB 7C 7A 4D 00 00 5B [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 03 00 C6 A5 00 90 00 DF [14:46:05]RAPDU: 90 00 [14:46:05]wFMCommunicate OK [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 0D 03 02 [14:46:05]Write to MH i2c: E2 08 00 C7 A5 80 0D 03 02 00 00 00 00 E7 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 0B 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 0B 00 C7 A5 00 1F C9 13 8C 45 8C 93 A5 90 00 78 [14:46:05]RAPDU: 1F C9 13 8C 45 8C 93 A5 90 00 [14:46:05]wFMCommunicate OK [14:46:05]SAM_PROTO_SignData done [14:46:05]FM_MakeSignedData done [14:46:05]CreateOFDProtocolMessage [14:46:05]wFMCommunicate request_size=4 [14:46:05]MH_SAM_APDU [14:46:05]CAPDU: 80 11 00 00 [14:46:05]Write to MH i2c: E2 08 00 C8 A5 80 11 00 00 00 00 00 00 E7 [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:05]Read from MH i2c: E2 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: E2 17 00 C8 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 3F [14:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:46:05]wFMCommunicate OK [14:46:05]CreateOFDProtocolMessage done [14:46:05]OFDSenderStorePacket 27163 [14:46:05]StoreOFDPacket docnum=27163 [14:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 6D A0 08 01 09 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 0D 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 21 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 CB F7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1B 6A 00 00 35 04 06 00 03 29 FB 7C 7A 4D 1F C9 13 8C 45 8C 93 A5 [14:46:05]CheckFolder [14:46:05]dirname=/storage/ofd_packets [14:46:05]CheckFolder done [14:46:05]ProducePacketName [14:46:05]name=ofd_packets/00027163 [14:46:05]NVStorageSaveData ofd_packets/00027163 [14:46:05]File name is /storage/ofd_packets/00027163 [14:46:05]Write 302 bytes [14:46:05]NVStorageSaveData done [14:46:05]OFDSenderStorePacket done [14:46:05]KKMCreateOFDPacket done [14:46:05]NVStorageSaveData kkm_last_timestamp [14:46:05]File name is /storage/kkm_last_timestamp [14:46:05]Write 4 bytes [14:46:05]NVStorageSaveData done [14:46:05]ExternCall_PrintAddStr [14:46:05]wPrintStart [14:46:05]Write to MH i2c: 01 00 00 C9 A5 6E [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: 01 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: 01 07 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: 01 07 00 C9 A5 00 00 00 00 00 FF 0F 83 [14:46:05]RasterBufferAndPrint [14:46:05]line Счет N : (1)359918 [14:46:05]line ИНН: 02508201610067 [14:46:05]line Контрольно-Кассовый Чек [14:46:05]line ПРОДАЖА [14:46:05]line ТРК (МРК, ГНК) : 21 [14:46:05]line Товар: 2710194210 [14:46:05]line ДТ(л)-К-5 [14:46:05]line 3.570 * 71.80 [14:46:05]line = 256.33 [14:46:05]line НДС 12% НСП 1% [14:46:05]line > о реализуемом товаре [14:46:05]line ИТОГО: 256.33 [14:46:05]line НСП 1% : 2.27 [14:46:05]line НДС 12% : 27.22 [14:46:05]line Наличными: 0.00 [14:46:05]line Безнал.: 256.33 [14:46:05]line Место: АЗС № 122 "Партнер Нефть" [14:46:05]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:46:05]line СНО: Общий режим [14:46:05]line Чек 50 11.04.2024 14:46 [14:46:05]line Смена: 317 ФФД: 1.0 [14:46:05]line ЗНМ: 0300000147 [14:46:05]line РНМ: 0000000000091578 [14:46:05]line Версия ККМ: 001 [14:46:05]line Платежная система: O! деньги [14:46:05]line ФМ: 0000000000874657 [14:46:05]line ФД: 27163 [14:46:05]line ФПД: 3478847781453 [14:46:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T144635&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27163&fm=3478847781453&tin=02508201610067®Number=0000000000091578&sum=25633 [14:46:05]OFD Sender: Processing packet 27163 [packets to send 44, broken 43] [14:46:05]ProducePacketName [14:46:05]name=ofd_packets/00027163 [14:46:05]OFD Sender: To server: pG, [14:46:05]CommunicateWithHost lk.salyk.kg:30040 [14:46:05]ConnectInit lk.salyk.kg [14:46:05]written 0, free lines is 4095 [14:46:05]Connected sock=10 [14: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 35 37 10 01 00 00 6D A0 08 01 09 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 0D 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 21 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 CB F7 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1B 6A 00 00 35 04 06 00 03 29 FB 7C 7A 4D 1F C9 13 8C 45 8C 93 A5 [14:46: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 35 37 4F 00 00 00 7C A7 47 00 7B 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 35 37 10 04 04 00 1B 6A 00 00 F4 03 04 00 2B 9F 17 66 B6 04 01 00 00 A8 F0 6F 06 42 D4 2B 16 [14:46:06]CommunicateWithHost err = 0 [14:46:06]CheckOFDResponse [14:46:06]1017 (14) - 77093643461234 [14:46:06]1041 (16) - 0000000000874657 [14:46:06]1040 (4) - 27163 [14:46:06]1012 (4) - 11.04.2024 08:28 [14:46:06]1206 (1) - 0 [14:46:06]OFD Sender: Remove packet 27163 [14:46:06]ProducePacketName [14:46:06]name=ofd_packets/00027163 [14:46:06]NVStorageDeleteData [14:46:06]Write to MH i2c: 01 00 00 F3 A5 98 [14:46:06]Write i2c OK [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: 01 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: 01 07 00 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: 01 07 00 F3 A5 00 00 00 00 00 90 0C 3B [14:46:06]RasterBufferAndPrint [14:46:06]line [14:46:06]line [14:46:06]line [14:46:06]line [14:46:06]line [14:46:06]written 0, free lines is 3218 [14:46:06]MH_Cut [14:46:06]Write to MH i2c: D1 01 00 FA A5 01 71 [14:46:06]Write i2c OK [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: D1 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: D1 01 00 [14:46:06]MH_I2C_Read... [14:46:06]Read from MH i2c: D1 01 00 FA A5 00 70 [14:46:06]Write to MH i2c: 01 00 00 FB A5 A0 [14:46:06]Write i2c OK [14:46:06]MH_I2C_Read... [14:46:06]OFD Sender: No OFD packet to send [14:46:07]*** Cut start [14:46:07]*** Partial cut [14:46:07]*** CUTSNS_PIN = 1 [14:46:07]*** CUTSNS_PIN = 0 [14:46:07]*** Brake cut motor [14:46:08]Read from MH i2c: 01 [14:46:08]MH_I2C_Read... [14:46:08]*** Stop cut motor [14:46:08]*** Cut end [14:46:08]Read from MH i2c: 01 07 00 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: 01 07 00 FB A5 00 00 00 00 00 FF 0F B5 [14:46:08]process_action close_receipt done [14:46:08]requested_data is exist [14:46:08]produce_requested_data [14:46:08]requested_item fm.sn is exist - process it [14:46:08]wFMCommunicate request_size=4 [14:46:08]MH_SAM_APDU [14:46:08]CAPDU: 80 11 00 00 [14:46:08]Write to MH i2c: E2 08 00 FC A5 80 11 00 00 00 00 00 00 1B [14:46:08]Write i2c OK [14:46:08]MH_I2C_Read... [14:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:08]Read from MH i2c: E2 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 17 00 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 17 00 FC A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 73 [14:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:46:08]wFMCommunicate OK [14:46:08]requested_item fd.num is exist - process it [14:46:08]SAM_PROTO_GetFieldsCounters [14:46:08]wFMCommunicate request_size=4 [14:46:08]MH_SAM_APDU [14:46:08]CAPDU: 80 13 00 00 [14:46:08]Write to MH i2c: E2 08 00 FD A5 80 13 00 00 00 00 00 00 1E [14:46:08]Write i2c OK [14:46:08]MH_I2C_Read... [14:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:08]Read from MH i2c: E2 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 62 00 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 62 00 FD A5 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1B 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [14: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1B 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:08]wFMCommunicate OK [14:46:08]SAM_PROTO_GetFieldsCounters done [14:46:08]requested_item shift.num is exist - process it [14:46:08]requested_item shift.opened is exist - process it [14:46:08]req_shift_opened [14:46:08]FM_GetShiftState [14:46:08]SAM_PROTO_GetShiftState [14:46:08]wFMCommunicate request_size=4 [14:46:08]MH_SAM_APDU [14:46:08]CAPDU: 80 13 01 00 [14:46:08]Write to MH i2c: E2 08 00 FE A5 80 13 01 00 00 00 00 00 20 [14:46:08]Write i2c OK [14:46:08]MH_I2C_Read... [14:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:08]Read from MH i2c: E2 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 0E 00 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 0E 00 FE A5 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 6A [14:46:08]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:46:08]wFMCommunicate OK [14:46:08]SAM_PROTO_GetShiftState done [14:46:08]FM_GetShiftState done [14:46:08]req_shift_opened done [14:46:08]requested_item shift.open_date is exist - process it [14:46:08]req_shift_open_date [14:46:08]req_shift_open_date done [14:46:08]produce_requested_data done [14:46:08]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27163,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:46:08]process_action_free close_receipt [14:46:08]json_value_free [14:46:08]json_value_free done [14:46:08]process_json_proto returns [14:46:08]Send response to host [14:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27163,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:46:08]free response buf [14:46:08]execute_script done [14:46:08]execute_script returns [14:46:08]free content buf [14:46:08]Sock 9.Close socket [14:46:08]Sock 9.Thread stoped [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:47:59]accept exits with 8 [14:47:59]New connection [14:47:59]New thread 3066871140 created [14:47:59]Thread 3067014500 joined [14:47:59]Waiting for new connection... [14:47:59] Sock 8.Parse request [14:47:59]Sock 8.Check first char [14:47:59]Sock 8.First char is OK [14:47:59]request: POST /json_proto HTTP/1.0 [14:47:59]Method: POST [14:47:59]URL: /json_proto [14:47:59]Method is POST - this is cgi request [14:47:59]url: /json_proto [14:47:59]query_string will be loaded in cgi processing [14:47:59]execute_cgi json_proto POST (null) [14:47:59]execute_cgi path=json_proto method=POST [14:47:59]POST find Content-Length [14:47:59]Host: 172.17.35.3:8080 [14:47:59]Content-Length: 687 [14:47:59]Content-Type: application/json [14:47:59] [14:47:59]POST finish read [14:47:59]Found Content-Length = 687 [14:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:59]execute_script... [14:47:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:59]POST & json_proto [14:47:59]process_json_proto [14:47:59]json parsed OK: [14:47:59]protocol is kg_v1.0 [14:47:59]action value=close_receipt [14:47:59]process_action close_receipt [14:47:59]cmd_close_receipt [14:47:59]MH_GetDate [14:47:59]Write to MH i2c: F0 00 00 FF A5 93 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: F0 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: F0 09 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: F0 09 00 FF A5 00 3F F8 17 66 2B 11 66 64 56 [14:47:59]GetLastDocTimeStamp 1712846795 [14:47:59]current date 1712846911 [14:47:59]FM_GetShiftState [14:47:59]SAM_PROTO_GetShiftState [14:47:59]wFMCommunicate request_size=4 [14:47:59]MH_SAM_APDU [14:47:59]CAPDU: 80 13 01 00 [14:47:59]Write to MH i2c: E2 08 00 00 A6 80 13 01 00 00 00 00 00 23 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0E 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0E 00 00 A6 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 6D [14:47:59]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:47:59]wFMCommunicate OK [14:47:59]SAM_PROTO_GetShiftState done [14:47:59]FM_GetShiftState done [14:47:59]opened in 1712795538 [14:47:59]opened+sec_in_day 1712881938 [14:47:59]quantity*price = 100017 [14:47:59]sum+1 = 100018 [14:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 51 11.04.2024 14:48 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27164 ФПД: 110632134512664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T144831&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27164&fm=110632134512664&tin=02508201610067®Number=0000000000091578&sum=100000 [14:48:00]StoreToDocumentArchive [14:48:00]shift 317 fd 27164 [14:48:00]save to /storage/0317/doc_00027164 [14:48:00]save last doc name /storage/0317/doc_00027164 to /storage/kkm_last_doc_name [14:48:00]save OK [14:48:00]Clear old archive folders... [14:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:48:00]tlvbuf is 00F51170 [14:48:00]SAM_PROTO_ClearQueue [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 09 00 00 [14:48:00]Write to MH i2c: E2 08 00 0D A6 80 09 00 00 00 00 00 00 25 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 0D A6 00 90 00 27 [14:48:00]RAPDU: 90 00 [14:48:00]wFMCommunicate OK [14:48:00]SAM_PROTO_ClearQueue done [14:48:00]KKMCreateOFDPacket [14:48:00]OFDProtocolAddRootSTLVToBuf [14:48:00]FM_MakeSignedData [14:48:00]FM_MakeSignedData [14:48:00]SAM_PROTO_SignData [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 0D 01 02 [14:48:00]Write to MH i2c: E2 08 00 0E A6 80 0D 01 02 00 00 00 00 2D [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 0E A6 00 90 00 28 [14:48:00]RAPDU: 90 00 [14:48:00]wFMCommunicate OK [14:48:00]wFMCommunicate request_size=255 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3F F8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1C 6A 00 00 35 04 06 00 [14:48:00]Write to MH i2c: E2 02 01 0F A6 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3F F8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1C 6A 00 00 35 04 06 00 00 00 93 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 0F A6 00 90 00 29 [14:48:00]RAPDU: 90 00 [14:48:00]wFMCommunicate OK [14:48:00]wFMCommunicate request_size=11 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 0D 02 02 06 64 9E 8D 14 10 18 [14:48:00]Write to MH i2c: E2 0E 00 10 A6 80 0D 02 02 06 00 64 9E 8D 14 10 18 00 00 07 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 03 00 10 A6 00 90 00 2A [14:48:00]RAPDU: 90 00 [14:48:00]wFMCommunicate OK [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 0D 03 02 [14:48:00]Write to MH i2c: E2 08 00 11 A6 80 0D 03 02 00 00 00 00 32 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 0B 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 0B 00 11 A6 00 EE F4 B8 13 0B D7 83 9F 90 00 E4 [14:48:00]RAPDU: EE F4 B8 13 0B D7 83 9F 90 00 [14:48:00]wFMCommunicate OK [14:48:00]SAM_PROTO_SignData done [14:48:00]FM_MakeSignedData done [14:48:00]CreateOFDProtocolMessage [14:48:00]wFMCommunicate request_size=4 [14:48:00]MH_SAM_APDU [14:48:00]CAPDU: 80 11 00 00 [14:48:00]Write to MH i2c: E2 08 00 12 A6 80 11 00 00 00 00 00 00 32 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:00]Read from MH i2c: E2 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 17 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: E2 17 00 12 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 8A [14:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:48:00]wFMCommunicate OK [14:48:00]CreateOFDProtocolMessage done [14:48:00]OFDSenderStorePacket 27164 [14:48:00]StoreOFDPacket docnum=27164 [14:48:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 76 66 08 01 EB 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3F F8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1C 6A 00 00 35 04 06 00 64 9E 8D 14 10 18 EE F4 B8 13 0B D7 83 9F [14:48:00]CheckFolder [14:48:00]dirname=/storage/ofd_packets [14:48:00]CheckFolder done [14:48:00]ProducePacketName [14:48:00]name=ofd_packets/00027164 [14:48:00]NVStorageSaveData ofd_packets/00027164 [14:48:00]File name is /storage/ofd_packets/00027164 [14:48:00]Write 302 bytes [14:48:00]NVStorageSaveData done [14:48:00]OFDSenderStorePacket done [14:48:00]KKMCreateOFDPacket done [14:48:00]NVStorageSaveData kkm_last_timestamp [14:48:00]File name is /storage/kkm_last_timestamp [14:48:00]Write 4 bytes [14:48:00]NVStorageSaveData done [14:48:00]ExternCall_PrintAddStr [14:48:00]wPrintStart [14:48:00]Write to MH i2c: 01 00 00 13 A6 B9 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: 01 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: 01 07 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: 01 07 00 13 A6 00 00 00 00 00 FF 0F CE [14:48:00]RasterBufferAndPrint [14:48:00]line Счет N : (1)359921 [14:48:00]line ИНН: 02508201610067 [14:48:00]line Контрольно-Кассовый Чек [14:48:00]line ПРОДАЖА [14:48:00]line ТРК (МРК, ГНК) : 21 [14:48:00]line Товар: 2710194210 [14:48:00]line ДТ(л)-К-5 [14:48:00]line 13.930 * 71.80 [14:48:00]line = 1000.17 [14:48:00]line НДС 12% НСП 1% [14:48:00]line > о реализуемом товаре [14:48:00]line ОКРУГЛЕНИЕ: -0.17 [14:48:00]line ИТОГО: 1000.00 [14:48:00]line Внесено: 1000.00 [14:48:00]line СДАЧА: 0.00 [14:48:00]line НСП 1% : 8.85 [14:48:00]line НДС 12% : 106.21 [14:48:00]line Наличными: 1000.00 [14:48:00]line Безнал.: 0.00 [14:48:00]line Место: АЗС № 122 "Партнер Нефть" [14:48:00]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:48:00]line СНО: Общий режим [14:48:00]line Чек 51 11.04.2024 14:48 [14:48:00]line Смена: 317 ФФД: 1.0 [14:48:00]line ЗНМ: 0300000147 [14:48:00]line РНМ: 0000000000091578 [14:48:00]line Версия ККМ: 001 [14:48:00]line ФМ: 0000000000874657 [14:48:00]line ФД: 27164 [14:48:00]line ФПД: 110632134512664 [14:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T144831&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27164&fm=110632134512664&tin=02508201610067®Number=0000000000091578&sum=100000 [14:48:01]OFD Sender: Processing packet 27164 [packets to send 44, broken 43] [14:48:01]ProducePacketName [14:48:01]name=ofd_packets/00027164 [14:48:01]OFD Sender: To server: pG, [14:48:01]CommunicateWithHost lk.salyk.kg:30040 [14:48:01]ConnectInit lk.salyk.kg [14:48:01]written 0, free lines is 4095 [14:48:01]Connected sock=10 [14:48: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 35 37 10 01 00 00 76 66 08 01 EB 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3F F8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1C 6A 00 00 35 04 06 00 64 9E 8D 14 10 18 EE F4 B8 13 0B D7 83 9F [14:48: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 35 37 4F 00 00 00 A6 78 47 00 13 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 35 37 10 04 04 00 1C 6A 00 00 F4 03 04 00 9F 9F 17 66 B6 04 01 00 00 AE BA E3 35 18 3A E1 91 [14:48:01]CommunicateWithHost err = 0 [14:48:01]CheckOFDResponse [14:48:01]1017 (14) - 77093643461234 [14:48:01]1041 (16) - 0000000000874657 [14:48:01]1040 (4) - 27164 [14:48:01]1012 (4) - 11.04.2024 08:30 [14:48:01]1206 (1) - 0 [14:48:01]OFD Sender: Remove packet 27164 [14:48:01]ProducePacketName [14:48:01]name=ofd_packets/00027164 [14:48:01]NVStorageDeleteData [14:48:01]Write to MH i2c: 01 00 00 3E A6 E4 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 07 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 07 00 3E A6 00 00 00 00 00 6D 0C 64 [14:48:01]RasterBufferAndPrint [14:48:01]line [14:48:01]line [14:48:01]line [14:48:01]line [14:48:01]line [14:48:01]written 0, free lines is 3186 [14:48:01]MH_Cut [14:48:01]Write to MH i2c: D1 01 00 45 A6 01 BD [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: D1 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: D1 01 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: D1 01 00 45 A6 00 BC [14:48:01]Write to MH i2c: 01 00 00 46 A6 EC [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]OFD Sender: No OFD packet to send [14:48:02]*** Cut start [14:48:02]*** Partial cut [14:48:02]*** CUTSNS_PIN = 1 [14:48:02]*** CUTSNS_PIN = 0 [14:48:02]*** Brake cut motor [14:48:03]Read from MH i2c: 01 [14:48:03]MH_I2C_Read... [14:48:03]*** Stop cut motor [14:48:03]*** Cut end [14:48:03]Read from MH i2c: 01 07 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: 01 07 00 46 A6 00 00 00 00 00 FF 0F 01 [14:48:03]process_action close_receipt done [14:48:03]requested_data is exist [14:48:03]produce_requested_data [14:48:03]requested_item fm.sn is exist - process it [14:48:03]wFMCommunicate request_size=4 [14:48:03]MH_SAM_APDU [14:48:03]CAPDU: 80 11 00 00 [14:48:03]Write to MH i2c: E2 08 00 47 A6 80 11 00 00 00 00 00 00 67 [14:48:03]Write i2c OK [14:48:03]MH_I2C_Read... [14:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:03]Read from MH i2c: E2 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 17 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 17 00 47 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 BF [14:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:48:03]wFMCommunicate OK [14:48:03]requested_item fd.num is exist - process it [14:48:03]SAM_PROTO_GetFieldsCounters [14:48:03]wFMCommunicate request_size=4 [14:48:03]MH_SAM_APDU [14:48:03]CAPDU: 80 13 00 00 [14:48:03]Write to MH i2c: E2 08 00 48 A6 80 13 00 00 00 00 00 00 6A [14:48:03]Write i2c OK [14:48:03]MH_I2C_Read... [14:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:03]Read from MH i2c: E2 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 62 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 62 00 48 A6 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1C 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [14:48: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1C 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:03]wFMCommunicate OK [14:48:03]SAM_PROTO_GetFieldsCounters done [14:48:03]requested_item shift.num is exist - process it [14:48:03]requested_item shift.opened is exist - process it [14:48:03]req_shift_opened [14:48:03]FM_GetShiftState [14:48:03]SAM_PROTO_GetShiftState [14:48:03]wFMCommunicate request_size=4 [14:48:03]MH_SAM_APDU [14:48:03]CAPDU: 80 13 01 00 [14:48:03]Write to MH i2c: E2 08 00 49 A6 80 13 01 00 00 00 00 00 6C [14:48:03]Write i2c OK [14:48:03]MH_I2C_Read... [14:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:03]Read from MH i2c: E2 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 0E 00 [14:48:03]MH_I2C_Read... [14:48:03]Read from MH i2c: E2 0E 00 49 A6 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 B6 [14:48:03]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:48:03]wFMCommunicate OK [14:48:03]SAM_PROTO_GetShiftState done [14:48:03]FM_GetShiftState done [14:48:03]req_shift_opened done [14:48:03]requested_item shift.open_date is exist - process it [14:48:03]req_shift_open_date [14:48:03]req_shift_open_date done [14:48:03]produce_requested_data done [14:48:03]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27164,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:48:03]process_action_free close_receipt [14:48:03]json_value_free [14:48:03]json_value_free done [14:48:03]process_json_proto returns [14:48:03]Send response to host [14:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27164,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:48:03]free response buf [14:48:03]execute_script done [14:48:03]execute_script returns [14:48:03]free content buf [14:48:03]Sock 8.Close socket [14:48:03]Sock 8.Thread stoped [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:36]accept exits with 9 [14:50:36]New connection [14:50:36]New thread 3067014500 created [14:50:36]Thread 3066871140 joined [14:50:36]Waiting for new connection... [14:50:36] Sock 9.Parse request [14:50:36]Sock 9.Check first char [14:50:36]Sock 9.First char is OK [14:50:36]request: POST /json_proto HTTP/1.0 [14:50:36]Method: POST [14:50:36]URL: /json_proto [14:50:36]Method is POST - this is cgi request [14:50:36]url: /json_proto [14:50:36]query_string will be loaded in cgi processing [14:50:36]execute_cgi json_proto POST (null) [14:50:36]execute_cgi path=json_proto method=POST [14:50:36]POST find Content-Length [14:50:36]Host: 172.17.35.3:8080 [14:50:36]Content-Length: 682 [14:50:36]Content-Type: application/json [14:50:36] [14:50:36]POST finish read [14:50:36]Found Content-Length = 682 [14:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 23.660, "sum" : 1500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:36]execute_script... [14:50:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 23.660, "sum" : 1500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:36]POST & json_proto [14:50:36]process_json_proto [14:50:36]json parsed OK: [14:50:36]protocol is kg_v1.0 [14:50:36]action value=close_receipt [14:50:36]process_action close_receipt [14:50:36]cmd_close_receipt [14:50:36]MH_GetDate [14:50:36]Write to MH i2c: F0 00 00 4A A6 DF [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: F0 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: F0 09 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: F0 09 00 4A A6 00 DC F8 17 66 2B 11 66 64 3F [14:50:36]GetLastDocTimeStamp 1712846911 [14:50:36]current date 1712847068 [14:50:36]FM_GetShiftState [14:50:36]SAM_PROTO_GetShiftState [14:50:36]wFMCommunicate request_size=4 [14:50:36]MH_SAM_APDU [14:50:36]CAPDU: 80 13 01 00 [14:50:36]Write to MH i2c: E2 08 00 4B A6 80 13 01 00 00 00 00 00 6E [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:36]Read from MH i2c: E2 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 0E 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 0E 00 4B A6 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 B8 [14:50:36]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:50:36]wFMCommunicate OK [14:50:36]SAM_PROTO_GetShiftState done [14:50:36]FM_GetShiftState done [14:50:36]opened in 1712795538 [14:50:36]opened+sec_in_day 1712881938 [14:50:36]quantity*price = 150004 [14:50:36]sum+1 = 150005 [14:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 52 11.04.2024 14:51 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27165 ФПД: 267438300413151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T145108&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27165&fm=267438300413151&tin=02508201610067®Number=0000000000091578&sum=150000 [14:50:37]StoreToDocumentArchive [14:50:37]shift 317 fd 27165 [14:50:37]save to /storage/0317/doc_00027165 [14:50:37]save last doc name /storage/0317/doc_00027165 to /storage/kkm_last_doc_name [14:50:37]save OK [14:50:37]Clear old archive folders... [14:50:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:37]tlvbuf is 010258B0 [14:50:37]SAM_PROTO_ClearQueue [14:50:37]wFMCommunicate request_size=4 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 09 00 00 [14:50:37]Write to MH i2c: E2 08 00 58 A6 80 09 00 00 00 00 00 00 70 [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 58 A6 00 90 00 72 [14:50:37]RAPDU: 90 00 [14:50:37]wFMCommunicate OK [14:50:37]SAM_PROTO_ClearQueue done [14:50:37]KKMCreateOFDPacket [14:50:37]OFDProtocolAddRootSTLVToBuf [14:50:37]FM_MakeSignedData [14:50:37]FM_MakeSignedData [14:50:37]SAM_PROTO_SignData [14:50:37]wFMCommunicate request_size=4 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 0D 01 02 [14:50:37]Write to MH i2c: E2 08 00 59 A6 80 0D 01 02 00 00 00 00 78 [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 59 A6 00 90 00 73 [14:50:37]RAPDU: 90 00 [14:50:37]wFMCommunicate OK [14:50:37]wFMCommunicate request_size=255 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 5C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F4 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DC F8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 6A 00 00 35 04 06 00 F3 [14:50:37]Write to MH i2c: E2 02 01 5A A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 5C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F4 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DC F8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 6A 00 00 35 04 06 00 F3 00 00 CE [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 5A A6 00 90 00 74 [14:50:37]RAPDU: 90 00 [14:50:37]wFMCommunicate OK [14:50:37]wFMCommunicate request_size=10 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 0D 02 02 05 3B D4 E5 3C DF [14:50:37]Write to MH i2c: E2 0D 00 5B A6 80 0D 02 02 05 00 3B D4 E5 3C DF 00 00 94 [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 5B A6 00 90 00 75 [14:50:37]RAPDU: 90 00 [14:50:37]wFMCommunicate OK [14:50:37]wFMCommunicate request_size=4 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 0D 03 02 [14:50:37]Write to MH i2c: E2 08 00 5C A6 80 0D 03 02 00 00 00 00 7D [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 0B 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 0B 00 5C A6 00 4F 11 74 A3 20 2D 3A CC 90 00 48 [14:50:37]RAPDU: 4F 11 74 A3 20 2D 3A CC 90 00 [14:50:37]wFMCommunicate OK [14:50:37]SAM_PROTO_SignData done [14:50:37]FM_MakeSignedData done [14:50:37]CreateOFDProtocolMessage [14:50:37]wFMCommunicate request_size=4 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 11 00 00 [14:50:37]Write to MH i2c: E2 08 00 5D A6 80 11 00 00 00 00 00 00 7D [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 17 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 17 00 5D A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 D5 [14:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:50:37]wFMCommunicate OK [14:50:37]CreateOFDProtocolMessage done [14:50:37]OFDSenderStorePacket 27165 [14:50:37]StoreOFDPacket docnum=27165 [14:50:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 45 AE 07 01 E0 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 5C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F4 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DC F8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 6A 00 00 35 04 06 00 F3 3B D4 E5 3C DF 4F 11 74 A3 20 2D 3A CC [14:50:37]CheckFolder [14:50:37]dirname=/storage/ofd_packets [14:50:37]CheckFolder done [14:50:37]ProducePacketName [14:50:37]name=ofd_packets/00027165 [14:50:37]NVStorageSaveData ofd_packets/00027165 [14:50:37]File name is /storage/ofd_packets/00027165 [14:50:37]Write 301 bytes [14:50:37]NVStorageSaveData done [14:50:37]OFDSenderStorePacket done [14:50:37]KKMCreateOFDPacket done [14:50:37]NVStorageSaveData kkm_last_timestamp [14:50:37]File name is /storage/kkm_last_timestamp [14:50:37]Write 4 bytes [14:50:37]NVStorageSaveData done [14:50:37]ExternCall_PrintAddStr [14:50:37]wPrintStart [14:50:37]Write to MH i2c: 01 00 00 5E A6 04 [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: 01 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: 01 07 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: 01 07 00 5E A6 00 00 00 00 00 FF 0F 19 [14:50:37]RasterBufferAndPrint [14:50:37]line Счет N : (1)359922 [14:50:37]line ИНН: 02508201610067 [14:50:37]line Контрольно-Кассовый Чек [14:50:37]line ПРОДАЖА [14:50:37]line ТРК (МРК, ГНК) : 51 [14:50:37]line Товар: 2710124130 [14:50:37]line Аи-92-К-5 [14:50:37]line 23.660 * 63.40 [14:50:37]line = 1500.04 [14:50:37]line НДС 12% НСП 1% [14:50:37]line > о реализуемом товаре [14:50:37]line ОКРУГЛЕНИЕ: -0.04 [14:50:37]line ИТОГО: 1500.00 [14:50:37]line Внесено: 1500.00 [14:50:37]line СДАЧА: 0.00 [14:50:37]line НСП 1% : 13.27 [14:50:37]line НДС 12% : 159.30 [14:50:37]line Наличными: 1500.00 [14:50:37]line Безнал.: 0.00 [14:50:37]line Место: АЗС № 122 "Партнер Нефть" [14:50:37]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:50:37]line СНО: Общий режим [14:50:37]line Чек 52 11.04.2024 14:51 [14:50:37]line Смена: 317 ФФД: 1.0 [14:50:37]line ЗНМ: 0300000147 [14:50:37]line РНМ: 0000000000091578 [14:50:37]line Версия ККМ: 001 [14:50:37]line ФМ: 0000000000874657 [14:50:37]line ФД: 27165 [14:50:37]line ФПД: 267438300413151 [14:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T145108&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27165&fm=267438300413151&tin=02508201610067®Number=0000000000091578&sum=150000 [14:50:38]OFD Sender: Processing packet 27165 [packets to send 44, broken 43] [14:50:38]ProducePacketName [14:50:38]name=ofd_packets/00027165 [14:50:38]OFD Sender: To server: pG, [14:50:38]CommunicateWithHost lk.salyk.kg:30040 [14:50:38]ConnectInit lk.salyk.kg [14:50:38]written 0, free lines is 4095 [14:50:38]Connected sock=10 [14:50: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 35 37 0F 01 00 00 45 AE 07 01 E0 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 5C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F4 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 DC F8 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 6A 00 00 35 04 06 00 F3 3B D4 E5 3C DF 4F 11 74 A3 20 2D 3A CC [14:50: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 35 37 4F 00 00 00 77 F9 47 00 8F D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 6A 00 00 F4 03 04 00 3C A0 17 66 B6 04 01 00 00 96 CA C8 B4 1B 92 26 35 [14:50:38]CommunicateWithHost err = 0 [14:50:38]CheckOFDResponse [14:50:38]1017 (14) - 77093643461234 [14:50:38]1041 (16) - 0000000000874657 [14:50:38]1040 (4) - 27165 [14:50:38]1012 (4) - 11.04.2024 08:33 [14:50:38]1206 (1) - 0 [14:50:38]OFD Sender: Remove packet 27165 [14:50:38]ProducePacketName [14:50:38]name=ofd_packets/00027165 [14:50:38]NVStorageDeleteData [14:50:38]Write to MH i2c: 01 00 00 89 A6 2F [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 07 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 07 00 89 A6 00 00 00 00 00 6E 0C B0 [14:50:38]RasterBufferAndPrint [14:50:38]line [14:50:38]line [14:50:38]line [14:50:38]line [14:50:38]line [14:50:38]written 0, free lines is 3186 [14:50:38]MH_Cut [14:50:38]Write to MH i2c: D1 01 00 90 A6 01 08 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: D1 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: D1 01 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: D1 01 00 90 A6 00 07 [14:50:38]Write to MH i2c: 01 00 00 91 A6 37 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:39]OFD Sender: No OFD packet to send [14:50:39]*** Cut start [14:50:39]*** Partial cut [14:50:39]*** CUTSNS_PIN = 1 [14:50:39]*** CUTSNS_PIN = 0 [14:50:40]*** Brake cut motor [14:50:40]Read from MH i2c: 01 [14:50:40]MH_I2C_Read... [14:50:40]*** Stop cut motor [14:50:40]*** Cut end [14:50:40]Read from MH i2c: 01 07 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: 01 07 00 91 A6 00 00 00 00 00 FF 0F 4C [14:50:40]process_action close_receipt done [14:50:40]requested_data is exist [14:50:40]produce_requested_data [14:50:40]requested_item fm.sn is exist - process it [14:50:40]wFMCommunicate request_size=4 [14:50:40]MH_SAM_APDU [14:50:40]CAPDU: 80 11 00 00 [14:50:40]Write to MH i2c: E2 08 00 92 A6 80 11 00 00 00 00 00 00 B2 [14:50:40]Write i2c OK [14:50:40]MH_I2C_Read... [14:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:40]Read from MH i2c: E2 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 17 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 17 00 92 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 0A [14:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:50:40]wFMCommunicate OK [14:50:40]requested_item fd.num is exist - process it [14:50:40]SAM_PROTO_GetFieldsCounters [14:50:40]wFMCommunicate request_size=4 [14:50:40]MH_SAM_APDU [14:50:40]CAPDU: 80 13 00 00 [14:50:40]Write to MH i2c: E2 08 00 93 A6 80 13 00 00 00 00 00 00 B5 [14:50:40]Write i2c OK [14:50:40]MH_I2C_Read... [14:50:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:40]Read from MH i2c: E2 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 62 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 62 00 93 A6 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1D 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [14:50: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1D 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:40]wFMCommunicate OK [14:50:40]SAM_PROTO_GetFieldsCounters done [14:50:40]requested_item shift.num is exist - process it [14:50:40]requested_item shift.opened is exist - process it [14:50:40]req_shift_opened [14:50:40]FM_GetShiftState [14:50:40]SAM_PROTO_GetShiftState [14:50:40]wFMCommunicate request_size=4 [14:50:40]MH_SAM_APDU [14:50:40]CAPDU: 80 13 01 00 [14:50:40]Write to MH i2c: E2 08 00 94 A6 80 13 01 00 00 00 00 00 B7 [14:50:40]Write i2c OK [14:50:40]MH_I2C_Read... [14:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:40]Read from MH i2c: E2 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 0E 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 0E 00 94 A6 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 01 [14:50:40]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:50:40]wFMCommunicate OK [14:50:40]SAM_PROTO_GetShiftState done [14:50:40]FM_GetShiftState done [14:50:40]req_shift_opened done [14:50:40]requested_item shift.open_date is exist - process it [14:50:40]req_shift_open_date [14:50:40]req_shift_open_date done [14:50:40]produce_requested_data done [14:50:40]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27165,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:50:40]process_action_free close_receipt [14:50:40]json_value_free [14:50:40]json_value_free done [14:50:40]process_json_proto returns [14:50:40]Send response to host [14:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27165,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:50:40]free response buf [14:50:40]execute_script done [14:50:40]execute_script returns [14:50:40]free content buf [14:50:40]Sock 9.Close socket [14:50:40]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:19]accept exits with 8 [14:56:19]New connection [14:56:19]New thread 3066871140 created [14:56:19]Thread 3067014500 joined [14:56:19]Waiting for new connection... [14:56:19] Sock 8.Parse request [14:56:19]Sock 8.Check first char [14:56:19]Sock 8.First char is OK [14:56:19]request: POST /json_proto HTTP/1.0 [14:56:19]Method: POST [14:56:19]URL: /json_proto [14:56:19]Method is POST - this is cgi request [14:56:19]url: /json_proto [14:56:19]query_string will be loaded in cgi processing [14:56:19]execute_cgi json_proto POST (null) [14:56:19]execute_cgi path=json_proto method=POST [14:56:19]POST find Content-Length [14:56:19]Host: 172.17.35.3:8080 [14:56:19]Content-Length: 682 [14:56:19]Content-Type: application/json [14:56:19] [14:56:19]POST finish read [14:56:19]Found Content-Length = 682 [14:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 6.970, "sum" : 500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:19]execute_script... [14:56:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 6.970, "sum" : 500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:19]POST & json_proto [14:56:19]process_json_proto [14:56:19]json parsed OK: [14:56:19]protocol is kg_v1.0 [14:56:19]action value=close_receipt [14:56:19]process_action close_receipt [14:56:19]cmd_close_receipt [14:56:19]MH_GetDate [14:56:19]Write to MH i2c: F0 00 00 95 A6 2A [14:56:19]Write i2c OK [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: F0 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: F0 09 00 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: F0 09 00 95 A6 00 33 FA 17 66 2B 11 66 64 E3 [14:56:19]GetLastDocTimeStamp 1712847068 [14:56:19]current date 1712847411 [14:56:19]FM_GetShiftState [14:56:19]SAM_PROTO_GetShiftState [14:56:19]wFMCommunicate request_size=4 [14:56:19]MH_SAM_APDU [14:56:19]CAPDU: 80 13 01 00 [14:56:19]Write to MH i2c: E2 08 00 96 A6 80 13 01 00 00 00 00 00 B9 [14:56:19]Write i2c OK [14:56:19]MH_I2C_Read... [14:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:19]Read from MH i2c: E2 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 0E 00 [14:56:19]MH_I2C_Read... [14:56:19]Read from MH i2c: E2 0E 00 96 A6 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 03 [14:56:19]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:56:19]wFMCommunicate OK [14:56:19]SAM_PROTO_GetShiftState done [14:56:19]FM_GetShiftState done [14:56:19]opened in 1712795538 [14:56:19]opened+sec_in_day 1712881938 [14:56:19]quantity*price = 50044 [14:56:19]sum+1 = 50046 [14:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 53 11.04.2024 14:56 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27166 ФПД: 127444932924335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T145651&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27166&fm=127444932924335&tin=02508201610067®Number=0000000000091578&sum=50000 [14:56:20]StoreToDocumentArchive [14:56:20]shift 317 fd 27166 [14:56:20]save to /storage/0317/doc_00027166 [14:56:20]save last doc name /storage/0317/doc_00027166 to /storage/kkm_last_doc_name [14:56:20]save OK [14:56:20]Clear old archive folders... [14:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:56:20]tlvbuf is 00E9EE60 [14:56:20]SAM_PROTO_ClearQueue [14:56:20]wFMCommunicate request_size=4 [14:56:20]MH_SAM_APDU [14:56:20]CAPDU: 80 09 00 00 [14:56:20]Write to MH i2c: E2 08 00 A3 A6 80 09 00 00 00 00 00 00 BB [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:20]Read from MH i2c: E2 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 A3 A6 00 90 00 BD [14:56:20]RAPDU: 90 00 [14:56:20]wFMCommunicate OK [14:56:20]SAM_PROTO_ClearQueue done [14:56:20]KKMCreateOFDPacket [14:56:20]OFDProtocolAddRootSTLVToBuf [14:56:20]FM_MakeSignedData [14:56:20]FM_MakeSignedData [14:56:20]SAM_PROTO_SignData [14:56:20]wFMCommunicate request_size=4 [14:56:20]MH_SAM_APDU [14:56:20]CAPDU: 80 0D 01 02 [14:56:20]Write to MH i2c: E2 08 00 A4 A6 80 0D 01 02 00 00 00 00 C3 [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:20]Read from MH i2c: E2 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 [14:56:20]MH_I2C_Read... [14:56:20]Read from MH i2c: E2 03 00 A4 A6 00 90 00 BE [14:56:20]RAPDU: 90 00 [14:56:20]wFMCommunicate OK [14:56:20]wFMCommunicate request_size=255 [14:56:20]MH_SAM_APDU [14:56:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 33 FA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 6A 00 00 35 04 06 00 [14:56:20]Write to MH i2c: E2 02 01 A5 A6 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 33 FA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 6A 00 00 35 04 06 00 00 00 2C [14:56:20]Write i2c OK [14:56:20]MH_I2C_Read... [14:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:21]Read from MH i2c: E2 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: E2 03 00 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: E2 03 00 A5 A6 00 90 00 BF [14:56:21]RAPDU: 90 00 [14:56:21]wFMCommunicate OK [14:56:21]wFMCommunicate request_size=11 [14:56:21]MH_SAM_APDU [14:56:21]CAPDU: 80 0D 02 02 06 73 E9 15 F4 93 AF [14:56:21]Write to MH i2c: E2 0E 00 A6 A6 80 0D 02 02 06 00 73 E9 15 F4 93 AF 00 00 79 [14:56:21]Write i2c OK [14:56:21]MH_I2C_Read... [14:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:21]Read from MH i2c: E2 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: E2 03 00 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: E2 03 00 A6 A6 00 90 00 C0 [14:56:21]RAPDU: 90 00 [14:56:21]wFMCommunicate OK [14:56:21]wFMCommunicate request_size=4 [14:56:21]MH_SAM_APDU [14:56:21]CAPDU: 80 0D 03 02 [14:56:21]Write to MH i2c: E2 08 00 A7 A6 80 0D 03 02 00 00 00 00 C8 [14:56:21]Write i2c OK [14:56:21]MH_I2C_Read... [14:56:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:21]Read from MH i2c: E2 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: E2 0B 00 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: E2 0B 00 A7 A6 00 A4 18 E7 98 C5 F5 B9 99 90 00 10 [14:56:21]RAPDU: A4 18 E7 98 C5 F5 B9 99 90 00 [14:56:21]wFMCommunicate OK [14:56:21]SAM_PROTO_SignData done [14:56:21]FM_MakeSignedData done [14:56:21]CreateOFDProtocolMessage [14:56:21]wFMCommunicate request_size=4 [14:56:21]MH_SAM_APDU [14:56:21]CAPDU: 80 11 00 00 [14:56:21]Write to MH i2c: E2 08 00 A8 A6 80 11 00 00 00 00 00 00 C8 [14:56:21]Write i2c OK [14:56:21]MH_I2C_Read... [14:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:21]Read from MH i2c: E2 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: E2 17 00 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: E2 17 00 A8 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 20 [14:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:56:21]wFMCommunicate OK [14:56:21]CreateOFDProtocolMessage done [14:56:21]OFDSenderStorePacket 27166 [14:56:21]StoreOFDPacket docnum=27166 [14:56:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 CE 47 08 01 C7 C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 33 FA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 6A 00 00 35 04 06 00 73 E9 15 F4 93 AF A4 18 E7 98 C5 F5 B9 99 [14:56:21]CheckFolder [14:56:21]dirname=/storage/ofd_packets [14:56:21]CheckFolder done [14:56:21]ProducePacketName [14:56:21]name=ofd_packets/00027166 [14:56:21]NVStorageSaveData ofd_packets/00027166 [14:56:21]File name is /storage/ofd_packets/00027166 [14:56:21]Write 302 bytes [14:56:21]NVStorageSaveData done [14:56:21]OFDSenderStorePacket done [14:56:21]KKMCreateOFDPacket done [14:56:21]NVStorageSaveData kkm_last_timestamp [14:56:21]File name is /storage/kkm_last_timestamp [14:56:21]Write 4 bytes [14:56:21]NVStorageSaveData done [14:56:21]ExternCall_PrintAddStr [14:56:21]wPrintStart [14:56:21]Write to MH i2c: 01 00 00 A9 A6 4F [14:56:21]Write i2c OK [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: 01 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: 01 07 00 [14:56:21]MH_I2C_Read... [14:56:21]Read from MH i2c: 01 07 00 A9 A6 00 00 00 00 00 FF 0F 64 [14:56:21]RasterBufferAndPrint [14:56:21]line Счет N : (1)359924 [14:56:21]line ИНН: 02508201610067 [14:56:21]line Контрольно-Кассовый Чек [14:56:21]line ПРОДАЖА [14:56:21]line ТРК (МРК, ГНК) : 21 [14:56:21]line Товар: 2710194210 [14:56:21]line ДТ(л)-К-5 [14:56:21]line 6.970 * 71.80 [14:56:21]line = 500.45 [14:56:21]line НДС 12% НСП 1% [14:56:21]line > о реализуемом товаре [14:56:21]line ОКРУГЛЕНИЕ: -0.45 [14:56:21]line ИТОГО: 500.00 [14:56:21]line Внесено: 500.00 [14:56:21]line СДАЧА: 0.00 [14:56:21]line НСП 1% : 4.43 [14:56:21]line НДС 12% : 53.14 [14:56:21]line Наличными: 500.00 [14:56:21]line Безнал.: 0.00 [14:56:21]line Место: АЗС № 122 "Партнер Нефть" [14:56:21]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:56:21]line СНО: Общий режим [14:56:21]line Чек 53 11.04.2024 14:56 [14:56:21]line Смена: 317 ФФД: 1.0 [14:56:21]line ЗНМ: 0300000147 [14:56:21]line РНМ: 0000000000091578 [14:56:21]line Версия ККМ: 001 [14:56:21]line ФМ: 0000000000874657 [14:56:21]line ФД: 27166 [14:56:21]line ФПД: 127444932924335 [14:56:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T145651&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27166&fm=127444932924335&tin=02508201610067®Number=0000000000091578&sum=50000 [14:56:21]OFD Sender: Processing packet 27166 [packets to send 44, broken 43] [14:56:21]ProducePacketName [14:56:21]name=ofd_packets/00027166 [14:56:21]OFD Sender: To server: pG, [14:56:21]CommunicateWithHost lk.salyk.kg:30040 [14:56:21]ConnectInit lk.salyk.kg [14:56:21]written 0, free lines is 4095 [14:56:21]Connected sock=10 [14:56: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 35 37 10 01 00 00 CE 47 08 01 C7 C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 33 FA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 6A 00 00 35 04 06 00 73 E9 15 F4 93 AF A4 18 E7 98 C5 F5 B9 99 [14:56: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 35 37 4F 00 00 00 E8 CF 47 00 E0 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 6A 00 00 F4 03 04 00 93 A1 17 66 B6 04 01 00 00 90 34 44 75 15 20 CB E1 [14:56:21]CommunicateWithHost err = 0 [14:56:21]CheckOFDResponse [14:56:21]1017 (14) - 77093643461234 [14:56:21]1041 (16) - 0000000000874657 [14:56:21]1040 (4) - 27166 [14:56:21]1012 (4) - 11.04.2024 08:38 [14:56:21]1206 (1) - 0 [14:56:21]OFD Sender: Remove packet 27166 [14:56:21]ProducePacketName [14:56:21]name=ofd_packets/00027166 [14:56:21]NVStorageDeleteData [14:56:22]Write to MH i2c: 01 00 00 D4 A6 7A [14:56:22]Write i2c OK [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: 01 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: 01 07 00 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: 01 07 00 D4 A6 00 00 00 00 00 6E 0C FB [14:56:22]RasterBufferAndPrint [14:56:22]line [14:56:22]line [14:56:22]line [14:56:22]line [14:56:22]line [14:56:22]written 0, free lines is 3186 [14:56:22]MH_Cut [14:56:22]Write to MH i2c: D1 01 00 DB A6 01 53 [14:56:22]Write i2c OK [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: D1 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: D1 01 00 [14:56:22]MH_I2C_Read... [14:56:22]Read from MH i2c: D1 01 00 DB A6 00 52 [14:56:22]Write to MH i2c: 01 00 00 DC A6 82 [14:56:22]Write i2c OK [14:56:22]MH_I2C_Read... [14:56:22]OFD Sender: No OFD packet to send [14:56:23]*** Cut start [14:56:23]*** Partial cut [14:56:23]*** CUTSNS_PIN = 1 [14:56:23]*** CUTSNS_PIN = 0 [14:56:23]*** Brake cut motor [14:56:23]Read from MH i2c: 01 [14:56:23]MH_I2C_Read... [14:56:23]*** Stop cut motor [14:56:23]*** Cut end [14:56:23]Read from MH i2c: 01 07 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: 01 07 00 DC A6 00 00 00 00 00 FF 0F 97 [14:56:23]process_action close_receipt done [14:56:23]requested_data is exist [14:56:23]produce_requested_data [14:56:23]requested_item fm.sn is exist - process it [14:56:23]wFMCommunicate request_size=4 [14:56:23]MH_SAM_APDU [14:56:23]CAPDU: 80 11 00 00 [14:56:23]Write to MH i2c: E2 08 00 DD A6 80 11 00 00 00 00 00 00 FD [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:23]Read from MH i2c: E2 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 17 00 [14:56:23]MH_I2C_Read... [14:56:23]Read from MH i2c: E2 17 00 DD A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 55 [14:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:56:23]wFMCommunicate OK [14:56:23]requested_item fd.num is exist - process it [14:56:23]SAM_PROTO_GetFieldsCounters [14:56:23]wFMCommunicate request_size=4 [14:56:23]MH_SAM_APDU [14:56:23]CAPDU: 80 13 00 00 [14:56:23]Write to MH i2c: E2 08 00 DE A6 80 13 00 00 00 00 00 00 00 [14:56:23]Write i2c OK [14:56:23]MH_I2C_Read... [14:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:24]Read from MH i2c: E2 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 62 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 62 00 DE A6 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1E 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [14:56:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1E 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:24]wFMCommunicate OK [14:56:24]SAM_PROTO_GetFieldsCounters done [14:56:24]requested_item shift.num is exist - process it [14:56:24]requested_item shift.opened is exist - process it [14:56:24]req_shift_opened [14:56:24]FM_GetShiftState [14:56:24]SAM_PROTO_GetShiftState [14:56:24]wFMCommunicate request_size=4 [14:56:24]MH_SAM_APDU [14:56:24]CAPDU: 80 13 01 00 [14:56:24]Write to MH i2c: E2 08 00 DF A6 80 13 01 00 00 00 00 00 02 [14:56:24]Write i2c OK [14:56:24]MH_I2C_Read... [14:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:24]Read from MH i2c: E2 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 0E 00 [14:56:24]MH_I2C_Read... [14:56:24]Read from MH i2c: E2 0E 00 DF A6 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 4C [14:56:24]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:56:24]wFMCommunicate OK [14:56:24]SAM_PROTO_GetShiftState done [14:56:24]FM_GetShiftState done [14:56:24]req_shift_opened done [14:56:24]requested_item shift.open_date is exist - process it [14:56:24]req_shift_open_date [14:56:24]req_shift_open_date done [14:56:24]produce_requested_data done [14:56:24]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27166,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:56:24]process_action_free close_receipt [14:56:24]json_value_free [14:56:24]json_value_free done [14:56:24]process_json_proto returns [14:56:24]Send response to host [14:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27166,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:56:24]free response buf [14:56:24]execute_script done [14:56:24]execute_script returns [14:56:24]free content buf [14:56:24]Sock 8.Close socket [14:56:24]Sock 8.Thread stoped [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:03]accept exits with 9 [14:57:03]New connection [14:57:03]New thread 3067014500 created [14:57:03]Thread 3066871140 joined [14:57:03]Waiting for new connection... [14:57:03] Sock 9.Parse request [14:57:03]Sock 9.Check first char [14:57:03]Sock 9.First char is OK [14:57:03]request: POST /json_proto HTTP/1.0 [14:57:03]Method: POST [14:57:03]URL: /json_proto [14:57:03]Method is POST - this is cgi request [14:57:03]url: /json_proto [14:57:03]query_string will be loaded in cgi processing [14:57:03]execute_cgi json_proto POST (null) [14:57:03]execute_cgi path=json_proto method=POST [14:57:03]POST find Content-Length [14:57:03]Host: 172.17.35.3:8080 [14:57:03]Content-Length: 682 [14:57:03]Content-Type: application/json [14:57:03] [14:57:03]POST finish read [14:57:03]Found Content-Length = 682 [14:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 20.510, "sum" : 1300.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:03]execute_script... [14:57:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 20.510, "sum" : 1300.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:03]POST & json_proto [14:57:03]process_json_proto [14:57:03]json parsed OK: [14:57:03]protocol is kg_v1.0 [14:57:03]action value=close_receipt [14:57:03]process_action close_receipt [14:57:03]cmd_close_receipt [14:57:03]MH_GetDate [14:57:03]Write to MH i2c: F0 00 00 E0 A6 75 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: F0 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: F0 09 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: F0 09 00 E0 A6 00 5F FA 17 66 2B 11 66 64 5A [14:57:03]GetLastDocTimeStamp 1712847411 [14:57:03]current date 1712847455 [14:57:03]FM_GetShiftState [14:57:03]SAM_PROTO_GetShiftState [14:57:03]wFMCommunicate request_size=4 [14:57:03]MH_SAM_APDU [14:57:03]CAPDU: 80 13 01 00 [14:57:03]Write to MH i2c: E2 08 00 E1 A6 80 13 01 00 00 00 00 00 04 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 0E 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 0E 00 E1 A6 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 4E [14:57:03]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:57:03]wFMCommunicate OK [14:57:03]SAM_PROTO_GetShiftState done [14:57:03]FM_GetShiftState done [14:57:03]opened in 1712795538 [14:57:03]opened+sec_in_day 1712881938 [14:57:03]quantity*price = 130033 [14:57:03]sum+1 = 130034 [14:57:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.09 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 54 11.04.2024 14:57 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 27167 ФПД: 127745524858230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T145735&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27167&fm=127745524858230&tin=02508201610067®Number=0000000000091578&sum=130000 [14:57:04]StoreToDocumentArchive [14:57:04]shift 317 fd 27167 [14:57:04]save to /storage/0317/doc_00027167 [14:57:04]save last doc name /storage/0317/doc_00027167 to /storage/kkm_last_doc_name [14:57:04]save OK [14:57:04]Clear old archive folders... [14:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:04]tlvbuf is 00E88370 [14:57:04]SAM_PROTO_ClearQueue [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 09 00 00 [14:57:04]Write to MH i2c: E2 08 00 EE A6 80 09 00 00 00 00 00 00 06 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 EE A6 00 90 00 08 [14:57:04]RAPDU: 90 00 [14:57:04]wFMCommunicate OK [14:57:04]SAM_PROTO_ClearQueue done [14:57:04]KKMCreateOFDPacket [14:57:04]OFDProtocolAddRootSTLVToBuf [14:57:04]FM_MakeSignedData [14:57:04]FM_MakeSignedData [14:57:04]SAM_PROTO_SignData [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 0D 01 02 [14:57:04]Write to MH i2c: E2 08 00 EF A6 80 0D 01 02 00 00 00 00 0E [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:04]Read from MH i2c: E2 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: E2 03 00 EF A6 00 90 00 09 [14:57:04]RAPDU: 90 00 [14:57:04]wFMCommunicate OK [14:57:04]wFMCommunicate request_size=255 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 50 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F1 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 5F FA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1F 6A 00 00 35 04 06 00 74 [14:57:04]Write to MH i2c: E2 02 01 F0 A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 50 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F1 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 5F FA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1F 6A 00 00 35 04 06 00 74 00 00 E1 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 03 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 03 00 F0 A6 00 90 00 0A [14:57:05]RAPDU: 90 00 [14:57:05]wFMCommunicate OK [14:57:05]wFMCommunicate request_size=10 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 0D 02 02 05 2F 12 A1 7D 76 [14:57:05]Write to MH i2c: E2 0D 00 F1 A6 80 0D 02 02 05 00 2F 12 A1 7D 76 00 00 F0 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 03 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 03 00 F1 A6 00 90 00 0B [14:57:05]RAPDU: 90 00 [14:57:05]wFMCommunicate OK [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 0D 03 02 [14:57:05]Write to MH i2c: E2 08 00 F2 A6 80 0D 03 02 00 00 00 00 13 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0B 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0B 00 F2 A6 00 D6 4D 94 74 74 23 8C AD 90 00 0F [14:57:05]RAPDU: D6 4D 94 74 74 23 8C AD 90 00 [14:57:05]wFMCommunicate OK [14:57:05]SAM_PROTO_SignData done [14:57:05]FM_MakeSignedData done [14:57:05]CreateOFDProtocolMessage [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 11 00 00 [14:57:05]Write to MH i2c: E2 08 00 F3 A6 80 11 00 00 00 00 00 00 13 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 17 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 17 00 F3 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 6B [14:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:57:05]wFMCommunicate OK [14:57:05]CreateOFDProtocolMessage done [14:57:05]OFDSenderStorePacket 27167 [14:57:05]StoreOFDPacket docnum=27167 [14:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 B5 16 07 01 A6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 50 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F1 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 5F FA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1F 6A 00 00 35 04 06 00 74 2F 12 A1 7D 76 D6 4D 94 74 74 23 8C AD [14:57:05]CheckFolder [14:57:05]dirname=/storage/ofd_packets [14:57:05]CheckFolder done [14:57:05]ProducePacketName [14:57:05]name=ofd_packets/00027167 [14:57:05]NVStorageSaveData ofd_packets/00027167 [14:57:05]File name is /storage/ofd_packets/00027167 [14:57:05]Write 301 bytes [14:57:05]NVStorageSaveData done [14:57:05]OFDSenderStorePacket done [14:57:05]KKMCreateOFDPacket done [14:57:05]NVStorageSaveData kkm_last_timestamp [14:57:05]File name is /storage/kkm_last_timestamp [14:57:05]Write 4 bytes [14:57:05]NVStorageSaveData done [14:57:05]ExternCall_PrintAddStr [14:57:05]wPrintStart [14:57:05]Write to MH i2c: 01 00 00 F4 A6 9A [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 F4 A6 00 00 00 00 00 FF 0F AF [14:57:05]RasterBufferAndPrint [14:57:05]line Счет N : (1)359925 [14:57:05]line ИНН: 02508201610067 [14:57:05]line Контрольно-Кассовый Чек [14:57:05]line ПРОДАЖА [14:57:05]line ТРК (МРК, ГНК) : 61 [14:57:05]line Товар: 2710124130 [14:57:05]line Аи-92-К-5 [14:57:05]line 20.510 * 63.40 [14:57:05]line = 1300.33 [14:57:05]line НДС 12% НСП 1% [14:57:05]line > о реализуемом товаре [14:57:05]line ОКРУГЛЕНИЕ: -0.33 [14:57:05]line ИТОГО: 1300.00 [14:57:05]line Внесено: 1300.00 [14:57:05]line СДАЧА: 0.00 [14:57:05]line НСП 1% : 11.51 [14:57:05]line НДС 12% : 138.09 [14:57:05]line Наличными: 1300.00 [14:57:05]line Безнал.: 0.00 [14:57:05]line Место: АЗС № 122 "Партнер Нефть" [14:57:05]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:57:05]line СНО: Общий режим [14:57:05]line Чек 54 11.04.2024 14:57 [14:57:05]line Смена: 317 ФФД: 1.0 [14:57:05]line ЗНМ: 0300000147 [14:57:05]line РНМ: 0000000000091578 [14:57:05]line Версия ККМ: 001 [14:57:05]line ФМ: 0000000000874657 [14:57:05]line ФД: 27167 [14:57:05]line ФПД: 127745524858230 [14:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T145735&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27167&fm=127745524858230&tin=02508201610067®Number=0000000000091578&sum=130000 [14:57:05]OFD Sender: Processing packet 27167 [packets to send 44, broken 43] [14:57:05]ProducePacketName [14:57:05]name=ofd_packets/00027167 [14:57:05]OFD Sender: To server: pG, [14:57:05]CommunicateWithHost lk.salyk.kg:30040 [14:57:05]ConnectInit lk.salyk.kg [14:57:05]written 0, free lines is 4095 [14:57:05]Connected sock=10 [14:57: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 35 37 0F 01 00 00 B5 16 07 01 A6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 50 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 F1 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 5F FA 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1F 6A 00 00 35 04 06 00 74 2F 12 A1 7D 76 D6 4D 94 74 74 23 8C AD [14:57: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 35 37 4F 00 00 00 3A CC 47 00 3A 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1F 6A 00 00 F4 03 04 00 BF A1 17 66 B6 04 01 00 00 24 15 56 52 0A 42 83 3C [14:57:05]CommunicateWithHost err = 0 [14:57:05]CheckOFDResponse [14:57:05]1017 (14) - 77093643461234 [14:57:05]1041 (16) - 0000000000874657 [14:57:05]1040 (4) - 27167 [14:57:05]1012 (4) - 11.04.2024 08:39 [14:57:05]1206 (1) - 0 [14:57:05]OFD Sender: Remove packet 27167 [14:57:05]ProducePacketName [14:57:05]name=ofd_packets/00027167 [14:57:05]NVStorageDeleteData [14:57:06]Write to MH i2c: 01 00 00 1F A7 C6 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 07 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 07 00 1F A7 00 00 00 00 00 70 0C 49 [14:57:06]RasterBufferAndPrint [14:57:06]line [14:57:06]line [14:57:06]line [14:57:06]line [14:57:06]line [14:57:06]written 0, free lines is 3187 [14:57:06]MH_Cut [14:57:06]Write to MH i2c: D1 01 00 26 A7 01 9F [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: D1 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: D1 01 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: D1 01 00 26 A7 00 9E [14:57:06]Write to MH i2c: 01 00 00 27 A7 CE [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]OFD Sender: No OFD packet to send [14:57:07]*** Cut start [14:57:07]*** Partial cut [14:57:07]*** CUTSNS_PIN = 1 [14:57:07]*** CUTSNS_PIN = 0 [14:57:07]*** Brake cut motor [14:57:07]Read from MH i2c: 01 [14:57:07]MH_I2C_Read... [14:57:07]*** Stop cut motor [14:57:07]*** Cut end [14:57:07]Read from MH i2c: 01 07 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 07 00 27 A7 00 00 00 00 00 FF 0F E3 [14:57:07]process_action close_receipt done [14:57:07]requested_data is exist [14:57:07]produce_requested_data [14:57:07]requested_item fm.sn is exist - process it [14:57:07]wFMCommunicate request_size=4 [14:57:07]MH_SAM_APDU [14:57:07]CAPDU: 80 11 00 00 [14:57:07]Write to MH i2c: E2 08 00 28 A7 80 11 00 00 00 00 00 00 49 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:08]Read from MH i2c: E2 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 17 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 17 00 28 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 A1 [14:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:57:08]wFMCommunicate OK [14:57:08]requested_item fd.num is exist - process it [14:57:08]SAM_PROTO_GetFieldsCounters [14:57:08]wFMCommunicate request_size=4 [14:57:08]MH_SAM_APDU [14:57:08]CAPDU: 80 13 00 00 [14:57:08]Write to MH i2c: E2 08 00 29 A7 80 13 00 00 00 00 00 00 4C [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:08]Read from MH i2c: E2 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 62 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 62 00 29 A7 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1F 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [14:57: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1F 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:08]wFMCommunicate OK [14:57:08]SAM_PROTO_GetFieldsCounters done [14:57:08]requested_item shift.num is exist - process it [14:57:08]requested_item shift.opened is exist - process it [14:57:08]req_shift_opened [14:57:08]FM_GetShiftState [14:57:08]SAM_PROTO_GetShiftState [14:57:08]wFMCommunicate request_size=4 [14:57:08]MH_SAM_APDU [14:57:08]CAPDU: 80 13 01 00 [14:57:08]Write to MH i2c: E2 08 00 2A A7 80 13 01 00 00 00 00 00 4E [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:08]Read from MH i2c: E2 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 0E 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 0E 00 2A A7 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 98 [14:57:08]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:57:08]wFMCommunicate OK [14:57:08]SAM_PROTO_GetShiftState done [14:57:08]FM_GetShiftState done [14:57:08]req_shift_opened done [14:57:08]requested_item shift.open_date is exist - process it [14:57:08]req_shift_open_date [14:57:08]req_shift_open_date done [14:57:08]produce_requested_data done [14:57:08]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27167,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:57:08]process_action_free close_receipt [14:57:08]json_value_free [14:57:08]json_value_free done [14:57:08]process_json_proto returns [14:57:08]Send response to host [14:57:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27167,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:57:08]free response buf [14:57:08]execute_script done [14:57:08]execute_script returns [14:57:08]free content buf [14:57:08]Sock 9.Close socket [14:57:08]Sock 9.Thread stoped [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:54]accept exits with 8 [14:59:54]New connection [14:59:54]New thread 3066871140 created [14:59:54]Thread 3067014500 joined [14:59:54]Waiting for new connection... [14:59:54] Sock 8.Parse request [14:59:54]Sock 8.Check first char [14:59:54]Sock 8.First char is OK [14:59:54]request: POST /json_proto HTTP/1.0 [14:59:54]Method: POST [14:59:54]URL: /json_proto [14:59:54]Method is POST - this is cgi request [14:59:54]url: /json_proto [14:59:54]query_string will be loaded in cgi processing [14:59:54]execute_cgi json_proto POST (null) [14:59:54]execute_cgi path=json_proto method=POST [14:59:54]POST find Content-Length [14:59:54]Host: 172.17.35.3:8080 [14:59:54]Content-Length: 809 [14:59:54]Content-Type: application/json [14:59:54] [14:59:54]POST finish read [14:59:54]Found Content-Length = 809 [14:59:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 125.350, "sum" : 9000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:54]execute_script... [14:59:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 125.350, "sum" : 9000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:54]POST & json_proto [14:59:54]process_json_proto [14:59:54]json parsed OK: [14:59:54]protocol is kg_v1.0 [14:59:54]action value=close_receipt [14:59:54]process_action close_receipt [14:59:54]cmd_close_receipt [14:59:54]MH_GetDate [14:59:54]Write to MH i2c: F0 00 00 2B A7 C1 [14:59:54]Write i2c OK [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: F0 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: F0 09 00 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: F0 09 00 2B A7 00 0A FB 17 66 2B 11 66 64 52 [14:59:54]GetLastDocTimeStamp 1712847455 [14:59:54]current date 1712847626 [14:59:54]FM_GetShiftState [14:59:54]SAM_PROTO_GetShiftState [14:59:54]wFMCommunicate request_size=4 [14:59:54]MH_SAM_APDU [14:59:54]CAPDU: 80 13 01 00 [14:59:54]Write to MH i2c: E2 08 00 2C A7 80 13 01 00 00 00 00 00 50 [14:59:54]Write i2c OK [14:59:54]MH_I2C_Read... [14:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:54]Read from MH i2c: E2 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 0E 00 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 0E 00 2C A7 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 9A [14:59:54]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:59:54]wFMCommunicate OK [14:59:54]SAM_PROTO_GetShiftState done [14:59:54]FM_GetShiftState done [14:59:54]opened in 1712795538 [14:59:54]opened+sec_in_day 1712881938 [14:59:54]quantity*price = 900013 [14:59:54]sum+1 = 900014 [14:59:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.13 НСП 1% : 79.65 НДС 12% : 955.77 Наличными: 0.00 Безнал.: 9000.13 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 55 11.04.2024 15:00 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 27168 ФПД: 79250647664924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T150026&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27168&fm=79250647664924&tin=02508201610067®Number=0000000000091578&sum=900013 [14:59:55]StoreToDocumentArchive [14:59:55]shift 317 fd 27168 [14:59:55]save to /storage/0317/doc_00027168 [14:59:55]save last doc name /storage/0317/doc_00027168 to /storage/kkm_last_doc_name [14:59:55]save OK [14:59:55]Clear old archive folders... [14:59:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:59:55]tlvbuf is 010138E0 [14:59:55]SAM_PROTO_ClearQueue [14:59:55]wFMCommunicate request_size=4 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 09 00 00 [14:59:55]Write to MH i2c: E2 08 00 39 A7 80 09 00 00 00 00 00 00 52 [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:55]Read from MH i2c: E2 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 39 A7 00 90 00 54 [14:59:55]RAPDU: 90 00 [14:59:55]wFMCommunicate OK [14:59:55]SAM_PROTO_ClearQueue done [14:59:55]KKMCreateOFDPacket [14:59:55]OFDProtocolAddRootSTLVToBuf [14:59:55]FM_MakeSignedData [14:59:55]FM_MakeSignedData [14:59:55]SAM_PROTO_SignData [14:59:55]wFMCommunicate request_size=4 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 0D 01 02 [14:59:55]Write to MH i2c: E2 08 00 3A A7 80 0D 01 02 00 00 00 00 5A [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:55]Read from MH i2c: E2 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 3A A7 00 90 00 55 [14:59:55]RAPDU: 90 00 [14:59:55]wFMCommunicate OK [14:59:55]wFMCommunicate request_size=255 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A6 E9 01 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 AD BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0A FB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 20 6A 00 00 35 04 06 00 [14:59:55]Write to MH i2c: E2 02 01 3B A7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A6 E9 01 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 AD BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0A FB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 20 6A 00 00 35 04 06 00 00 00 4C [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:55]Read from MH i2c: E2 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 3B A7 00 90 00 56 [14:59:55]RAPDU: 90 00 [14:59:55]wFMCommunicate OK [14:59:55]wFMCommunicate request_size=11 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 0D 02 02 06 48 13 FA B3 C9 1C [14:59:55]Write to MH i2c: E2 0E 00 3C A7 80 0D 02 02 06 00 48 13 FA B3 C9 1C 00 00 56 [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:55]Read from MH i2c: E2 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 3C A7 00 90 00 57 [14:59:55]RAPDU: 90 00 [14:59:55]wFMCommunicate OK [14:59:55]wFMCommunicate request_size=4 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 0D 03 02 [14:59:55]Write to MH i2c: E2 08 00 3D A7 80 0D 03 02 00 00 00 00 5F [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:56]Read from MH i2c: E2 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: E2 0B 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: E2 0B 00 3D A7 00 27 2A F5 18 A3 47 8B 06 90 00 39 [14:59:56]RAPDU: 27 2A F5 18 A3 47 8B 06 90 00 [14:59:56]wFMCommunicate OK [14:59:56]SAM_PROTO_SignData done [14:59:56]FM_MakeSignedData done [14:59:56]CreateOFDProtocolMessage [14:59:56]wFMCommunicate request_size=4 [14:59:56]MH_SAM_APDU [14:59:56]CAPDU: 80 11 00 00 [14:59:56]Write to MH i2c: E2 08 00 3E A7 80 11 00 00 00 00 00 00 5F [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:56]Read from MH i2c: E2 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: E2 17 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: E2 17 00 3E A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B7 [14:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:59:56]wFMCommunicate OK [14:59:56]CreateOFDProtocolMessage done [14:59:56]OFDSenderStorePacket 27168 [14:59:56]StoreOFDPacket docnum=27168 [14:59:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 97 C9 08 01 98 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A6 E9 01 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 AD BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0A FB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 20 6A 00 00 35 04 06 00 48 13 FA B3 C9 1C 27 2A F5 18 A3 47 8B 06 [14:59:56]CheckFolder [14:59:56]dirname=/storage/ofd_packets [14:59:56]CheckFolder done [14:59:56]ProducePacketName [14:59:56]name=ofd_packets/00027168 [14:59:56]NVStorageSaveData ofd_packets/00027168 [14:59:56]File name is /storage/ofd_packets/00027168 [14:59:56]Write 302 bytes [14:59:56]NVStorageSaveData done [14:59:56]OFDSenderStorePacket done [14:59:56]KKMCreateOFDPacket done [14:59:56]NVStorageSaveData kkm_last_timestamp [14:59:56]File name is /storage/kkm_last_timestamp [14:59:56]Write 4 bytes [14:59:56]NVStorageSaveData done [14:59:56]ExternCall_PrintAddStr [14:59:56]wPrintStart [14:59:56]Write to MH i2c: 01 00 00 3F A7 E6 [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 07 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 07 00 3F A7 00 00 00 00 00 FF 0F FB [14:59:56]RasterBufferAndPrint [14:59:56]line Счет N : (1)359923 [14:59:56]line ИНН: 02508201610067 [14:59:56]line Контрольно-Кассовый Чек [14:59:56]line ПРОДАЖА [14:59:56]line ТРК (МРК, ГНК) : 11 [14:59:56]line Товар: 2710194210 [14:59:56]line ДТ(л)-К-5 [14:59:56]line 125.350 * 71.80 [14:59:56]line = 9000.13 [14:59:56]line НДС 12% НСП 1% [14:59:56]line > о реализуемом товаре [14:59:56]line ИТОГО: 9000.13 [14:59:56]line НСП 1% : 79.65 [14:59:56]line НДС 12% : 955.77 [14:59:56]line Наличными: 0.00 [14:59:56]line Безнал.: 9000.13 [14:59:56]line Место: АЗС № 122 "Партнер Нефть" [14:59:56]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:59:56]line СНО: Общий режим [14:59:56]line Чек 55 11.04.2024 15:00 [14:59:56]line Смена: 317 ФФД: 1.0 [14:59:56]line ЗНМ: 0300000147 [14:59:56]line РНМ: 0000000000091578 [14:59:56]line Версия ККМ: 001 [14:59:56]line Платежная система: O! деньги [14:59:56]line ФМ: 0000000000874657 [14:59:56]line ФД: 27168 [14:59:56]line ФПД: 79250647664924 [14:59:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T150026&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27168&fm=79250647664924&tin=02508201610067®Number=0000000000091578&sum=900013 [14:59:56]OFD Sender: Processing packet 27168 [packets to send 44, broken 43] [14:59:56]ProducePacketName [14:59:56]name=ofd_packets/00027168 [14:59:56]OFD Sender: To server: pG, [14:59:56]CommunicateWithHost lk.salyk.kg:30040 [14:59:56]ConnectInit lk.salyk.kg [14:59:56]written 0, free lines is 4095 [14:59:56]Connected sock=10 [14:59: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 35 37 10 01 00 00 97 C9 08 01 98 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A6 E9 01 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 AD BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0A FB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 20 6A 00 00 35 04 06 00 48 13 FA B3 C9 1C 27 2A F5 18 A3 47 8B 06 [14:59: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 35 37 4F 00 00 00 06 FC 47 00 FC 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 35 37 10 04 04 00 20 6A 00 00 F4 03 04 00 6A A2 17 66 B6 04 01 00 00 4B F2 91 CE 81 9C 4B B9 [14:59:56]CommunicateWithHost err = 0 [14:59:56]CheckOFDResponse [14:59:56]1017 (14) - 77093643461234 [14:59:56]1041 (16) - 0000000000874657 [14:59:56]1040 (4) - 27168 [14:59:56]1012 (4) - 11.04.2024 08:42 [14:59:56]1206 (1) - 0 [14:59:56]OFD Sender: Remove packet 27168 [14:59:56]ProducePacketName [14:59:56]name=ofd_packets/00027168 [14:59:56]NVStorageDeleteData [14:59:56]Write to MH i2c: 01 00 00 69 A7 10 [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 07 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 07 00 69 A7 00 00 00 00 00 8D 0C B0 [14:59:56]RasterBufferAndPrint [14:59:56]line [14:59:56]line [14:59:56]line [14:59:56]line [14:59:56]line [14:59:56]written 0, free lines is 3216 [14:59:56]MH_Cut [14:59:56]Write to MH i2c: D1 01 00 70 A7 01 E9 [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: D1 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: D1 01 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: D1 01 00 70 A7 00 E8 [14:59:56]Write to MH i2c: 01 00 00 71 A7 18 [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:57]OFD Sender: No OFD packet to send [14:59:58]*** Cut start [14:59:58]*** Partial cut [14:59:58]*** CUTSNS_PIN = 1 [14:59:58]*** CUTSNS_PIN = 0 [14:59:58]*** Brake cut motor [14:59:58]Read from MH i2c: 01 [14:59:58]MH_I2C_Read... [14:59:58]*** Stop cut motor [14:59:58]*** Cut end [14:59:58]Read from MH i2c: 01 07 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: 01 07 00 71 A7 00 00 00 00 00 FF 0F 2D [14:59:58]process_action close_receipt done [14:59:58]requested_data is exist [14:59:58]produce_requested_data [14:59:58]requested_item fm.sn is exist - process it [14:59:58]wFMCommunicate request_size=4 [14:59:58]MH_SAM_APDU [14:59:58]CAPDU: 80 11 00 00 [14:59:58]Write to MH i2c: E2 08 00 72 A7 80 11 00 00 00 00 00 00 93 [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 17 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 17 00 72 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 EB [14:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:59:58]wFMCommunicate OK [14:59:58]requested_item fd.num is exist - process it [14:59:58]SAM_PROTO_GetFieldsCounters [14:59:58]wFMCommunicate request_size=4 [14:59:58]MH_SAM_APDU [14:59:58]CAPDU: 80 13 00 00 [14:59:58]Write to MH i2c: E2 08 00 73 A7 80 13 00 00 00 00 00 00 96 [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 62 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 62 00 73 A7 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 20 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [14:59: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 20 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:58]wFMCommunicate OK [14:59:58]SAM_PROTO_GetFieldsCounters done [14:59:58]requested_item shift.num is exist - process it [14:59:58]requested_item shift.opened is exist - process it [14:59:58]req_shift_opened [14:59:58]FM_GetShiftState [14:59:58]SAM_PROTO_GetShiftState [14:59:58]wFMCommunicate request_size=4 [14:59:58]MH_SAM_APDU [14:59:58]CAPDU: 80 13 01 00 [14:59:58]Write to MH i2c: E2 08 00 74 A7 80 13 01 00 00 00 00 00 98 [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 0E 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 0E 00 74 A7 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 E2 [14:59:58]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [14:59:58]wFMCommunicate OK [14:59:58]SAM_PROTO_GetShiftState done [14:59:58]FM_GetShiftState done [14:59:58]req_shift_opened done [14:59:58]requested_item shift.open_date is exist - process it [14:59:58]req_shift_open_date [14:59:58]req_shift_open_date done [14:59:58]produce_requested_data done [14:59:58]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27168,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [14:59:58]process_action_free close_receipt [14:59:58]json_value_free [14:59:58]json_value_free done [14:59:58]process_json_proto returns [14:59:58]Send response to host [14:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27168,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [14:59:58]free response buf [14:59:58]execute_script done [14:59:58]execute_script returns [14:59:58]free content buf [14:59:58]Sock 8.Close socket [14:59:58]Sock 8.Thread stoped [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:51]accept exits with 9 [15:00:51]New connection [15:00:51]New thread 3067014500 created [15:00:51]Thread 3066871140 joined [15:00:51]Waiting for new connection... [15:00:51] Sock 9.Parse request [15:00:51]Sock 9.Check first char [15:00:51]Sock 9.First char is OK [15:00:51]request: POST /json_proto HTTP/1.0 [15:00:51]Method: POST [15:00:51]URL: /json_proto [15:00:51]Method is POST - this is cgi request [15:00:51]url: /json_proto [15:00:51]query_string will be loaded in cgi processing [15:00:51]execute_cgi json_proto POST (null) [15:00:51]execute_cgi path=json_proto method=POST [15:00:51]POST find Content-Length [15:00:51]Host: 172.17.35.3:8080 [15:00:51]Content-Length: 806 [15:00:51]Content-Type: application/json [15:00:51] [15:00:51]POST finish read [15:00:51]Found Content-Length = 806 [15:00:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 10.340, "sum" : 742.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 742.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:51]execute_script... [15:00:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 10.340, "sum" : 742.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 742.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:51]POST & json_proto [15:00:51]process_json_proto [15:00:51]json parsed OK: [15:00:51]protocol is kg_v1.0 [15:00:51]action value=close_receipt [15:00:51]process_action close_receipt [15:00:51]cmd_close_receipt [15:00:51]MH_GetDate [15:00:51]Write to MH i2c: F0 00 00 75 A7 0B [15:00:51]Write i2c OK [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: F0 [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: F0 09 00 [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: F0 09 00 75 A7 00 43 FB 17 66 2B 11 66 64 D5 [15:00:51]GetLastDocTimeStamp 1712847626 [15:00:51]current date 1712847683 [15:00:51]FM_GetShiftState [15:00:51]SAM_PROTO_GetShiftState [15:00:51]wFMCommunicate request_size=4 [15:00:51]MH_SAM_APDU [15:00:51]CAPDU: 80 13 01 00 [15:00:51]Write to MH i2c: E2 08 00 76 A7 80 13 01 00 00 00 00 00 9A [15:00:51]Write i2c OK [15:00:51]MH_I2C_Read... [15:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:51]Read from MH i2c: E2 [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: E2 0E 00 [15:00:51]MH_I2C_Read... [15:00:51]Read from MH i2c: E2 0E 00 76 A7 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 E4 [15:00:51]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [15:00:51]wFMCommunicate OK [15:00:51]SAM_PROTO_GetShiftState done [15:00:51]FM_GetShiftState done [15:00:51]opened in 1712795538 [15:00:51]opened+sec_in_day 1712881938 [15:00:51]quantity*price = 74241 [15:00:51]sum+1 = 74242 [15:00:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 742.41 НСП 1% : 6.57 НДС 12% : 78.84 Наличными: 0.00 Безнал.: 742.41 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 56 11.04.2024 15:01 Смена: 317 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 27169 ФПД: 31124760052701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T150123&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27169&fm=31124760052701&tin=02508201610067®Number=0000000000091578&sum=74241 [15:00:52]StoreToDocumentArchive [15:00:52]shift 317 fd 27169 [15:00:52]save to /storage/0317/doc_00027169 [15:00:52]save last doc name /storage/0317/doc_00027169 to /storage/kkm_last_doc_name [15:00:52]save OK [15:00:52]Clear old archive folders... [15:00:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:00:52]tlvbuf is 01024F20 [15:00:52]SAM_PROTO_ClearQueue [15:00:52]wFMCommunicate request_size=4 [15:00:52]MH_SAM_APDU [15:00:52]CAPDU: 80 09 00 00 [15:00:52]Write to MH i2c: E2 08 00 83 A7 80 09 00 00 00 00 00 00 9C [15:00:52]Write i2c OK [15:00:52]MH_I2C_Read... [15:00:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:52]Read from MH i2c: E2 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 03 00 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 03 00 83 A7 00 90 00 9E [15:00:52]RAPDU: 90 00 [15:00:52]wFMCommunicate OK [15:00:52]SAM_PROTO_ClearQueue done [15:00:52]KKMCreateOFDPacket [15:00:52]OFDProtocolAddRootSTLVToBuf [15:00:52]FM_MakeSignedData [15:00:52]FM_MakeSignedData [15:00:52]SAM_PROTO_SignData [15:00:52]wFMCommunicate request_size=4 [15:00:52]MH_SAM_APDU [15:00:52]CAPDU: 80 0D 01 02 [15:00:52]Write to MH i2c: E2 08 00 84 A7 80 0D 01 02 00 00 00 00 A4 [15:00:52]Write i2c OK [15:00:52]MH_I2C_Read... [15:00:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:52]Read from MH i2c: E2 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 03 00 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 03 00 84 A7 00 90 00 9F [15:00:52]RAPDU: 90 00 [15:00:52]wFMCommunicate OK [15:00:52]wFMCommunicate request_size=255 [15:00:52]MH_SAM_APDU [15:00:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 01 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 FB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 21 6A 00 00 35 04 06 00 [15:00:52]Write to MH i2c: E2 02 01 85 A7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 01 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 FB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 21 6A 00 00 35 04 06 00 00 00 4C [15:00:52]Write i2c OK [15:00:52]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 85 A7 00 90 00 A0 [15:00:53]RAPDU: 90 00 [15:00:53]wFMCommunicate OK [15:00:53]wFMCommunicate request_size=11 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 0D 02 02 06 1C 4E CC 44 43 DD [15:00:53]Write to MH i2c: E2 0E 00 86 A7 80 0D 02 02 06 00 1C 4E CC 44 43 DD 00 00 4D [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 86 A7 00 90 00 A1 [15:00:53]RAPDU: 90 00 [15:00:53]wFMCommunicate OK [15:00:53]wFMCommunicate request_size=4 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 0D 03 02 [15:00:53]Write to MH i2c: E2 08 00 87 A7 80 0D 03 02 00 00 00 00 A9 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 0B 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 0B 00 87 A7 00 14 50 2D 3C C7 17 6B 13 90 00 D3 [15:00:53]RAPDU: 14 50 2D 3C C7 17 6B 13 90 00 [15:00:53]wFMCommunicate OK [15:00:53]SAM_PROTO_SignData done [15:00:53]FM_MakeSignedData done [15:00:53]CreateOFDProtocolMessage [15:00:53]wFMCommunicate request_size=4 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 11 00 00 [15:00:53]Write to MH i2c: E2 08 00 88 A7 80 11 00 00 00 00 00 00 A9 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 17 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 17 00 88 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 01 [15:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:00:53]wFMCommunicate OK [15:00:53]CreateOFDProtocolMessage done [15:00:53]OFDSenderStorePacket 27169 [15:00:53]StoreOFDPacket docnum=27169 [15:00:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 33 5D 08 01 7D 63 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 01 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 FB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 21 6A 00 00 35 04 06 00 1C 4E CC 44 43 DD 14 50 2D 3C C7 17 6B 13 [15:00:53]CheckFolder [15:00:53]dirname=/storage/ofd_packets [15:00:53]CheckFolder done [15:00:53]ProducePacketName [15:00:53]name=ofd_packets/00027169 [15:00:53]NVStorageSaveData ofd_packets/00027169 [15:00:53]File name is /storage/ofd_packets/00027169 [15:00:53]Write 302 bytes [15:00:53]NVStorageSaveData done [15:00:53]OFDSenderStorePacket done [15:00:53]KKMCreateOFDPacket done [15:00:53]NVStorageSaveData kkm_last_timestamp [15:00:53]File name is /storage/kkm_last_timestamp [15:00:53]Write 4 bytes [15:00:53]NVStorageSaveData done [15:00:53]ExternCall_PrintAddStr [15:00:53]wPrintStart [15:00:53]Write to MH i2c: 01 00 00 89 A7 30 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: 01 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: 01 07 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: 01 07 00 89 A7 00 00 00 00 00 FF 0F 45 [15:00:53]RasterBufferAndPrint [15:00:53]line Счет N : (1)359926 [15:00:53]line ИНН: 02508201610067 [15:00:53]line Контрольно-Кассовый Чек [15:00:53]line ПРОДАЖА [15:00:53]line ТРК (МРК, ГНК) : 11 [15:00:53]line Товар: 2710194210 [15:00:53]line ДТ(л)-К-5 [15:00:53]line 10.340 * 71.80 [15:00:53]line = 742.41 [15:00:53]line НДС 12% НСП 1% [15:00:53]line > о реализуемом товаре [15:00:53]line ИТОГО: 742.41 [15:00:53]line НСП 1% : 6.57 [15:00:53]line НДС 12% : 78.84 [15:00:53]line Наличными: 0.00 [15:00:53]line Безнал.: 742.41 [15:00:53]line Место: АЗС № 122 "Партнер Нефть" [15:00:53]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [15:00:53]line СНО: Общий режим [15:00:53]line Чек 56 11.04.2024 15:01 [15:00:53]line Смена: 317 ФФД: 1.0 [15:00:53]line ЗНМ: 0300000147 [15:00:53]line РНМ: 0000000000091578 [15:00:53]line Версия ККМ: 001 [15:00:53]line Платежная система: O! деньги [15:00:53]line ФМ: 0000000000874657 [15:00:53]line ФД: 27169 [15:00:53]line ФПД: 31124760052701 [15:00:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240411T150123&type=1&operation_type=1&fn_number=0000000000874657&fd_number=27169&fm=31124760052701&tin=02508201610067®Number=0000000000091578&sum=74241 [15:00:53]OFD Sender: Processing packet 27169 [packets to send 44, broken 43] [15:00:53]ProducePacketName [15:00:53]name=ofd_packets/00027169 [15:00:53]OFD Sender: To server: pG, [15:00:53]CommunicateWithHost lk.salyk.kg:30040 [15:00:53]ConnectInit lk.salyk.kg [15:00:53]written 0, free lines is 4095 [15:00:53]Connected sock=10 [15:00: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 35 37 10 01 00 00 33 5D 08 01 7D 63 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 01 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 FB 17 66 0E 04 04 00 3D 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 21 6A 00 00 35 04 06 00 1C 4E CC 44 43 DD 14 50 2D 3C C7 17 6B 13 [15:00: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 35 37 4F 00 00 00 34 97 47 00 78 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 35 37 10 04 04 00 21 6A 00 00 F4 03 04 00 A3 A2 17 66 B6 04 01 00 00 E3 89 11 CA 68 B5 4A 1D [15:00:53]CommunicateWithHost err = 0 [15:00:53]CheckOFDResponse [15:00:53]1017 (14) - 77093643461234 [15:00:53]1041 (16) - 0000000000874657 [15:00:53]1040 (4) - 27169 [15:00:53]1012 (4) - 11.04.2024 08:43 [15:00:53]1206 (1) - 0 [15:00:53]OFD Sender: Remove packet 27169 [15:00:53]ProducePacketName [15:00:53]name=ofd_packets/00027169 [15:00:53]NVStorageDeleteData [15:00:53]Write to MH i2c: 01 00 00 B3 A7 5A [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: 01 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: 01 07 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: 01 07 00 B3 A7 00 00 00 00 00 87 0C F4 [15:00:53]RasterBufferAndPrint [15:00:53]line [15:00:53]line [15:00:53]line [15:00:53]line [15:00:53]line [15:00:53]written 0, free lines is 3212 [15:00:53]MH_Cut [15:00:53]Write to MH i2c: D1 01 00 BA A7 01 33 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: D1 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: D1 01 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: D1 01 00 BA A7 00 32 [15:00:53]Write to MH i2c: 01 00 00 BB A7 62 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:54]OFD Sender: No OFD packet to send [15:00:55]*** Cut start [15:00:55]*** Partial cut [15:00:55]*** CUTSNS_PIN = 1 [15:00:55]*** CUTSNS_PIN = 0 [15:00:55]*** Brake cut motor [15:00:55]Read from MH i2c: 01 [15:00:55]MH_I2C_Read... [15:00:55]*** Stop cut motor [15:00:55]*** Cut end [15:00:55]Read from MH i2c: 01 07 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: 01 07 00 BB A7 00 00 00 00 00 FF 0F 77 [15:00:55]process_action close_receipt done [15:00:55]requested_data is exist [15:00:55]produce_requested_data [15:00:55]requested_item fm.sn is exist - process it [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 11 00 00 [15:00:55]Write to MH i2c: E2 08 00 BC A7 80 11 00 00 00 00 00 00 DD [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 17 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 17 00 BC A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 35 [15:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:00:55]wFMCommunicate OK [15:00:55]requested_item fd.num is exist - process it [15:00:55]SAM_PROTO_GetFieldsCounters [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 13 00 00 [15:00:55]Write to MH i2c: E2 08 00 BD A7 80 13 00 00 00 00 00 00 E0 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 62 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 62 00 BD A7 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [15:00: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:56]wFMCommunicate OK [15:00:56]SAM_PROTO_GetFieldsCounters done [15:00:56]requested_item shift.num is exist - process it [15:00:56]requested_item shift.opened is exist - process it [15:00:56]req_shift_opened [15:00:56]FM_GetShiftState [15:00:56]SAM_PROTO_GetShiftState [15:00:56]wFMCommunicate request_size=4 [15:00:56]MH_SAM_APDU [15:00:56]CAPDU: 80 13 01 00 [15:00:56]Write to MH i2c: E2 08 00 BE A7 80 13 01 00 00 00 00 00 E2 [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 [15:00:56]MH_I2C_Read... [15:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:56]Read from MH i2c: E2 0E 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 0E 00 BE A7 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 2C [15:00:56]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [15:00:56]wFMCommunicate OK [15:00:56]SAM_PROTO_GetShiftState done [15:00:56]FM_GetShiftState done [15:00:56]req_shift_opened done [15:00:56]requested_item shift.open_date is exist - process it [15:00:56]req_shift_open_date [15:00:56]req_shift_open_date done [15:00:56]produce_requested_data done [15:00:56]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":27169,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [15:00:56]process_action_free close_receipt [15:00:56]json_value_free [15:00:56]json_value_free done [15:00:56]process_json_proto returns [15:00:56]Send response to host [15:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":27169,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [15:00:56]free response buf [15:00:56]execute_script done [15:00:56]execute_script returns [15:00:56]free content buf [15:00:56]Sock 9.Close socket [15:00:56]Sock 9.Thread stoped [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03: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:22]accept exits with 8 [15:08:22]New connection [15:08:22]New thread 3066871140 created [15:08:22]Thread 3067014500 joined [15:08:22]Waiting for new connection... [15:08:22] Sock 8.Parse request [15:08:22]Sock 8.Check first char [15:08:22]Sock 8.First char is OK [15:08:22]request: POST /json_proto HTTP/1.0 [15:08:22]Method: POST [15:08:22]URL: /json_proto [15:08:22]Method is POST - this is cgi request [15:08:22]url: /json_proto [15:08:22]query_string will be loaded in cgi processing [15:08:22]execute_cgi json_proto POST (null) [15:08:22]execute_cgi path=json_proto method=POST [15:08:22]POST find Content-Length [15:08:22]Host: 172.17.35.3:8080 [15:08:22]Content-Length: 215 [15:08:22]Content-Type: application/json [15:08:22] [15:08:22]POST finish read [15:08:22]Found Content-Length = 215 [15:08:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:22]execute_script... [15:08:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:22]POST & json_proto [15:08:22]process_json_proto [15:08:22]json parsed OK: [15:08:22]protocol is kg_v1.0 [15:08:22]action value=get_value [15:08:22]process_action get_value [15:08:22]cmd_get_value [15:08:22]process_action get_value done [15:08:22]requested_data is exist [15:08:22]produce_requested_data [15:08:22]requested_item kkm.sn is exist - process it [15:08:22]requested_item kkm.ver is exist - process it [15:08:22]requested_item fm.sn is exist - process it [15:08:22]wFMCommunicate request_size=4 [15:08:22]MH_SAM_APDU [15:08:22]CAPDU: 80 11 00 00 [15:08:22]Write to MH i2c: E2 08 00 BF A7 80 11 00 00 00 00 00 00 E0 [15:08:22]Write i2c OK [15:08:22]MH_I2C_Read... [15:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:22]Read from MH i2c: E2 [15:08:22]MH_I2C_Read... [15:08:22]Read from MH i2c: E2 17 00 [15:08:22]MH_I2C_Read... [15:08:22]Read from MH i2c: E2 17 00 BF A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 38 [15:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:08:22]wFMCommunicate OK [15:08:22]requested_item fd.num is exist - process it [15:08:22]SAM_PROTO_GetFieldsCounters [15:08:22]wFMCommunicate request_size=4 [15:08:22]MH_SAM_APDU [15:08:22]CAPDU: 80 13 00 00 [15:08:22]Write to MH i2c: E2 08 00 C0 A7 80 13 00 00 00 00 00 00 E3 [15:08:22]Write i2c OK [15:08:22]MH_I2C_Read... [15:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:22]Read from MH i2c: E2 [15:08:22]MH_I2C_Read... [15:08:22]Read from MH i2c: E2 62 00 [15:08:22]MH_I2C_Read... [15:08:22]Read from MH i2c: E2 62 00 C0 A7 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [15:08:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:22]wFMCommunicate OK [15:08:22]SAM_PROTO_GetFieldsCounters done [15:08:22]requested_item shift.num is exist - process it [15:08:22]requested_item shift.opened is exist - process it [15:08:22]req_shift_opened [15:08:22]FM_GetShiftState [15:08:22]SAM_PROTO_GetShiftState [15:08:22]wFMCommunicate request_size=4 [15:08:22]MH_SAM_APDU [15:08:22]CAPDU: 80 13 01 00 [15:08:22]Write to MH i2c: E2 08 00 C1 A7 80 13 01 00 00 00 00 00 E5 [15:08:22]Write i2c OK [15:08:22]MH_I2C_Read... [15:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:22]Read from MH i2c: E2 [15:08:22]MH_I2C_Read... [15:08:22]Read from MH i2c: E2 0E 00 [15:08:22]MH_I2C_Read... [15:08:22]Read from MH i2c: E2 0E 00 C1 A7 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 2F [15:08:22]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [15:08:22]wFMCommunicate OK [15:08:22]SAM_PROTO_GetShiftState done [15:08:22]FM_GetShiftState done [15:08:22]req_shift_opened done [15:08:22]requested_item shift.open_date is exist - process it [15:08:22]req_shift_open_date [15:08:22]req_shift_open_date done [15:08:22]produce_requested_data done [15:08:22]produce_requested_data return {"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":27169,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [15:08:22]process_action_free get_value [15:08:22]json_value_free [15:08:22]json_value_free done [15:08:22]process_json_proto returns [15:08:22]Send response to host [15:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":27169,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [15:08:22]free response buf [15:08:22]execute_script done [15:08:22]execute_script returns [15:08:22]free content buf [15:08:22]Sock 8.Close socket [15:08:22]Sock 8.Thread stoped [15:08:22]accept exits with 9 [15:08:22]New connection [15:08:22]New thread 3067014500 created [15:08:22]Thread 3066871140 joined [15:08:22]Waiting for new connection... [15:08:22] Sock 9.Parse request [15:08:22]Sock 9.Check first char [15:08:22]Sock 9.First char is OK [15:08:22]request: POST /json_proto HTTP/1.0 [15:08:22]Method: POST [15:08:22]URL: /json_proto [15:08:22]Method is POST - this is cgi request [15:08:22]url: /json_proto [15:08:22]query_string will be loaded in cgi processing [15:08:22]execute_cgi json_proto POST (null) [15:08:22]execute_cgi path=json_proto method=POST [15:08:22]POST find Content-Length [15:08:22]Host: 172.17.35.3:8080 [15:08:22]Content-Length: 331 [15:08:22]Content-Type: application/json [15:08:22] [15:08:22]POST finish read [15:08:22]Found Content-Length = 331 [15:08:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:08:22]execute_script... [15:08:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:08:23]POST & json_proto [15:08:23]process_json_proto [15:08:23]json parsed OK: [15:08:23]protocol is kg_v1.0 [15:08:23]action value=get_value [15:08:23]process_action get_value [15:08:23]cmd_get_value [15:08:23]process_action get_value done [15:08:23]requested_data is exist [15:08:23]produce_requested_data [15:08:23]requested_item fm.sale.total is exist - process it [15:08:23]SAM_PROTO_GetFMData [15:08:23]wFMCommunicate request_size=4 [15:08:23]MH_SAM_APDU [15:08:23]CAPDU: 80 13 03 00 [15:08:23]Write to MH i2c: E2 08 00 C2 A7 80 13 03 00 00 00 00 00 E8 [15:08:23]Write i2c OK [15:08:23]MH_I2C_Read... [15:08:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:08:23]Read from MH i2c: E2 [15:08:23]MH_I2C_Read... [15:08:23]Read from MH i2c: E2 FD 00 [15:08:23]MH_I2C_Read... [15:08:23]Read from MH i2c: E2 FD 00 C2 A7 00 C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 AD [15:08:23]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 [15:08:23]wFMCommunicate OK [15:08:23]wFMCommunicate request_size=4 [15:08:23]MH_SAM_APDU [15:08:23]CAPDU: 80 17 00 00 [15:08:23]Write to MH i2c: E2 08 00 C3 A7 80 17 00 00 00 00 00 00 EA [15:08:23]Write i2c OK [15:08:23]MH_I2C_Read... [15:08:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:23]Read from MH i2c: E2 [15:08:23]MH_I2C_Read... [15:08:23]Read from MH i2c: E2 FD 00 [15:08:23]MH_I2C_Read... [15:08:23]Read from MH i2c: E2 FD 00 C3 A7 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 30 [15:08:23]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 [15:08:23]wFMCommunicate OK [15:08:23]wFMCommunicate request_size=4 [15:08:23]MH_SAM_APDU [15:08:23]CAPDU: 80 17 00 00 [15:08:23]Write to MH i2c: E2 08 00 C4 A7 80 17 00 00 00 00 00 00 EB [15:08:23]Write i2c OK [15:08:23]MH_I2C_Read... [15:08:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:24]Read from MH i2c: E2 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 FD 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 FD 00 C4 A7 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 8E [15:08:24]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [15:08:24]wFMCommunicate OK [15:08:24]wFMCommunicate request_size=4 [15:08:24]MH_SAM_APDU [15:08:24]CAPDU: 80 17 00 00 [15:08:24]Write to MH i2c: E2 08 00 C5 A7 80 17 00 00 00 00 00 00 EC [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:24]Read from MH i2c: E2 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 FD 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 FD 00 C5 A7 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 64 [15:08:24]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [15:08:24]wFMCommunicate OK [15:08:24]wFMCommunicate request_size=4 [15:08:24]MH_SAM_APDU [15:08:24]CAPDU: 80 17 00 00 [15:08:24]Write to MH i2c: E2 08 00 C6 A7 80 17 00 00 00 00 00 00 ED [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [15:08:24]Read from MH i2c: E2 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 DD 00 [15:08:24]MH_I2C_Read... [15:08:24]Read from MH i2c: E2 DD 00 C6 A7 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D5 [15:08:24]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:08:24]wFMCommunicate OK [15:08:24]SAM_PROTO_GetFMData done [15:08:24]requested_item fm.sale_refund.total is exist - process it [15:08:24]requested_item fm.buy.total is exist - process it [15:08:24]requested_item shift.sale.total is exist - process it [15:08:24]SAM_PROTO_GetShiftData [15:08:24]wFMCommunicate request_size=4 [15:08:24]MH_SAM_APDU [15:08:24]CAPDU: 80 13 02 00 [15:08:24]Write to MH i2c: E2 08 00 C7 A7 80 13 02 00 00 00 00 00 EC [15:08:24]Write i2c OK [15:08:24]MH_I2C_Read... [15:08:24]OFD Sender: No OFD packet to send [15:08:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:08:25]Read from MH i2c: E2 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 FD 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 FD 00 C7 A7 00 AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 F1 [15:08:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:08:25]wFMCommunicate OK [15:08:25]wFMCommunicate request_size=4 [15:08:25]MH_SAM_APDU [15:08:25]CAPDU: 80 17 00 00 [15:08:25]Write to MH i2c: E2 08 00 C8 A7 80 17 00 00 00 00 00 00 EF [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:25]Read from MH i2c: E2 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 FD 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 FD 00 C8 A7 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 11 [15:08:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:08:25]wFMCommunicate OK [15:08:25]wFMCommunicate request_size=4 [15:08:25]MH_SAM_APDU [15:08:25]CAPDU: 80 17 00 00 [15:08:25]Write to MH i2c: E2 08 00 C9 A7 80 17 00 00 00 00 00 00 F0 [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:25]Read from MH i2c: E2 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 FD 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 FD 00 C9 A7 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A7 [15:08:25]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:08:25]wFMCommunicate OK [15:08:25]wFMCommunicate request_size=4 [15:08:25]MH_SAM_APDU [15:08:25]CAPDU: 80 17 00 00 [15:08:25]Write to MH i2c: E2 08 00 CA A7 80 17 00 00 00 00 00 00 F1 [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:25]Read from MH i2c: E2 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 FD 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 FD 00 CA A7 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 63 [15:08:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:08:26]wFMCommunicate OK [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 17 00 00 [15:08:26]Write to MH i2c: E2 08 00 CB A7 80 17 00 00 00 00 00 00 F2 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 CB 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 CB 00 CB A7 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DB [15:08:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:08:26]wFMCommunicate OK [15:08:26]SAM_PROTO_GetShiftData done [15:08:26]requested_item shift.sale.total_cash is exist - process it [15:08:26]requested_item shift.sale_refund.total is exist - process it [15:08:26]requested_item shift.sale_refund.total_cash is exist - process it [15:08:26]requested_item shift.buy.total is exist - process it [15:08:26]requested_item shift.buy.total_cash is exist - process it [15:08:26]produce_requested_data done [15:08:26]produce_requested_data return {"fm.sale.total":26444507.21,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":53960.34,"shift.sale.total_cash":36477.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} [15:08:26]process_action_free get_value [15:08:26]json_value_free [15:08:26]json_value_free done [15:08:26]process_json_proto returns [15:08:26]Send response to host [15:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26444507.21,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":53960.34,"shift.sale.total_cash":36477.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}}} [15:08:26]free response buf [15:08:26]execute_script done [15:08:26]execute_script returns [15:08:26]free content buf [15:08:26]Sock 9.Close socket [15:08:26]Sock 9.Thread stoped [15:08:26]accept exits with 8 [15:08:26]New connection [15:08:26]New thread 3066871140 created [15:08:26]Thread 3067014500 joined [15:08:26]Waiting for new connection... [15:08:26] Sock 8.Parse request [15:08:26]Sock 8.Check first char [15:08:26]Sock 8.First char is OK [15:08:26]request: POST /json_proto HTTP/1.0 [15:08:26]Method: POST [15:08:26]URL: /json_proto [15:08:26]Method is POST - this is cgi request [15:08:26]url: /json_proto [15:08:26]query_string will be loaded in cgi processing [15:08:26]execute_cgi json_proto POST (null) [15:08:26]execute_cgi path=json_proto method=POST [15:08:26]POST find Content-Length [15:08:26]Host: 172.17.35.3:8080 [15:08:26]Content-Length: 331 [15:08:26]Content-Type: application/json [15:08:26] [15:08:26]POST finish read [15:08:26]Found Content-Length = 331 [15:08:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:08:26]execute_script... [15:08:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:08:26]POST & json_proto [15:08:26]process_json_proto [15:08:26]json parsed OK: [15:08:26]protocol is kg_v1.0 [15:08:26]action value=get_value [15:08:26]process_action get_value [15:08:26]cmd_get_value [15:08:26]process_action get_value done [15:08:26]requested_data is exist [15:08:26]produce_requested_data [15:08:26]requested_item fm.sale.total is exist - process it [15:08:26]SAM_PROTO_GetFMData [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 13 03 00 [15:08:26]Write to MH i2c: E2 08 00 CC A7 80 13 03 00 00 00 00 00 F2 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 FD 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 FD 00 CC A7 00 C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 B7 [15:08:27]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 [15:08:27]wFMCommunicate OK [15:08:27]wFMCommunicate request_size=4 [15:08:27]MH_SAM_APDU [15:08:27]CAPDU: 80 17 00 00 [15:08:27]Write to MH i2c: E2 08 00 CD A7 80 17 00 00 00 00 00 00 F4 [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:27]Read from MH i2c: E2 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 FD 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 FD 00 CD A7 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 3A [15:08:27]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 [15:08:27]wFMCommunicate OK [15:08:27]wFMCommunicate request_size=4 [15:08:27]MH_SAM_APDU [15:08:27]CAPDU: 80 17 00 00 [15:08:27]Write to MH i2c: E2 08 00 CE A7 80 17 00 00 00 00 00 00 F5 [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:27]Read from MH i2c: E2 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 FD 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 FD 00 CE A7 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 98 [15:08:27]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [15:08:27]wFMCommunicate OK [15:08:27]wFMCommunicate request_size=4 [15:08:27]MH_SAM_APDU [15:08:27]CAPDU: 80 17 00 00 [15:08:27]Write to MH i2c: E2 08 00 CF A7 80 17 00 00 00 00 00 00 F6 [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 FD 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 FD 00 CF A7 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 6E [15:08:28]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [15:08:28]wFMCommunicate OK [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 17 00 00 [15:08:28]Write to MH i2c: E2 08 00 D0 A7 80 17 00 00 00 00 00 00 F7 [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 DD 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 DD 00 D0 A7 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DF [15:08:28]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:08:28]wFMCommunicate OK [15:08:28]SAM_PROTO_GetFMData done [15:08:28]requested_item fm.sale_refund.total is exist - process it [15:08:28]requested_item fm.buy.total is exist - process it [15:08:28]requested_item shift.sale.total is exist - process it [15:08:28]SAM_PROTO_GetShiftData [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 13 02 00 [15:08:28]Write to MH i2c: E2 08 00 D1 A7 80 13 02 00 00 00 00 00 F6 [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 FD 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 FD 00 D1 A7 00 AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 FB [15:08:29]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:08:29]wFMCommunicate OK [15:08:29]wFMCommunicate request_size=4 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 17 00 00 [15:08:29]Write to MH i2c: E2 08 00 D2 A7 80 17 00 00 00 00 00 00 F9 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 FD 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 FD 00 D2 A7 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 1B [15:08:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:08:29]wFMCommunicate OK [15:08:29]wFMCommunicate request_size=4 [15:08:29]MH_SAM_APDU [15:08:29]CAPDU: 80 17 00 00 [15:08:29]Write to MH i2c: E2 08 00 D3 A7 80 17 00 00 00 00 00 00 FA [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]OFD Sender: No OFD packet to send [15:08:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:29]Read from MH i2c: E2 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 FD 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: E2 FD 00 D3 A7 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 B1 [15:08:29]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:08:30]wFMCommunicate OK [15:08:30]wFMCommunicate request_size=4 [15:08:30]MH_SAM_APDU [15:08:30]CAPDU: 80 17 00 00 [15:08:30]Write to MH i2c: E2 08 00 D4 A7 80 17 00 00 00 00 00 00 FB [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:30]Read from MH i2c: E2 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 FD 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 FD 00 D4 A7 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 6D [15:08:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:08:30]wFMCommunicate OK [15:08:30]wFMCommunicate request_size=4 [15:08:30]MH_SAM_APDU [15:08:30]CAPDU: 80 17 00 00 [15:08:30]Write to MH i2c: E2 08 00 D5 A7 80 17 00 00 00 00 00 00 FC [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:08:30]Read from MH i2c: E2 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 CB 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: E2 CB 00 D5 A7 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E5 [15:08:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:08:30]wFMCommunicate OK [15:08:30]SAM_PROTO_GetShiftData done [15:08:30]requested_item shift.sale.total_cash is exist - process it [15:08:30]requested_item shift.sale_refund.total is exist - process it [15:08:30]requested_item shift.sale_refund.total_cash is exist - process it [15:08:30]requested_item shift.buy.total is exist - process it [15:08:30]requested_item shift.buy.total_cash is exist - process it [15:08:30]produce_requested_data done [15:08:30]produce_requested_data return {"fm.sale.total":26444507.21,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":53960.34,"shift.sale.total_cash":36477.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} [15:08:30]process_action_free get_value [15:08:30]json_value_free [15:08:30]json_value_free done [15:08:30]process_json_proto returns [15:08:30]Send response to host [15:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26444507.21,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":53960.34,"shift.sale.total_cash":36477.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}}} [15:08:30]free response buf [15:08:30]execute_script done [15:08:30]execute_script returns [15:08:30]free content buf [15:08:30]Sock 8.Close socket [15:08:30]Sock 8.Thread stoped [15:08:30]accept exits with 9 [15:08:30]New connection [15:08:30]New thread 3067014500 created [15:08:30]Thread 3066871140 joined [15:08:30]Waiting for new connection... [15:08:30] Sock 9.Parse request [15:08:30]Sock 9.Check first char [15:08:30]Sock 9.First char is OK [15:08:30]request: POST /json_proto HTTP/1.0 [15:08:30]Method: POST [15:08:30]URL: /json_proto [15:08:30]Method is POST - this is cgi request [15:08:30]url: /json_proto [15:08:30]query_string will be loaded in cgi processing [15:08:30]execute_cgi json_proto POST (null) [15:08:30]execute_cgi path=json_proto method=POST [15:08:30]POST find Content-Length [15:08:30]Host: 172.17.35.3:8080 [15:08:30]Content-Length: 256 [15:08:30]Content-Type: application/json [15:08:30] [15:08:30]POST finish read [15:08:30]Found Content-Length = 256 [15:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:30]execute_script... [15:08:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:30]POST & json_proto [15:08:30]process_json_proto [15:08:30]json parsed OK: [15:08:30]protocol is kg_v1.0 [15:08:30]action value=x_report [15:08:30]process_action x_report [15:08:30]cmd_x_report [15:08:30]MH_GetDate [15:08:30]Write to MH i2c: F0 00 00 D6 A7 6C [15:08:30]Write i2c OK [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: F0 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: F0 09 00 [15:08:30]MH_I2C_Read... [15:08:30]Read from MH i2c: F0 09 00 D6 A7 00 0F FD 17 66 2B 11 66 64 04 [15:08:30]GetLastDocTimeStamp 1712847683 [15:08:30]current date 1712848143 [15:08:30]FM_GetShiftState [15:08:30]SAM_PROTO_GetShiftState [15:08:31]wFMCommunicate request_size=4 [15:08:31]MH_SAM_APDU [15:08:31]CAPDU: 80 13 01 00 [15:08:31]Write to MH i2c: E2 08 00 D7 A7 80 13 01 00 00 00 00 00 FB [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:31]Read from MH i2c: E2 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 0E 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 0E 00 D7 A7 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 45 [15:08:31]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [15:08:31]wFMCommunicate OK [15:08:31]SAM_PROTO_GetShiftState done [15:08:31]FM_GetShiftState done [15:08:31]KKMCreateXReportDocument [15:08:31]Load OK [15:08:31]Malloc new data [15:08:31]MH_GetDate [15:08:31]Write to MH i2c: F0 00 00 D8 A7 6E [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: F0 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: F0 09 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: F0 09 00 D8 A7 00 0F FD 17 66 2B 11 66 64 06 [15:08:31]Malloc new data [15:08:31]Malloc new data [15:08:31]wFMCommunicate request_size=4 [15:08:31]MH_SAM_APDU [15:08:31]CAPDU: 80 11 00 00 [15:08:31]Write to MH i2c: E2 08 00 D9 A7 80 11 00 00 00 00 00 00 FA [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:31]Read from MH i2c: E2 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 17 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 17 00 D9 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 52 [15:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:08:31]wFMCommunicate OK [15:08:31]SAM_PROTO_GetFieldsCounters [15:08:31]wFMCommunicate request_size=4 [15:08:31]MH_SAM_APDU [15:08:31]CAPDU: 80 13 00 00 [15:08:31]Write to MH i2c: E2 08 00 DA A7 80 13 00 00 00 00 00 00 FD [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:31]Read from MH i2c: E2 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 62 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 62 00 DA A7 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [15:08: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:31]wFMCommunicate OK [15:08:31]SAM_PROTO_GetFieldsCounters done [15:08:31]Malloc new data [15:08:31]Malloc new data [15:08:31]Malloc new data [15:08:31]KKMCreateXReportDocument OK [15:08:31]KKMSetXReportData OK [15:08:31]KKMPrepareXReportFMData [15:08:31]SAM_PROTO_GetShiftData [15:08:31]wFMCommunicate request_size=4 [15:08:31]MH_SAM_APDU [15:08:31]CAPDU: 80 13 02 00 [15:08:31]Write to MH i2c: E2 08 00 DB A7 80 13 02 00 00 00 00 00 00 [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:08:31]Read from MH i2c: E2 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 FD 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 FD 00 DB A7 00 AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 05 [15:08:32]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:08:32]wFMCommunicate OK [15:08:32]wFMCommunicate request_size=4 [15:08:32]MH_SAM_APDU [15:08:32]CAPDU: 80 17 00 00 [15:08:32]Write to MH i2c: E2 08 00 DC A7 80 17 00 00 00 00 00 00 03 [15:08:32]Write i2c OK [15:08:32]MH_I2C_Read... [15:08:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:32]Read from MH i2c: E2 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 FD 00 [15:08:32]MH_I2C_Read... [15:08:32]Read from MH i2c: E2 FD 00 DC A7 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 25 [15:08:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:08:32]wFMCommunicate OK [15:08:32]wFMCommunicate request_size=4 [15:08:32]MH_SAM_APDU [15:08:32]CAPDU: 80 17 00 00 [15:08:32]Write to MH i2c: E2 08 00 DD A7 80 17 00 00 00 00 00 00 04 [15:08:32]Write i2c OK [15:08:32]MH_I2C_Read... [15:08:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:33]Read from MH i2c: E2 [15:08:33]MH_I2C_Read... [15:08:33]Read from MH i2c: E2 FD 00 [15:08:33]MH_I2C_Read... [15:08:33]Read from MH i2c: E2 FD 00 DD A7 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 BB [15:08:33]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:08:33]wFMCommunicate OK [15:08:33]wFMCommunicate request_size=4 [15:08:33]MH_SAM_APDU [15:08:33]CAPDU: 80 17 00 00 [15:08:33]Write to MH i2c: E2 08 00 DE A7 80 17 00 00 00 00 00 00 05 [15:08:33]Write i2c OK [15:08:33]MH_I2C_Read... [15:08:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:33]Read from MH i2c: E2 [15:08:33]MH_I2C_Read... [15:08:33]Read from MH i2c: E2 FD 00 [15:08:33]MH_I2C_Read... [15:08:33]Read from MH i2c: E2 FD 00 DE A7 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 77 [15:08:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:08:33]wFMCommunicate OK [15:08:33]wFMCommunicate request_size=4 [15:08:33]MH_SAM_APDU [15:08:33]CAPDU: 80 17 00 00 [15:08:33]Write to MH i2c: E2 08 00 DF A7 80 17 00 00 00 00 00 00 06 [15:08:33]Write i2c OK [15:08:33]MH_I2C_Read... [15:08:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:08:33]Read from MH i2c: E2 [15:08:33]MH_I2C_Read... [15:08:33]Read from MH i2c: E2 CB 00 [15:08:33]MH_I2C_Read... [15:08:33]Read from MH i2c: E2 CB 00 DF A7 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EF [15:08:34]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:08:34]wFMCommunicate OK [15:08:34]SAM_PROTO_GetShiftData done [15:08:34]1194 (1194) - счетчики итогов смены [15:08:34] 1134 (4) - 56 - количество чеков со всеми признаками расчетов [15:08:34] 1129 (155) - счетчики операций «приход» [15:08:34] 1135 (4) - 56 - количество чеков по признаку расчетов [15:08:34] 1201 (3) - 53960.34 - общая итоговая сумма в чеках [15:08:34] 1136 (3) - 36477.00 - итоговая сумма в чеках наличными [15:08:34] 1138 (3) - 17483.34 - итоговая сумма в чеках безналичными [15:08:34] 1024 (122) - суммы налогов [15:08:34] 1006 (9) - суммы НДС [15:08:34] 1010 (1) - 0% - код ставки НДС [15:08:34] 1011 (0) - 0.00 - сумма НДС по ставке [15:08:34] 1006 (12) - суммы НДС [15:08:34] 1010 (1) - 12% - код ставки НДС [15:08:34] 1011 (3) - 5731.70 - сумма НДС по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 0% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (11) - суммы НСП [15:08:34] 1014 (1) - 1% - код ставки НСП [15:08:34] 1015 (2) - 477.60 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 2% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 3% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 5% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 0,50% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 1,50% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1130 (141) - счетчики операций «возврат прихода» [15:08:34] 1135 (4) - 0 - количество чеков по признаку расчетов [15:08:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:08:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:08:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:08:34] 1024 (117) - суммы налогов [15:08:34] 1006 (9) - суммы НДС [15:08:34] 1010 (1) - 0% - код ставки НДС [15:08:34] 1011 (0) - 0.00 - сумма НДС по ставке [15:08:34] 1006 (9) - суммы НДС [15:08:34] 1010 (1) - 12% - код ставки НДС [15:08:34] 1011 (0) - 0.00 - сумма НДС по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 0% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 1% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 2% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 3% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 5% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 0,50% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 1,50% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1131 (141) - счетчики операций «расход» [15:08:34] 1135 (4) - 0 - количество чеков по признаку расчетов [15:08:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:08:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:08:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:08:34] 1024 (117) - суммы налогов [15:08:34] 1006 (9) - суммы НДС [15:08:34] 1010 (1) - 0% - код ставки НДС [15:08:34] 1011 (0) - 0.00 - сумма НДС по ставке [15:08:34] 1006 (9) - суммы НДС [15:08:34] 1010 (1) - 12% - код ставки НДС [15:08:34] 1011 (0) - 0.00 - сумма НДС по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 0% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 1% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 2% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 3% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 5% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 0,50% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 1,50% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1132 (141) - счетчики операций «возврат расхода» [15:08:34] 1135 (4) - 0 - количество чеков по признаку расчетов [15:08:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:08:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:08:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:08:34] 1024 (117) - суммы налогов [15:08:34] 1006 (9) - суммы НДС [15:08:34] 1010 (1) - 0% - код ставки НДС [15:08:34] 1011 (0) - 0.00 - сумма НДС по ставке [15:08:34] 1006 (9) - суммы НДС [15:08:34] 1010 (1) - 12% - код ставки НДС [15:08:34] 1011 (0) - 0.00 - сумма НДС по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 0% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 1% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 2% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 3% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 5% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 0,50% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1007 (9) - суммы НСП [15:08:34] 1014 (1) - 1,50% - код ставки НСП [15:08:34] 1015 (0) - 0.00 - сумма НСП по ставке [15:08:34] 1133 (588) - - счетчики коррекции - не используются [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1194 (04AA) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1134 (046E) [15:08:34]Malloc new data [15:08:34]Processing tag 1129 (0469) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1135 (046F) [15:08:34]Malloc new data [15:08:34]Processing tag 1201 (04B1) [15:08:34]Malloc new data [15:08:34]Processing tag 1136 (0470) [15:08:34]Malloc new data [15:08:34]Processing tag 1138 (0472) [15:08:34]Malloc new data [15:08:34]Processing tag 1024 (0400) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1006 (03EE) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1010 (03F2) [15:08:34]Malloc new data [15:08:34]Processing tag 1011 (03F3) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1006 (03EE) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1010 (03F2) [15:08:34]Malloc new data [15:08:34]Processing tag 1011 (03F3) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]SetTLVBufToDocument err=0 [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1130 (046A) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1135 (046F) [15:08:34]Malloc new data [15:08:34]Processing tag 1201 (04B1) [15:08:34]Malloc new data [15:08:34]Processing tag 1136 (0470) [15:08:34]Malloc new data [15:08:34]Processing tag 1138 (0472) [15:08:34]Malloc new data [15:08:34]Processing tag 1024 (0400) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1006 (03EE) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1010 (03F2) [15:08:34]Malloc new data [15:08:34]Processing tag 1011 (03F3) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1006 (03EE) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1010 (03F2) [15:08:34]Malloc new data [15:08:34]Processing tag 1011 (03F3) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1007 (03EF) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1014 (03F6) [15:08:34]Malloc new data [15:08:34]Processing tag 1015 (03F7) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]SetTLVBufToDocument err=0 [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1131 (046B) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1135 (046F) [15:08:34]Malloc new data [15:08:34]Processing tag 1201 (04B1) [15:08:34]Malloc new data [15:08:34]Processing tag 1136 (0470) [15:08:34]Malloc new data [15:08:34]Processing tag 1138 (0472) [15:08:34]Malloc new data [15:08:34]Processing tag 1024 (0400) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1006 (03EE) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1010 (03F2) [15:08:34]Malloc new data [15:08:34]Processing tag 1011 (03F3) [15:08:34]Malloc new data [15:08:34]SetTLVBufToDocument err=0 [15:08:34]Processing tag 1006 (03EE) [15:08:34]Load OK [15:08:34]SetTLVBufToDocument [15:08:34]Processing tag 1010 (03F2) [15:08:34]Malloc new data [15:08:35]Processing tag 1011 (03F3) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]SetTLVBufToDocument err=0 [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1132 (046C) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1135 (046F) [15:08:35]Malloc new data [15:08:35]Processing tag 1201 (04B1) [15:08:35]Malloc new data [15:08:35]Processing tag 1136 (0470) [15:08:35]Malloc new data [15:08:35]Processing tag 1138 (0472) [15:08:35]Malloc new data [15:08:35]Processing tag 1024 (0400) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1006 (03EE) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1010 (03F2) [15:08:35]Malloc new data [15:08:35]Processing tag 1011 (03F3) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1006 (03EE) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1010 (03F2) [15:08:35]Malloc new data [15:08:35]Processing tag 1011 (03F3) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]OFD Sender: No OFD packet to send [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1007 (03EF) [15:08:35]Load OK [15:08:35]SetTLVBufToDocument [15:08:35]Processing tag 1014 (03F6) [15:08:35]Malloc new data [15:08:35]Processing tag 1015 (03F7) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]SetTLVBufToDocument err=0 [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Processing tag 1133 (046D) [15:08:35]Malloc new data [15:08:35]SetTLVBufToDocument err=0 [15:08:35]SetTLVBufToDocument err=0 [15:08:35]Malloc new data [15:08:35]SAM_PROTO_GetFMData [15:08:35]wFMCommunicate request_size=4 [15:08:35]MH_SAM_APDU [15:08:35]CAPDU: 80 13 03 00 [15:08:35]Write to MH i2c: E2 08 00 E0 A7 80 13 03 00 00 00 00 00 06 [15:08:35]Write i2c OK [15:08:35]MH_I2C_Read... [15:08:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:08:35]Read from MH i2c: E2 [15:08:35]MH_I2C_Read... [15:08:35]Read from MH i2c: E2 FD 00 [15:08:35]MH_I2C_Read... [15:08:35]Read from MH i2c: E2 FD 00 E0 A7 00 C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 CB [15:08:35]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 [15:08:35]wFMCommunicate OK [15:08:35]wFMCommunicate request_size=4 [15:08:35]MH_SAM_APDU [15:08:35]CAPDU: 80 17 00 00 [15:08:35]Write to MH i2c: E2 08 00 E1 A7 80 17 00 00 00 00 00 00 08 [15:08:35]Write i2c OK [15:08:35]MH_I2C_Read... [15:08:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:36]Read from MH i2c: E2 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: E2 FD 00 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: E2 FD 00 E1 A7 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 4E [15:08:36]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 [15:08:36]wFMCommunicate OK [15:08:36]wFMCommunicate request_size=4 [15:08:36]MH_SAM_APDU [15:08:36]CAPDU: 80 17 00 00 [15:08:36]Write to MH i2c: E2 08 00 E2 A7 80 17 00 00 00 00 00 00 09 [15:08:36]Write i2c OK [15:08:36]MH_I2C_Read... [15:08:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:36]Read from MH i2c: E2 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: E2 FD 00 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: E2 FD 00 E2 A7 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 AC [15:08:36]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [15:08:37]wFMCommunicate OK [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 17 00 00 [15:08:37]Write to MH i2c: E2 08 00 E3 A7 80 17 00 00 00 00 00 00 0A [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 FD 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 FD 00 E3 A7 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 82 [15:08:37]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [15:08:37]wFMCommunicate OK [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 17 00 00 [15:08:37]Write to MH i2c: E2 08 00 E4 A7 80 17 00 00 00 00 00 00 0B [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 DD 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 DD 00 E4 A7 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F3 [15:08:38]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:08:38]wFMCommunicate OK [15:08:38]SAM_PROTO_GetFMData done [15:08:38]FM_GetFMData:85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 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 66 AF 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 [15:08:38]oper:6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 [15:08:39]total:A1 1D 9F 9D [15:08:39]Malloc new data [15:08:39]oper:6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 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 66 AF 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 [15:08:39]total:C0 67 BE [15:08:39]Malloc new data [15:08:39]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 [15:08:39]total: [15:08:39]Malloc new data [15:08:39]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 [15:08:39]total: [15:08:39]Malloc new data [15:08:39]KKMPrepareXReportFMData err=0 [15:08:39]Х отчет ИНН: 02508201610067 Кассир: Эдилбаев К. 11.04.2024 15:09 Смена: 266 РНМ: 0000000000091578 ЗНМ: 0300000147 СНО: Общий режим Всего чеков: 56 ИТОГИ ПРИХОД Чеков: 56 Общий итог: 53960.34 Итого наличными: 36477.00 Итого безнал.: 17483.34 НДС 0% : 0.00 НДС 12% : 5731.70 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 477.60 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 36477.00 НС Приход: 26444507.21 НС Возвр.Прихода: 124784.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874657 [15:08:39]StoreToDocumentArchive [15:08:39]MH_GetDate [15:08:39]Write to MH i2c: F0 00 00 E5 A7 7B [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: F0 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: F0 09 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: F0 09 00 E5 A7 00 17 FD 17 66 2B 11 66 64 1B [15:08:39]shift 266 fd 1712848151 [15:08:39]Create dir for shift 0266 [15:08:39]save to /storage/0266/doc_1712848151 [15:08:39]save last doc name /storage/0266/doc_1712848151 to /storage/kkm_last_doc_name [15:08:39]save OK [15:08:39]Clear old archive folders... [15:08:39]NVStorageSaveData kkm_last_timestamp [15:08:39]File name is /storage/kkm_last_timestamp [15:08:39]Write 4 bytes [15:08:39]NVStorageSaveData done [15:08:39]ExternCall_PrintAddStr [15:08:39]wPrintStart [15:08:39]Write to MH i2c: 01 00 00 E6 A7 8D [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 07 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 07 00 E6 A7 00 00 00 00 00 FF 0F A2 [15:08:39]RasterBufferAndPrint [15:08:39]line Х отчет [15:08:39]line ИНН: 02508201610067 [15:08:39]line Кассир: Эдилбаев К. [15:08:39]line 11.04.2024 15:09 [15:08:39]line Смена: 266 [15:08:39]line РНМ: 0000000000091578 [15:08:39]line ЗНМ: 0300000147 [15:08:39]line СНО: Общий режим [15:08:39]line Всего чеков: 56 [15:08:39]line ИТОГИ ПРИХОД [15:08:39]line Чеков: 56 [15:08:39]line Общий итог: 53960.34 [15:08:39]line Итого наличными: 36477.00 [15:08:39]line Итого безнал.: 17483.34 [15:08:39]line НДС 0% : 0.00 [15:08:39]line НДС 12% : 5731.70 [15:08:39]line НСП 0% : 0.00 [15:08:39]line НСП 1,50% : 0.00 [15:08:39]line НСП 0,50% : 0.00 [15:08:39]line НСП 5% : 0.00 [15:08:39]line НСП 3% : 0.00 [15:08:39]line НСП 2% : 0.00 [15:08:39]line НСП 1% : 477.60 [15:08:39]line ИТОГИ ВОЗВРАТ ПРИХОДА [15:08:39]line Чеков: 0 [15:08:39]line Общий итог: 0.00 [15:08:39]line Итого наличными: 0.00 [15:08:39]line Итого безнал.: 0.00 [15:08:39]line НДС 0% : 0.00 [15:08:39]line НДС 12% : 0.00 [15:08:39]line НСП 0% : 0.00 [15:08:39]line НСП 1,50% : 0.00 [15:08:39]line НСП 0,50% : 0.00 [15:08:39]line НСП 5% : 0.00 [15:08:39]line НСП 3% : 0.00 [15:08:39]line НСП 2% : 0.00 [15:08:39]line НСП 1% : 0.00 [15:08:39]line ИТОГИ РАСХОД [15:08:39]line Чеков: 0 [15:08:39]line Общий итог: 0.00 [15:08:39]line Итого наличными: 0.00 [15:08:39]line Итого безнал.: 0.00 [15:08:39]line НДС 0% : 0.00 [15:08:39]line НДС 12% : 0.00 [15:08:39]line НСП 0% : 0.00 [15:08:39]line НСП 1,50% : 0.00 [15:08:39]line НСП 0,50% : 0.00 [15:08:39]line НСП 5% : 0.00 [15:08:39]line НСП 3% : 0.00 [15:08:39]line НСП 2% : 0.00 [15:08:39]line НСП 1% : 0.00 [15:08:39]line ИТОГИ ВОЗВРАТ РАСХОДА [15:08:39]line Чеков: 0 [15:08:39]line Общий итог: 0.00 [15:08:39]line Итого наличными: 0.00 [15:08:39]line Итого безнал.: 0.00 [15:08:39]line НДС 0% : 0.00 [15:08:39]line НДС 12% : 0.00 [15:08:39]line НСП 0% : 0.00 [15:08:39]line НСП 1,50% : 0.00 [15:08:39]line НСП 0,50% : 0.00 [15:08:39]line НСП 5% : 0.00 [15:08:39]line НСП 3% : 0.00 [15:08:39]line НСП 2% : 0.00 [15:08:39]line НСП 1% : 0.00 [15:08:39]line Сумма внесений: 0.00 [15:08:39]line Сумма выплат: 0.00 [15:08:39]line Нал. в кассе: 36477.00 [15:08:39]line НС Приход: 26444507.21 [15:08:39]line НС Возвр.Прихода: 124784.00 [15:08:39]line НС Расход: 0.00 [15:08:39]line НС Возвр.Расхода: 0.00 [15:08:39]line ФМ: 0000000000874657 [15:08:39]written 0, free lines is 4095 [15:08:40]OFD Sender: No OFD packet to send [15:08:40]Write to MH i2c: 01 00 00 31 A8 D9 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: 01 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: 01 07 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: 01 07 00 31 A8 00 00 00 00 00 CC 09 B5 [15:08:40]RasterBufferAndPrint [15:08:40]line [15:08:40]line [15:08:40]line [15:08:40]line [15:08:40]line [15:08:40]written 0, free lines is 2538 [15:08:40]MH_Cut [15:08:40]Write to MH i2c: D1 01 00 38 A8 01 B2 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: D1 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: D1 01 00 [15:08:40]MH_I2C_Read... [15:08:40]Read from MH i2c: D1 01 00 38 A8 00 B1 [15:08:40]Write to MH i2c: 01 00 00 39 A8 E1 [15:08:40]Write i2c OK [15:08:40]MH_I2C_Read... [15:08:41]*** Cut start [15:08:41]*** Partial cut [15:08:41]*** CUTSNS_PIN = 1 [15:08:41]*** CUTSNS_PIN = 0 [15:08:42]*** Brake cut motor [15:08:42]Read from MH i2c: 01 [15:08:42]MH_I2C_Read... [15:08:42]*** Stop cut motor [15:08:42]*** Cut end [15:08:42]Read from MH i2c: 01 07 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: 01 07 00 39 A8 00 00 00 00 00 FF 0F F6 [15:08:42]process_action x_report done [15:08:42]requested_data is exist [15:08:42]produce_requested_data [15:08:42]requested_item fd.num is exist - process it [15:08:42]SAM_PROTO_GetFieldsCounters [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 13 00 00 [15:08:42]Write to MH i2c: E2 08 00 3A A8 80 13 00 00 00 00 00 00 5E [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 62 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 62 00 3A A8 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [15:08: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:42]wFMCommunicate OK [15:08:42]SAM_PROTO_GetFieldsCounters done [15:08:42]requested_item shift.num is exist - process it [15:08:42]requested_item shift.opened is exist - process it [15:08:42]req_shift_opened [15:08:42]FM_GetShiftState [15:08:42]SAM_PROTO_GetShiftState [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 13 01 00 [15:08:42]Write to MH i2c: E2 08 00 3B A8 80 13 01 00 00 00 00 00 60 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0E 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0E 00 3B A8 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 AA [15:08:42]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [15:08:42]wFMCommunicate OK [15:08:42]SAM_PROTO_GetShiftState done [15:08:42]FM_GetShiftState done [15:08:42]req_shift_opened done [15:08:42]requested_item shift.open_date is exist - process it [15:08:42]req_shift_open_date [15:08:42]req_shift_open_date done [15:08:42]produce_requested_data done [15:08:42]produce_requested_data return {"fd.num":27169,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [15:08:42]process_action_free x_report [15:08:42]json_value_free [15:08:42]json_value_free done [15:08:42]process_json_proto returns [15:08:42]Send response to host [15:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":27169,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [15:08:42]free response buf [15:08:42]execute_script done [15:08:42]execute_script returns [15:08:42]free content buf [15:08:42]Sock 9.Close socket [15:08:42]Sock 9.Thread stoped [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:04]accept exits with 8 [15:09:04]New connection [15:09:04]New thread 3066871140 created [15:09:04]Thread 3067014500 joined [15:09:04]Waiting for new connection... [15:09:04] Sock 8.Parse request [15:09:04]Sock 8.Check first char [15:09:04]Sock 8.First char is OK [15:09:04]request: POST /json_proto HTTP/1.0 [15:09:04]Method: POST [15:09:04]URL: /json_proto [15:09:04]Method is POST - this is cgi request [15:09:04]url: /json_proto [15:09:04]query_string will be loaded in cgi processing [15:09:04]execute_cgi json_proto POST (null) [15:09:04]execute_cgi path=json_proto method=POST [15:09:04]POST find Content-Length [15:09:04]Host: 172.17.35.3:8080 [15:09:04]Content-Length: 215 [15:09:04]Content-Type: application/json [15:09:04] [15:09:04]POST finish read [15:09:04]Found Content-Length = 215 [15:09:04]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" ] } } [15:09:04]execute_script... [15:09:04]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" ] } } [15:09:04]POST & json_proto [15:09:04]process_json_proto [15:09:04]json parsed OK: [15:09:04]protocol is kg_v1.0 [15:09:04]action value=get_value [15:09:04]process_action get_value [15:09:04]cmd_get_value [15:09:04]process_action get_value done [15:09:04]requested_data is exist [15:09:04]produce_requested_data [15:09:04]requested_item kkm.sn is exist - process it [15:09:04]requested_item kkm.ver is exist - process it [15:09:04]requested_item fm.sn is exist - process it [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 11 00 00 [15:09:04]Write to MH i2c: E2 08 00 3C A8 80 11 00 00 00 00 00 00 5E [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 17 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 17 00 3C A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B6 [15:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:09:04]wFMCommunicate OK [15:09:04]requested_item fd.num is exist - process it [15:09:04]SAM_PROTO_GetFieldsCounters [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 13 00 00 [15:09:04]Write to MH i2c: E2 08 00 3D A8 80 13 00 00 00 00 00 00 61 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 62 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 62 00 3D A8 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [15:09: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:04]wFMCommunicate OK [15:09:04]SAM_PROTO_GetFieldsCounters done [15:09:04]requested_item shift.num is exist - process it [15:09:04]requested_item shift.opened is exist - process it [15:09:04]req_shift_opened [15:09:04]FM_GetShiftState [15:09:04]SAM_PROTO_GetShiftState [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 13 01 00 [15:09:04]Write to MH i2c: E2 08 00 3E A8 80 13 01 00 00 00 00 00 63 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 0E 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 0E 00 3E A8 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 AD [15:09:04]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [15:09:04]wFMCommunicate OK [15:09:04]SAM_PROTO_GetShiftState done [15:09:04]FM_GetShiftState done [15:09:04]req_shift_opened done [15:09:04]requested_item shift.open_date is exist - process it [15:09:04]req_shift_open_date [15:09:04]req_shift_open_date done [15:09:04]produce_requested_data done [15:09:04]produce_requested_data return {"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":27169,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538} [15:09:04]process_action_free get_value [15:09:04]json_value_free [15:09:04]json_value_free done [15:09:04]process_json_proto returns [15:09:04]Send response to host [15:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":27169,"shift.num":317,"shift.opened":1,"shift.open_date":1712795538}}} [15:09:04]free response buf [15:09:04]execute_script done [15:09:04]execute_script returns [15:09:04]free content buf [15:09:04]Sock 8.Close socket [15:09:04]Sock 8.Thread stoped [15:09:04]accept exits with 9 [15:09:04]New connection [15:09:04]New thread 3067014500 created [15:09:04]Thread 3066871140 joined [15:09:04]Waiting for new connection... [15:09:04] Sock 9.Parse request [15:09:04]Sock 9.Check first char [15:09:04]Sock 9.First char is OK [15:09:04]request: POST /json_proto HTTP/1.0 [15:09:04]Method: POST [15:09:04]URL: /json_proto [15:09:04]Method is POST - this is cgi request [15:09:04]url: /json_proto [15:09:04]query_string will be loaded in cgi processing [15:09:04]execute_cgi json_proto POST (null) [15:09:04]execute_cgi path=json_proto method=POST [15:09:04]POST find Content-Length [15:09:04]Host: 172.17.35.3:8080 [15:09:04]Content-Length: 331 [15:09:04]Content-Type: application/json [15:09:04] [15:09:04]POST finish read [15:09:04]Found Content-Length = 331 [15:09:04]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" ] } } [15:09:04]execute_script... [15:09:04]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" ] } } [15:09:04]POST & json_proto [15:09:04]process_json_proto [15:09:04]json parsed OK: [15:09:04]protocol is kg_v1.0 [15:09:04]action value=get_value [15:09:04]process_action get_value [15:09:04]cmd_get_value [15:09:04]process_action get_value done [15:09:04]requested_data is exist [15:09:04]produce_requested_data [15:09:04]requested_item fm.sale.total is exist - process it [15:09:04]SAM_PROTO_GetFMData [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 13 03 00 [15:09:04]Write to MH i2c: E2 08 00 3F A8 80 13 03 00 00 00 00 00 66 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:05]OFD Sender: No OFD packet to send [15:09:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:09:05]Read from MH i2c: E2 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 FD 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 FD 00 3F A8 00 C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 2B [15:09:05]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 [15:09:05]wFMCommunicate OK [15:09:05]wFMCommunicate request_size=4 [15:09:05]MH_SAM_APDU [15:09:05]CAPDU: 80 17 00 00 [15:09:05]Write to MH i2c: E2 08 00 40 A8 80 17 00 00 00 00 00 00 68 [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:05]Read from MH i2c: E2 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 FD 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 FD 00 40 A8 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 AE [15:09:05]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 [15:09:05]wFMCommunicate OK [15:09:05]wFMCommunicate request_size=4 [15:09:05]MH_SAM_APDU [15:09:05]CAPDU: 80 17 00 00 [15:09:05]Write to MH i2c: E2 08 00 41 A8 80 17 00 00 00 00 00 00 69 [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 FD 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 FD 00 41 A8 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 0C [15:09:06]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [15:09:06]wFMCommunicate OK [15:09:06]wFMCommunicate request_size=4 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 17 00 00 [15:09:06]Write to MH i2c: E2 08 00 42 A8 80 17 00 00 00 00 00 00 6A [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 FD 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 FD 00 42 A8 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 E2 [15:09:06]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [15:09:06]wFMCommunicate OK [15:09:06]wFMCommunicate request_size=4 [15:09:06]MH_SAM_APDU [15:09:06]CAPDU: 80 17 00 00 [15:09:06]Write to MH i2c: E2 08 00 43 A8 80 17 00 00 00 00 00 00 6B [15:09:06]Write i2c OK [15:09:06]MH_I2C_Read... [15:09:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [15:09:06]Read from MH i2c: E2 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 DD 00 [15:09:06]MH_I2C_Read... [15:09:06]Read from MH i2c: E2 DD 00 43 A8 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 53 [15:09:07]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:09:07]wFMCommunicate OK [15:09:07]SAM_PROTO_GetFMData done [15:09:07]requested_item fm.sale_refund.total is exist - process it [15:09:07]requested_item fm.buy.total is exist - process it [15:09:07]requested_item shift.sale.total is exist - process it [15:09:07]SAM_PROTO_GetShiftData [15:09:07]wFMCommunicate request_size=4 [15:09:07]MH_SAM_APDU [15:09:07]CAPDU: 80 13 02 00 [15:09:07]Write to MH i2c: E2 08 00 44 A8 80 13 02 00 00 00 00 00 6A [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:09:07]Read from MH i2c: E2 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 FD 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 FD 00 44 A8 00 AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 6F [15:09:07]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:09:07]wFMCommunicate OK [15:09:07]wFMCommunicate request_size=4 [15:09:07]MH_SAM_APDU [15:09:07]CAPDU: 80 17 00 00 [15:09:07]Write to MH i2c: E2 08 00 45 A8 80 17 00 00 00 00 00 00 6D [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:08]Read from MH i2c: E2 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 FD 00 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 FD 00 45 A8 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 8F [15:09:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:09:08]wFMCommunicate OK [15:09:08]wFMCommunicate request_size=4 [15:09:08]MH_SAM_APDU [15:09:08]CAPDU: 80 17 00 00 [15:09:08]Write to MH i2c: E2 08 00 46 A8 80 17 00 00 00 00 00 00 6E [15:09:08]Write i2c OK [15:09:08]MH_I2C_Read... [15:09:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:08]Read from MH i2c: E2 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 FD 00 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 FD 00 46 A8 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 25 [15:09:08]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:09:08]wFMCommunicate OK [15:09:08]wFMCommunicate request_size=4 [15:09:08]MH_SAM_APDU [15:09:08]CAPDU: 80 17 00 00 [15:09:08]Write to MH i2c: E2 08 00 47 A8 80 17 00 00 00 00 00 00 6F [15:09:08]Write i2c OK [15:09:08]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 FD 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 FD 00 47 A8 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 E1 [15:09:09]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:09:09]wFMCommunicate OK [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 17 00 00 [15:09:09]Write to MH i2c: E2 08 00 48 A8 80 17 00 00 00 00 00 00 70 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 CB 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 CB 00 48 A8 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [15:09:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:09:09]wFMCommunicate OK [15:09:09]SAM_PROTO_GetShiftData done [15:09:09]requested_item shift.sale.total_cash is exist - process it [15:09:09]requested_item shift.sale_refund.total is exist - process it [15:09:09]requested_item shift.sale_refund.total_cash is exist - process it [15:09:09]requested_item shift.buy.total is exist - process it [15:09:09]requested_item shift.buy.total_cash is exist - process it [15:09:09]produce_requested_data done [15:09:09]produce_requested_data return {"fm.sale.total":26444507.21,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":53960.34,"shift.sale.total_cash":36477.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} [15:09:09]process_action_free get_value [15:09:09]json_value_free [15:09:09]json_value_free done [15:09:09]process_json_proto returns [15:09:09]Send response to host [15:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26444507.21,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":53960.34,"shift.sale.total_cash":36477.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}}} [15:09:09]free response buf [15:09:09]execute_script done [15:09:09]execute_script returns [15:09:09]free content buf [15:09:09]Sock 9.Close socket [15:09:09]Sock 9.Thread stoped [15:09:09]accept exits with 8 [15:09:09]New connection [15:09:09]New thread 3066871140 created [15:09:09]Thread 3067014500 joined [15:09:09]Waiting for new connection... [15:09:09] Sock 8.Parse request [15:09:09]Sock 8.Check first char [15:09:09]Sock 8.First char is OK [15:09:09]request: POST /json_proto HTTP/1.0 [15:09:09]Method: POST [15:09:09]URL: /json_proto [15:09:09]Method is POST - this is cgi request [15:09:09]url: /json_proto [15:09:09]query_string will be loaded in cgi processing [15:09:09]execute_cgi json_proto POST (null) [15:09:09]execute_cgi path=json_proto method=POST [15:09:09]POST find Content-Length [15:09:09]Host: 172.17.35.3:8080 [15:09:09]Content-Length: 331 [15:09:09]Content-Type: application/json [15:09:09] [15:09:09]POST finish read [15:09:09]Found Content-Length = 331 [15:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:09:09]execute_script... [15:09:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:09:09]POST & json_proto [15:09:09]process_json_proto [15:09:09]json parsed OK: [15:09:09]protocol is kg_v1.0 [15:09:09]action value=get_value [15:09:09]process_action get_value [15:09:09]cmd_get_value [15:09:09]process_action get_value done [15:09:09]requested_data is exist [15:09:09]produce_requested_data [15:09:09]requested_item fm.sale.total is exist - process it [15:09:09]SAM_PROTO_GetFMData [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 13 03 00 [15:09:09]Write to MH i2c: E2 08 00 49 A8 80 13 03 00 00 00 00 00 70 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:10]OFD Sender: No OFD packet to send [15:09:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 FD 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 FD 00 49 A8 00 C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 35 [15:09:10]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 [15:09:10]wFMCommunicate OK [15:09:10]wFMCommunicate request_size=4 [15:09:10]MH_SAM_APDU [15:09:10]CAPDU: 80 17 00 00 [15:09:10]Write to MH i2c: E2 08 00 4A A8 80 17 00 00 00 00 00 00 72 [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 FD 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 FD 00 4A A8 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 B8 [15:09:11]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 [15:09:11]wFMCommunicate OK [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 17 00 00 [15:09:11]Write to MH i2c: E2 08 00 4B A8 80 17 00 00 00 00 00 00 73 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 FD 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 FD 00 4B A8 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 16 [15:09:11]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [15:09:11]wFMCommunicate OK [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 17 00 00 [15:09:11]Write to MH i2c: E2 08 00 4C A8 80 17 00 00 00 00 00 00 74 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 FD 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 FD 00 4C A8 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 EC [15:09:12]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [15:09:12]wFMCommunicate OK [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 17 00 00 [15:09:12]Write to MH i2c: E2 08 00 4D A8 80 17 00 00 00 00 00 00 75 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 DD 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 DD 00 4D A8 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5D [15:09:12]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:09:12]wFMCommunicate OK [15:09:12]SAM_PROTO_GetFMData done [15:09:12]requested_item fm.sale_refund.total is exist - process it [15:09:12]requested_item fm.buy.total is exist - process it [15:09:12]requested_item shift.sale.total is exist - process it [15:09:12]SAM_PROTO_GetShiftData [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 13 02 00 [15:09:12]Write to MH i2c: E2 08 00 4E A8 80 13 02 00 00 00 00 00 74 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 FD 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 FD 00 4E A8 00 AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 79 [15:09:13]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:09:13]wFMCommunicate OK [15:09:13]wFMCommunicate request_size=4 [15:09:13]MH_SAM_APDU [15:09:13]CAPDU: 80 17 00 00 [15:09:13]Write to MH i2c: E2 08 00 4F A8 80 17 00 00 00 00 00 00 77 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 FD 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 FD 00 4F A8 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 99 [15:09:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:09:14]wFMCommunicate OK [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 17 00 00 [15:09:14]Write to MH i2c: E2 08 00 50 A8 80 17 00 00 00 00 00 00 78 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 FD 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 FD 00 50 A8 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 2F [15:09:14]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:09:14]wFMCommunicate OK [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 17 00 00 [15:09:14]Write to MH i2c: E2 08 00 51 A8 80 17 00 00 00 00 00 00 79 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:15]Read from MH i2c: E2 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 FD 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 FD 00 51 A8 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 EB [15:09:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:09:15]wFMCommunicate OK [15:09:15]wFMCommunicate request_size=4 [15:09:15]MH_SAM_APDU [15:09:15]CAPDU: 80 17 00 00 [15:09:15]Write to MH i2c: E2 08 00 52 A8 80 17 00 00 00 00 00 00 7A [15:09:15]OFD Sender: No OFD packet to send [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:09:15]Read from MH i2c: E2 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 CB 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 CB 00 52 A8 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [15:09:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:09:16]wFMCommunicate OK [15:09:16]SAM_PROTO_GetShiftData done [15:09:16]requested_item shift.sale.total_cash is exist - process it [15:09:16]requested_item shift.sale_refund.total is exist - process it [15:09:16]requested_item shift.sale_refund.total_cash is exist - process it [15:09:16]requested_item shift.buy.total is exist - process it [15:09:16]requested_item shift.buy.total_cash is exist - process it [15:09:16]produce_requested_data done [15:09:16]produce_requested_data return {"fm.sale.total":26444507.21,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":53960.34,"shift.sale.total_cash":36477.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} [15:09:16]process_action_free get_value [15:09:16]json_value_free [15:09:16]json_value_free done [15:09:16]process_json_proto returns [15:09:16]Send response to host [15:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26444507.21,"fm.sale_refund.total":124784.00,"fm.buy.total":0.00,"shift.sale.total":53960.34,"shift.sale.total_cash":36477.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}}} [15:09:16]free response buf [15:09:16]execute_script done [15:09:16]execute_script returns [15:09:16]free content buf [15:09:16]Sock 8.Close socket [15:09:16]Sock 8.Thread stoped [15:09:16]accept exits with 10 [15:09:16]New connection [15:09:16]New thread 3067014500 created [15:09:16]Thread 3066871140 joined [15:09:16]Waiting for new connection... [15:09:16] Sock 10.Parse request [15:09:16]Sock 10.Check first char [15:09:16]Sock 10.First char is OK [15:09:16]request: POST /json_proto HTTP/1.0 [15:09:16]Method: POST [15:09:16]URL: /json_proto [15:09:16]Method is POST - this is cgi request [15:09:16]url: /json_proto [15:09:16]query_string will be loaded in cgi processing [15:09:16]execute_cgi json_proto POST (null) [15:09:16]execute_cgi path=json_proto method=POST [15:09:16]POST find Content-Length [15:09:16]Host: 172.17.35.3:8080 [15:09:16]Content-Length: 259 [15:09:16]Content-Type: application/json [15:09:16] [15:09:16]POST finish read [15:09:16]Found Content-Length = 259 [15:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:16]execute_script... [15:09:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0434\u0438\u043B\u0431\u0430\u0435\u0432 \u041A." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:16]POST & json_proto [15:09:16]process_json_proto [15:09:16]json parsed OK: [15:09:16]protocol is kg_v1.0 [15:09:16]action value=close_shift [15:09:16]process_action close_shift [15:09:16]cmd_close_shift [15:09:16]MH_GetDate [15:09:16]Write to MH i2c: F0 00 00 53 A8 EA [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 09 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 09 00 53 A8 00 3C FD 17 66 2B 11 66 64 AF [15:09:16]GetLastDocTimeStamp 1712848143 [15:09:16]current date 1712848188 [15:09:16]FM_GetShiftState [15:09:16]SAM_PROTO_GetShiftState [15:09:16]wFMCommunicate request_size=4 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 13 01 00 [15:09:16]Write to MH i2c: E2 08 00 54 A8 80 13 01 00 00 00 00 00 79 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:16]Read from MH i2c: E2 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 0E 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 0E 00 54 A8 00 09 00 01 92 2F 17 66 00 00 00 00 90 00 C3 [15:09:16]RAPDU: 09 00 01 92 2F 17 66 00 00 00 00 90 00 [15:09:16]wFMCommunicate OK [15:09:16]SAM_PROTO_GetShiftState done [15:09:16]FM_GetShiftState done [15:09:16]KKMCreateCloseShiftDocument [15:09:16]Load OK [15:09:16]Malloc new data [15:09:16]MH_GetDate [15:09:16]Write to MH i2c: F0 00 00 55 A8 EC [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 09 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 09 00 55 A8 00 3C FD 17 66 2B 11 66 64 B1 [15:09:16]Malloc new data [15:09:16]Malloc new data [15:09:16]Malloc new data [15:09:16]Malloc new data [15:09:16]KKMCreateCloseShiftDocument OK [15:09:16]KKMSetCloseShiftData OK [15:09:16]ProcessDocumentItem done err = 0, tmpTLVsize=70 [15:09:16]tlvbuf is 0122E440 [15:09:16]KKMLoadAndSignCloseShiftData [15:09:16]SAM_PROTO_ProcessDocument [15:09:16]wFMCommunicate request_size=9 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 15 01 00 04 05 00 46 00 [15:09:16]Write to MH i2c: E2 0C 00 56 A8 80 15 01 00 04 00 05 00 46 00 00 00 D0 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [15:09:16]Read from MH i2c: E2 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 56 A8 00 90 00 72 [15:09:16]RAPDU: 90 00 [15:09:16]wFMCommunicate OK [15:09:16]wFMCommunicate request_size=23 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [15:09:16]Write to MH i2c: E2 1A 00 57 A8 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 74 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:09:16]Read from MH i2c: E2 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 57 A8 00 90 00 73 [15:09:16]RAPDU: 90 00 [15:09:16]wFMCommunicate OK [15:09:16]wFMCommunicate request_size=29 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 15 02 00 18 FD 03 14 00 D0 AD D0 B4 D0 B8 D0 BB D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9A 2E [15:09:16]Write to MH i2c: E2 20 00 58 A8 80 15 02 00 18 00 FD 03 14 00 D0 AD D0 B4 D0 B8 D0 BB D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9A 2E 00 00 98 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:09:16]Read from MH i2c: E2 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 58 A8 00 90 00 74 [15:09:16]RAPDU: 90 00 [15:09:16]wFMCommunicate OK [15:09:16]wFMCommunicate request_size=13 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 15 02 00 08 F4 03 04 00 3C FD 17 66 [15:09:16]Write to MH i2c: E2 10 00 59 A8 80 15 02 00 08 00 F4 03 04 00 3C FD 17 66 00 00 42 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:09:16]Read from MH i2c: E2 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 59 A8 00 90 00 75 [15:09:16]RAPDU: 90 00 [15:09:16]wFMCommunicate OK [15:09:16]wFMCommunicate request_size=25 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 [15:09:16]Write to MH i2c: E2 1C 00 5A A8 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 00 00 E9 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:09:16]Read from MH i2c: E2 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 03 00 5A A8 00 90 00 76 [15:09:16]RAPDU: 90 00 [15:09:16]wFMCommunicate OK [15:09:16]wFMCommunicate request_size=4 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 15 03 00 [15:09:16]Write to MH i2c: E2 08 00 5B A8 80 15 03 00 00 00 00 00 84 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 FD 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 FD 00 5B A8 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 22 6A 00 00 0E 04 04 00 3D 01 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 3A 00 00 00 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 69 [15:09:17]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 22 6A 00 00 0E 04 04 00 3D 01 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 3A 00 00 00 AA 04 AA 04 6E 04 04 00 38 00 00 00 69 04 9B 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [15:09:17]wFMCommunicate OK [15:09:17]SAM_PROTO_ProcessDocument answer len = 1265 [15:09:17]SAM_PROTO_ProcessDocument remain to read = 1017 [15:09:17]wFMCommunicate request_size=4 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 17 00 00 [15:09:17]Write to MH i2c: E2 08 00 5C A8 80 17 00 00 00 00 00 00 84 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 FD 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 FD 00 5C A8 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 CD [15:09:18]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [15:09:18]wFMCommunicate OK [15:09:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:09:18]SAM_PROTO_ProcessDocument remain to read = 767 [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 17 00 00 [15:09:18]Write to MH i2c: E2 08 00 5D A8 80 17 00 00 00 00 00 00 85 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 FD 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 FD 00 5D A8 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 E7 [15:09:18]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [15:09:18]wFMCommunicate OK [15:09:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:09:18]SAM_PROTO_ProcessDocument remain to read = 517 [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 17 00 00 [15:09:18]Write to MH i2c: E2 08 00 5E A8 80 17 00 00 00 00 00 00 86 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:19]Read from MH i2c: E2 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 FD 00 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 FD 00 5E A8 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 10 [15:09:19]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [15:09:19]wFMCommunicate OK [15:09:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:09:19]SAM_PROTO_ProcessDocument remain to read = 267 [15:09:19]wFMCommunicate request_size=4 [15:09:19]MH_SAM_APDU [15:09:19]CAPDU: 80 17 00 00 [15:09:19]Write to MH i2c: E2 08 00 5F A8 80 17 00 00 00 00 00 00 87 [15:09:19]Write i2c OK [15:09:19]MH_I2C_Read... [15:09:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:19]Read from MH i2c: E2 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 FD 00 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 FD 00 5F A8 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 4F [15:09:19]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [15:09:20]wFMCommunicate OK [15:09:20]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:09:20]SAM_PROTO_ProcessDocument remain to read = 17 [15:09:20]wFMCommunicate request_size=4 [15:09:20]MH_SAM_APDU [15:09:20]CAPDU: 80 17 00 00 [15:09:20]Write to MH i2c: E2 08 00 60 A8 80 17 00 00 00 00 00 00 88 [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [15:09:20]Read from MH i2c: E2 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 14 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 14 00 60 A8 00 01 00 06 F7 03 00 00 35 04 06 00 33 74 89 97 14 23 90 00 CB [15:09:20]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 33 74 89 97 14 23 90 00 [15:09:20]wFMCommunicate OK [15:09:20]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [15:09:20]SAM_PROTO_ProcessDocument done [15:09:20]1209 (1) - 1.0 - номер версии ФФД [15:09:20]1041 (16) - 0000000000874657 - номер ФМ [15:09:20]1040 (4) - 27170 - номер ФД [15:09:20]1038 (4) - 317 - номер смены [15:09:20]1118 (4) - 56 - количество кассовых чеков за смену [15:09:20]1111 (4) - 58 - общее количество ФД за смену [15:09:20]1194 (1194) - счетчики итогов смены [15:09:20] 1134 (4) - 56 - количество чеков со всеми признаками расчетов [15:09:20] 1129 (155) - счетчики операций «приход» [15:09:20] 1135 (4) - 56 - количество чеков по признаку расчетов [15:09:20] 1201 (3) - 53960.34 - общая итоговая сумма в чеках [15:09:20] 1136 (3) - 36477.00 - итоговая сумма в чеках наличными [15:09:20] 1138 (3) - 17483.34 - итоговая сумма в чеках безналичными [15:09:20] 1024 (122) - суммы налогов [15:09:20] 1006 (9) - суммы НДС [15:09:20] 1010 (1) - 0% - код ставки НДС [15:09:20] 1011 (0) - 0.00 - сумма НДС по ставке [15:09:20] 1006 (12) - суммы НДС [15:09:20] 1010 (1) - 12% - код ставки НДС [15:09:20] 1011 (3) - 5731.70 - сумма НДС по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 0% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (11) - суммы НСП [15:09:20] 1014 (1) - 1% - код ставки НСП [15:09:20] 1015 (2) - 477.60 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 2% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 3% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 5% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 0,50% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 1,50% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1130 (141) - счетчики операций «возврат прихода» [15:09:20] 1135 (4) - 0 - количество чеков по признаку расчетов [15:09:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:09:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:09:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:09:20] 1024 (117) - суммы налогов [15:09:20] 1006 (9) - суммы НДС [15:09:20] 1010 (1) - 0% - код ставки НДС [15:09:20] 1011 (0) - 0.00 - сумма НДС по ставке [15:09:20] 1006 (9) - суммы НДС [15:09:20] 1010 (1) - 12% - код ставки НДС [15:09:20] 1011 (0) - 0.00 - сумма НДС по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 0% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 1% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 2% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 3% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 5% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 0,50% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 1,50% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1131 (141) - счетчики операций «расход» [15:09:20] 1135 (4) - 0 - количество чеков по признаку расчетов [15:09:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:09:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:09:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:09:20] 1024 (117) - суммы налогов [15:09:20] 1006 (9) - суммы НДС [15:09:20] 1010 (1) - 0% - код ставки НДС [15:09:20] 1011 (0) - 0.00 - сумма НДС по ставке [15:09:20] 1006 (9) - суммы НДС [15:09:20] 1010 (1) - 12% - код ставки НДС [15:09:20] 1011 (0) - 0.00 - сумма НДС по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 0% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 1% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 2% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 3% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 5% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 0,50% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 1,50% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1132 (141) - счетчики операций «возврат расхода» [15:09:20] 1135 (4) - 0 - количество чеков по признаку расчетов [15:09:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:09:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:09:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:09:20] 1024 (117) - суммы налогов [15:09:20] 1006 (9) - суммы НДС [15:09:20] 1010 (1) - 0% - код ставки НДС [15:09:20] 1011 (0) - 0.00 - сумма НДС по ставке [15:09:20] 1006 (9) - суммы НДС [15:09:20] 1010 (1) - 12% - код ставки НДС [15:09:20] 1011 (0) - 0.00 - сумма НДС по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 0% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 1% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 2% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 3% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 5% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 0,50% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1007 (9) - суммы НСП [15:09:20] 1014 (1) - 1,50% - код ставки НСП [15:09:20] 1015 (0) - 0.00 - сумма НСП по ставке [15:09:20] 1133 (588) - - счетчики коррекции - не используются [15:09:20]1077 (6) - 56575617602595 - ФПД [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1209 (04B9) [15:09:20]Malloc new data [15:09:20]Processing tag 1041 (0411) [15:09:20]Processing tag 1040 (0410) [15:09:20]Malloc new data [15:09:20]Processing tag 1038 (040E) [15:09:20]Malloc new data [15:09:20]Processing tag 1118 (045E) [15:09:20]Malloc new data [15:09:20]Processing tag 1111 (0457) [15:09:20]Malloc new data [15:09:20]OFD Sender: No OFD packet to send [15:09:20]Processing tag 1194 (04AA) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1134 (046E) [15:09:20]Malloc new data [15:09:20]Processing tag 1129 (0469) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1135 (046F) [15:09:20]Malloc new data [15:09:20]Processing tag 1201 (04B1) [15:09:20]Malloc new data [15:09:20]Processing tag 1136 (0470) [15:09:20]Malloc new data [15:09:20]Processing tag 1138 (0472) [15:09:20]Malloc new data [15:09:20]Processing tag 1024 (0400) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1006 (03EE) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1010 (03F2) [15:09:20]Malloc new data [15:09:20]Processing tag 1011 (03F3) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1006 (03EE) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1010 (03F2) [15:09:20]Malloc new data [15:09:20]Processing tag 1011 (03F3) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]SetTLVBufToDocument err=0 [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1130 (046A) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1135 (046F) [15:09:20]Malloc new data [15:09:20]Processing tag 1201 (04B1) [15:09:20]Malloc new data [15:09:20]Processing tag 1136 (0470) [15:09:20]Malloc new data [15:09:20]Processing tag 1138 (0472) [15:09:20]Malloc new data [15:09:20]Processing tag 1024 (0400) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1006 (03EE) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1010 (03F2) [15:09:20]Malloc new data [15:09:20]Processing tag 1011 (03F3) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1006 (03EE) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1010 (03F2) [15:09:20]Malloc new data [15:09:20]Processing tag 1011 (03F3) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:20]Processing tag 1014 (03F6) [15:09:20]Malloc new data [15:09:20]Processing tag 1015 (03F7) [15:09:20]Malloc new data [15:09:20]SetTLVBufToDocument err=0 [15:09:20]Processing tag 1007 (03EF) [15:09:20]Load OK [15:09:20]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]SetTLVBufToDocument err=0 [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1131 (046B) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1135 (046F) [15:09:21]Malloc new data [15:09:21]Processing tag 1201 (04B1) [15:09:21]Malloc new data [15:09:21]Processing tag 1136 (0470) [15:09:21]Malloc new data [15:09:21]Processing tag 1138 (0472) [15:09:21]Malloc new data [15:09:21]Processing tag 1024 (0400) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1006 (03EE) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1010 (03F2) [15:09:21]Malloc new data [15:09:21]Processing tag 1011 (03F3) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1006 (03EE) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1010 (03F2) [15:09:21]Malloc new data [15:09:21]Processing tag 1011 (03F3) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]SetTLVBufToDocument err=0 [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1132 (046C) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1135 (046F) [15:09:21]Malloc new data [15:09:21]Processing tag 1201 (04B1) [15:09:21]Malloc new data [15:09:21]Processing tag 1136 (0470) [15:09:21]Malloc new data [15:09:21]Processing tag 1138 (0472) [15:09:21]Malloc new data [15:09:21]Processing tag 1024 (0400) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1006 (03EE) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1010 (03F2) [15:09:21]Malloc new data [15:09:21]Processing tag 1011 (03F3) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1006 (03EE) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1010 (03F2) [15:09:21]Malloc new data [15:09:21]Processing tag 1011 (03F3) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1007 (03EF) [15:09:21]Load OK [15:09:21]SetTLVBufToDocument [15:09:21]Processing tag 1014 (03F6) [15:09:21]Malloc new data [15:09:21]Processing tag 1015 (03F7) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]SetTLVBufToDocument err=0 [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1133 (046D) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Processing tag 1077 (0435) [15:09:21]Malloc new data [15:09:21]SetTLVBufToDocument err=0 [15:09:21]Malloc new data [15:09:21]SAM_PROTO_GetFMData [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 13 03 00 [15:09:21]Write to MH i2c: E2 08 00 61 A8 80 13 03 00 00 00 00 00 88 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 FD 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 FD 00 61 A8 00 C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 4D [15:09:22]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A7 67 00 00 69 04 A1 00 6F 04 04 00 63 67 00 00 B1 04 04 00 A1 1D 9F 9D 70 04 04 00 98 8C 04 81 72 04 04 00 09 91 9A 1C 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 F5 18 BE 10 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 36 26 65 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 99 00 6F 04 04 00 44 00 00 00 B1 04 03 00 C0 67 BE 70 04 03 00 C0 67 BE 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FB 38 14 EF 03 09 00 F6 03 01 00 90 00 [15:09:22]wFMCommunicate OK [15:09:22]wFMCommunicate request_size=4 [15:09:22]MH_SAM_APDU [15:09:22]CAPDU: 80 17 00 00 [15:09:22]Write to MH i2c: E2 08 00 62 A8 80 17 00 00 00 00 00 00 8A [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:22]Read from MH i2c: E2 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: E2 FD 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: E2 FD 00 62 A8 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 D0 [15:09:22]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 66 AF 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 90 00 [15:09:23]wFMCommunicate OK [15:09:23]wFMCommunicate request_size=4 [15:09:23]MH_SAM_APDU [15:09:23]CAPDU: 80 17 00 00 [15:09:23]Write to MH i2c: E2 08 00 63 A8 80 17 00 00 00 00 00 00 8B [15:09:23]Write i2c OK [15:09:23]MH_I2C_Read... [15:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:23]Read from MH i2c: E2 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 FD 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 FD 00 63 A8 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 2E [15:09:23]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 [15:09:23]wFMCommunicate OK [15:09:23]wFMCommunicate request_size=4 [15:09:23]MH_SAM_APDU [15:09:23]CAPDU: 80 17 00 00 [15:09:23]Write to MH i2c: E2 08 00 64 A8 80 17 00 00 00 00 00 00 8C [15:09:23]Write i2c OK [15:09:23]MH_I2C_Read... [15:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:09:23]Read from MH i2c: E2 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 FD 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 FD 00 64 A8 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 04 [15:09:24]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [15:09:24]wFMCommunicate OK [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 17 00 00 [15:09:24]Write to MH i2c: E2 08 00 65 A8 80 17 00 00 00 00 00 00 8D [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 DD 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 DD 00 65 A8 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [15:09:24]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:09:25]wFMCommunicate OK [15:09:25]SAM_PROTO_GetFMData done [15:09:25]Malloc new data [15:09:25]Malloc new data [15:09:25]Malloc new data [15:09:25]Malloc new data [15:09:25]KKMLoadAndSignCloseShiftData err=0 [15:09:25]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Эдилбаев К. 11.04.2024 15:09 Смена: 317 РНМ: 0000000000091578 ЗНМ: 0300000147 СНО: Общий режим Чеков за смену: 56 ФД за смену: 58 Всего чеков: 56 ИТОГИ ПРИХОД Чеков: 56 Общий итог: 53960.34 Итого наличными: 36477.00 Итого безнал.: 17483.34 НДС 0% : 0.00 НДС 12% : 5731.70 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 477.60 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 36477.00 НС Приход: 26444507.21 НС Возвр.Прихода: 124784.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 27170 ФМ: 0000000000874657 ФПД: 56575617602595 [15:09:25]StoreToDocumentArchive [15:09:25]shift 317 fd 27170 [15:09:25]save to /storage/0317/doc_00027170 [15:09:25]save last doc name /storage/0317/doc_00027170 to /storage/kkm_last_doc_name [15:09:25]save OK [15:09:25]Clear old archive folders... [15:09:25]Remove dir /storage/0266 [15:09:25]opendir ok [15:09:25]file . [15:09:25]file .. [15:09:25]file doc_1712848151 [15:09:25]remove file /storage/0266/doc_1712848151 [15:09:25]remove dir /storage/0266 [15:09:25]NVStorageSaveData kkm_registers [15:09:25]File name is /storage/kkm_registers [15:09:25]Write 24 bytes [15:09:25]NVStorageSaveData done [15:09:25]NVStorageSaveData kkm_registers [15:09:25]File name is /storage/kkm_registers [15:09:25]Write 24 bytes [15:09:25]NVStorageSaveData done [15:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=1378 [15:09:25]tlvbuf is 01271670 [15:09:25]SAM_PROTO_ClearQueue [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 09 00 00 [15:09:25]Write to MH i2c: E2 08 00 66 A8 80 09 00 00 00 00 00 00 80 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 66 A8 00 90 00 82 [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]SAM_PROTO_ClearQueue done [15:09:25]KKMCreateOFDPacket [15:09:25]OFDProtocolAddRootSTLVToBuf [15:09:25]FM_MakeSignedData [15:09:25]FM_MakeSignedData [15:09:25]SAM_PROTO_SignData [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 01 02 [15:09:25]Write to MH i2c: E2 08 00 67 A8 80 0D 01 02 00 00 00 00 88 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 67 A8 00 90 00 83 [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]wFMCommunicate request_size=255 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 02 02 FA 05 00 62 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 14 00 D0 AD D0 B4 D0 B8 D0 BB D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9A 2E F4 03 04 00 3C FD 17 66 0E 04 04 00 3D 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 5E 04 04 00 38 00 00 00 57 04 04 00 3A 00 00 00 AA 04 D5 04 6E 04 04 00 38 00 00 00 69 04 A2 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 [15:09:25]Write to MH i2c: E2 02 01 68 A8 80 0D 02 02 FA 00 05 00 62 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 14 00 D0 AD D0 B4 D0 B8 D0 BB D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9A 2E F4 03 04 00 3C FD 17 66 0E 04 04 00 3D 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 5E 04 04 00 38 00 00 00 57 04 04 00 3A 00 00 00 AA 04 D5 04 6E 04 04 00 38 00 00 00 69 04 A2 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 24 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]OFD Sender: No OFD packet to send [15:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 68 A8 00 90 00 84 [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]wFMCommunicate request_size=255 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 02 02 FA 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 90 BA 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A [15:09:26]Write to MH i2c: E2 02 01 69 A8 80 0D 02 02 FA 00 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 90 BA 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 00 40 [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:26]Read from MH i2c: E2 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 03 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 03 00 69 A8 00 90 00 85 [15:09:26]RAPDU: 90 00 [15:09:26]wFMCommunicate OK [15:09:26]wFMCommunicate request_size=255 [15:09:26]MH_SAM_APDU [15:09:26]CAPDU: 80 0D 02 02 FA 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 [15:09:26]Write to MH i2c: E2 02 01 6A A8 80 0D 02 02 FA 00 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 52 [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:27]Read from MH i2c: E2 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 6A A8 00 90 00 86 [15:09:27]RAPDU: 90 00 [15:09:27]wFMCommunicate OK [15:09:27]wFMCommunicate request_size=255 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 0D 02 02 FA 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:09:27]Write to MH i2c: E2 02 01 6B A8 80 0D 02 02 FA 00 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 52 [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 03 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 03 00 6B A8 00 90 00 87 [15:09:28]RAPDU: 90 00 [15:09:28]wFMCommunicate OK [15:09:28]wFMCommunicate request_size=255 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 [15:09:28]Write to MH i2c: E2 02 01 6C A8 80 0D 02 02 FA 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 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 00 00 11 [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 03 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 03 00 6C A8 00 90 00 88 [15:09:28]RAPDU: 90 00 [15:09:28]wFMCommunicate OK [15:09:28]wFMCommunicate request_size=137 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 0D 02 02 84 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 22 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 35 04 06 00 33 74 89 97 14 23 [15:09:29]Write to MH i2c: E2 8C 00 6D A8 80 0D 02 02 84 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 10 04 04 00 22 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 35 04 06 00 33 74 89 97 14 23 00 00 63 [15:09:29]Write i2c OK [15:09:29]MH_I2C_Read... [15:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:29]Read from MH i2c: E2 [15:09:29]MH_I2C_Read... [15:09:29]Read from MH i2c: E2 03 00 [15:09:29]MH_I2C_Read... [15:09:29]Read from MH i2c: E2 03 00 6D A8 00 90 00 89 [15:09:29]RAPDU: 90 00 [15:09:29]wFMCommunicate OK [15:09:29]wFMCommunicate request_size=4 [15:09:29]MH_SAM_APDU [15:09:29]CAPDU: 80 0D 03 02 [15:09:29]Write to MH i2c: E2 08 00 6E A8 80 0D 03 02 00 00 00 00 91 [15:09:29]Write i2c OK [15:09:29]MH_I2C_Read... [15:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:29]Read from MH i2c: E2 [15:09:29]MH_I2C_Read... [15:09:29]Read from MH i2c: E2 0B 00 [15:09:29]MH_I2C_Read... [15:09:29]Read from MH i2c: E2 0B 00 6E A8 00 96 EA 59 96 6B 99 A0 2A 90 00 CF [15:09:29]RAPDU: 96 EA 59 96 6B 99 A0 2A 90 00 [15:09:29]wFMCommunicate OK [15:09:29]SAM_PROTO_SignData done [15:09:29]FM_MakeSignedData done [15:09:29]CreateOFDProtocolMessage [15:09:29]wFMCommunicate request_size=4 [15:09:29]MH_SAM_APDU [15:09:29]CAPDU: 80 11 00 00 [15:09:29]Write to MH i2c: E2 08 00 6F A8 80 11 00 00 00 00 00 00 91 [15:09:29]Write i2c OK [15:09:29]MH_I2C_Read... [15:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:29]Read from MH i2c: E2 [15:09:29]MH_I2C_Read... [15:09:29]Read from MH i2c: E2 17 00 [15:09:29]MH_I2C_Read... [15:09:29]Read from MH i2c: E2 17 00 6F A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E9 [15:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:09:29]wFMCommunicate OK [15:09:29]CreateOFDProtocolMessage done [15:09:29]OFDSenderStorePacket 27170 [15:09:29]StoreOFDPacket docnum=27170 [15:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 76 05 00 00 E4 E7 6E 05 81 C0 5A 05 01 00 05 00 62 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 14 00 D0 AD D0 B4 D0 B8 D0 BB D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9A 2E F4 03 04 00 3C FD 17 66 0E 04 04 00 3D 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 5E 04 04 00 38 00 00 00 57 04 04 00 3A 00 00 00 AA 04 D5 04 6E 04 04 00 38 00 00 00 69 04 A2 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 22 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 35 04 06 00 33 74 89 97 14 23 96 EA 59 96 6B 99 A0 2A [15:09:30]CheckFolder [15:09:30]dirname=/storage/ofd_packets [15:09:30]CheckFolder done [15:09:30]ProducePacketName [15:09:30]name=ofd_packets/00027170 [15:09:30]NVStorageSaveData ofd_packets/00027170 [15:09:30]File name is /storage/ofd_packets/00027170 [15:09:30]Write 1428 bytes [15:09:30]NVStorageSaveData done [15:09:30]OFDSenderStorePacket done [15:09:30]KKMCreateOFDPacket done [15:09:30]NVStorageSaveData kkm_last_timestamp [15:09:30]File name is /storage/kkm_last_timestamp [15:09:30]Write 4 bytes [15:09:30]NVStorageSaveData done [15:09:30]ExternCall_PrintAddStr [15:09:30]wPrintStart [15:09:30]Write to MH i2c: 01 00 00 70 A8 18 [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: 01 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: 01 07 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: 01 07 00 70 A8 00 00 00 00 00 FF 0F 2D [15:09:30]RasterBufferAndPrint [15:09:30]line Отчет о закрытии смены [15:09:30]line ФФД: 1.0 [15:09:30]line ИНН: 02508201610067 [15:09:30]line Кассир: Эдилбаев К. [15:09:30]line 11.04.2024 15:09 [15:09:30]line Смена: 317 [15:09:30]line РНМ: 0000000000091578 [15:09:30]line ЗНМ: 0300000147 [15:09:30]line СНО: Общий режим [15:09:30]line Чеков за смену: 56 [15:09:30]line ФД за смену: 58 [15:09:30]line Всего чеков: 56 [15:09:30]line ИТОГИ ПРИХОД [15:09:30]line Чеков: 56 [15:09:30]line Общий итог: 53960.34 [15:09:30]line Итого наличными: 36477.00 [15:09:30]line Итого безнал.: 17483.34 [15:09:30]line НДС 0% : 0.00 [15:09:30]line НДС 12% : 5731.70 [15:09:30]line НСП 0% : 0.00 [15:09:30]line НСП 1,50% : 0.00 [15:09:30]line НСП 0,50% : 0.00 [15:09:30]line НСП 5% : 0.00 [15:09:30]line НСП 3% : 0.00 [15:09:30]line НСП 2% : 0.00 [15:09:30]line НСП 1% : 477.60 [15:09:30]line ИТОГИ ВОЗВРАТ ПРИХОДА [15:09:30]line Чеков: 0 [15:09:30]line Общий итог: 0.00 [15:09:30]line Итого наличными: 0.00 [15:09:30]line Итого безнал.: 0.00 [15:09:30]line НДС 0% : 0.00 [15:09:30]line НДС 12% : 0.00 [15:09:30]line НСП 0% : 0.00 [15:09:30]OFD Sender: Processing packet 27170 [packets to send 44, broken 43] [15:09:30]ProducePacketName [15:09:30]name=ofd_packets/00027170 [15:09:30]OFD Sender: To server: pG, [15:09:30]CommunicateWithHost lk.salyk.kg:30040 [15:09:30]ConnectInit lk.salyk.kg [15:09:30]line НСП 1,50% : 0.00 [15:09:30]line НСП 0,50% : 0.00 [15:09:30]line НСП 5% : 0.00 [15:09:30]line НСП 3% : 0.00 [15:09:30]line НСП 2% : 0.00 [15:09:30]line НСП 1% : 0.00 [15:09:30]line ИТОГИ РАСХОД [15:09:30]line Чеков: 0 [15:09:30]line Общий итог: 0.00 [15:09:30]line Итого наличными: 0.00 [15:09:30]line Итого безнал.: 0.00 [15:09:30]line НДС 0% : 0.00 [15:09:30]line НДС 12% : 0.00 [15:09:30]line НСП 0% : 0.00 [15:09:30]line НСП 1,50% : 0.00 [15:09:30]line НСП 0,50% : 0.00 [15:09:30]line НСП 5% : 0.00 [15:09:30]line НСП 3% : 0.00 [15:09:30]line НСП 2% : 0.00 [15:09:30]line НСП 1% : 0.00 [15:09:30]line ИТОГИ ВОЗВРАТ РАСХОДА [15:09:30]line Чеков: 0 [15:09:30]line Общий итог: 0.00 [15:09:30]line Итого наличными: 0.00 [15:09:30]line Итого безнал.: 0.00 [15:09:30]line НДС 0% : 0.00 [15:09:30]line НДС 12% : 0.00 [15:09:30]line НСП 0% : 0.00 [15:09:30]line НСП 1,50% : 0.00 [15:09:30]line НСП 0,50% : 0.00 [15:09:30]line НСП 5% : 0.00 [15:09:30]line НСП 3% : 0.00 [15:09:30]line НСП 2% : 0.00 [15:09:30]line НСП 1% : 0.00 [15:09:30]line Сумма внесений: 0.00 [15:09:30]line Сумма выплат: 0.00 [15:09:30]line Нал. в кассе: 36477.00 [15:09:30]line НС Приход: 26444507.21 [15:09:30]line НС Возвр.Прихода: 124784.00 [15:09:30]line НС Расход: 0.00 [15:09:30]line НС Возвр.Расхода: 0.00 [15:09:30]line ФД: 27170 [15:09:30]line ФМ: 0000000000874657 [15:09:30]line ФПД: 56575617602595 [15:09:30]written 0, free lines is 4095 [15:09:30]Write to MH i2c: 01 00 00 C0 A8 68 [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: 01 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: 01 07 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: 01 07 00 C0 A8 00 00 00 00 00 81 09 F9 [15:09:31]RasterBufferAndPrint [15:09:31]line [15:09:31]line [15:09:31]line [15:09:31]line [15:09:31]line [15:09:31]written 0, free lines is 2477 [15:09:31]MH_Cut [15:09:31]Write to MH i2c: D1 01 00 C7 A8 01 41 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: D1 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: D1 01 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: D1 01 00 C7 A8 00 40 [15:09:31]Write to MH i2c: 01 00 00 C8 A8 70 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]Connected sock=9 [15:09: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 35 37 76 05 00 00 E4 E7 6E 05 81 C0 5A 05 01 00 05 00 62 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 14 00 D0 AD D0 B4 D0 B8 D0 BB D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9A 2E F4 03 04 00 3C FD 17 66 0E 04 04 00 3D 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 5E 04 04 00 38 00 00 00 57 04 04 00 3A 00 00 00 AA 04 D5 04 6E 04 04 00 38 00 00 00 69 04 A2 00 6F 04 04 00 38 00 00 00 B1 04 03 00 42 56 52 70 04 03 00 D4 A8 37 72 04 03 00 6E AD 1A 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 F2 BE 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 90 BA 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 *** Cut start [15:09:32]*** Partial cut [15:09:32]*** CUTSNS_PIN = 1 [15:09:32]*** CUTSNS_PIN = 0 [15:09:32]03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 *** Brake cut motor [15:09:33]00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 22 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 35 04 06 00 33 74 89 97 14 23 96 EA 59 96 6B 99 A0 2A [15:09:33]Read from MH i2c: *** Stop cut motor [15:09:33]01 *** Cut end [15:09:33] [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: 01 07 00 [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: 01 07 00 C8 A8 00 00 00 00 00 FF 0F 85 [15:09:33]process_action close_shift done [15:09:33]requested_data is exist [15:09:33]produce_requested_data [15:09:33]requested_item fd.num is exist - process it [15:09:33]SAM_PROTO_GetFieldsCounters [15:09:33]wFMCommunicate request_size=4 [15:09:33]MH_SAM_APDU [15:09:33]CAPDU: 80 13 00 00 [15:09:33]Write to MH i2c: E2 08 00 C9 A8 80 13 00 00 00 00 00 00 ED [15:09:33]Write i2c OK [15:09:33]MH_I2C_Read... [15:09: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 35 37 4F 00 00 00 BE 1B 47 00 D6 75 A5 07 01 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:33]00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 35 37 10 04 04 00 22 6A 00 00 F4 03 04 00 AB A4 17 66 B6 04 01 00 00 95 DC DD AA ED 4B FA 5B [15:09:33]CommunicateWithHost err = 0 [15:09:33]CheckOFDResponse [15:09:33]1017 (14) - 77093643461234 [15:09:33]1041 (16) - 0000000000874657 [15:09:33]1040 (4) - 27170 [15:09:33]1012 (4) - 11.04.2024 08:51 [15:09:33]1206 (1) - 0 [15:09:33]OFD Sender: Remove packet 27170 [15:09:33]ProducePacketName [15:09:33]name=ofd_packets/00027170 [15:09:33]NVStorageDeleteData [15:09:33]Read from MH i2c: E2 [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: E2 62 00 [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: E2 62 00 C9 A8 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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 22 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [15:09: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 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 22 6A 00 00 0E 04 04 00 3D 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:33]wFMCommunicate OK [15:09:33]SAM_PROTO_GetFieldsCounters done [15:09:33]requested_item shift.num is exist - process it [15:09:33]requested_item shift.opened is exist - process it [15:09:33]req_shift_opened [15:09:33]FM_GetShiftState [15:09:33]SAM_PROTO_GetShiftState [15:09:33]wFMCommunicate request_size=4 [15:09:33]MH_SAM_APDU [15:09:33]CAPDU: 80 13 01 00 [15:09:33]Write to MH i2c: E2 08 00 CA A8 80 13 01 00 00 00 00 00 EF [15:09:33]Write i2c OK [15:09:33]MH_I2C_Read... [15:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:33]Read from MH i2c: E2 [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: E2 0E 00 [15:09:33]MH_I2C_Read... [15:09:33]Read from MH i2c: E2 0E 00 CA A8 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FA [15:09:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [15:09:33]wFMCommunicate OK [15:09:33]SAM_PROTO_GetShiftState done [15:09:33]FM_GetShiftState done [15:09:33]req_shift_opened done [15:09:33]requested_item shift.open_date is exist - process it [15:09:33]req_shift_open_date [15:09:33]FM_GetShiftState [15:09:33]SAM_PROTO_GetShiftState [15:09:33]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 01 00 [15:09:34]Write to MH i2c: E2 08 00 CB A8 80 13 01 00 00 00 00 00 F0 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 CB A8 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FB [15:09:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [15:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetShiftState done [15:09:34]FM_GetShiftState done [15:09:34]req_shift_open_date done [15:09:34]produce_requested_data done [15:09:34]produce_requested_data return {"fd.num":27170,"shift.num":317,"shift.opened":0,"shift.open_date":0} [15:09:34]process_action_free close_shift [15:09:34]json_value_free [15:09:34]json_value_free done [15:09:34]process_json_proto returns [15:09:34]Send response to host [15:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":27170,"shift.num":317,"shift.opened":0,"shift.open_date":0}}} [15:09:34]free response buf [15:09:34]execute_script done [15:09:34]execute_script returns [15:09:34]free content buf [15:09:34]Sock 10.Close socket [15:09:34]Sock 10.Thread stoped [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:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send